/* GetInTheTrend — "stage lights": cool paper, indigo stage panels, spotlight-yellow actions, pink for status.
   One family (Bricolage Grotesque) carries the personality; the before/after phone player is the signature element. */
:root {
  --paper: #f4f5fa;
  --card: #ffffff;
  --ink: #1c1a33;
  --soft: #5c5a74;
  --line: #e1e2ee;
  --stage: #2b1f66;
  --stage-2: #3a2c86;
  --spot: #ffc83d;
  --spot-ink: #2a1c00;
  --punch: #ff4d7d;
  --ok: #138a52;
  --bad: #c42b45;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(28, 26, 51, 0.06), 0 8px 24px rgba(28, 26, 51, 0.06);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12111f;
    --card: #1b1a2d;
    --ink: #f1f0fa;
    --soft: #a9a7c2;
    --line: #2d2b45;
    --stage: #241a57;
    --stage-2: #2f2470;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); font-optical-sizing: auto; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--punch); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type scale (1.25) */
h1, h2, h3 { font-family: var(--font); letter-spacing: -0.025em; line-height: 1.05; margin: 0; font-stretch: 85%; }
h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; margin-top: 64px; margin-bottom: 14px; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 14px; max-width: 68ch; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--soft); max-width: 46ch; }
.muted { color: var(--soft); }
.small { font-size: 14px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; font-stretch: 85%; }
.brand svg { width: 28px; height: 28px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top nav a { text-decoration: none; color: var(--soft); font-weight: 600; padding: 8px 10px; border-radius: var(--r-sm); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); background: var(--line); }
.credits-pill { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px !important; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.credits-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--spot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--spot) 35%, transparent); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } .top .wrap { gap: 8px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer; background: var(--spot); color: var(--spot-ink); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--spot) 55%, transparent); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover:not(:disabled) { box-shadow: none; border-color: var(--soft); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--soft); text-decoration: underline; cursor: pointer; }

/* Stage panel (hero) */
.stage { position: relative; background: radial-gradient(120% 90% at 85% 0%, var(--stage-2), var(--stage) 60%); color: #f6f4ff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); overflow: hidden; margin-top: 24px; }
.stage::after { content: ""; position: absolute; inset: -40% auto auto 55%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 200, 61, 0.22), transparent); pointer-events: none; }
.stage .lede, .stage .muted { color: #cfcaf2; }
.stage-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .stage-grid { grid-template-columns: 1fr; } }
.stage h1 { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stage .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: #cfcaf2; font-size: 15px; }
.facts li::before { content: "✓ "; color: var(--spot); font-weight: 800; }

/* Before/after phone player */
.phone { position: relative; width: min(330px, 100%); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 34px; padding: 10px; background: #0d0b1d; box-shadow: 0 30px 60px rgba(8, 5, 30, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); }
.ba { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; }
.ba video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.4); cursor: ew-resize; }
.ba .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--stage); display: grid; place-items: center; font-weight: 800; font-size: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.ba .tag { position: absolute; bottom: 14px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(13, 11, 29, 0.7); color: #fff; }
.ba .tag.l { left: 12px; }
.ba .tag.r { right: 12px; background: var(--spot); color: var(--spot-ink); }
.ba .range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-photo { position: absolute; left: -22px; bottom: 56px; width: 92px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); transform: rotate(-5deg); background: #333; }
.ba-photo img { width: 100%; height: 100%; object-fit: cover; }
.ba-photo span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; font-weight: 700; text-align: center; padding: 2px; }
.sound { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(13, 11, 29, 0.7); color: #fff; cursor: pointer; font-size: 16px; }
.placeholder-player { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: #cfcaf2; font-size: 15px; }

/* Trend list (ticket stubs) */
.tickets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.ticket { position: relative; display: grid; grid-template-columns: 96px 1fr; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; }
.ticket .stub { background: var(--stage); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; text-align: center; padding: 10px; position: relative; }
.ticket .stub::after { content: ""; position: absolute; right: -1px; top: 8px; bottom: 8px; border-right: 2px dashed var(--paper); }
.ticket .body { padding: 18px 18px 16px; }
.ticket h3 { margin-bottom: 6px; }
.ticket p { color: var(--soft); font-size: 15px; margin: 0 0 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--punch); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ticket:hover h3 { text-decoration: underline; }

/* Steps (a real sequence) */
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--stage); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }

