/* ==========================================================
   SUYOGROW — Design System v2
   Dark-first · Peach accent (from portrait) · Bento layout
   Fonts: Bricolage Grotesque (display) · Instrument Serif (accent)
          Geist (body) · Geist Mono (labels / numbers)
   ========================================================== */

:root {
  /* Surfaces */
  --bg: #0A0A0D;
  --bg-2: #0F0F14;
  --surface: #14141A;
  --surface-2: #1B1B23;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #F5F1EA;
  --muted: #A3A3AE;
  --dim: #6E6E7A;

  /* Brand */
  --peach: #FF9F6B;
  --peach-2: #FFC4A0;
  --coral: #FF6A3D;
  --peach-glow: rgba(255, 159, 107, 0.28);
  --grad: linear-gradient(135deg, #FFC4A0 0%, #FF9F6B 45%, #FF6A3D 100%);
  --wa: #25D366;

  /* Type */
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  /* Shape */
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Film grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--peach); color: #111; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display); font-weight: 700; color: var(--text);
  letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 .5em;
}
h1 { font-size: clamp(2.7rem, 7.2vw, 6rem); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
/* Accent words in headings: same display font, gradient colour */
em, .accent {
  font-style: normal; font-family: inherit; font-weight: inherit;
  background: linear-gradient(100deg, #FFD3B5 0%, #FF9F6B 45%, #FF5E3A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--f-mono); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 120px 0; position: relative; }
.section-tight { padding: 72px 0; }
@media (max-width: 700px) { .section { padding: 80px 0; } }

/* Section heading */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--peach); margin-bottom: 20px;
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .label::after { content: ""; width: 18px; height: 1px; background: currentColor; }
.head p { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.head.center p { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--f-body);
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), background .3s, box-shadow .3s, border-color .3s;
}
.btn i { font-size: .9em; transition: transform .3s var(--ease); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-arrow-up-right { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #160A04; box-shadow: 0 10px 40px -10px var(--peach-glow), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(255,159,107,.5), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.btn-wa { background: var(--wa); color: #04210F; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(37,211,102,.55); }
.btn-light { background: var(--text); color: #111; }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navbar (floating pill) ---------- */
.navbar { position: fixed; top: 16px; left: 0; right: 0; z-index: 80; padding: 0 16px; }
.nav-inner {
  max-width: 980px; margin: 0 auto; height: 60px; padding: 0 8px 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(16, 16, 21, .72); border: 1px solid var(--line);
  border-radius: 999px; backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.6);
}
.logo { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.04em; display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: block; padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.07); }
.nav-links .btn { margin-left: 8px; height: 44px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); font-size: 1rem; cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 24px; background: rgba(16,16,21,.96); border: 1px solid var(--line);
    backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a:not(.btn) { padding: 14px 16px; font-size: 1rem; }
  .nav-links .btn { margin: 6px 0 0; width: 100%; }
}

/* ---------- Background FX ---------- */
.dot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .55;
}
.glow-peach { background: radial-gradient(circle, #FF8A4C 0%, transparent 70%); }
.glow-violet { background: radial-gradient(circle, #5B4BFF 0%, transparent 70%); opacity: .25; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; }
.hero .glow-peach { width: 620px; height: 620px; top: -160px; right: -120px; }
.hero .glow-violet { width: 520px; height: 520px; bottom: -220px; left: -200px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; margin-bottom: 28px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03);
  font-size: .85rem; color: var(--muted);
}
.status-pill b { color: var(--text); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 540px; margin: 28px 0 36px; }
.hero .lead b { color: var(--text); font-weight: 500; }
.hero-proof { display: flex; align-items: center; gap: 16px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.stars { color: #FFC24B; letter-spacing: 2px; font-size: .85rem; }
.proof-divider { width: 1px; height: 28px; background: var(--line-2); }

/* Portrait card */
.portrait { position: relative; width: 100%; max-width: 400px; margin-left: auto; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #1B2033, #101018); border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -30px rgba(255,138,76,.35), 0 0 0 8px rgba(255,255,255,.02);
}
.portrait-frame::before {
  content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 6rem; color: rgba(255,255,255,.12);
}
.portrait-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top; image-rendering: pixelated; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(20,20,26,.82); border: 1px solid var(--line-2); border-radius: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.6); font-size: .82rem; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-chip .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: .9rem; }
.float-chip b { display: block; font-family: var(--f-mono); font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.float-chip span { color: var(--dim); font-size: .75rem; }
.chip-a { top: 9%; left: -18%; }
.chip-b { bottom: 12%; right: -12%; animation-delay: -3s; }
.chip-a .ic { background: rgba(255,194,75,.15); color: #FFC24B; }
.chip-b .ic { background: rgba(255,159,107,.15); color: var(--peach); }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero { padding-top: 132px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .portrait { margin: 0 auto; max-width: 340px; }
  .chip-a { left: -6%; } .chip-b { right: -6%; }
}
@media (max-width: 480px) {
  .portrait { max-width: 280px; }
  .chip-a { left: -4%; top: 4%; } .chip-b { right: -4%; bottom: 6%; }
  .hero-proof { flex-wrap: wrap; gap: 10px; }
  .proof-divider { display: none; }
}

/* ---------- Metric strip ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); overflow: hidden;
}
.metric { padding: 32px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-num { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.metric-num sup { font-size: .5em; color: var(--peach); vertical-align: top; margin-left: 2px; }
.metric-label { margin-top: 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--dim); letter-spacing: -.02em; white-space: nowrap; }
.marquee-item::after { content: "✦"; color: var(--peach); font-size: .8rem; margin-left: 36px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards (spotlight hover) ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; overflow: hidden; isolation: isolate; transition: border-color .3s, transform .4s var(--ease);
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,159,107,.10), transparent 60%);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); font-size: .97rem; }
.card-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(255,159,107,.1); color: var(--peach); border: 1px solid rgba(255,159,107,.18); font-size: 1.1rem;
}
.card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--text); }
.arrow-link i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: .75rem; transition: all .3s var(--ease); }
.card:hover .arrow-link i { background: var(--peach); color: #160A04; border-color: var(--peach); transform: rotate(-45deg); }
.kicker { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.b-2x2 { grid-column: span 2; grid-row: span 2; }
.b-2 { grid-column: span 2; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-2x2 { grid-row: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .b-2x2, .b-2 { grid-column: span 1; }
}

/* Resume feature tile */
.feature { background: linear-gradient(160deg, #1E1712 0%, var(--surface) 55%); }
.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.08; }
.ats {
  margin: 8px 0 24px; padding: 22px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid var(--line);
}
.ats-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ats-score { font-family: var(--f-display); font-size: 3rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.ats-score small { font-size: .4em; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.ats-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.ats-bar span { display: block; height: 100%; width: 96%; border-radius: inherit; background: var(--grad); }
.ats-rows { display: grid; gap: 8px; margin-top: 16px; }
.ats-row { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.ats-row b { color: #3DDC84; font-weight: 500; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .8rem; color: var(--muted); background: rgba(255,255,255,.02);
}
.tag-peach { color: var(--peach-2); border-color: rgba(255,159,107,.3); background: rgba(255,159,107,.06); }

/* Notes tile */
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 4px; }
.topic {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); font-weight: 600; font-size: .92rem;
}
.topic i { color: var(--peach); width: 18px; text-align: center; }

/* ---------- Community ---------- */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comm {
  position: relative; padding: 40px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: var(--surface); min-height: 300px; display: flex; flex-direction: column;
}
.comm::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; z-index: -1;
  border-radius: 50%; filter: blur(60px); opacity: .35;
}
.comm-hiring::after { background: #25D366; }
.comm-snow::after { background: #29B5E8; }
.comm .big-ic { font-size: 2rem; margin-bottom: 24px; }
.comm-hiring .big-ic { color: #3DDC84; }
.comm-snow .big-ic { color: #5FCBF2; }
.comm h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.comm p { color: var(--muted); max-width: 380px; }
.comm .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .community { grid-template-columns: 1fr; } .comm { padding: 30px; min-height: 0; } .comm .btn { margin-top: 12px; } }

/* ---------- Socials ---------- */
.socials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.social {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); transition: all .35s var(--ease);
}
.social:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.social-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.s-ig { background: linear-gradient(135deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 85%); color: #fff; }
.s-yt { background: #FF0033; color: #fff; }
.s-li { background: #0A66C2; color: #fff; }
.s-tm { background: var(--grad); color: #160A04; }
.s-wa { background: var(--wa); color: #04210F; }
.social-name { font-weight: 600; letter-spacing: -.01em; }
.social-meta { font-family: var(--f-mono); font-size: .75rem; color: var(--dim); }
.social .go { margin-left: auto; color: var(--dim); transform: rotate(-45deg); transition: all .3s var(--ease); }
.social:hover .go { color: var(--peach); transform: rotate(-45deg) translateX(3px); }
@media (max-width: 900px) { .socials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .socials-grid { grid-template-columns: 1fr; } }

/* ---------- Big CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(64px, 9vw, 112px) 24px; border-radius: 36px; border: 1px solid var(--line-2);
  background: radial-gradient(ellipse 80% 90% at 50% 120%, rgba(255,138,76,.45), transparent 60%), var(--bg-2);
}
.cta .dot-grid { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%); z-index: -1; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.75rem); max-width: 860px; margin: 0 auto 20px; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 36px; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding: 180px 0 80px; overflow: hidden; }
.page-hero .glow-peach { width: 560px; height: 560px; top: -260px; left: 50%; transform: translateX(-50%); opacity: .4; }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.25rem); max-width: 960px; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 600px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center p { margin-left: auto; margin-right: auto; }

/* ---------- Services page rows ---------- */
.svc-list { display: grid; gap: 16px; }
.svc {
  display: grid; grid-template-columns: 80px 1fr 1fr auto; gap: 32px; align-items: start;
  padding: 36px; border-radius: var(--r-lg);
}
.svc-num { font-family: var(--f-mono); font-size: .85rem; color: var(--dim); padding-top: 8px; }
.svc h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; margin-bottom: 10px; }
.svc .for { color: var(--muted); margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; color: var(--text); font-size: .95rem; }
.checks li i { color: var(--peach); font-size: .8rem; margin-top: 6px; }
.svc-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.svc-cta .note { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); letter-spacing: .04em; }
.badge-hot {
  display: inline-block; vertical-align: middle; margin-left: 10px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  background: rgba(255,159,107,.12); color: var(--peach); border: 1px solid rgba(255,159,107,.25);
}
@media (max-width: 1000px) {
  .svc { grid-template-columns: 1fr 1fr; gap: 24px; }
  .svc-num { grid-column: 1 / -1; padding: 0; }
  .svc-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 640px) {
  .svc { grid-template-columns: 1fr; padding: 26px; }
  .svc-cta { flex-direction: column; align-items: stretch; }
  .svc-cta .btn { width: 100%; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 32px; }
.step-n { font-family: var(--f-display); font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; margin-bottom: 28px; }
.step-n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .head { position: sticky; top: 120px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-family: var(--f-body); font-weight: 300; font-size: 1.3rem; color: var(--peach);
  transition: transform .3s var(--ease), background .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(255,159,107,.1); }
.faq details p { color: var(--muted); padding-bottom: 26px; margin: 0; max-width: 600px; }
.faq a { color: var(--peach); font-weight: 600; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 24px; } .faq-wrap .head { position: static; margin-bottom: 16px; } }

/* ---------- About page ---------- */
.about-hero { position: relative; padding: 168px 0 100px; overflow: hidden; }
.about-hero .glow-peach { width: 600px; height: 600px; top: -200px; left: -200px; opacity: .35; }
.about-grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about-grid .portrait { margin: 0; max-width: 420px; }
.about-grid .portrait-frame { background: linear-gradient(160deg, #1B2033, #14141A); box-shadow: 0 40px 100px -30px rgba(80,100,255,.25), 0 0 0 8px rgba(255,255,255,.02); }
.about-grid h1 { font-size: clamp(2.6rem, 5.6vw, 4.75rem); }
.about-grid .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 16px; }
.about-grid .lead b { color: var(--text); font-weight: 500; }
@media (max-width: 960px) {
  .about-hero { padding-top: 132px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-grid .portrait { margin: 0 auto; max-width: 320px; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack .pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: .95rem;
  transition: all .3s var(--ease);
}
.stack .pill:hover { border-color: rgba(255,159,107,.35); transform: translateY(-2px); }
.stack .pill i { color: var(--peach); }
.stack.learning .pill { border-style: dashed; border-color: rgba(255,159,107,.3); color: var(--peach-2); background: rgba(255,159,107,.04); }

.stack-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.stack-wrap .card { padding: 36px; }
@media (max-width: 900px) { .stack-wrap { grid-template-columns: 1fr; } }

.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.story-body p { font-size: 1.2rem; color: var(--muted); line-height: 1.7; }
.story-body p:first-child::first-letter {
  font-family: var(--f-display); font-weight: 800; float: left; font-size: 4.5rem; line-height: .85;
  padding: 6px 12px 0 0; color: var(--peach);
}
.story-body strong { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 96px 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer p { color: var(--muted); max-width: 300px; }
.footer h4 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--muted); transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer ul a:hover { color: var(--text); }
.foot-socials { display: flex; gap: 8px; margin-top: 24px; }
.foot-socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2);
  color: var(--muted); transition: all .3s var(--ease);
}
.foot-socials a:hover { color: #160A04; background: var(--peach); border-color: var(--peach); }
.wordmark {
  margin-top: 72px; font-family: var(--f-display); font-weight: 800; letter-spacing: -.06em; line-height: .8;
  font-size: clamp(4rem, 19vw, 16rem); text-align: center; user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-bottom { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--dim); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #04210F; display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 12px 34px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.metrics-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .metrics-4 { grid-template-columns: repeat(2, 1fr); } .metrics-4 .metric:last-child { grid-column: auto; } .metrics-4 .metric:nth-child(n+3) { border-bottom: 0; } }

/* ==========================================================
   LIBRARY
   ========================================================== */
em.plain { background: none; color: inherit; font-style: italic; }

.lib-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 32px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--muted); font: 500 .9rem var(--f-body); cursor: pointer; transition: all .25s var(--ease);
}
.chip-btn:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.chip-btn.active { background: var(--text); color: #111; border-color: var(--text); }
.search {
  position: relative; flex: 0 1 340px;
}
.search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: .9rem; }
.search input {
  width: 100%; height: 48px; padding: 0 18px 0 46px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: 400 .95rem var(--f-body); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: rgba(255,159,107,.5); box-shadow: 0 0 0 4px rgba(255,159,107,.1); }
.lib-count { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
@media (max-width: 700px) { .search { flex: 1 1 100%; } }

.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .lib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lib-grid { grid-template-columns: 1fr; } }

.product-card { padding: 0; }
.product-card:hover { transform: translateY(-4px); }
.pc-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.pc-cover > * { transition: transform .6s var(--ease); }
.product-card:hover .pc-cover > .gen-cover, .product-card:hover .pc-cover > img { transform: scale(1.04); }
.pc-badge {
  position: absolute; top: 18px; right: 18px; padding: 5px 11px; border-radius: 999px;
  background: var(--grad); color: #160A04; font: 600 .7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.pc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.pc-body p { font-size: .92rem; margin-bottom: 0; }
.pc-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-price b { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.03em; }
.pc-price s { margin-left: 8px; color: var(--dim); font-size: .9rem; }
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Generated cover */
.gen-cover {
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c-accent) 30%, transparent), transparent 55%),
              linear-gradient(150deg, var(--c-from), var(--c-to));
  padding: 22px 24px; display: flex; flex-direction: column;
}
.gen-lines {
  position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: repeating-linear-gradient(180deg, transparent 0 21px, rgba(255,255,255,.9) 21px 22px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.gen-top { display: flex; justify-content: space-between; align-items: center; }
.gen-kicker {
  font: 600 .65rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent);
  padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--c-accent) 45%, transparent); border-radius: 999px;
}
.gen-brand { font: 800 .8rem var(--f-display); letter-spacing: -.03em; color: rgba(255,255,255,.55); }
.gen-title {
  margin-top: auto; max-width: 78%; font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.02; color: #fff; text-wrap: balance;
}
.gen-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gen-tools span { font: 500 .66rem var(--f-mono); padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.gen-icon { position: absolute; right: -10px; bottom: -14px; font-size: 7.5rem; color: var(--c-accent); opacity: .16; z-index: -1; transform: rotate(-12deg); }
.gen-large { padding: 36px; }
.gen-large .gen-title { font-size: clamp(2rem, 4vw, 3rem); max-width: 85%; }
.gen-large .gen-kicker { font-size: .72rem; }
.gen-large .gen-brand { font-size: 1rem; }
.gen-large .gen-tools span { font-size: .76rem; padding: 5px 10px; }
.gen-large .gen-icon { font-size: 13rem; }
.gen-large .gen-lines { background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(255,255,255,.9) 31px 32px); }

.lib-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--muted); }
.lib-empty i { font-size: 2rem; color: var(--dim); margin-bottom: 16px; }
.lib-empty h3 { margin-bottom: 6px; }

/* Request strip */
.lib-request {
  margin-top: 48px; padding: 28px 32px; border-radius: var(--r-lg); border: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.lib-request h3 { margin: 0 0 4px; }
.lib-request p { margin: 0; color: var(--muted); }

/* ==========================================================
   PRODUCT PAGE
   ========================================================== */
.product-wrap { padding: 130px 0 100px; position: relative; }
.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; margin-bottom: 28px; transition: color .2s; }
.back-link:hover { color: var(--text); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pd-media { position: sticky; top: 110px; }
.pd-cover { aspect-ratio: 16 / 11; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(0,0,0,.8); }
.pd-samples { margin-top: 20px; }
.pd-sample-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pd-sample-row img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); transition: transform .3s var(--ease); }
.pd-sample-row a:hover img { transform: translateY(-3px); }

.pd-title { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.04; margin-bottom: 22px; }
.author { display: flex; align-items: center; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid var(--line-2); image-rendering: pixelated; }
.author b { display: block; font-weight: 600; }
.author span { font-size: .85rem; color: var(--dim); }

.pd-buy { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: linear-gradient(135deg, rgba(255,159,107,.08), var(--surface) 60%); }
.pd-price { font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.pd-price s { font-size: 1rem; color: var(--dim); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.pd-trust { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0 32px; font-size: .85rem; color: var(--muted); }
.pd-trust i { color: var(--peach); margin-right: 6px; }

.pd-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 36px; }
.hl { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: .92rem; }
.hl i { color: var(--peach); width: 18px; text-align: center; }
.pd-section { margin-bottom: 36px; }
.pd-section h3 { font-size: 1.25rem; margin-bottom: 14px; }
.pd-section p { color: var(--muted); font-size: 1.02rem; }
.pd-section p strong { color: var(--text); font-weight: 600; }

.buy-bar { display: none; }
@media (max-width: 960px) {
  .pd-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-media { position: static; }
  .product-wrap { padding-bottom: 120px; }
  .buy-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: rgba(16,16,21,.92); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-2);
  }
  .buy-bar b { display: block; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.1; }
  .buy-bar .btn { flex: 1; max-width: 240px; }
  body:has(.buy-bar) .wa-float { bottom: 96px; }
}
@media (max-width: 480px) {
  .pd-buy { flex-direction: column; align-items: stretch; }
  .pd-highlights { grid-template-columns: 1fr; }
  .gen-large { padding: 24px; }
}

/* ==========================================================
   CHECKOUT MODAL
   ========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px;
  background: rgba(5,5,8,.7); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 28px; padding: 32px;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.8); transform: translateY(16px) scale(.98); transition: transform .35s var(--ease);
}
.modal.open .modal-panel { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.modal-head h3 { margin: 6px 0 0; font-size: 1.35rem; }
.modal-close { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,.06); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 8px; color: var(--muted); }
.field input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: 400 1rem var(--f-body); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: rgba(255,159,107,.55); box-shadow: 0 0 0 4px rgba(255,159,107,.1); }
.field .err { display: none; font-size: .8rem; color: #FF7A7A; margin-top: 6px; }
.field.invalid input { border-color: #FF6B6B; }
.field.invalid .err { display: block; }
.phone-wrap { display: flex; }
.phone-wrap span {
  display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-2); border-right: 0;
  border-radius: 14px 0 0 14px; background: var(--surface-2); color: var(--muted); font-family: var(--f-mono); font-size: .9rem;
}
.phone-wrap input { border-radius: 0 14px 14px 0; }

.summary { margin: 22px 0; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-size: .92rem; color: var(--muted); }
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-row.total { color: var(--text); font-weight: 600; background: rgba(255,255,255,.02); }
.summary-row b { color: var(--text); font-family: var(--f-mono); font-weight: 500; }
.modal .btn-primary[type=submit] { width: 100%; height: 54px; font-size: 1rem; justify-content: space-between; padding: 0 24px; }
.modal-note { margin-top: 16px; text-align: center; font-size: .8rem; color: var(--dim); }
.modal-note i { color: #3DDC84; margin-right: 6px; }
.pay-icons { display: flex; justify-content: center; gap: 14px; margin-top: 10px; color: var(--dim); font-size: 1.3rem; }
.pc-cover:has(.pc-badge) .gen-brand { display: none; }
.pc-price .on-tm { font-family: var(--f-body); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* Checkout: error + success + disabled */
.co-error { min-height: 0; margin: 0 0 12px; color: #FF7A7A; font-size: .88rem; text-align: center; }
.co-error:empty { display: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.co-success { text-align: center; padding: 12px 4px 4px; }
.co-success h3 { font-size: 1.5rem; margin: 18px 0 10px; }
.co-success p { color: var(--muted); }
.co-success p b { color: var(--text); font-weight: 600; word-break: break-word; }
.co-success .btn-primary { width: 100%; height: 54px; margin-top: 10px; }
.co-success .btn-ghost { margin-top: 16px; }
.co-check {
  width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: rgba(61,220,132,.12); border: 1px solid rgba(61,220,132,.35); color: #3DDC84; font-size: 1.8rem;
  animation: pop .5s var(--ease);
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ==========================================================
   LEGAL / POLICY PAGES + CONTACT
   ========================================================== */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.legal-nav { position: sticky; top: 110px; display: grid; gap: 4px; }
.legal-nav a { padding: 10px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: .92rem; transition: all .2s; }
.legal-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.legal-nav a.active { color: var(--text); background: rgba(255,159,107,.1); box-shadow: inset 2px 0 0 var(--peach); }
.prose { max-width: 760px; }
.prose .updated { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 32px; }
.prose h2 { font-size: 1.45rem; letter-spacing: -.02em; margin: 44px 0 14px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--peach); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--peach); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.callout {
  padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(255,159,107,.25);
  background: rgba(255,159,107,.06); margin: 0 0 28px;
}
.callout p { margin: 0; color: var(--text); }
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 24px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .legal-nav a { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: .85rem; }
  .legal-nav a.active { box-shadow: none; border-color: rgba(255,159,107,.4); }
}

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { padding: 30px; }
.contact-card .card-ic { margin-bottom: 18px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card .val { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--text); word-break: break-word; margin-bottom: 18px; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: var(--dim); transition: color .2s; }
.foot-legal a:hover { color: var(--text); }

/* ==========================================================
   ADMIN
   ========================================================== */
body.admin { background: var(--bg); }
.admin-login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.login-card { position: relative; width: 100%; max-width: 420px; padding: 40px; }
.login-card:hover { transform: none; }

.admin-top { position: sticky; top: 0; z-index: 50; background: rgba(10,10,13,.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.admin-top-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-tabs { display: flex; gap: 8px; }
.admin-tabs .chip-btn i { margin-right: 6px; }
.admin-user { display: flex; align-items: center; gap: 14px; font-size: .8rem; color: var(--dim); }
.admin-main { padding-top: 40px; padding-bottom: 80px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 6px; }
.admin-head p { margin: 0; color: var(--muted); }
.admin-head p b { color: var(--text); }
@media (max-width: 760px) {
  .admin-top-inner { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .admin-user span { display: none; }
}

.table-card { padding: 0; overflow-x: auto; }
.table-card:hover { transform: none; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.admin-table th { text-align: left; font: 500 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 16px 20px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: rgba(255,255,255,.015); }
.admin-table td b { color: var(--text); font-weight: 600; }
.admin-table .right { text-align: right; }
.admin-table .sub { display: block; font-size: .8rem; color: var(--dim); margin-top: 3px; }
.admin-table .sub a:hover { color: var(--peach); }
.admin-table .nowrap { white-space: nowrap; }
.muted-cell { text-align: center; padding: 48px 20px !important; color: var(--dim) !important; }
.muted { color: var(--dim); }
.prod-cell { display: flex; align-items: center; gap: 14px; }
.prod-cell span { display: block; font-size: .75rem; color: var(--dim); margin-top: 2px; }
.thumb { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.thumb-gen { display: grid; place-items: center; font-size: 1rem; }
.actions { white-space: nowrap; }
.actions > * { margin-left: 6px; vertical-align: middle; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: all .2s; }
.icon-btn:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 500 .72rem var(--f-mono); letter-spacing: .04em; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-on { background: rgba(61,220,132,.12); color: #3DDC84; }
.pill-off { background: rgba(255,255,255,.06); color: var(--dim); }
.pill-warn { background: rgba(255,194,75,.12); color: #FFC24B; }
.pill-err { background: rgba(255,107,107,.12); color: #FF7A7A; }
.ok-ic { color: #3DDC84; white-space: nowrap; }
.warn-text { color: #FFC24B; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 22px; }
.stat-card:hover { transform: none; }
.stat-card .card-ic { width: 40px; height: 40px; margin-bottom: 14px; font-size: .95rem; }
.stat-val { font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; color: var(--text); margin-top: 4px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* Drawer editor */
.drawer-wrap { position: fixed; inset: 0; z-index: 120; background: rgba(5,5,8,.65); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-wrap.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(1080px, 100%); background: var(--bg-2);
  border-left: 1px solid var(--line-2); display: flex; flex-direction: column;
  transform: translateX(40px); transition: transform .35s var(--ease);
}
.drawer-wrap.open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 32px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; margin: 6px 0 0; }
#product-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ed-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 28px 32px; align-items: start; }
.ed-preview { position: sticky; top: 0; display: grid; gap: 12px; }
.ed-preview .product-card:hover { transform: none; }
.preview-note { font-size: .85rem; color: var(--muted); margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 8px; margin: 0 0 20px; }
legend { padding: 0 8px; font: 600 .78rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--peach); }
legend .hint { text-transform: none; letter-spacing: 0; }
.hint { color: var(--dim); font-weight: 400; font-size: .8rem; }
.hint a { color: var(--peach); }
.field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font: 400 .95rem/1.55 var(--f-body); outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.field textarea:focus { border-color: rgba(255,159,107,.55); box-shadow: 0 0 0 4px rgba(255,159,107,.1); }
.field input:disabled { opacity: .55; cursor: not-allowed; }
.field input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
.field code { font-family: var(--f-mono); font-size: .78rem; color: var(--peach-2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.file-drop {
  display: flex !important; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1px dashed var(--line-2); background: rgba(255,255,255,.02); color: var(--muted) !important; margin: 0 !important;
  font-size: .92rem !important; transition: all .2s;
}
.file-drop:hover { border-color: rgba(255,159,107,.5); color: var(--text) !important; }
.file-drop i { color: var(--peach); font-size: 1.2rem; }
.file-current { margin-top: 8px; font-size: .82rem; color: var(--dim); }
.file-current .mono { color: var(--muted); }
.check { display: flex !important; align-items: center; gap: 8px; margin-top: 10px !important; font-size: .85rem !important; cursor: pointer; }
.sample-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.sample { position: relative; width: 72px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.sample img { width: 100%; height: 100%; object-fit: cover; }
.sample button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: .7rem; }
.sample.removed img { opacity: .25; filter: grayscale(1); }
.sample.new span { position: absolute; bottom: 4px; left: 4px; font: 600 .6rem var(--f-mono); background: var(--peach); color: #160A04; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.switch-row { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 10px 0 18px; }
.switch-row input { display: none; }
.switch-row small { color: var(--dim); }
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--ease), background .2s; }
.switch-row input:checked + .switch { background: rgba(61,220,132,.25); border-color: rgba(61,220,132,.5); }
.switch-row input:checked + .switch::after { transform: translateX(20px); background: #3DDC84; }
.drawer-foot { display: flex; align-items: center; gap: 12px; padding: 18px 32px; border-top: 1px solid var(--line); background: var(--bg-2); }
@media (max-width: 960px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-preview { position: static; order: -1; }
  .drawer-head, .ed-grid, .drawer-foot { padding-left: 20px; padding-right: 20px; }
  .drawer-foot { flex-wrap: wrap; }
}
@media (max-width: 520px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  font-size: .9rem; box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); transition: all .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok i { color: #3DDC84; margin-right: 6px; }
.toast.err i { color: #FF7A7A; margin-right: 6px; }

/* ==========================================================
   MOBILE POLISH (phones only — desktop untouched)
   ========================================================== */
@media (max-width: 600px) {
  /* Rhythm */
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .head { margin-bottom: 32px; }
  .head p { font-size: 1rem; }
  .label { margin-bottom: 14px; }
  h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }

  /* Buttons: full width, equal */
  .hero .btn-row, .about-grid .btn-row, .cta .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn, .about-grid .btn-row .btn, .cta .btn-row .btn { width: 100%; }
  .btn { height: 50px; }

  /* Hero */
  .hero { padding: 112px 0 56px; }
  .hero-grid { gap: 44px; }
  .status-pill { font-size: .78rem; margin-bottom: 22px; }
  .hero .lead { margin: 20px 0 28px; }
  .hero-proof { justify-content: flex-start; flex-wrap: wrap; gap: 6px 12px; margin-top: 28px; font-size: .85rem; }
  .portrait { max-width: 270px; }
  .float-chip { padding: 8px 11px; }
  .float-chip .ic { width: 28px; height: 28px; }
  .float-chip b { font-size: .85rem; }

  /* Metrics */
  .metric { padding: 22px 18px; }
  .metric-num { font-size: 2rem; }

  /* Marquee */
  .marquee { padding: 20px 0; }
  .marquee-item { font-size: 1.1rem; }
  .marquee-track { gap: 32px; }
  .marquee-item::after { margin-left: 22px; }

  /* Services bento → compact 2-col grid; feature/wide tiles span both */
  .bento { grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-rows: auto; }
  .bento .b-2x2, .bento .b-2 { grid-column: 1 / -1; }
  .bento .card { padding: 22px; }
  .bento .card:not(.b-2x2):not(.b-2) { padding: 18px; border-radius: 18px; }
  .bento .card:not(.b-2x2):not(.b-2) .card-ic { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 14px; border-radius: 12px; }
  .bento .card:not(.b-2x2):not(.b-2) h3 { font-size: 1rem; margin-bottom: 6px; }
  .bento .card:not(.b-2x2):not(.b-2) p { font-size: .84rem; line-height: 1.5; margin-bottom: 0; }
  .bento .card:not(.b-2x2):not(.b-2) .card-foot { padding-top: 14px; }
  .bento .card:not(.b-2x2):not(.b-2) .card-foot .kicker,
  .bento .card:not(.b-2x2):not(.b-2) .card-foot .stars { display: none; }
  .bento .card:not(.b-2x2):not(.b-2) .card-foot { justify-content: flex-end; }
  .arrow-link i { width: 30px; height: 30px; }
  .feature h3 { font-size: 1.45rem; }
  .ats { padding: 16px; margin: 4px 0 18px; }
  .ats-score { font-size: 2.4rem; }
  .topic { padding: 12px; font-size: .86rem; }

  /* Community */
  .comm { padding: 26px; border-radius: 22px; }
  .comm .big-ic { font-size: 1.6rem; margin-bottom: 16px; }

  /* Socials → 2-col tiles */
  .socials-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .social { position: relative; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .social-ic { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 14px; }
  .social-name { font-size: .92rem; word-break: break-word; }
  .social-meta { font-size: .68rem; }
  .social .go { position: absolute; top: 18px; right: 16px; margin: 0; font-size: .8rem; }

  /* CTA band */
  .cta { padding: 52px 20px; border-radius: 26px; }
  .cta p { font-size: 1rem; margin-bottom: 28px; }

  /* Inner page heroes */
  .page-hero { padding: 120px 0 44px; }
  .page-hero p { font-size: 1.02rem; }
  .about-hero { padding: 112px 0 64px; }
  .about-grid { gap: 40px; }
  .about-grid .portrait { max-width: 260px; }
  .about-grid .lead { font-size: 1rem; }

  /* Services page rows */
  .svc { padding: 22px; gap: 16px; border-radius: 22px; }
  .svc h3 { font-size: 1.4rem; }
  .svc .checks li { font-size: .92rem; }
  .steps { gap: 12px; }
  .step { padding: 22px; }
  .step-n { font-size: 2.6rem; margin-bottom: 14px; }
  .faq summary { font-size: 1.02rem; padding: 20px 0; }
  .faq details p { padding-bottom: 20px; }

  /* About: cards + stack */
  .grid-3 { gap: 12px; }
  .grid-3 .card { padding: 22px; }
  .stack-wrap .card { padding: 22px; }
  .stack { gap: 8px; }
  .stack .pill { padding: 9px 13px; font-size: .84rem; border-radius: 12px; }
  .story-body p { font-size: 1.05rem; }

  /* Library + product */
  .lib-toolbar { margin-bottom: 20px; }
  .pc-body { padding: 20px; }
  .lib-request { padding: 22px; }
  .product-wrap { padding-top: 104px; }
  .pd-title { font-size: 1.85rem; }
  .pd-highlights { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hl { padding: 12px; font-size: .84rem; gap: 8px; }
  .pd-trust { gap: 10px 16px; font-size: .8rem; margin: 14px 0 26px; }
  .pd-buy .btn { width: 100%; }
  .pd-price { font-size: 2rem; }

  /* Contact + legal */
  .contact-card { padding: 22px; }
  .legal-wrap { gap: 20px; }
  .prose h2 { font-size: 1.25rem; margin-top: 32px; }
  .prose p, .prose li { font-size: .97rem; }

  /* Footer → 2 columns */
  .footer { padding: 64px 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer ul { gap: 10px; }
  .wordmark { margin-top: 44px; }
  .foot-bottom { flex-direction: column; gap: 10px; }

  /* Floating WhatsApp a little smaller */
  .wa-float { width: 52px; height: 52px; font-size: 1.5rem; right: 16px; bottom: 16px; }
  body:has(.buy-bar) .wa-float { bottom: 88px; }

  /* Checkout modal as a bottom sheet */
  .modal { padding: 0; align-items: end; }
  .modal-panel { max-width: none; border-radius: 26px 26px 0 0; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; }
}

/* Very small phones */
@media (max-width: 360px) {
  .bento { grid-template-columns: 1fr; }
  .socials-grid { grid-template-columns: 1fr; }
  .pd-highlights { grid-template-columns: 1fr; }
}

/* Compact inner-page hero (Services, Library) */
.page-hero.page-hero-compact { padding: 132px 0 36px; }
.page-hero-compact h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); max-width: none; margin-bottom: 14px; }
.page-hero-compact p { font-size: 1.05rem; max-width: 620px; }
.page-hero-compact .label { margin-bottom: 14px; }
@media (max-width: 600px) {
  .page-hero.page-hero-compact { padding: 108px 0 28px; }
  .page-hero-compact h1 { font-size: clamp(1.9rem, 8vw, 2.3rem); }
  .page-hero-compact p { font-size: .98rem; }
}

/* Let the hero glow fade naturally into the next section (no hard edge) */
.page-hero { overflow: visible; }
.page-hero .glow { z-index: 0; }
.page-hero + .section { position: relative; z-index: 1; }

/* ==========================================================
   COURSES
   ========================================================== */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .course-grid { grid-template-columns: 1fr; } }
.course-card { padding: 0; }
.course-card:hover { transform: translateY(-4px); }
.course-card:hover .pc-cover > * { transform: scale(1.04); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: .8rem; color: var(--dim); }
.cc-meta i { color: var(--peach); margin-right: 4px; }
.cc-price { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.pc-price s, .cd-price-row s { margin-left: 8px; color: var(--dim); font-size: .9rem; }
.off { margin-left: 8px; font: 600 .72rem var(--f-mono); color: #3DDC84; letter-spacing: .04em; }

/* Detail hero */
.cd-hero { position: relative; padding: 140px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255,255,255,.015)); }
.cd-hero .glow-peach { width: 620px; height: 620px; top: -300px; left: 10%; opacity: .35; }
.cd-hero-grid { position: relative; }
.cd-hero-main { max-width: calc(100% - 420px); }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--peach); font-weight: 500; }
.crumbs i { font-size: .6rem; color: var(--dim); }
.cd-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin-bottom: 14px; }
.cd-sub { font-size: 1.12rem; color: var(--muted); max-width: 720px; margin-bottom: 22px; }
.cd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.cd-meta i { color: var(--peach); margin-right: 6px; }
.cd-hero .author span { display: block; font-size: .78rem; color: var(--dim); }
.cd-hero .author b { font-weight: 600; }

/* Body: main + sticky card */
.cd-body { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-top: 0; padding-bottom: 110px; }
.cd-main { padding-top: 40px; min-width: 0; }
.cd-side { position: sticky; top: 100px; margin-top: -300px; z-index: 5; }
.cd-card { padding: 0; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.cd-card:hover { transform: none; }
.cd-media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.cd-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cd-media.has-video { cursor: pointer; }
.cd-media.has-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.6)); }
.cd-media .gen-large { padding: 24px; }
.cd-media .gen-large .gen-title { font-size: 1.7rem; }
.cd-media .gen-large .gen-icon { font-size: 8rem; }
.play { position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 1.3rem; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .3s var(--ease); }
.cd-media:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.play i { margin-left: 4px; }
.play-label { position: absolute; z-index: 2; bottom: 14px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: .9rem; }
.cd-card-body { padding: 24px; }
.cd-price-row { display: flex; align-items: baseline; flex-wrap: wrap; margin-bottom: 16px; }
.cd-price { font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.cd-enroll { width: 100%; }
.cd-note { margin: 10px 0 20px; text-align: center; font-size: .8rem; color: var(--dim); }
.cd-note i { color: #3DDC84; margin-right: 6px; }
.cd-card-body h4 { font-size: .95rem; margin: 0 0 12px; letter-spacing: -.01em; }
.cd-includes { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.cd-includes li { display: flex; gap: 12px; font-size: .9rem; color: var(--muted); }
.cd-includes i { width: 16px; text-align: center; color: var(--peach); margin-top: 3px; }
.cd-share { width: 100%; }

/* Main blocks */
.cd-block { margin-top: 44px; }
.cd-block h2, .cd-learn h2 { font-size: 1.55rem; letter-spacing: -.03em; margin-bottom: 16px; }
.cd-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cd-learn { padding: 30px; }
.cd-learn:hover { transform: none; }
.cd-learn-list { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.cd-learn-list li { font-size: .93rem; color: var(--muted); }
.cd-summary { color: var(--dim); font-size: .88rem; margin: -6px 0 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--peach); font: 600 .9rem var(--f-body); cursor: pointer; }
.link-btn i { font-size: .75rem; margin-left: 4px; }

.curriculum { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cur-sec + .cur-sec { border-top: 1px solid var(--line); }
.cur-sec summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: var(--surface); transition: background .2s; }
.cur-sec summary::-webkit-details-marker { display: none; }
.cur-sec summary:hover { background: var(--surface-2); }
.cur-title { font-weight: 600; display: flex; align-items: center; gap: 12px; }
.cur-title i { font-size: .75rem; color: var(--peach); transition: transform .25s var(--ease); transform: rotate(-90deg); }
.cur-sec[open] .cur-title i { transform: none; }
.cur-info { font-size: .82rem; color: var(--dim); white-space: nowrap; }
.cur-sec ul { list-style: none; margin: 0; padding: 8px 22px 14px; }
.cur-sec li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: .92rem; color: var(--muted); }
.cur-sec li > i { color: var(--dim); width: 16px; text-align: center; }
.cur-item { flex: 1; }
.cur-dur { font-family: var(--f-mono); font-size: .78rem; color: var(--dim); }

.cd-bullets { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.cd-bullets li { color: var(--muted); }
.cd-bullets li::marker { color: var(--peach); }
.cd-desc-body p { color: var(--muted); line-height: 1.75; }
.cd-desc-body strong { color: var(--text); font-weight: 600; }
.cd-desc-body.clamped { max-height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }

.instructor { flex-direction: row; gap: 22px; padding: 26px; align-items: flex-start; }
.instructor:hover { transform: none; }
.instructor img { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; object-position: top; image-rendering: pixelated; flex-shrink: 0; border: 1px solid var(--line-2); }
.instructor h3 { margin: 0 0 4px; }
.inst-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; font-size: .84rem; color: var(--muted); }
.inst-stats i { color: var(--peach); margin-right: 5px; }

@media (max-width: 1000px) {
  .cd-hero-main { max-width: none; }
  .cd-body { grid-template-columns: 1fr; gap: 0; }
  .cd-side { position: static; margin-top: 28px; order: -1; }
  .cd-main { padding-top: 8px; }
}
@media (max-width: 600px) {
  .cd-hero { padding: 108px 0 36px; }
  .cd-sub { font-size: 1rem; }
  .cd-learn { padding: 22px; }
  .cd-learn-list { grid-template-columns: 1fr; }
  .cd-block { margin-top: 36px; }
  .cd-block h2, .cd-learn h2 { font-size: 1.35rem; }
  .cur-sec summary { padding: 16px; }
  .cur-sec ul { padding: 6px 16px 12px; }
  .cur-info { display: none; }
  .instructor { flex-direction: column; padding: 22px; }
  .instructor img { width: 72px; height: 72px; }
}

/* Admin: course editor */
.ce-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 32px; border-bottom: 1px solid var(--line); }
.ce-help { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.ce-help code { font-family: var(--f-mono); color: var(--peach-2); }
.select { width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 400 .95rem var(--f-body); outline: none; }
.select.sm { height: 40px; border-radius: 10px; font-size: .85rem; padding: 0 10px; width: auto; }
.thumb-course { display: block; width: 64px; height: 40px; overflow: hidden; border-radius: 8px; }
.thumb-course .gen-cover { padding: 4px 6px; }
.thumb-course .gen-top, .thumb-course .gen-tools, .thumb-course .gen-lines { display: none; }
.thumb-course .gen-title { font-size: .42rem; margin: 0; max-width: 100%; }
.thumb-course .gen-icon { font-size: 1.6rem; right: -2px; bottom: -4px; }
.cb-sec { border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.cb-sec-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--line); }
.cb-label { font: 600 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--peach); white-space: nowrap; }
.cb-sec input, .cb-item input:not([type=checkbox]) { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 .9rem var(--f-body); outline: none; min-width: 0; }
.cb-sec input:focus { border-color: rgba(255,159,107,.55); }
.cb-sec-title { flex: 1; font-weight: 600 !important; }
.cb-items { padding: 12px 16px 16px; display: grid; gap: 8px; }
.cb-item { display: grid; grid-template-columns: 112px 1fr 120px 72px auto auto; gap: 8px; align-items: center; }
.cb-num { font-size: .75rem; color: var(--dim); white-space: nowrap; }
.cb-num i { color: var(--peach); margin-right: 4px; }
.cb-dur { text-align: center; font-family: var(--f-mono) !important; font-size: .82rem !important; }
.cb-prev { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); white-space: nowrap; cursor: pointer; }
.cb-tools { display: flex; gap: 4px; }
.icon-btn.sm { width: 32px; height: 32px; font-size: .72rem; }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.icon-btn.danger:hover { color: #FF7A7A; border-color: rgba(255,122,122,.4); }
.cb-add { justify-self: start; margin-top: 4px; }
@media (max-width: 760px) {
  .ce-tabs { padding: 12px 20px; }
  .cb-item { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
  .cb-item input[data-f=title] { grid-column: 1 / -1; }
  .cb-num { grid-column: 1 / -1; }
}
.cd-media.has-video .gen-title, .cd-media.has-video .gen-tools { display: none; }
.tm-box { border-color: rgba(255,159,107,.35); background: rgba(255,159,107,.04); }
.tm-box legend i { margin-right: 6px; }
.tm-row { display: flex; gap: 10px; }
.tm-row input { flex: 1; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 400 1rem var(--f-body); outline: none; min-width: 0; }
.tm-row input:focus { border-color: rgba(255,159,107,.55); box-shadow: 0 0 0 4px rgba(255,159,107,.1); }
.tm-row .btn { height: 50px; flex-shrink: 0; }
.tm-row + .file-current { margin: 10px 0 14px; }
.tm-info { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(95,203,242,.06); border: 1px solid rgba(95,203,242,.25); color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.tm-info i { color: #5FCBF2; margin-top: 3px; }
.tm-info b { color: var(--text); }
.tm-info code { font-family: var(--f-mono); color: var(--peach-2); }
@media (max-width: 520px) { .tm-row { flex-direction: column; } }
/* Outline rows: full-width title, controls below */
.cb-item {
  grid-template-columns: auto 1fr auto auto auto;
  grid-template-areas: "num title title title title" ". type dur prev tools";
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015);
}
.cb-item .cb-num { grid-area: num; padding-right: 4px; }
.cb-item input[data-f=title] { grid-area: title; }
.cb-item select { grid-area: type; justify-self: start; }
.cb-item .cb-dur { grid-area: dur; width: 76px; }
.cb-item .cb-prev { grid-area: prev; }
.cb-item .cb-tools { grid-area: tools; }
@media (max-width: 760px) {
  .cb-item { grid-template-columns: 1fr auto; grid-template-areas: "num num" "title title" "type dur" "prev tools"; }
}
/* Course editor: same scrolling layout as the product editor, Save bar always visible */
#course-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer .ed-grid { padding-bottom: 72px; overscroll-behavior: contain; }
.drawer-foot { flex-shrink: 0; }
/* Checkboxes inside forms: normal size, and respect [hidden] */
.check[hidden], .file-drop[hidden] { display: none !important; }
.field input[type=checkbox], .check input[type=checkbox], .cb-prev input[type=checkbox] {
  width: 18px; height: 18px; padding: 0; margin: 0; flex-shrink: 0; accent-color: var(--peach); box-shadow: none; border-radius: 4px; cursor: pointer;
}

/* ==========================================================
   JOBS
   ========================================================== */
.nav-inner { max-width: 1080px; }
.job-filters { display: flex; gap: 12px; margin-bottom: 14px; }
.job-filters .search { flex: 1; }
.job-batch { width: 190px; height: 48px; border-radius: 999px; padding: 0 18px; flex-shrink: 0; }
.job-cats { margin-bottom: 22px; }
.job-cats .chip-btn { height: 34px; font-size: .82rem; padding: 0 14px; }
.job-list { display: grid; gap: 12px; }
.job-card { flex-direction: row; align-items: center; gap: 20px; padding: 20px 22px; }
.job-card:hover { transform: none; border-color: rgba(255,159,107,.3); }
.job-main { flex: 1; display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.job-info { min-width: 0; flex: 1; }
.job-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.job-top h3 { margin: 0; font-size: 1.12rem; }
.job-card:hover .job-top h3 { color: var(--peach-2); }
.job-co { margin: 4px 0 0; color: var(--muted); font-size: .92rem; font-weight: 500; }
.job-co span { color: var(--dim); font-weight: 400; }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: .84rem; color: var(--muted); }
.job-meta i { color: var(--peach); margin-right: 5px; font-size: .78rem; }
.job-meta .tag { padding: 3px 10px; font-size: .74rem; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.job-time { font-size: .78rem; color: var(--dim); font-family: var(--f-mono); }
.co-logo { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  font: 800 1rem var(--f-display); letter-spacing: -.02em; color: var(--lc);
  background: color-mix(in srgb, var(--lc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--lc) 30%, transparent); }
.co-logo.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; }
.co-logo.sm { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }
.jobs-wa { margin-top: 36px; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; }
.jobs-wa h3 { margin: 0 0 4px; }
.jobs-wa p { margin: 0; }
.jobs-wa .btn { margin: 0; align-self: center; }

/* Job detail */
.jd-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.jd-head { padding: 30px; }
.jd-head:hover { transform: none; }
.jd-title-row { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.jd-title-row h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 4px; line-height: 1.1; }
.jd-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.fact i { color: var(--peach); margin-top: 3px; width: 16px; text-align: center; }
.fact span { display: block; font: 500 .68rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.fact b { font-size: .92rem; font-weight: 600; word-break: break-word; }
.jd-block { margin-top: 32px; }
.jd-block h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 14px; }
.jd-block p { color: var(--muted); }
.jd-block .checks li { color: var(--muted); }
.jd-apply-box { margin-top: 36px; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; background: linear-gradient(135deg, rgba(255,159,107,.1), var(--surface) 60%); }
.jd-apply-box:hover { transform: none; }
.jd-apply-box h3 { margin: 0 0 4px; }
.jd-apply-box p { margin: 0; }
.jd-disclaimer { margin-top: 18px; font-size: .82rem; color: var(--dim); }
.jd-disclaimer i { color: #3DDC84; margin-right: 6px; }
.jd-side { position: sticky; top: 100px; display: grid; gap: 14px; }
.jd-wa { min-height: 0; padding: 26px; }
.jd-wa .btn { margin-top: 6px; }
.jd-prep, .jd-similar { padding: 22px; }
.jd-prep:hover, .jd-similar:hover { transform: none; }
.jd-prep h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.jd-prep p { margin-bottom: 14px; font-size: .88rem; }
.sim { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.sim:first-of-type { margin-top: 10px; }
.sim b { display: block; font-size: .9rem; font-weight: 600; }
.sim span { font-size: .78rem; color: var(--dim); }
.sim:hover b { color: var(--peach-2); }
@media (max-width: 960px) {
  .jd-grid { grid-template-columns: 1fr; }
  .jd-side { position: static; }
  .jd-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .job-filters { flex-direction: column; }
  .job-batch { width: 100%; }
  .job-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .job-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .co-logo { width: 42px; height: 42px; font-size: .9rem; }
  .jobs-wa { flex-direction: column; align-items: flex-start; padding: 24px; }
  .jd-head { padding: 22px; }
  .jd-title-row { align-items: flex-start; }
  .jd-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fact { padding: 12px; }
  .jd-actions .btn { flex: 1; }
  .jd-apply-box { flex-direction: column; align-items: stretch; }
}
/* Admin: jobs editor */
.drawer-narrow { width: min(860px, 100%); }
.ed-grid.ed-single { grid-template-columns: 1fr; }
#job-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.batch-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.batch-picks label { display: inline-flex !important; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: .88rem !important; color: var(--muted) !important; margin: 0 !important; transition: all .2s; }
.batch-picks label:has(input:checked) { background: rgba(255,159,107,.12); border-color: rgba(255,159,107,.5); color: var(--text) !important; }
.batch-picks input { width: 16px !important; height: 16px !important; }
.autofill-status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: .86rem; }
.autofill-status.ok { background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.3); color: #8FF0B8; }
.autofill-status.warn { background: rgba(255,194,75,.08); border: 1px solid rgba(255,194,75,.3); color: #FFD98A; }
.autofill-status.err { background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.3); color: #FF9C9C; }
.field.filled input, .field.filled textarea, .field.filled select { border-color: rgba(61,220,132,.45); }

/* ==========================================================
   ACCOUNTS (navbar, sign in, my account)
   ========================================================== */
.nav-inner { max-width: 1180px; }
.nav-links a.nav-signin { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.nav-links a.nav-signin i { color: var(--peach); }
.nav-avatar { display: inline-flex !important; align-items: center; gap: 8px; padding: 4px 12px 4px 4px !important; border-radius: 999px !important; border: 1px solid var(--line-2); color: var(--text) !important; }
.nav-avatar:hover { border-color: rgba(255,159,107,.4); }
.nav-avatar img, .nav-avatar span { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--grad); color: #160A04; font: 800 .8rem var(--f-display); }
.nav-avatar b { font-weight: 600; font-size: .88rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 821px) { .nav-links a:not(.btn) { padding: 8px 11px; } }
@media (max-width: 820px) { .nav-avatar { margin: 4px 0; } }

.auth-wrap { position: relative; min-height: 100vh; padding: 130px 0 80px; overflow: visible; }
.auth-wrap .glow-peach { width: 600px; height: 600px; top: -260px; left: 30%; opacity: .35; }
.auth-grid { position: relative; display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center; }
.auth-pitch h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 26px; }
.auth-pitch .checks { gap: 14px; }
.auth-pitch .checks li { color: var(--muted); font-size: 1.02rem; }
.auth-card { padding: 32px; }
.auth-card:hover { transform: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.auth-tabs button { height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 .92rem var(--f-body); cursor: pointer; transition: all .2s; }
.auth-tabs button.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.google-btn { width: 100%; height: 50px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.google-btn:hover { background: #f5f5f5; transform: translateY(-1px); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--dim); font-size: .8rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.auth-card .field label { display: flex; justify-content: space-between; align-items: center; }
.auth-link { color: var(--peach); font-weight: 500; font-size: .82rem; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 46px; }
.peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--dim); cursor: pointer; border-radius: 10px; }
.peek:hover { color: var(--text); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-msg { margin: 0 0 12px; font-size: .86rem; }
.auth-msg:empty { display: none; }
.auth-msg.err { color: #FF8A8A; }
.auth-msg.info { color: #8FD8F8; }
.auth-msg.ok { color: #7EE2A8; }
.auth-switch, .auth-fine { text-align: center; margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
.auth-switch a, .auth-fine a { color: var(--peach); font-weight: 500; }
.auth-fine { font-size: .78rem; color: var(--dim); }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; color: var(--peach); background: rgba(255,159,107,.1); border: 1px solid rgba(255,159,107,.25); margin-bottom: 18px; }
[data-view] h2 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 20px; }
.auth-sub b { color: var(--text); word-break: break-all; }
.otp-input { text-align: center; font: 600 1.6rem var(--f-mono) !important; letter-spacing: .5em; height: 60px !important; }
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; gap: 32px; }
  .auth-pitch { order: 2; }
  .auth-wrap { padding-top: 110px; }
}
@media (max-width: 600px) { .auth-card { padding: 22px; } .auth-card .row-2 { grid-template-columns: 1fr; } }

/* My account */
.acc-head { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.acc-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 6px; }
.acc-head p { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-avatar { width: 76px; height: 76px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: var(--grad); color: #160A04; font: 800 1.8rem var(--f-display); flex-shrink: 0; }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-out { margin-left: auto; }
.acc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.acc-side { display: grid; gap: 20px; }
.acc-card { padding: 26px; }
.acc-card:hover { transform: none; }
.acc-card h2 { font-size: 1.2rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.acc-card h2 i { color: var(--peach); font-size: 1rem; }
.acc-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.acc-empty { text-align: center; padding: 28px 10px; }
.acc-empty > i { font-size: 1.8rem; color: var(--dim); margin-bottom: 10px; }
.acc-empty p { margin: 0 0 8px; }
.acc-empty .btn { margin-top: 10px; }
.buy-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.buy-row:first-child { border-top: 0; padding-top: 0; }
.buy-thumb { width: 64px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.buy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy-info { flex: 1; min-width: 0; }
.buy-info b { display: block; font-weight: 600; }
.buy-info span { font-size: .82rem; color: var(--dim); }
@media (max-width: 900px) { .acc-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .acc-out { margin-left: 0; } .buy-row { flex-wrap: wrap; } .buy-row .btn { width: 100%; } }

/* ---- Polish: section labels without the dash ---- */
.label::before, .head.center .label::after { content: none; display: none; }
.label { gap: 0; }

/* ---- Polish: custom dropdowns (consistent arrow + padding) ---- */
select.select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 44px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23FF9F6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px;
}
select.select.sm { padding-right: 32px !important; background-position: right 12px center; }
select.select:focus { border-color: rgba(255,159,107,.55); box-shadow: 0 0 0 4px rgba(255,159,107,.1); }
select.select option { background: var(--surface); color: var(--text); }
.job-batch { height: 48px; padding-left: 20px; font: 500 .95rem var(--f-body); }

/* ---- Polish: avatar-only account button ---- */
.nav-avatar { padding: 3px !important; border-radius: 50% !important; }
.nav-avatar img, .nav-avatar span { width: 36px; height: 36px; font-size: .9rem; }
.nav-avatar b { display: none; }

/* ---- Polish: account page columns line up (no empty gap) ---- */
.acc-grid { align-items: stretch; }
.acc-purchases { display: flex; flex-direction: column; }
.acc-purchases #purchases { flex: 1; display: flex; flex-direction: column; }
.acc-purchases .acc-empty { margin: auto 0; }
.acc-side { grid-template-rows: auto 1fr; }
.acc-side .acc-card:last-child { display: flex; flex-direction: column; }
.acc-head { padding-top: 8px; }
.label { display: inline-block; }

/* ==========================================================
   HERO: frameless blended illustration
   ========================================================== */
.portrait-blend { max-width: none; width: calc(100% + 80px); margin: -40px -40px -40px auto; aspect-ratio: 1 / 1; isolation: isolate; }
.blend-img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  /* soft edges on all sides so it melts into the page */
  -webkit-mask-image: radial-gradient(ellipse 66% 64% at 52% 48%, #000 50%, rgba(0,0,0,.55) 72%, transparent 92%);
          mask-image: radial-gradient(ellipse 66% 64% at 52% 48%, #000 50%, rgba(0,0,0,.55) 72%, transparent 92%);
  filter: saturate(1.05) contrast(1.03);
}
.blend-glow {
  position: absolute; z-index: 0; inset: 12% 8% 14% 14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 60% 55%, rgba(255,138,76,.30), rgba(91,75,255,.14) 45%, transparent 70%);
  filter: blur(40px);
}
.portrait-blend .float-chip { z-index: 2; }
.portrait-blend .chip-a { top: 14%; left: 2%; }
.portrait-blend .chip-b { bottom: 16%; right: 4%; }
@media (max-width: 960px) {
  .portrait-blend { width: 100%; max-width: 460px; margin: -20px auto -30px; }
  .portrait-blend .chip-a { left: 0; top: 12%; }
  .portrait-blend .chip-b { right: 0; bottom: 14%; }
}
@media (max-width: 480px) {
  .portrait-blend { max-width: 360px; }
  .portrait-blend .float-chip { transform: scale(.88); }
}
/* stronger edge fade: fade each side, intersected */
.blend-img {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 76%, transparent 100%);
          mask-composite: intersect;
}
.portrait-blend .chip-a { top: 4%; left: -2%; }
.portrait-blend .chip-b { bottom: 12%; right: 0; }
@media (max-width: 960px) {
  .portrait-blend .chip-a { top: 2%; left: 0; }
  .portrait-blend .chip-b { bottom: 10%; right: 0; }
}
.portrait-blend .chip-b { bottom: 3%; right: 2%; }
@media (max-width: 960px) { .portrait-blend .chip-b { bottom: 2%; } }

/* ==========================================================
   HERO VISUAL v3: cut-out portrait + native UI cards
   ========================================================== */
.hero-visual { position: relative; width: 100%; max-width: 470px; margin-left: auto; aspect-ratio: 793 / 1000; }
.hv-person { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%); width: 92%; height: auto; display: block;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
.hv-glow { position: absolute; z-index: 0; left: 8%; right: 0; top: 10%; bottom: 8%; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(circle at 55% 45%, rgba(255,138,76,.38), rgba(255,138,76,.10) 45%, rgba(91,75,255,.14) 62%, transparent 72%); }
.hv-ring { position: absolute; z-index: 1; left: 14%; right: 6%; aspect-ratio: 1; top: 6%; border-radius: 50%;
  border: 1px solid rgba(255,159,107,.18); box-shadow: inset 0 0 80px rgba(255,159,107,.06); }
.hv-ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.07); }

.hv-card { position: absolute; z-index: 3; padding: 12px 14px; border-radius: 16px; background: rgba(20,20,26,.78);
  border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.65); animation: float 7s ease-in-out infinite; }
.hv-card .kicker { font-size: .62rem; }

.hv-pipe { top: 6%; right: -6%; animation-delay: -2s; }
.pipe-row { display: flex; align-items: center; margin-top: 8px; }
.pipe-node { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .78rem;
  color: #7DD3FC; background: rgba(95,203,242,.1); border: 1px solid rgba(95,203,242,.25); }
.pipe-node.hot { color: var(--peach); background: rgba(255,159,107,.12); border-color: rgba(255,159,107,.35); }
.pipe-line { width: 16px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 3px, transparent 3px 6px); }

.hv-dash { width: 186px; right: -10%; top: 44%; animation-delay: -4.5s; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-up { font: 600 .7rem var(--f-mono); color: #3DDC84; white-space: nowrap; }
.dash-bars { display: flex; align-items: flex-end; gap: 5px; height: 52px; margin-top: 10px; }
.dash-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #FFC4A0, #FF6A3D); opacity: .9; }
.dash-bars i:nth-child(-n+4) { background: linear-gradient(180deg, #7DD3FC, #1D4ED8); opacity: .75; }

.hero-visual .float-chip { z-index: 4; }
.hero-visual .chip-a { top: 26%; left: -8%; }
.hero-visual .chip-b { bottom: 12%; left: -4%; right: auto; animation-delay: -3s; }

@media (max-width: 960px) {
  .hero-visual { margin: 0 auto; max-width: 400px; }
  .hv-pipe { right: -2%; } .hv-dash { right: -2%; }
  .hero-visual .chip-a { left: -2%; } .hero-visual .chip-b { left: 0; }
}
@media (max-width: 480px) {
  .hero-visual { max-width: 330px; }
  .hv-card, .hero-visual .float-chip { transform-origin: center; scale: .86; }
  .hv-dash { width: 160px; top: 48%; right: -4%; }
  .hv-pipe { top: 2%; right: -4%; }
  .hero-visual .chip-a { top: 22%; left: -6%; }
  .hero-visual .chip-b { bottom: 8%; left: -6%; }
}
.hv-person { left: 44%; }
.hv-pipe { top: 2%; right: -18%; }
.hv-dash { top: 46%; right: -14%; }
@media (max-width: 960px) { .hv-pipe { top: 0; right: -6%; } .hv-dash { right: -6%; } }
@media (max-width: 480px) {
  .hv-person { left: 40%; width: 88%; }
  .hv-pipe { top: -3%; right: -9%; scale: .78; }
  .hv-dash { right: -9%; top: 52%; scale: .8; }
}
@media (max-width: 480px) {
  .hero-visual { margin-top: 40px; }
  .hv-person { left: 46%; width: 84%; }
  .hv-pipe { top: -9%; right: -10%; }
  .hero-visual .chip-a { top: 34%; left: -9%; scale: .8; }
  .hero-visual .chip-b { bottom: 6%; left: -9%; scale: .8; }
  .hv-dash { right: -11%; top: 54%; scale: .76; }
}
/* v4: person + faded chair & desk corner */
.hero-visual { max-width: 600px; aspect-ratio: 1254 / 1193; margin-right: -40px; }
.hv-person { left: 50%; width: 100%; }
.hv-glow { left: 4%; right: 12%; top: 4%; bottom: 14%; }
.hv-ring { left: 6%; right: 24%; top: 0; }
.hv-pipe { top: 4%; right: 2%; }
.hv-dash { top: 34%; right: 0; }
.hero-visual .chip-a { top: 30%; left: -6%; }
.hero-visual .chip-b { bottom: 6%; right: 0; left: auto; }
@media (max-width: 960px) {
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .hv-pipe { right: 0; } .hv-dash { right: 0; }
}
@media (max-width: 480px) {
  .hero-visual { max-width: 380px; margin-top: 20px; }
  .hv-person { left: 50%; width: 100%; }
  .hv-pipe { top: -2%; right: -4%; scale: .74; }
  .hv-dash { top: 30%; right: -6%; scale: .72; }
  .hero-visual .chip-a { top: 28%; left: -8%; scale: .78; }
  .hero-visual .chip-b { bottom: 2%; right: -4%; left: auto; scale: .78; }
}
/* v4 layout tune */
@media (min-width: 961px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 24px; }
  .hero-visual { width: calc(100% + 110px); max-width: 700px; margin-right: -90px; }
}
.hv-pipe { top: 6%; right: -2%; }
.hv-dash { top: 38%; right: -4%; }
.hero-visual .chip-a { top: 5%; left: 2%; }
.hero-visual .chip-b { bottom: 13%; left: -2%; right: auto; }
@media (max-width: 480px) {
  .hv-pipe { top: -4%; right: -4%; }
  .hv-dash { top: 36%; right: -6%; }
  .hero-visual .chip-a { top: 2%; left: -6%; }
  .hero-visual .chip-b { bottom: 10%; left: -6%; right: auto; }
}
@media (min-width: 961px) {
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 64px; }
  .hero-visual { width: calc(100% + 190px); max-width: 680px; margin-left: -130px; margin-right: -60px; }
  .hv-pipe { right: 4%; } .hv-dash { right: 2%; }
}

/* ==========================================================
   MOBILE v2 (phones only, ≤600px). Desktop is untouched.
   ========================================================== */
@media (max-width: 600px) {
  /* ---- Swipe rows: cards side-by-side, snap, peek of next card ---- */
  .metrics, .community, .grid-3, .steps, .svc-list, .contact-grid, .stack-wrap {
    display: flex !important; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: 20px;
    gap: 12px; margin-left: -20px; margin-right: -20px; padding: 2px 20px 14px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .metrics::-webkit-scrollbar, .community::-webkit-scrollbar, .grid-3::-webkit-scrollbar, .steps::-webkit-scrollbar,
  .svc-list::-webkit-scrollbar, .contact-grid::-webkit-scrollbar, .stack-wrap::-webkit-scrollbar { display: none; }
  .community > *, .grid-3 > *, .steps > *, .svc-list > *, .contact-grid > *, .stack-wrap > * {
    flex: 0 0 84%; scroll-snap-align: start; min-width: 0;
  }
  .svc-list > * { flex-basis: 88%; }
  .steps > * { flex-basis: 72%; }
  /* swipe hint under rows */
  .community::after, .grid-3::after, .steps::after, .svc-list::after, .stack-wrap::after { content: ""; flex: 0 0 4px; }

  /* Metrics strip */
  .metrics { border: 0; background: none; border-radius: 0; }
  .metrics .metric { flex: 0 0 40%; scroll-snap-align: start; border: 1px solid var(--line) !important; border-radius: 18px; background: var(--bg-2); padding: 18px 16px; }
  .metrics .metric:last-child { grid-column: auto; }

  /* ---- Home hero visual: bigger person, fewer cards ---- */
  .hero-visual { max-width: 100%; margin: 8px -10px 0; }
  .hv-pipe { display: none; }
  .hv-dash { top: 30%; right: -6%; scale: .7; }
  .hero-visual .chip-a { top: 4%; left: -4%; scale: .78; }
  .hero-visual .chip-b { bottom: 12%; left: -4%; scale: .78; }

  /* ---- Library: compact list cards (cover left, text right) ---- */
  .lib-grid { gap: 12px; }
  .lib-grid .product-card { flex-direction: row; align-items: stretch; min-height: 0; }
  .lib-grid .pc-cover { width: 112px; flex-shrink: 0; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .lib-grid .pc-cover .gen-cover { padding: 12px; }
  .lib-grid .pc-cover .gen-top, .lib-grid .pc-cover .gen-tools, .lib-grid .pc-cover .gen-lines { display: none; }
  .lib-grid .pc-cover .gen-title { font-size: .9rem; max-width: 100%; margin-top: auto; }
  .lib-grid .pc-cover .gen-icon { font-size: 4.2rem; right: -8px; bottom: -8px; }
  .lib-grid .pc-badge { top: 8px; left: 8px; right: auto; font-size: .55rem; padding: 3px 7px; }
  .lib-grid .pc-body { padding: 14px 14px 12px; }
  .lib-grid .pc-body .kicker { display: none; }
  .lib-grid .pc-body h3 { margin: 0 0 4px; font-size: 1rem; }
  .lib-grid .pc-body p { font-size: .8rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lib-grid .pc-foot { padding-top: 10px; }
  .lib-grid .pc-price b { font-size: 1.15rem; }
  .lib-grid .pc-foot .btn { height: 34px; padding: 0 12px; font-size: .78rem; }

  /* ---- Services rows inside swipe ---- */
  .svc { padding: 22px; height: 100%; }
  .svc-cta { margin-top: auto; }

  /* ---- Course detail: lighter top card on phones ---- */
  .cd-side .cd-media { display: none; }
  .cd-side .cd-includes li:nth-child(n+5) { display: none; }

  /* ---- Footer: compact ---- */
  .footer { padding: 48px 0 24px; }
  .wordmark { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .footer-grid > div:nth-child(3) { display: none; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer ul { gap: 8px; font-size: .9rem; }
  .footer p { font-size: .9rem; }
  .foot-bottom { margin-top: 28px; }

  /* ---- Section rhythm ---- */
  .section { padding: 56px 0; }
  .head { margin-bottom: 24px; }
}
@media (max-width: 600px) {
  .container.svc-list { margin-left: 0; margin-right: 0; padding-left: 20px; padding-right: 20px; }
  .lib-grid .pc-price .on-tm { font-size: .74rem; white-space: nowrap; }
  .lib-grid .pc-price .on-tm i { margin-right: 4px; }
}

/* ==========================================================
   MOBILE v3: app-style bottom tab bar + thumb-zone layout
   ========================================================== */
.tabbar { display: none; }
@media (max-width: 820px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 95; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); height: 62px; padding: 0 4px; border-radius: 22px;
    background: rgba(16,16,21,.86); border: 1px solid var(--line-2);
    backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 16px 40px -12px rgba(0,0,0,.75);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--dim); font-size: .66rem; font-weight: 500; letter-spacing: .01em; border-radius: 16px; transition: color .2s; }
  .tab i { font-size: 1.05rem; }
  .tab img, .tab .tab-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
    background: var(--grad); color: #160A04; font: 800 .66rem var(--f-display); }
  .tab.active { color: var(--text); }
  .tab.active i { color: var(--peach); }
  .tab.active::before { content: ""; position: absolute; width: 22px; height: 3px; margin-top: -48px; border-radius: 3px; background: var(--peach); }
  body.has-tabbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-tabbar .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); width: 50px; height: 50px; font-size: 1.45rem; }
  /* Pages with their own sticky buy/apply bar: hide the tab bar there */
  body:has(.buy-bar) .tabbar { display: none; }
  body.has-tabbar:has(.buy-bar) { padding-bottom: 0; }
  body:has(.buy-bar) .wa-float { bottom: calc(92px + env(safe-area-inset-bottom)); }
  /* Account & Sign-in are in the tab bar → slimmer top bar */
  .nav-links .nav-auth { display: none; }
  .navbar { top: 10px; }
}

@media (max-width: 600px) {
  /* Filter chips: one swipeable row instead of wrapping */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip-btn { flex-shrink: 0; height: 40px; }
  .lib-toolbar { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .lib-toolbar .search { flex: none; }

  /* Comfortable tap targets */
  .btn-sm { height: 44px; }
  .footer ul a, .foot-legal a { display: inline-block; padding: 4px 0; }

  /* Hero: tighter, CTA visible on first screen */
  .hero { padding-top: 96px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 2.8rem); }
  .hero .lead { font-size: 1rem; margin: 16px 0 22px; }
  .status-pill { margin-bottom: 16px; }
}
@media (max-width: 820px) {
  .tab { position: relative; }
  .tab.active::before { top: 4px; left: 50%; transform: translateX(-50%); margin-top: 0; }
}

/* ==========================================================
   MOBILE v4: polish (phones only)
   ========================================================== */
.swipe-dots { display: none; }
@media (max-width: 600px) {
  /* Swipe dots */
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
  .swipe-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.18); transition: width .3s var(--ease), background .3s; cursor: pointer; }
  .swipe-dots button.on { width: 20px; background: var(--peach); }
  .metrics + .swipe-dots { margin-top: 2px; }

  /* WhatsApp hides while reading */
  .wa-float { transition: transform .35s var(--ease), opacity .3s; }
  body.scroll-down .wa-float { transform: translateY(24px) scale(.85); opacity: 0; pointer-events: none; }

  /* No duplicate buy buttons (sticky bar handles it) */
  .cd-side .cd-enroll, .cd-side .cd-note { display: none; }
  .pd-buy .btn { display: none; }
  .pd-buy { padding: 18px 20px; }

  /* Home hero visual: centered person, tidy cards */
  .hero-visual { margin: 18px -20px 0; max-width: none; width: calc(100% + 40px); }
  .hv-person { left: 56%; width: 108%; }
  .hv-glow { left: 10%; right: 0; }
  .hv-ring { left: 14%; right: 10%; }
  .hero-visual .chip-a { top: 6%; left: auto; right: 4%; scale: .78; }
  .hero-visual .chip-b { bottom: 18%; left: 2%; right: auto; scale: .78; }
  .hv-dash { top: 46%; right: 2%; scale: .66; transform-origin: right center; }

  /* Hero proof line: one tidy row */
  .hero-proof { flex-wrap: nowrap; gap: 10px; font-size: .8rem; white-space: nowrap; }
  .hero-proof .proof-divider { display: block; height: 18px; }

  /* Section titles: a touch tighter, better rhythm */
  h2 { letter-spacing: -.03em; }
  .head p { font-size: .95rem; line-height: 1.6; }

  /* Cards: consistent radius + softer borders on small screens */
  .card { border-radius: 20px; }
}
/* Touch feedback (phones/tablets) */
@media (hover: none) {
  .btn:active, .chip-btn:active, .tab:active { transform: scale(.96); }
  .card:active, .social:active, .job-card:active { transform: scale(.985); }
  .card:hover { transform: none; }
}
@media (max-width: 600px) { .hv-dash { right: 6%; top: 44%; } }
@media (max-width: 600px) {
  /* Job facts → clean key/value list */
  .jd-facts { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
  .jd-facts .fact { border: 0; border-radius: 0; background: transparent; padding: 13px 14px; align-items: center; }
  .jd-facts .fact + .fact { border-top: 1px solid var(--line); }
  .jd-facts .fact > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%; }
  .jd-facts .fact span { margin: 0; white-space: nowrap; }
  .jd-facts .fact b { text-align: right; font-size: .88rem; }
  .jd-facts .fact i { margin-top: 0; }
  /* sticky Apply bar handles applying → keep Share + Copy here */
  .jd-actions .btn-primary { display: none; }
  .jd-actions { flex-wrap: nowrap; }
  .jd-actions .btn { flex: 1; }
  .jd-title-row { gap: 14px; margin-bottom: 18px; }
  .jd-title-row h1 { font-size: 1.55rem; }
  .co-logo.lg { width: 52px; height: 52px; font-size: 1.05rem; }
}
/* Mobile: let hero glows fade past the section edge (no hard line) */
@media (max-width: 600px) {
  .hero { overflow: visible; overflow-x: clip; }
  .hero .glow-violet { bottom: auto; top: 55%; opacity: .18; }
  .hero + .section-tight, .hero + section { position: relative; z-index: 1; }
}

/* ==========================================================
   PERFORMANCE: inline SVG icons + instant hero
   ========================================================== */
i.fa-svg::before { content: none !important; }
.fa-spin, i.fa-spin svg { animation: fa-spin 1s linear infinite; }
@keyframes fa-spin { to { transform: rotate(360deg); } }
/* Above-the-fold content appears immediately (no fade-in delay) */
.hero .reveal, .page-hero .reveal, .about-hero .reveal, .auth-wrap .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal { transition-duration: .5s; }
/* Match the Font Awesome icon-font box exactly: 1em tall, glyph baseline 0.125em above the bottom.
   :where() = zero specificity, so every existing icon style (circles, sizes, grids) still wins. */
:where(i.fa-svg) { display: inline-block; height: 1em; line-height: 1; }
:where(i.fa-svg) svg { display: inline-block; height: 1em; width: auto; vertical-align: -0.125em; overflow: visible; }

/* ==========================================================
   ADMIN DASHBOARD
   ========================================================== */
.db-actions { display: flex; gap: 8px; }
.db-filters { padding: 14px 16px; margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.db-filters:hover { transform: none; }
.db-filters .chip-btn { height: 36px; font-size: .84rem; padding: 0 14px; }
.db-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.db-filter-row .select.sm { min-width: 180px; }
.db-custom { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: .85rem; }
.db-custom input { height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 400 .85rem var(--f-body); color-scheme: dark; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 18px 18px 16px; }
.kpi:hover { transform: none; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; }
.kpi-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--peach); background: rgba(255,159,107,.1); font-size: .8rem; }
.kpi-val { font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin: 10px 0 8px; color: var(--text); }
.kpi-hero { background: linear-gradient(140deg, rgba(255,159,107,.14), var(--surface) 60%); border-color: rgba(255,159,107,.25); }
.kpi-hero .kpi-val { font-size: 2.2rem; }
.kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kpi-sub { font-size: .76rem; color: var(--dim); }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font: 600 .72rem var(--f-mono); padding: 3px 8px; border-radius: 999px; }
.kpi-delta.up { color: #3DDC84; background: rgba(61,220,132,.1); }
.kpi-delta.down { color: #FF8A8A; background: rgba(255,107,107,.1); }
.kpi-delta.flat { color: var(--dim); background: rgba(255,255,255,.05); }
.kpi-delta i { font-size: .62rem; }

.db-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin-bottom: 14px; }
.db-row.three { grid-template-columns: 1fr 1fr 1fr; }
.db-card { padding: 20px; min-width: 0; }
.db-card:hover { transform: none; }
.db-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.db-card-head h3 { margin: 6px 0 0; font-size: 1.35rem; letter-spacing: -.03em; }
.db-note { font-size: .78rem; color: var(--dim); }
.db-note b { color: var(--text); }
.chart svg { width: 100%; height: 220px; display: block; overflow: visible; }
.chart .grid { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.chart .base { stroke: rgba(255,255,255,.18); stroke-width: 1; }
.chart .ax { fill: var(--dim); font: 500 10px var(--f-mono); }
.chart .bar { fill: var(--peach); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit.on { fill: rgba(255,255,255,.04); }
.db-tip { position: fixed; z-index: 300; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: #1F1F27; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: .8rem; display: grid; gap: 2px; }
.db-tip b { color: var(--text); font-weight: 600; }
.db-tip span { color: var(--muted); font-family: var(--f-mono); font-size: .76rem; }
.db-empty { height: 220px; display: grid; place-content: center; text-align: center; color: var(--dim); }
.db-empty i { font-size: 1.6rem; margin-bottom: 8px; }
.db-empty.sm { height: auto; padding: 26px 0; }
.db-empty p { margin: 0; font-size: .88rem; }

.fn-row, .hb-row { margin-bottom: 14px; }
.fn-top, .hb-top { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.fn-top b, .hb-top b { color: var(--text); font-weight: 600; font-family: var(--f-mono); font-size: .82rem; white-space: nowrap; }
.fn-top small { color: var(--dim); font-weight: 400; }
.fn-ic { margin-right: 4px; }
.fn-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.fn-bar { display: block; height: 100%; border-radius: 99px; min-width: 2px; transition: width .5s var(--ease); }
.fn-bar.neutral, .fn-ic.neutral { background: #8B8B98; color: #8B8B98; }
.fn-bar.good, .fn-ic.good { background: #3DDC84; color: #3DDC84; }
.fn-bar.warn, .fn-ic.warn { background: #FFC24B; color: #FFC24B; }
.fn-bar.bad, .fn-ic.bad { background: #FF6B6B; color: #FF6B6B; }
.fn-bar.muted, .fn-ic.muted { background: #5B5B66; color: #8B8B98; }
.fn-ic.neutral, .fn-ic.good, .fn-ic.warn, .fn-ic.bad, .fn-ic.muted { background: none; }
.fn-bar.brand { background: var(--grad); }
.hb-sub { display: block; margin-top: 5px; font-size: .74rem; color: var(--dim); }

.wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 170px; align-items: end; }
.wd-col { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.wd-val { font: 600 .72rem var(--f-mono); color: var(--muted); min-height: 1em; }
.wd-bar { width: 100%; max-width: 30px; border-radius: 4px 4px 2px 2px; background: rgba(255,159,107,.35); }
.wd-bar.best { background: var(--peach); }
.wd-lab { font: 500 .68rem var(--f-mono); color: var(--dim); }

.cat-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.cat-row:first-child { border-top: 0; padding-top: 0; }
.cat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.04); color: var(--peach); font-size: .85rem; flex-shrink: 0; }
.cat-row > div { flex: 1; min-width: 0; font-size: .88rem; color: var(--muted); }
.cat-row small { display: block; font-size: .72rem; color: var(--dim); }
.cat-row b { font-family: var(--f-display); font-size: 1.2rem; color: var(--text); }

.db-table-wrap { overflow-x: auto; }
.db-table { min-width: 520px; font-size: .86rem; }
.db-table td, .db-table th { padding: 11px 12px; }
.rc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rc-row:first-child { border-top: 0; padding-top: 0; }
.rc-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,159,107,.12); color: var(--peach); font: 700 .8rem var(--f-display); flex-shrink: 0; }
.rc-row > div:nth-child(2) { flex: 1; min-width: 0; }
.rc-row b { display: block; font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-row small { display: block; font-size: .74rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-right { text-align: right; }
.rc-right b { font-family: var(--f-mono); font-size: .84rem; }
.db-foot { font-size: .78rem; color: var(--dim); margin-top: 6px; }
.db-foot i { color: var(--peach); margin-right: 4px; }

@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } .db-row, .db-row.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; } .kpi-val { font-size: 1.4rem; } .kpi-hero { grid-column: 1 / -1; } .kpi-hero .kpi-val { font-size: 1.9rem; }
  .db-filters { padding: 12px; }
  .db-filter-row, .db-filter-row .select.sm { width: 100%; }
  .db-actions .btn span { display: none; }
}
.db-filters { justify-content: flex-start; }
.db-filters .chips { flex: 1 1 auto; }
.db-filter-row { margin-left: auto; }
@media (max-width: 1100px) { .db-filter-row { margin-left: 0; } }
#db-range { justify-content: flex-start; }
.db-filters { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.db-filter-row { margin-left: 0; justify-content: flex-end; }
@media (max-width: 1100px) { .db-filters { grid-template-columns: 1fr; } .db-filter-row { justify-content: flex-start; } }
@media (max-width: 600px) {
  .db-filters { overflow: hidden; }
  .db-filters #db-range { margin: 0 -12px; padding: 2px 12px 6px; }
  .db-filter-row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .db-filter-row .select.sm { min-width: 0; width: 100%; }
  .db-custom { grid-column: 1 / -1; }
  .db-custom input { flex: 1; min-width: 0; }
}
@media (min-width: 1101px) { .db-filter-row .select.sm { min-width: 0; width: 190px; } }
/* Dashboard fixes: custom date row + empty-state icon */
.db-custom-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.db-custom-row[hidden] { display: none !important; }
.db-custom-row input { width: 170px; height: 40px; }
.db-custom-row span { color: var(--dim); font-size: .85rem; }
.chart .db-empty svg, .db-empty svg { width: auto !important; height: 1em !important; }
.db-empty i { display: block; font-size: 1.8rem; margin: 0 auto 10px; opacity: .6; }
@media (max-width: 600px) { .db-custom-row input { flex: 1; width: auto; min-width: 0; } }

/* ==========================================================
   ADMIN · MOBILE APP LAYOUT (≤760px). Desktop untouched.
   ========================================================== */
@media (max-width: 760px) {
  body.admin { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

  /* Compact top bar (no blur so the fixed tab bar can escape it) */
  .admin-top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,13,.97); }
  .admin-top-inner { height: 58px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; }
  .admin-top .logo { font-size: 1.15rem; }
  .admin-user #admin-email { display: none; }
  #logout { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  #logout span { display: none; }

  /* Bottom tab bar */
  .admin-tabs {
    position: fixed; z-index: 95; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; height: 64px; padding: 0 4px; border-radius: 22px;
    background: rgba(18,18,24,.94); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgba(0,0,0,.8);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .admin-tabs .chip-btn {
    height: 100%; border: 0; border-radius: 16px; background: transparent !important; color: var(--dim) !important;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
    font-size: .64rem; font-weight: 500; position: relative;
  }
  .admin-tabs .chip-btn i { margin: 0; font-size: 1.05rem; }
  .admin-tabs .chip-btn.active { color: var(--text) !important; }
  .admin-tabs .chip-btn.active i { color: var(--peach); }
  .admin-tabs .chip-btn.active::before { content: ""; position: absolute; top: 5px; width: 22px; height: 3px; border-radius: 3px; background: var(--peach); }

  /* Page header: title + compact actions in one row */
  .admin-main { padding-top: 20px; padding-bottom: 20px; }
  .admin-head { flex-wrap: nowrap; align-items: center; margin-bottom: 16px; gap: 12px; }
  .admin-head h1 { font-size: 1.6rem; margin: 0 0 2px; }
  .admin-head p { font-size: .8rem; line-height: 1.4; }
  .admin-head > .btn, .db-actions .btn { height: 42px; padding: 0 14px; font-size: .84rem; flex-shrink: 0; }
  .db-actions .btn, #refresh-orders { width: 42px; padding: 0; border-radius: 50%; }
  .db-actions .btn span, #refresh-orders span { display: none; }

  /* Tables → stacked cards */
  .table-card { background: transparent; border: 0; padding: 0; overflow: visible; }
  .admin-table { min-width: 0 !important; display: block; }
  .admin-table thead { display: none; }
  .admin-table tbody { display: grid; gap: 10px; }
  .admin-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
  .admin-table tbody tr:hover td { background: transparent; }
  .admin-table td { display: block; padding: 0 !important; border: 0 !important; font-size: .82rem; }
  .admin-table td:first-child { flex: 1 0 100%; font-size: .9rem; }
  .admin-table td.actions { flex: 1 0 100%; display: flex; justify-content: flex-end; gap: 6px; padding-top: 10px !important; border-top: 1px solid var(--line) !important; margin-top: 2px; }
  .admin-table td.actions > * { margin: 0; }
  .admin-table td.muted-cell { flex: 1 0 100%; padding: 30px 10px !important; }
  .admin-table .sub { font-size: .76rem; }
  .prod-cell .thumb { width: 54px; height: 36px; }
  #orders-body td:nth-child(2) { order: -1; flex: 1 0 100%; }
  #orders-body td:first-child { flex: 0 1 auto; font-size: .74rem; color: var(--dim); }

  /* Chips & filters scroll horizontally */
  #job-admin-filter, #order-filter, #db-range { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  #job-admin-filter::-webkit-scrollbar, #order-filter::-webkit-scrollbar { display: none; }
  .admin-tab .chip-btn { flex-shrink: 0; }
  .admin-tab .lib-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .admin-tab .lib-toolbar .search { flex: none; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; } .stat-val { font-size: 1.35rem; }

  /* Editors: full-screen sheets */
  .drawer { width: 100%; border-left: 0; }
  .drawer-head { padding: 16px 18px; }
  .drawer-head h2 { font-size: 1.25rem; }
  .ce-tabs { padding: 10px 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ce-tabs .chip-btn { flex-shrink: 0; height: 36px; font-size: .8rem; }
  .ed-grid { padding: 16px 14px 90px; gap: 16px; }
  .ed-preview { display: none; }
  fieldset { padding: 16px 14px 4px; border-radius: 16px; }
  .drawer-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 8px; flex-wrap: wrap; }
  .drawer-foot .co-error { order: -1; flex: 1 0 100%; }
  .drawer-foot .btn { height: 46px; }
  .drawer-foot .btn-primary { flex: 1; }
  .drawer-foot [data-close] { display: none; }
  #delete-product, #delete-course, #delete-job { width: 46px; padding: 0; font-size: 0; }
  #delete-product i, #delete-course i, #delete-job i { font-size: .95rem; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .tm-row { flex-direction: column; }

  /* Dashboard tweaks */
  .db-row, .db-row.three { gap: 10px; }
  .db-card { padding: 16px; }
  .chart svg { height: 180px; }
  .db-foot { padding-bottom: 6px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .db-tip { display: none !important; }
}
@media (max-width: 760px) {
  #products-body td:nth-child(2)::before { content: "Price "; color: var(--dim); }
  #products-body td:nth-child(3)::before { content: "PDF: "; color: var(--dim); }
  #courses-body td:nth-child(2)::before { content: "Price "; color: var(--dim); }
  #courses-body td:nth-child(4)::before { content: "Topmate: "; color: var(--dim); }
  #jobs-body td:nth-child(2)::before { content: "Batch "; color: var(--dim); }
  #jobs-body td:nth-child(3)::before { content: "Posted "; color: var(--dim); }
  #jobs-body td:nth-child(4)::before { content: "Ends "; color: var(--dim); }
  #orders-body td:nth-child(6)::before { content: "Email: "; color: var(--dim); }
  .admin-table td.muted-cell::before { content: none !important; }
}
/* Admin section headers: text and main button always on one row */
.admin-head { flex-wrap: nowrap; }
.admin-head > div:first-child { flex: 1; min-width: 0; }
.admin-head > .btn, .admin-head > .db-actions { flex-shrink: 0; }
/* Desktop too: hero glows fade past the section edge (no hard line) */
.hero { overflow: visible; overflow-x: clip; }
.hero + .section-tight { position: relative; z-index: 1; }
.hero .glow-violet { -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%); }
/* Plus Jakarta Sans: slightly open tracking for comfortable reading */
body { letter-spacing: .008em; word-spacing: .04em; }
.lead, .hero .lead, .page-hero p, .cd-sub, .prose p, .card p { letter-spacing: .01em; word-spacing: .05em; }
.btn { letter-spacing: 0; }
/* Even, natural line breaks in paragraphs (no lonely words or awkward splits) */
p, .lead, li { text-wrap: pretty; hyphens: manual; }
