/* ==========================================================================
   VidNest — "colour chapters"
   One face (Cabinet Grotesk, self-hosted, ITF Free Font License), one grid,
   flat full-bleed colour fields: black, mint, orange, grey. No gradients,
   no glass, no shadows on things at rest.
   ========================================================================== */
@font-face { font-family: "Cabinet Grotesk"; src: url("/fonts/cabinet-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("/fonts/cabinet-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("/fonts/cabinet-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ------------------------------------------------------------ tokens */
:root {
  --font: "Cabinet Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(3.5rem, 1rem + 9vw, 9.375rem);

  --mint: #a7ff9c; --orange: #ff6831; --grey: #c5c5c5; --black: #000;
  --o-dark: #b3400f; --o-light: #ffb491;
  --paper: #ffffff; --ink: #000000; --tone: #f2f2f2; --soft: #555555;
  --green: #12a150; --red: #d92d20;
  --gutter: clamp(16px, 2.8vw, 40px);
  --sec: clamp(96px, 11vw, 168px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* names the downloader's result cards use (they are product UI and keep their own lines) */
  --surface: var(--paper); --surface-2: var(--tone); --bg-2: var(--tone);
  --border: rgba(0,0,0,.1); --border-strong: rgba(0,0,0,.2);
  --text: var(--ink); --text-2: var(--ink); --muted: var(--soft); --violet: var(--ink);
  --ring: rgba(0,0,0,.25); --pink: var(--orange);
  --grad: var(--mint); --grad-soft: var(--tone);
  --shadow: none; --shadow-sm: none;
  --r-sm: 0; --r: 0; --r-lg: 0; --r-xl: 0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d0d0d; --ink: #ffffff; --tone: #1c1c1c; --soft: #b0b0b0;
    --border: rgba(255,255,255,.12); --border-strong: rgba(255,255,255,.24); --ring: rgba(255,255,255,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d0d0d; --ink: #ffffff; --tone: #1c1c1c; --soft: #b0b0b0;
  --border: rgba(255,255,255,.12); --border-strong: rgba(255,255,255,.24); --ring: rgba(255,255,255,.3);
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--mint); color: #000; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: .95; letter-spacing: -.035em; margin: 0 0 .4em; color: inherit; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0 0 1em; text-wrap: pretty; }
b, strong { font-weight: 800; }
kbd { font: 800 .85em var(--font); padding: .05em .4em; background: var(--tone); color: var(--ink); }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; padding: .1em .35em; background: var(--tone); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus, var(--ink)); outline-offset: 3px; }
/* the focus ring takes whichever colour reads on its field */
.c-black, .site-header { --focus: var(--mint); }
.c-mint, .c-orange, .c-grey, .showcase { --focus: #000; }
.dd-menu { --focus: #000; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: #000; padding: 10px 16px; z-index: 200; font-weight: 800; }
.skip:focus { left: 8px; }
.sec-lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }

/* one button: flat, square, mint */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; background: var(--mint); color: #000; font-weight: 800; font-size: var(--step-body); text-decoration: none; border: 0; transition: background-color .2s, transform .15s var(--ease); }
.btn:hover { background: #fff; text-decoration: none; }
.btn:active { transform: translateY(2px); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.text-link { font-weight: 800; }

/* ------------------------------------------------------------ chapters */
.chapter { padding: var(--sec) 0; }
.c-white { background: var(--paper); color: var(--ink); }
.c-paper { background: var(--tone); color: var(--ink); }
.c-black { background: #000; color: #fff; }
.c-mint { background: var(--mint); color: #000; }
.c-orange { background: var(--orange); color: #000; }
.c-grey { background: var(--grey); color: #000; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 60; background: #000; color: #fff; }
.nav-shell { max-width: 1440px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.35rem/1 var(--font); letter-spacing: -.03em; color: inherit; text-decoration: none; }
.site-header nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.dd { position: relative; }
.dd-btn, .nav-a { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 14px; font-weight: 500; font-size: var(--step-body); color: #fff; text-decoration: none; transition: color .2s; }
.dd-btn svg { transition: transform .25s var(--ease); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-btn:hover, .nav-a:hover, .dd.open .dd-btn { color: var(--mint); }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; max-height: 72vh; overflow: auto;
  background: #fff; color: #000; padding: 8px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; min-width: 440px; }
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .dd:hover .dd-menu { opacity: 1; visibility: visible; transform: none; } }
.dd-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #000; font-size: 1rem; font-weight: 500; text-decoration: none; }
.dd-menu a:hover, .dd-menu a[aria-current] { background: var(--mint); }
.dd-ico { display: grid; place-items: center; width: 28px; height: 28px; color: var(--c); }
.dd-label { display: block; padding: 12px 12px 4px; font-size: var(--step-small); font-weight: 800; color: #555; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: #1c1c1c; color: #fff; transition: background-color .2s; }
.icon-btn:hover { background: #333; }
.install-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; background: var(--mint); color: #000; font-weight: 800; font-size: var(--step-small); }
.install-btn svg { width: 17px; height: 17px; }
@media (max-width: 760px) {
  .nav-shell { height: 56px; }
  .hide-sm { display: none; }
  .dd-btn { padding: 8px; font-size: 1rem; }
  .dd-menu, .dd-grid { position: fixed; left: 8px; right: 8px; top: 60px; min-width: 0; }
  .install-btn span { display: none; }
  .install-btn { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 420px) { .brand > span:last-child { display: none; } .dd-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ hero: the title, stacked in two inks */
.hero { position: relative; min-height: calc(100svh - 64px); display: flex; padding: clamp(40px, 9vh, 120px) 0 40px; }
.hero > .wrap { display: flex; flex-direction: column; }
.crumbs { display: flex; gap: 8px; font-size: var(--step-small); color: var(--grey); margin-bottom: 20px; }
.crumbs a { color: inherit; }
.stack { --fit: calc((min(100vw, 1440px) - 2 * var(--gutter)) / (var(--chars) * .5)); font-size: min(var(--fit), 13vw, 210px); line-height: .86; letter-spacing: -.045em; margin: 0 0 clamp(32px, 6vh, 72px); }
.stack .l1, .stack .l2 { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.stack .l1 { color: #fff; }
.stack .l2 { color: var(--mint); }
.stack .l1 > span, .stack .l2 > span { display: inline-block; animation: line-up .95s var(--ease) both; }
.stack .l2 > span { animation-delay: .11s; }
@keyframes line-up { from { transform: translateY(105%); } }
.hero-foot { margin-top: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; animation: fade-up .7s .45s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }
.hero-foot .lead { grid-column: 6 / 13; font-size: var(--step-lead); line-height: 1.35; color: #fff; max-width: 44ch; margin: 0 0 24px; }
.hero-foot .tool { grid-column: 6 / 13; }
.hero.small { min-height: 0; padding: clamp(72px, 12vw, 160px) 0 clamp(56px, 8vw, 104px); }
.hero.small h1 { font-size: var(--step-display); max-width: 14ch; }
.hero.small .lead { font-size: var(--step-lead); max-width: 40ch; margin: 0 0 32px; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 56px 0 48px; }
  .hero-foot { margin-top: 24px; }
  .stack { font-size: min(var(--fit), 21vw); }
  .hero-foot .lead, .hero-foot .tool { grid-column: 1 / -1; }
}

/* the downloader box */
.tool { text-align: left; max-width: 720px; }
.mode { display: inline-flex; gap: 4px; margin-bottom: 8px; }
.mode button { border: 0; background: transparent; min-height: 44px; padding: 0 16px; font-weight: 800; font-size: var(--step-small); color: var(--grey); transition: background-color .2s, color .2s; }
.mode button:hover { color: #fff; }
.mode button[aria-selected="true"] { background: #fff; color: #000; }
.input-card { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px; background: #fff; color: #000; transition: outline-color .2s; outline: 3px solid transparent; outline-offset: 3px; }
.input-card:focus-within { outline-color: var(--mint); }
.input-card.batch { align-items: flex-start; flex-wrap: wrap; }
.detected { display: grid; place-items: center; width: 48px; height: 48px; flex: none; color: #555; background: #f2f2f2; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.detected.on { color: #fff; background: var(--pc, #000); transform: rotate(-4deg); }
.detected.on[data-p="snapchat"], .detected.on[data-p="kick"], .detected.on[data-p="tiktok"] { color: #111; }
#url, #urls { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #000; font: 500 var(--step-body) var(--font); padding: 12px 6px; }
#url::placeholder, #urls::placeholder { color: #666; }
#urls { resize: vertical; min-height: 130px; width: 100%; flex-basis: 100%; order: 5; padding: 10px 8px; line-height: 1.6; }
.input-card.batch .detected { display: none; }
.paste { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; height: 52px; border: 0; background: #f2f2f2; font-weight: 800; font-size: var(--step-small); color: #000; transition: background-color .2s, transform .15s; }
.paste:hover { background: #e2e2e2; }
.paste:active, .go:active { transform: translateY(2px); }
.go { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 24px; border: 0; background: var(--mint); color: #000; font-weight: 800; font-size: var(--step-body); transition: background-color .2s, transform .15s; }
.go:hover { background: #8df080; }
.go[disabled] { opacity: .8; cursor: progress; }
.go .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.25); border-top-color: #000; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .input-card { flex-wrap: wrap; }
  #url { flex-basis: calc(100% - 60px); }
  .paste { flex: 1; justify-content: center; }
  .go { flex: 2; justify-content: center; }
  .input-card.batch .paste, .input-card.batch .go { order: 6; }
}
.hint { min-height: 1.5em; margin: 10px 2px 0; font-size: var(--step-small); color: var(--grey); }
.hint.err { color: var(--orange); font-weight: 800; }
.trust { margin: 2px 2px 0; font-size: var(--step-small); color: var(--grey); }

/* ------------------------------------------------------------ platforms */
.platforms { padding: clamp(64px, 8vw, 112px) 0; background: var(--paper); }
.plat-h { font-size: var(--step-lead); letter-spacing: -.02em; margin-bottom: 28px; }
.marquee { display: flex; overflow: hidden; gap: 56px; }
.m-track { display: flex; gap: 56px; list-style: none; padding: 4px 0; margin: 0; flex: none; animation: scroll 50s linear infinite; }
.marquee:hover .m-track { animation-play-state: paused; }
.m-track li { display: inline-flex; align-items: center; gap: 14px; font-weight: 800; font-size: var(--step-head); letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.m-ico { display: grid; place-items: center; color: var(--c); }
.m-ico svg { width: .7em; height: .7em; }
@keyframes scroll { to { transform: translateX(calc(-100% - 56px)); } }

/* ------------------------------------------------------------ how it works: tonal accordion */
.how-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 64px; }
.how-intro h2 { grid-column: 1 / 7; margin: 0; }
.how-intro p { grid-column: 8 / 12; font-size: var(--step-lead); line-height: 1.35; margin: 0; }
.acc { display: flex; height: 520px; list-style: none; margin: 0; padding: 0; }
.acc-p { position: relative; flex: 1 1 0; min-width: 96px; overflow: hidden; transition: flex-grow .45s var(--ease); }
.acc-p:nth-child(1) { background: var(--o-dark); color: #fff; }
.acc-p:nth-child(2) { background: var(--orange); color: #000; }
.acc-p:nth-child(3) { background: var(--o-light); color: #000; }
.acc-p.open { flex-grow: 4.5; }
.acc-tab { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; background: none; color: inherit; text-align: left; padding: 0; }
.acc-tab span { position: absolute; left: 28px; bottom: 28px; writing-mode: vertical-rl; transform: rotate(180deg); font: 800 var(--step-lead)/1 var(--font); letter-spacing: -.02em; transition: opacity .2s; }
.acc-tab:hover span { text-decoration: underline; text-decoration-thickness: 3px; }
.acc-p.open .acc-tab { pointer-events: none; }
.acc-p.open .acc-tab span { opacity: 0; }
.acc-body { position: absolute; inset: 0; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; min-width: 460px; opacity: 0; visibility: hidden; transition: opacity .3s; }
.acc-p.open .acc-body { opacity: 1; visibility: visible; transition-delay: .18s; }
.acc-body h3 { font-size: var(--step-head); margin: 0; }
.acc-body p { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; margin: 0; }
.acc-body kbd { background: rgba(0,0,0,.12); color: inherit; }
html:not(.js) .acc { flex-direction: column; height: auto; }
html:not(.js) .acc-body { position: static; opacity: 1; visibility: visible; min-width: 0; gap: 24px; }
html:not(.js) .acc-tab { display: none; }
@media (max-width: 760px) {
  .how-intro { display: block; margin-bottom: 40px; }
  .how-intro p { margin-top: 16px; }
  .acc { flex-direction: column; height: auto; }
  .acc-p { flex: none; min-width: 0; }
  .acc-tab { position: relative; height: 64px; }
  .acc-tab span { writing-mode: horizontal-tb; transform: none; left: 20px; bottom: auto; top: 50%; translate: 0 -50%; font-size: 1.125rem; }
  .acc-p.open .acc-tab { display: none; }
  .acc-body { position: static; display: none; min-width: 0; padding: 24px 20px 28px; gap: 20px; }
  .acc-p.open .acc-body { display: flex; }
  .acc-body h3 { font-size: var(--step-lead); }
  .acc-body p { font-size: 1.0625rem; }
}

/* ------------------------------------------------------------ feature fields */
.field { min-height: 78svh; display: flex; padding: 28px 0; }
.field > .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: 24px; }
.field-ui { grid-column: 1 / 6; grid-row: 1; padding-top: 12px; font-size: 1.125rem; }
.field-p { grid-column: 8 / 12; grid-row: 1; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; padding-top: 12px; margin: 0; }
.field-h { grid-column: 1 / -1; grid-row: 3; align-self: end; font-size: var(--step-display); line-height: .88; margin: 48px 0 0; }
.field-h span { display: block; }
.field.mirror .field-ui { grid-column: 8 / 13; }
.field.mirror .field-p { grid-column: 2 / 6; }
.field.mirror .field-h { text-align: right; }
@media (max-width: 900px) {
  .field { min-height: 64svh; }
  .field > .wrap { display: flex; flex-direction: column; gap: 28px; }
  .field-p { order: -1; font-size: 1.0625rem; max-width: none; width: 85%; }
  .field.mirror .field-p { align-self: flex-end; text-align: right; }
  .field-h, .field.mirror .field-h { font-size: 13vw; text-align: left; margin-top: auto; align-self: stretch; }
}

/* interface fragments shown as the product's own pictures (data-ui) */
.fv-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.fv-row small { font-size: .85em; }
.fv-row .r, .fv-row small:last-child { margin-left: auto; }
.fv-chip { padding: 6px 12px; background: #fff; color: #000; font-weight: 800; font-size: .85em; font-variant-numeric: tabular-nums; }
.fv-chip.ghost { background: transparent; box-shadow: inset 0 0 0 2px currentColor; color: inherit; }
.fv-q { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 460px; }
.fv-q li { display: grid; grid-template-columns: 4.2em 1fr auto 1.3em; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; color: #000; }
.fv-q b { font-weight: 800; }
.fv-q span, .fv-q em { color: #555; font-size: .85em; font-style: normal; font-variant-numeric: tabular-nums; }
.fv-q li.on { background: #000; color: #fff; }
.fv-q li.on span, .fv-q li.on em { color: var(--grey); }
.fv-q li i { grid-column: 4; display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--mint); color: #000; }
.fv-q li i svg { width: .8em; height: .8em; stroke-width: 3.2; }
.fv-audio { max-width: 460px; padding: 20px; background: #fff; color: #000; }
.fv-wave { display: flex; align-items: center; gap: 4px; height: 96px; }
.fv-wave i { flex: 1; background: #d6d6d6; }
.fv-wave i.p { background: #000; }
.fv-audio .fv-chip { background: var(--mint); }
.fv-audio small { color: #555; }
.fv-trimui { max-width: 460px; padding: 20px; background: #fff; color: #000; }
.fv-track { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; height: 72px; }
.fv-track i { background: #ffd2bf; }
.fv-sel { position: absolute; top: -6px; bottom: -6px; left: 34%; width: 30%; box-shadow: inset 0 0 0 4px #000; }
.fv-sel b { position: absolute; top: 50%; width: 8px; height: 30px; margin-top: -15px; background: #000; }
.fv-sel b:first-child { left: -4px; } .fv-sel b:last-child { right: -4px; }
.fv-trimui .fv-chip { background: #000; color: #fff; }
.fv-trimui small { color: #555; }
.fv-batch { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 460px; }
.fv-batch li { display: grid; grid-template-columns: 34px 1fr 44px; align-items: center; gap: 14px; padding: 14px 16px; background: #1c1c1c; color: #fff; }
.fv-batch span { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--c); }
.fv-batch div { height: 8px; background: #333; overflow: hidden; }
.fv-batch div i { display: block; height: 100%; background: var(--mint); }
.fv-batch b { justify-self: end; font-weight: 800; font-size: .85em; font-variant-numeric: tabular-nums; }
.fv-batch b.ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: #000; }
.fv-batch b.ok svg { width: 14px; height: 14px; stroke-width: 3.2; }

/* Feature pictures play their own action once, when they scroll into view (.live is
   added by app.js). The resting style above is the finished state, so without script
   or with reduced motion the picture simply shows the result. */
@media (prefers-reduced-motion: no-preference) {
  /* 4K picker: the highlight steps down the list and settles on 1080p */
  .js .field-ui:not(.live) .fv-q li.on { background: #fff; color: #000; }
  .js .field-ui:not(.live) .fv-q li.on span, .js .field-ui:not(.live) .fv-q li.on em { color: #555; }
  .js .field-ui:not(.live) .fv-q li i { transform: scale(0); }
  .live .fv-q li:nth-child(4) { animation: q-pass .34s .15s var(--ease) both; }
  .live .fv-q li:nth-child(3) { animation: q-pass .34s .5s var(--ease) both; }
  .live .fv-q li.on { animation: q-land .3s .85s var(--ease) both; }
  .live .fv-q li.on span, .live .fv-q li.on em { animation: q-land-soft .3s .85s var(--ease) both; }
  .live .fv-q li i { animation: pop .35s 1.1s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes q-pass { 0%, 100% { background: #fff; color: #000; } 35%, 70% { background: #000; color: #fff; } }
  @keyframes q-land { from { background: #fff; color: #000; } }
  @keyframes q-land-soft { from { color: #555; } }
  @keyframes pop { from { transform: scale(0); } }

  /* Audio: the played part runs left to right, then the playhead keeps breathing */
  .js .field-ui:not(.live) .fv-wave i.p { background: #d6d6d6; }
  .live .fv-wave i.p { animation: wave-play .25s calc(var(--i) * 90ms + .2s) linear both; }
  .live .fv-wave i:nth-child(11) { animation: wave-head 1.1s 1.3s ease-in-out infinite alternate; transform-origin: center; }
  @keyframes wave-play { from { background: #d6d6d6; } }
  @keyframes wave-head { to { transform: scaleY(.55); } }

  /* Trim: the selection closes in from the whole clip to the 33-second part */
  .js .field-ui:not(.live) .fv-sel { left: 0; width: 100%; }
  .live .fv-sel { animation: trim-in 1.1s .25s var(--ease) both; }
  @keyframes trim-in { from { left: 0; width: 100%; } }

  /* Batch: each bar fills to its value, one after the other, and the first one ticks */
  .fv-batch div i { transform-origin: left; }
  .js .field-ui:not(.live) .fv-batch div i { transform: scaleX(0); }
  .js .field-ui:not(.live) .fv-batch b { transform: scale(0); }
  .live .fv-batch li:nth-child(1) div i { animation: fill 1s .2s var(--ease) both; }
  .live .fv-batch li:nth-child(2) div i { animation: fill 1s .45s var(--ease) both; }
  .live .fv-batch li:nth-child(3) div i { animation: fill 1s .7s var(--ease) both; }
  .live .fv-batch li:nth-child(1) b { animation: pop .35s 1.15s cubic-bezier(.3, 1.6, .5, 1) both; }
  .live .fv-batch li:nth-child(2) b { animation: pop .3s 1.3s var(--ease) both; }
  .live .fv-batch li:nth-child(3) b { animation: pop .3s 1.5s var(--ease) both; }
  @keyframes fill { from { transform: scaleX(0); } }
}

/* The big phrase on each colour field rises with the scroll itself, line by line.
   Browsers without scroll timelines keep the ordinary fade-up (.reveal). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .field-h.reveal { opacity: 1; transform: none; transition: none; }
    .field-h span { animation: phrase-up linear both; animation-timeline: view(); animation-range: entry 10% cover 42%; }
    .field-h span + span { animation-range: entry 22% cover 50%; }
    @keyframes phrase-up { from { opacity: 0; transform: translateY(.45em); } }
  }
}

/* ------------------------------------------------------------ extras */
.ex-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; }
.ex-copy { grid-column: 1 / 7; }
.ex-ui { grid-column: 8 / 13; display: grid; gap: 12px; padding-top: 12px; }
.ex-list, .dev-list, .cr-list { margin: 40px 0 0; display: grid; gap: 28px; }
.ex-list dt, .dev-list dt, .cr-list dt { font-weight: 800; font-size: var(--step-lead); letter-spacing: -.02em; line-height: 1.15; }
.ex-list dd, .dev-list dd, .cr-list dd { margin: 4px 0 0; max-width: 52ch; }
.fv-srt { margin: 0; padding: 24px 28px; background: var(--tone); color: var(--ink); font: 500 1.0625rem/1.5 var(--font); white-space: pre; overflow: hidden; font-variant-numeric: tabular-nums; }
.fv-srt span { color: var(--soft); }
.fv-priv { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #000; color: #fff; }
.fv-shield { display: grid; place-items: center; flex: none; width: 52px; height: 52px; color: #000; background: var(--mint); }
.fv-priv > div { flex: 1; min-width: 0; }
.fv-priv b { display: block; font-size: 1.0625rem; }
.fv-priv small { display: block; color: var(--grey); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.fv-ttl { height: 8px; margin-top: 10px; background: #333; overflow: hidden; }
.fv-ttl i { display: block; width: 72%; height: 100%; background: var(--mint); animation: ttl 30s linear infinite alternate; transform-origin: left; }
@keyframes ttl { to { transform: scaleX(.2); } }
@media (max-width: 900px) { .ex-copy, .ex-ui { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ showcase: the format switch, blown up */
.showcase { position: relative; min-height: 92svh; overflow: hidden; transition: background-color .45s var(--ease); }
.showcase.is-audio { background: var(--orange); }
.sc-copy h2 { font-size: var(--step-head); }
.sc-copy p { max-width: 36ch; font-size: var(--step-lead); line-height: 1.35; }
.sc-ctrl { position: absolute; right: -7vw; bottom: -6vh; display: flex; gap: .06em; padding: .08em; background: #000; font-size: min(17vh, 9.5vw); }
.sc-ctrl button { display: grid; gap: .08em; text-align: left; padding: .28em .4em .32em; border: 0; background: transparent; color: #fff; transition: background-color .35s var(--ease), color .35s var(--ease); }
.sc-ctrl button b { font-size: 1em; line-height: .9; letter-spacing: -.04em; }
.sc-ctrl button small { font-size: .26em; font-weight: 500; line-height: 1.1; }
.sc-ctrl button:hover { color: var(--mint); }
.sc-ctrl button[aria-checked="true"] { background: #fff; color: #000; }
.sc-ctrl button:active { transform: translateY(.02em); }
@media (max-width: 760px) {
  .showcase { min-height: 86svh; }
  .sc-ctrl { left: var(--gutter); right: auto; bottom: 7vh; font-size: 17vw; }
}

/* ------------------------------------------------------------ devices + creators: splits */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: center; }
.split-media { grid-column: 1 / 7; position: relative; overflow: hidden; }
.split-copy { grid-column: 8 / 13; }
.devices .split-media { aspect-ratio: 4 / 5; }
.life-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12); animation: slow-zoom 24s ease-in-out infinite alternate; }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1.5%); } }
.dev-list dd a { font-weight: 800; }
.dev-list kbd { background: rgba(0,0,0,.12); }
.creators .split-copy { grid-column: 1 / 6; }
.creators .split-media { grid-column: 7 / 13; overflow: visible; }
.creators .sec-lead, .creators dd { color: #fff; }
.creators .text-link { color: #fff; }
.cr-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 40px; }
@media (max-width: 900px) { .split-media, .split-copy, .creators .split-copy, .creators .split-media { grid-column: 1 / -1; } }

.mock { padding: 28px; background: #161616; color: #fff; display: grid; gap: 22px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { padding: 16px; background: #222; }
.mock-kpis span { display: block; font-size: var(--step-small); color: var(--grey); font-weight: 500; }
.mock-kpis b { display: block; font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; margin-top: 4px; }
.mock-kpis b.g { color: var(--mint); }
.mock-kpis small { font-size: var(--step-small); color: var(--grey); }
.mock-chart { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.mock-chart i { flex: 1; background: #3a3a3a; }
.mock-chart i.cur { background: var(--mint); }
.mock-med { position: absolute; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, #888 0 6px, transparent 6px 12px); } /* taste-skill-ignore: dashed median marker in a chart */
.mock-row { display: flex; align-items: center; gap: 18px; }
.mock-ring { position: relative; flex: none; }
.mock-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.25rem; }
.mock-row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 1rem; }
.mock-row li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; }
.mock-row li.ok::before { background: var(--mint); }
.mock-row li.wa::before { background: var(--orange); }
.mock-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-tags span { font-size: var(--step-small); font-weight: 800; padding: 6px 12px; background: #2a2a2a; color: var(--mint); }
@media (max-width: 480px) { .mock { padding: 16px; } .mock-kpis b { font-size: 1.35rem; } .mock-kpis small { display: none; } }

/* ------------------------------------------------------------ compare (a real table) */
.cmp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.cmp-grid h2 { grid-column: 1 / 5; position: sticky; top: 96px; }
.compare { grid-column: 6 / 13; width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.compare th, .compare td { padding: 18px 16px; text-align: center; border-bottom: 2px solid var(--tone); }
.compare thead th { font-weight: 800; font-size: var(--step-small); }
.compare tbody th { text-align: left; font-weight: 500; padding-left: 0; }
.compare .c-us { background: var(--mint); color: #000; }
.compare td svg { margin: 0 auto; }
.compare .yes svg { stroke-width: 2.8; }
.compare .no svg { opacity: .4; }
@media (max-width: 900px) { .cmp-grid h2, .compare { grid-column: 1 / -1; position: static; } .compare th, .compare td { padding: 14px 8px; } }

/* ------------------------------------------------------------ prose */
.prose { max-width: 1440px; }
.prose > * { max-width: 68ch; }
.prose p.first { font-size: var(--step-lead); line-height: 1.35; font-weight: 500; max-width: 40ch; }
.prose h1 { font-size: var(--step-head); }
.prose h2 { margin-top: 1.4em; font-size: var(--step-lead); letter-spacing: -.02em; line-height: 1.15; }
.prose ul.ticks { list-style: none; padding: 0; }
.prose ul.ticks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.prose ul.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; background: var(--mint); }
.prose ul.ticks li::after { content: ""; position: absolute; left: 4px; top: calc(.3em + 4px); width: 9px; height: 5px; border-left: 2.5px solid #000; border-bottom: 2.5px solid #000; transform: rotate(-45deg); }
.steps-list li { margin-bottom: 10px; }

/* ------------------------------------------------------------ faq: filled tiles */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.faq-side { grid-column: 1 / 5; position: sticky; top: 96px; }
.faq-side h2 { font-size: var(--step-head); }
.faq-list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { background: var(--tone); transition: background-color .25s; }
.faq details[open] { background: var(--mint); color: #000; }
.faq summary { cursor: pointer; min-height: 72px; padding: 22px 24px; font-weight: 500; font-size: 1.25rem; line-height: 1.3; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 16px 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 16px no-repeat; transition: transform .3s var(--ease); } /* taste-skill-ignore: flat plus sign drawn from two bars */
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 16px 3px no-repeat; transform: rotate(180deg); } /* taste-skill-ignore: flat minus sign */
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.faq details p { padding: 0 24px 24px; margin: 0; max-width: 52ch; font-size: 1.0625rem; }
@media (max-width: 900px) { .faq-side, .faq-list { grid-column: 1 / -1; position: static; } .faq summary { font-size: 1.125rem; min-height: 64px; } }

/* ------------------------------------------------------------ cta: a sentence with a blank */
.cta-form h2 { font-size: var(--step-display); margin: 0; }
.cta-line { display: flex; flex-wrap: wrap; align-items: stretch; gap: .12em; font: 800 var(--step-display)/1 var(--font); letter-spacing: -.04em; margin-top: .08em; }
.cta-line input { width: 7em; max-width: 100%; height: 1.05em; padding: 0 .15em; border: 0; outline: 0; background: #fff; color: #000; font: inherit; letter-spacing: inherit; transition: box-shadow .2s; }
.cta-line input::placeholder { color: #9a9a9a; }
.cta-line input:focus-visible { box-shadow: inset 0 -.08em 0 #000; }
.cta-line button { height: 1.05em; padding: 0 .2em; border: 0; background: #000; color: var(--mint); font: inherit; letter-spacing: inherit; transition: background-color .2s, transform .15s; }
.cta-line button:hover { background: #1c1c1c; color: #fff; }
.cta-line button:active { transform: translateY(.03em); }
.cta-note { margin: 28px 0 0; font-size: var(--step-body); max-width: 50ch; }
@media (max-width: 760px) { .cta-form h2, .cta-line { font-size: 15vw; } .cta-line input { width: 100%; } }

/* ------------------------------------------------------------ more tools */
.small-h { font-size: var(--step-lead); letter-spacing: -.02em; margin-bottom: 28px; }
.more { padding: clamp(72px, 8vw, 120px) 0; }
.tool-links { list-style: none; padding: 0; margin: 0; columns: 4 220px; column-gap: 24px; }
.tool-links li { break-inside: avoid; }
.tool-links a { display: inline-block; padding: 9px 0; font-weight: 500; text-decoration: none; transition: color .2s; }
.tool-links a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ footer: the name, built in blocks */
.site-footer { padding: clamp(64px, 8vw, 112px) 0 32px; }
.blockmark { display: flex; align-items: flex-end; gap: 4px; height: min(34svh, 320px); }
.blockmark span { flex: 1; height: var(--h); background: var(--b); color: #000; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; font: 800 min(14vw, 220px)/.74 var(--font); letter-spacing: -.04em; transition: height .5s var(--ease); }
.blockmark:hover span:nth-child(odd) { height: calc(var(--h) - 8%); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 32px; margin-top: 56px; }
.site-footer h2 { font-size: var(--step-body); letter-spacing: 0; line-height: 1.3; margin-bottom: 14px; color: var(--mint); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 2px; }
.site-footer li a { display: inline-block; padding: 5px 0; color: #fff; font-size: var(--step-body); text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.foot-contact p { color: #fff; max-width: 34ch; }
.legal { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; font-size: var(--step-small); color: var(--grey); }
.legal p { margin: 0; max-width: 80ch; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-contact { grid-column: 1 / -1; } .blockmark { height: 22svh; } .legal { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------------------ toast, entrances */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 99; padding: 14px 22px; background: #000; color: #fff; font-weight: 800; font-size: var(--step-small); box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); transition: .3s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* keep colour and opacity feedback, drop the travel */
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .acc-p, .dd-menu, .btn, .go, .paste, .sc-ctrl button, .blockmark span { transition-property: background-color, color, opacity !important; }
}

/* ==========================================================================
   Downloader results and insights: product UI (data-ui), recoloured.
   ========================================================================== */
/* ------------------------------------------------------------ results */
.results { text-align: left; }
.results:empty { display: none; }
.card { margin-top: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; animation: rise .45s cubic-bezier(.2,.8,.2,1); max-width: 920px; margin-left: auto; margin-right: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.99); } }
.card-head { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 20px; }
@media (max-width: 640px) { .card-head { grid-template-columns: 1fr; padding: 14px; } }
.thumb { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: .76rem; font-weight: 600; padding: 3px 8px; border-radius: 7px; }
.thumb .plat { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--pc); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.meta h2 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.meta .by { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.stat { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 0; background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ghost { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: .85rem; font-weight: 600; border-radius: 0; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); transition: .2s; }
.ghost:hover { border-color: var(--violet); color: var(--violet); text-decoration: none; }
.ghost.ok { color: var(--green); border-color: var(--green); }
.ghost[disabled] { opacity: .6; }
.tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; border: 0; background: none; padding: 14px 12px; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom: 3px solid var(--ink); }
.tabs .count { font-size: .72rem; padding: 1px 6px; border-radius: 0; background: var(--bg-2); margin-left: 3px; }
.panel { padding: 10px 20px 20px; }
.trim { margin: 12px 0 8px; border: 1px dashed var(--border-strong); border-radius: 14px; padding: 12px 14px; background: var(--surface-2); }
.trim summary { cursor: pointer; font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 8px; list-style: none; }
.trim summary::-webkit-details-marker { display: none; }
.trim-fields { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.trim-fields input, .subs-row select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; }
.trim-fields input { width: 100px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.q { font: 700 1.02rem var(--font-display); min-width: 78px; letter-spacing: -.01em; }
.badge { font-size: .66rem; font-weight: 800; padding: 3px 7px; border-radius: 6px; letter-spacing: .05em; background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); }
.badge.HD, .badge.\32 K { background: var(--grad-soft); color: var(--violet); border-color: transparent; }
.badge.\34 K { background: var(--grad); color: #000; border-color: transparent; }
.row .info { color: var(--muted); font-size: .88rem; flex: 1; min-width: 0; }
.dl { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 140px; height: 42px; padding: 0 18px; border-radius: 0; border: 0; background: var(--text); color: var(--paper); font-weight: 650; font-size: .88rem; white-space: nowrap; transition: transform .15s, filter .2s; }
.dl:hover { text-decoration: none; filter: brightness(1.15); }
.dl:active { transform: scale(.97); }
.dl .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); transition: width .35s; z-index: 0; }
.dl span, .dl svg { position: relative; z-index: 1; }
.dl.busy { background: var(--bg-2); color: var(--text); cursor: progress; box-shadow: inset 0 0 0 1px var(--border); }
.dl.done { background: var(--green); color: #fff; }
.dl.fail { background: var(--red); color: #fff; }
@media (max-width: 480px) { .dl { min-width: 112px; padding: 0 14px; } .row { gap: 10px; } .row .info { font-size: .78rem; } .q { min-width: 58px; } }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 20px; }
.item { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface-2); transition: .2s; }
.item .thumb { border-radius: 0; aspect-ratio: 4 / 5; }
.item .dl { width: calc(100% - 16px); margin: 8px; min-width: 0; }
.item.active { outline: 2px solid var(--violet); outline-offset: -1px; }
.item button.pick { display: block; width: 100%; border: 0; padding: 0; background: none; }
.items-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px 0; flex-wrap: wrap; }
.caption p { white-space: pre-wrap; word-break: break-word; font-size: .93rem; max-height: 240px; overflow: auto; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.tags span { font-size: .8rem; padding: 4px 10px; border-radius: 0; background: var(--grad-soft); color: var(--violet); font-weight: 600; }
.subs-row select { flex: 1; min-width: 0; }
.empty { color: var(--muted); padding: 18px 0; font-size: .93rem; }
.thumb-big { border-radius: 14px; overflow: hidden; margin: 10px 0 12px; border: 1px solid var(--border); }
.err-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.err-card .x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); font-weight: 800; }
.err-card p { margin: 0; color: var(--muted); }
.skeleton { padding: 20px; display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.sk { border-radius: 12px; background: linear-gradient(90deg, var(--bg-2) 25%, var(--border-strong) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 640px) { .skeleton { grid-template-columns: 1fr; } }
.batch-list { list-style: none; padding: 0; margin: 0; }
.batch-list li { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.batch-list li:last-child { border-bottom: 0; }
.batch-list img { width: 76px; height: 50px; object-fit: cover; border-radius: 9px; background: var(--bg-2); flex: none; }
.batch-list .t { flex: 1; min-width: 0; font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-list .t small { display: block; color: var(--muted); font-weight: 500; }

/* history */
.history { padding-top: 40px; max-width: 920px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; }
.sec-head h2 { font-size: 1.4rem; }
.text-btn { border: 0; background: none; color: var(--violet); font-weight: 600; }
.history ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.history li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.history .t { flex: 1; min-width: 0; }
.history .t b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history .t small { color: var(--muted); }

/* ------------------------------------------------------------ insights panel */
.ins { display: grid; gap: 16px; padding-top: 8px; }
.ins h3 { font-size: 1.25rem; margin-bottom: 2px; }
.ins h4 { font: 650 1rem/1.3 var(--font-display); letter-spacing: -.01em; margin: 0; }
.ins p { margin: 0; }
.small { font-size: .82rem; }
.ins-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ghost.sm { padding: 5px 11px; font-size: .78rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.kpi-l { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kpi-v { display: block; font: 700 1.55rem/1.2 var(--font-display); letter-spacing: -.03em; margin: 4px 0 2px; color: var(--text); }
.kpi small { display: block; font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-v { font-size: 1.3rem; } }
.ins-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.ins-col { display: grid; gap: 16px; }
@media (max-width: 760px) { .ins-grid { grid-template-columns: minmax(0, 1fr); } }
.ins-card { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.ins-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ins-card-h h4 .muted { font-weight: 500; font-size: .85rem; margin-left: 4px; }

.seo-top { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.ring { position: relative; flex: none; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 750 1.6rem var(--font-display); letter-spacing: -.03em; }
.checks { list-style: none; padding: 0; margin: 0; }
.ck { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.ck b { display: block; font-size: .88rem; font-weight: 600; }
.ck small { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.ck-i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; }
.ck.good .ck-i { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.ck.warn .ck-i { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #d97706; }
.ck.bad .ck-i { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.ins .tags { max-height: 180px; overflow: auto; margin: 0 0 8px; }
.kw { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; counter-reset: k; }
.kw li { display: grid; grid-template-columns: minmax(0, 9rem) 1fr; align-items: center; gap: 10px; font-size: .86rem; font-weight: 550; }
.kw li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw li i { display: block; height: 8px; width: var(--w); min-width: 6px; border-radius: 0 4px 4px 0; background: var(--orange); opacity: .85; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.specs dt { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-size: .9rem; font-weight: 550; overflow-wrap: anywhere; }
.chapters { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow: auto; }
.chapters li { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); font-size: .88rem; }
.chapters time { flex: none; min-width: 3.4rem; font-variant-numeric: tabular-nums; color: var(--violet); font-weight: 600; }

.bench-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.outlier b { font: 750 2.2rem/1 var(--font-display); letter-spacing: -.04em; color: var(--ink); margin-right: 10px; }
.outlier span { font-weight: 600; font-size: .95rem; }
.outlier small { display: block; margin-top: 6px; font-size: .8rem; }
.chart { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .bar { fill: color-mix(in srgb, var(--text) 22%, transparent); transition: fill .15s; }
.chart .bar.cur { fill: var(--violet); }
.chart .bar.hov { fill: color-mix(in srgb, var(--text) 45%, transparent); }
.chart .bar.cur.hov { fill: var(--pink); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .base { stroke: var(--border-strong); stroke-width: 1; }
.chart .median { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.median-l { position: absolute; right: 0; transform: translateY(-120%); font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--surface); padding: 0 4px; border-radius: 4px; pointer-events: none; }
.chart-x { display: flex; justify-content: center; text-align: center; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.tip { position: absolute; top: -8px; transform: translate(-50%, -100%); width: 180px; padding: 8px 10px; border-radius: 10px; background: var(--text); color: var(--paper); font-size: .78rem; pointer-events: none; box-shadow: var(--shadow); z-index: 3; }
.tip b { display: block; font-size: .85rem; }
.tip span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: .85; }
.tip em { display: inline-block; margin-top: 4px; font-style: normal; font-weight: 700; color: var(--mint); }
.chapters time { color: var(--ink); }

/* ---------- WhatsApp Status maker */
.wa { display: grid; gap: 14px; }
.wa-lead { margin: 0; color: var(--muted); font-size: .92rem; }
.wa-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.wa-opt { position: relative; cursor: pointer; }
.wa-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wa-opt span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); background: var(--surface); transition: border-color .2s, background .2s; }
.wa-opt small { color: var(--muted); font-size: .8rem; }
.wa-opt:hover span { border-color: var(--text); }
.wa-opt input:checked + span { border: 2px solid var(--text); padding: 11px 13px; background: var(--surface-2); }
.wa-opt input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.wa > .dl { justify-self: start; }
.wa-parts:empty { display: none; }
.wa-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.wa-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 200px)); gap: 12px; margin-top: 12px; }
.wa-part { display: grid; gap: 8px; align-content: start; }
.wa-part video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.wa-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.wa-meta span { color: var(--muted); }
.wa-btns { display: grid; gap: 6px; }
.wa-btns .ghost { justify-content: center; }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; background: #25d366; color: #000; font-weight: 700; font-size: .86rem; cursor: pointer; transition: filter .2s; }
.btn-wa:hover { filter: brightness(1.08); }
.btn-wa:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.wa-tip { margin: 12px 0 0; font-size: .85rem; }
.wa-steps { margin: 12px 0 4px; padding: 12px 14px 12px 34px; border: 1px solid #25d366; border-radius: 12px; font-size: .92rem; line-height: 1.5; }
.wa-steps li + li { margin-top: 4px; }
.drop { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; background: #fff; color: #000; text-align: center; cursor: pointer; outline: 3px dashed transparent; outline-offset: 3px; transition: outline-color .2s; }
.drop:hover, .drop.over, .drop:focus-within { outline-color: var(--mint); }
.drop-t { font-weight: 800; font-size: var(--step-body); }
.drop-s { font-size: var(--step-small); color: #555; }
.drop.hidden, .input-card.hidden { display: none; }
.card .thumb video { width: 100%; height: 100%; object-fit: cover; }