/* Maker */
.maker { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(18px, 3.5vw, 36px); margin-top: 28px; scroll-margin-top: 90px; }
.maker-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.maker-head h2 { margin: 0; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .slots { grid-template-columns: 1fr; } }
.slot { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.slot-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 700; }
.slot-label small { font-weight: 500; color: var(--soft); font-size: 14px; }
.drop { position: relative; display: grid; place-items: center; min-height: 230px; border: 2px dashed var(--line); border-radius: var(--r-md); background: var(--paper); text-align: center; padding: 18px; cursor: pointer; transition: border-color 0.15s, background 0.15s; overflow: hidden; }
.drop:hover, .drop.over { border-color: var(--stage-2); background: color-mix(in srgb, var(--stage) 6%, var(--paper)); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.drop .hint { color: var(--soft); font-size: 14px; margin: 4px 0 0; }
.drop.filled { border-style: solid; padding: 0; background: #000; }
.drop.filled video, .drop.filled img { width: 100%; height: 230px; object-fit: contain; }
.drop .meta { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; gap: 8px; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); pointer-events: none; }
.drop .replace { position: absolute; top: 10px; right: 10px; z-index: 2; }
.bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--spot); width: 0; transition: width 0.2s; }
.slot-error { color: var(--bad); font-size: 14px; margin: 0; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 14px; color: var(--soft); margin: 4px 0 0; padding: 0; list-style: none; }
.rules li.y::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.rules li.n::before { content: "✕ "; color: var(--bad); font-weight: 800; }
@media (max-width: 480px) { .rules { grid-template-columns: 1fr; } }
.options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 22px 0 6px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; }
.seg input:checked + span { background: var(--stage); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--punch); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--soft); margin: 14px 0 18px; max-width: 70ch; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--stage); flex: none; }
.go-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cost { font-weight: 700; font-variant-numeric: tabular-nums; }
.notice { border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; margin-top: 14px; }
.notice.bad { background: color-mix(in srgb, var(--bad) 10%, var(--card)); color: var(--bad); }
.notice.ok { background: color-mix(in srgb, var(--ok) 10%, var(--card)); color: var(--ok); }
.notice.info { background: color-mix(in srgb, var(--stage) 8%, var(--card)); }
.notice .btn { margin: 8px 8px 0 0; }

/* Progress + result */
.progress { display: grid; gap: 14px; }
.progress ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.progress li { display: flex; align-items: center; gap: 10px; color: var(--soft); }
.progress li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.progress li.done { color: var(--ink); }
.progress li.done::before { background: var(--ok); border-color: var(--ok); }
.progress li.now { color: var(--ink); font-weight: 700; }
.progress li.now::before { border-color: var(--stage-2); border-top-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress li.now::before { animation: none; border-top-color: var(--stage-2); } .btn { transition: none; } }
.result { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 700px) { .result { grid-template-columns: 1fr; } }
.result video { width: 100%; border-radius: var(--r-md); background: #000; max-height: 70vh; }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Examples */
.examples { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.example figcaption { margin-top: 12px; font-size: 15px; color: var(--soft); text-align: center; }

/* Long-form content */
.prose { max-width: 70ch; }
.prose li { margin: 6px 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--soft); }

/* Pricing */
.packs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.pack { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; }
.pack.best { border-color: var(--spot); }
.pack .price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-stretch: 85%; }
.pack ul { list-style: none; padding: 0; margin: 4px 0 10px; color: var(--soft); font-size: 15px; display: grid; gap: 6px; }
.pack ul li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.pack form { margin-top: auto; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--spot-ink); background: var(--spot); border-radius: 999px; padding: 3px 10px; }

/* Account */
.panel { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.balance .num { font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.videos { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.vcard { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; }
.vcard video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.vcard .ph { aspect-ratio: 9 / 16; display: grid; place-items: center; background: var(--paper); color: var(--soft); text-align: center; padding: 16px; font-size: 14px; }
.vcard .info { padding: 12px 14px 14px; font-size: 14px; }
.vcard .info b { display: block; font-size: 15px; }
.vcard .row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 16px; color: var(--soft); }

/* Sign in */
.auth { max-width: 440px; margin: 56px auto 0; }
.field { display: grid; gap: 6px; margin: 16px 0; font-weight: 600; }
.field input { font: inherit; font-size: 18px; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); width: 100%; }
.field input:focus { border-color: var(--stage-2); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--stage-2) 25%, transparent); }
.code-input { letter-spacing: 0.4em; font-variant-numeric: tabular-nums; text-align: center; font-weight: 800; }

/* Footer */
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--soft); font-size: 14px; }
.foot .wrap { display: grid; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.crumbs { color: var(--soft); font-size: 14px; margin: 24px 0 0; }
.crumbs a { color: var(--soft); }
