/* FreshTake landing site: warm paper, Geist with one serif accent, the self-editing headline. No framework.
   Shared by the home page, the privacy policy and allauth's pages. */
/* Geist, self-hosted (fonts/SOURCE.txt). */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* The app's light token set (frontend/src/ui/app.css): warm paper, one blue accent. */
  --bg: oklch(0.985 0.005 85);
  --panel: oklch(0.995 0.003 85);
  --sidebar: oklch(0.968 0.008 85); /* the band for tinted sections, a step below the page */
  --surface: oklch(0.955 0.009 85);
  --surface-2: oklch(0.925 0.012 85);
  --ink: oklch(0.21 0.012 60);
  --ink-2: oklch(0.42 0.014 60);
  --ink-3: oklch(0.51 0.014 60);
  --line: oklch(0.905 0.01 85);
  --line-strong: oklch(0.83 0.014 85);
  --field-line: oklch(0.65 0.014 75);
  --accent: oklch(0.53 0.2 264);
  --accent-hover: oklch(0.47 0.2 264);
  --accent-ink: oklch(0.5 0.2 264);
  --accent-soft: oklch(0.95 0.028 264);
  --info-ink: oklch(0.38 0.15 264);
  --toast-bg: oklch(0.24 0.014 60);
  --on-accent: oklch(1 0 0);
  --rec: oklch(0.62 0.21 25);
  --ok: oklch(0.5 0.13 155);
  --ok-ink: oklch(0.38 0.1 155);
  --ok-soft: oklch(0.94 0.04 155);
  --error: oklch(0.52 0.19 27);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  /* The app's radius family: controls 8, menus 10, cards 12, windows 16. */
  --r-sm: 6px; --r-btn: 8px; --r-md: 10px; --r-lg: 12px; --r-xl: 16px;

  /* The app's motion: enter 200 ms ease-out, exit 150 ms, hover 120 ms. The headline strike is the one authored moment. */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-hover: 120ms; --t-exit: 150ms; --t-enter: 200ms;
  --t-fast: 150ms; --t-med: 200ms;
  --shadow-pop: 0 0 0 1px oklch(0.21 0.012 60 / .05), 0 2px 4px oklch(0.21 0.012 60 / .04), 0 16px 40px -16px oklch(0.21 0.012 60 / .24);
  --shadow-window: 0 0 0 1px oklch(0.21 0.012 60 / .05), 0 32px 80px -32px oklch(0.21 0.012 60 / .32);
  --shadow-card: 0 1px 2px oklch(0.21 0.012 60 / .04), 0 14px 36px -20px oklch(0.21 0.012 60 / .35);
  --nav-active: oklch(1 0 0);
  --nav-active-shadow: 0 0 0 1px oklch(0.21 0.012 60 / .06), 0 1px 2px oklch(0.21 0.012 60 / .08);
  --glass: oklch(0.995 0.003 85 / .84);
  --wrap: 1160px;
  color-scheme: light;
}

/* Dark: the app's dark set (frontend/src/ui/app.css), tinted toward the accent blue, never pure black.
   Chosen before first paint by the script in base.html, from retake.theme (shared with the app) or the system. */
:root[data-theme="dark"] {
  --bg: oklch(0.155 0.01 264);
  --panel: oklch(0.19 0.012 264);
  --sidebar: oklch(0.14 0.01 264); /* the band for tinted sections, a step below the page as in light */
  --surface: oklch(0.225 0.013 264);
  --surface-2: oklch(0.265 0.015 264);
  --ink: oklch(0.96 0.005 264);
  --ink-2: oklch(0.8 0.012 264);
  --ink-3: oklch(0.7 0.014 264);
  --line: oklch(0.26 0.014 264);
  --line-strong: oklch(0.35 0.016 264);
  --field-line: oklch(0.52 0.016 264);
  --accent: oklch(0.57 0.19 264);
  --accent-hover: oklch(0.52 0.19 264);
  --accent-ink: oklch(0.78 0.12 264);
  --accent-soft: oklch(0.28 0.06 264);
  --info-ink: oklch(0.86 0.08 264);
  --toast-bg: oklch(0.29 0.016 264);
  --on-accent: oklch(1 0 0);
  --rec: oklch(0.66 0.2 25);
  --ok: oklch(0.78 0.13 155);
  --ok-ink: oklch(0.78 0.13 155);
  --ok-soft: oklch(0.25 0.05 155);
  --error: oklch(0.76 0.14 25);
  --nav-active: oklch(0.245 0.015 264);
  --nav-active-shadow: 0 0 0 1px oklch(1 0 0 / .05);
  --glass: oklch(0.19 0.012 264 / .8);
  --shadow-pop: 0 0 0 1px oklch(1 0 0 / .07), 0 16px 40px -12px oklch(0 0 0 / .6);
  --shadow-window: 0 0 0 1px oklch(1 0 0 / .07), 0 32px 80px -24px oklch(0 0 0 / .7);
  --shadow-card: 0 0 0 1px oklch(1 0 0 / .03), 0 14px 36px -20px oklch(0 0 0 / .65);
  color-scheme: dark;
}

/* Lucide glyphs as masks, in the app's stroke (1.75): check, minus, chevron-down. */
:root {
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: color-mix(in oklch, var(--accent) 28%, transparent); }
* { scrollbar-color: var(--line-strong) transparent; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: var(--s2) var(--s4); border-radius: var(--r-sm); }
.skip:focus { top: var(--s3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
@media (max-width: 600px) { .wrap { padding: 0 var(--s4); } }
.quiet { color: var(--ink-3); }
.muted { color: var(--ink-2); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in oklch, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t-enter) var(--ease-out); }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
/* The logo's clapper (templates/brand/mark.html): the body takes the text colour, the arm the accent.
   On hover of a .logo (and once on arrival, landing.js) the arm lifts and claps shut, and the lens blinks record red. */
.logo-mark { width: 24px; height: 24px; flex: none; overflow: visible; }
.logo-mark .lm-body { fill: currentColor; }
.logo-mark .lm-bar { fill: var(--accent); transform-origin: 18px 42px; transform: rotate(-15deg); }
.logo-mark .lm-shot { fill: var(--rec); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .logo:hover .lm-bar, .logo-mark.is-take .lm-bar { animation: lm-clap 900ms both; }
  .logo:hover .lm-shot, .logo-mark.is-take .lm-shot { animation: lm-shot 900ms both; }
}
@keyframes lm-clap {
  0% { transform: rotate(-15deg); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  32% { transform: rotate(-38deg); animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  48% { transform: rotate(3deg); animation-timing-function: ease-out; }
  56% { transform: rotate(-4deg); animation-timing-function: ease-in; }
  63%, 80% { transform: rotate(3deg); animation-timing-function: ease-in-out; }
  100% { transform: rotate(-15deg); }
}
@keyframes lm-shot { 0%, 45% { opacity: 0; } 50%, 72% { opacity: 1; } 100% { opacity: 0; } }
.logo-sm { font-size: 16px; }
.logo-sm .logo-mark { width: 20px; height: 20px; }
/* The links sit in one pill in the middle of the bar. */
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px; font-size: 14px; border-radius: 999px; background: color-mix(in oklch, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.nav-links a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; text-decoration: none; transition: color var(--t-hover) ease-out, background var(--t-hover) ease-out; }
.nav-links a:hover { color: var(--ink); background: var(--panel); }
.nav-actions { display: flex; gap: var(--s2); align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } }
/* Signed in on a narrow phone, Open FreshTake matters more than the store button (the hero has its own). */
@media (max-width: 440px) { .nav-actions.is-user [data-store] { display: none; } }

/* ---------- buttons: pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: 999px; border: 1px solid transparent; font: 600 15px/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--t-hover) ease-out, border-color var(--t-hover) ease-out, box-shadow var(--t-hover) ease-out, transform var(--t-hover) ease-out, color var(--t-hover) ease-out; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 oklch(1 0 0 / .16), 0 1px 2px oklch(0.2 0.1 264 / .25), 0 8px 24px -12px oklch(0.53 0.2 264 / .6); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--panel); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 1px 2px oklch(0.21 0.012 60 / .05); }
.btn-secondary:hover { background: var(--surface); border-color: color-mix(in oklch, var(--line-strong) 60%, var(--ink-3)); }
.btn-sm { min-height: 36px; padding: 0 var(--s4); font-size: 14px; }
.btn-block { width: 100%; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { padding: var(--s7) 0 var(--s9); }
.hero-text { max-width: 760px; }
.headline { font-weight: 560; font-size: clamp(44px, 7.2vw, 88px); line-height: 1.02; letter-spacing: -.038em; margin-bottom: var(--s5); }
.headline-was, .headline-now { display: block; width: fit-content; }
.headline-was { position: relative; font-weight: 500; color: var(--ink-3); }
.headline-was::after { content: ""; position: absolute; left: -1%; right: -1%; top: 53%; height: .075em; border-radius: 99px; background: var(--accent); transform: scaleX(0); transform-origin: left center; animation: strike 600ms var(--ease-out) 900ms forwards; }
@keyframes strike { to { transform: scaleX(1); } }
.headline-now { font-family: var(--font); font-style: normal; font-weight: 680; letter-spacing: -.042em; line-height: 1.02; color: var(--ink); margin-top: .04em; }
.serif { font-family: var(--font); font-style: normal; font-weight: 650; letter-spacing: -.035em; color: var(--accent-ink); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; margin-bottom: var(--s5); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s4); }
.ctas-center { justify-content: center; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 16px; height: 16px; background: var(--accent-ink); -webkit-mask: var(--i-check) center / 16px no-repeat; mask: var(--i-check) center / 16px no-repeat; }

/* Hero live transformation showcase: raw recording on the left, FreshTake render on the right. */
.hero-showcase { margin: var(--s7) 0 0; }
.hs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.6fr); gap: var(--s3) var(--s3); align-items: center; }
.hs-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.hs-label { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font); color: var(--ink-2); }
.hs-label.is-accent { color: var(--accent-ink); }
.hs-rec, .hs-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hs-rec { background: var(--rec); }
.hs-dot { background: var(--accent); }
.hs-meta, .hs-tc { font: 500 12px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-controls { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hs-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 500 12px/1 var(--font); cursor: pointer; transition: background var(--t-hover) ease-out, border-color var(--t-hover) ease-out, color var(--t-hover) ease-out; }
.hs-btn:hover { background: var(--surface); }
.hs-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hs-btn .hs-i-play, .hs-btn .hs-i-pause { fill: currentColor; stroke: none; }
.hs-btn .hs-i-sound, .hs-btn .hs-i-play { display: none; }
.is-unmuted [data-hero-mute] { border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); background: var(--accent-soft); color: var(--info-ink); }
.is-unmuted [data-hero-mute] .hs-i-muted { display: none; }
.is-unmuted [data-hero-mute] .hs-i-sound { display: block; }
.is-paused [data-hero-toggle] .hs-i-pause { display: none; }
.is-paused [data-hero-toggle] .hs-i-play { display: block; }

.hs-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.hs-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-frame-raw { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
.hs-frame-render { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-window), 0 36px 80px -36px oklch(0.21 0.012 60 / .42); transition: transform 340ms cubic-bezier(.22, 1, .36, 1), box-shadow 340ms var(--ease-out), border-color 220ms ease-out; transform-origin: right center; z-index: 2; }
.hs-frame-render video { cursor: pointer; }
@media (hover: hover) and (min-width: 901px) {
  .hs-frame-render:hover { transform: scale(1.12) translateY(-6px); border-color: color-mix(in oklch, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 32%, transparent), 0 48px 110px -24px oklch(0.12 0.03 264 / .72); z-index: 5; }
  .hs-grid:has(.hs-frame-render:hover) .hs-raw { opacity: .48; transform: scale(.97); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
  .hs-grid:has(.hs-frame-render:hover) .hs-arrow { opacity: .3; transition: opacity 300ms var(--ease-out); }
}

/* Attention-getting pulsing unmute pill inside the FreshTake video while muted */
.hs-unmute-cta { position: absolute; left: 16px; top: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid oklch(1 0 0 / .24); border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 13px/1 var(--font); cursor: pointer; box-shadow: 0 8px 24px -6px oklch(0.35 0.2 264 / .75); animation: hs-unmute-pop 2.1s cubic-bezier(.22, 1, .36, 1) infinite; transition: background var(--t-hover) ease-out, opacity 200ms ease-out, transform 200ms var(--ease-out); }
.hs-unmute-cta:hover { background: var(--accent-hover); }
.hs-unmute-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hs-unmute-cta::after { content: ""; position: absolute; inset: -2px; border-radius: 999px; border: 2px solid oklch(1 0 0 / .75); opacity: 0; pointer-events: none; animation: hs-unmute-ring 2.1s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes hs-unmute-pop {
  0%, 100% { transform: scale(1); }
  18%      { transform: scale(1.06); }
  36%      { transform: scale(1); }
}
@keyframes hs-unmute-ring {
  0%   { opacity: .8; transform: scale(1); }
  65%  { opacity: 0;  transform: scale(1.22, 1.55); }
  100% { opacity: 0;  transform: scale(1.22, 1.55); }
}
.is-unmuted .hs-unmute-cta { opacity: 0; pointer-events: none; animation: none; }
.is-unmuted .hs-unmute-cta::after { animation: none; }

/* Expanded full-cinema modal preview */
.hs-dialog { width: min(94vw, 1140px); max-width: 1140px; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow-window); overflow: hidden; }
.hs-dialog::backdrop { background: oklch(0.1 0.01 264 / .76); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hs-dialog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hs-dialog-stage { background: #0b0d12; aspect-ratio: 16 / 9; }
.hs-dialog-stage video { width: 100%; height: 100%; display: block; object-fit: contain; }
.hs-dialog.is-unmuted [data-hero-dialog-mute] { border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); background: var(--accent-soft); color: var(--info-ink); }
.hs-dialog.is-unmuted [data-hero-dialog-mute] .hs-i-muted { display: none; }
.hs-dialog.is-unmuted [data-hero-dialog-mute] .hs-i-sound { display: block; }

.hs-arrow { width: 44px; height: 44px; margin-top: 38px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--accent-ink); display: grid; place-items: center; box-shadow: var(--shadow-card); }
.hs-arrow svg { width: 18px; height: 18px; }

.hs-pills { grid-column: 3; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.hs-pills li { position: relative; overflow: hidden; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); font: 500 13px/1 var(--font); isolation: isolate; transition: border-color var(--t-enter) var(--ease-out), color var(--t-enter) var(--ease-out); }
.hs-pills li::before { content: ""; position: absolute; inset: 0; background: var(--accent-soft); transform: scaleX(var(--p, 0)); transform-origin: left center; z-index: 0; }
.hs-pills li button { position: relative; z-index: 1; min-height: 32px; padding: 0 12px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 999px; }
.hs-pills li.on { color: var(--info-ink); border-color: color-mix(in oklch, var(--accent) 42%, var(--line)); }
.hs-pills li.done { color: var(--ink); }

.hs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px var(--s5); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.hs-caption { font-size: 14px; color: var(--ink-3); }
.hs-beta-link { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.2 var(--font); color: var(--ink); text-decoration: none; padding: 4px 0; }
.hs-beta-link:hover span:last-child { text-decoration: underline; }

@media (max-width: 900px) {
  .hs-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hs-render { order: 1; }
  .hs-pills { order: 2; grid-column: 1; }
  .hs-arrow { display: none; }
  .hs-raw { order: 3; max-width: 520px; width: 100%; }
}
@media (max-width: 600px) {
  .hs-btn { height: 36px; padding: 0 12px; }
  .hs-pills li button { min-height: 36px; }
}
/* Light/dark media helper shared by product screenshots across the page. */
:root[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none; }

/* The before and after: raw take on the left (about 40%), FreshTake render on the right (about 60%),
   an arrow between, the chips under the render. Phones stack them: render, chips, then the raw as a still. */
.demo { margin: var(--s8) 0 0; }
.how-h3 { margin-top: var(--s8); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.how-demo { margin-top: var(--s5); }
/* The launch video: one window the width of the page, the player's own controls (media-chrome), the chapter chips under it. */
.launch media-controller { display: block; width: 100%; aspect-ratio: 16 / 9; --media-background-color: var(--surface); --media-primary-color: #fff; --media-secondary-color: transparent; --media-control-background: transparent; --media-control-hover-background: oklch(1 0 0 / .14); --media-control-padding: 8px; --media-font-family: var(--font); --media-font-size: 13px; --media-range-track-height: 4px; --media-range-thumb-width: 12px; --media-range-thumb-height: 12px; --media-range-bar-color: var(--accent); --media-range-track-background: oklch(1 0 0 / .25); --media-range-track-border-radius: 2px; --media-tooltip-display: none; }
.launch media-controller video { position: static; width: 100%; height: 100%; object-fit: cover; cursor: default; }
.launch media-control-bar { width: 100%; padding: 14px 10px 8px; background: linear-gradient(transparent, oklch(0 0 0 / .62)); gap: 2px; }
.launch media-time-range { flex: 1; min-width: 60px; }
.launch media-volume-range { width: 72px; }
.launch media-play-button[slot="centered-chrome"] { --media-control-background: oklch(0 0 0 / .55); --media-control-hover-background: oklch(0 0 0 / .72); width: 72px; height: 72px; border-radius: 50%; padding: 0; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 8px 24px -8px oklch(0 0 0 / .6); }
.launch media-play-button[slot="centered-chrome"] svg { width: 32px; height: 32px; }
.launch media-controller[mediahasplayed] media-play-button[slot="centered-chrome"] { display: none; }
.launch media-controller:not([mediahasplayed]) media-control-bar { opacity: 0; }
.launch media-controller:not([mediahasplayed]):hover media-control-bar, .launch media-controller:not([mediahasplayed]):focus-within media-control-bar { opacity: 1; }
@media (max-width: 600px) { .launch media-play-button[slot="centered-chrome"] { width: 56px; height: 56px; } .launch media-volume-range { display: none; } }
.launch .take-label { margin-bottom: var(--s3); }
.launch .window { width: 100%; position: relative; }
/* Animated sound prompt over the launch film while muted — draws the eye so visitors hear the music & voice */
.launch-unmute-cta { position: absolute; right: 18px; top: 18px; z-index: 4; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px 0 13px; border: 1px solid oklch(1 0 0 / .26); border-radius: 999px; background: color-mix(in oklch, var(--accent) 92%, #0a0c11); color: #fff; font: 600 13.5px/1 var(--font); letter-spacing: -.01em; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px -8px oklch(0.32 0.22 264 / .85), 0 0 0 1px oklch(1 0 0 / .12) inset; animation: launch-sound-bob 2.2s cubic-bezier(.22, 1, .36, 1) infinite; transition: background var(--t-hover) ease-out, opacity 240ms ease-out, transform 240ms ease-out; }
.launch-unmute-cta:hover { background: var(--accent-hover); transform: scale(1.04); }
.launch-unmute-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.launch-unmute-cta::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid oklch(1 0 0 / .72); opacity: 0; pointer-events: none; animation: launch-sound-ring 2.2s cubic-bezier(.16, 1, .3, 1) infinite; }
.launch-unmute-icon { display: inline-flex; align-items: center; justify-content: center; animation: launch-icon-wiggle 2.2s ease-in-out infinite; }
.launch-unmute-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.launch-unmute-eq i { display: block; width: 2.5px; border-radius: 2px; background: currentColor; animation: launch-eq-bar 1.1s ease-in-out infinite; }
.launch-unmute-eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.launch-unmute-eq i:nth-child(2) { height: 12px; animation-delay: .18s; }
.launch-unmute-eq i:nth-child(3) { height: 8px; animation-delay: .36s; }
@keyframes launch-sound-bob { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.06); } 40% { transform: scale(1); } }
@keyframes launch-sound-ring { 0% { opacity: .82; transform: scale(1); } 65% { opacity: 0; transform: scale(1.18, 1.48); } 100% { opacity: 0; transform: scale(1.18, 1.48); } }
@keyframes launch-icon-wiggle { 0%, 60%, 100% { transform: rotate(0deg); } 12% { transform: rotate(-10deg) scale(1.08); } 24% { transform: rotate(9deg) scale(1.08); } 36% { transform: rotate(-5deg); } }
@keyframes launch-eq-bar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
/* Also gently highlight the control bar's mute button while muted */
.launch:not(.is-unmuted) media-mute-button { border-radius: 999px; --media-control-background: color-mix(in oklch, var(--accent) 78%, transparent); animation: launch-sound-bob 2.2s cubic-bezier(.22, 1, .36, 1) infinite; }
.launch.is-unmuted .launch-unmute-cta { opacity: 0; pointer-events: none; transform: translateY(-6px) scale(.94); animation: none; }
.launch.is-unmuted .launch-unmute-cta::after, .launch.is-unmuted .launch-unmute-icon, .launch.is-unmuted .launch-unmute-eq i { animation: none; }
@media (prefers-reduced-motion: reduce) { .launch-unmute-cta, .launch-unmute-cta::after, .launch-unmute-icon, .launch-unmute-eq i, .launch:not(.is-unmuted) media-mute-button { animation: none; } }
@media (max-width: 600px) { .launch-unmute-cta { right: 12px; top: 12px; min-height: 36px; padding: 0 13px 0 11px; font-size: 12.5px; } }
.launch .chips { justify-content: center; margin-top: var(--s4); }
.launch .chips li { padding: 0; }
.launch .chips li button { position: relative; z-index: 1; padding: 7px var(--s3); border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 999px; }
.launch .chips li button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.launch .demo-caption { max-width: 78ch; }
.pair { display: grid; grid-template-columns: minmax(0, 2fr) 40px minmax(0, 3fr); gap: var(--s4) var(--s3); align-items: center; }
.take { min-width: 0; }
.take-label { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font: 500 13px/1 var(--font); color: var(--ink-2); margin-bottom: var(--s2); }
.take-label-retake { color: var(--accent-ink); }
/* Centred on the row, then nudged by half a label so it sits level with the two screens. */
.take-arrow { width: 40px; height: 40px; margin-top: 21px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--accent-ink); display: grid; place-items: center; box-shadow: var(--shadow-card); }
.take-arrow svg { width: 18px; height: 18px; }
.window { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-window); overflow: hidden; }
.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); margin-right: 6px; vertical-align: 1px; }
.timecode { font: 500 12px/1 var(--mono); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.screen { position: relative; aspect-ratio: 16 / 9; background: var(--surface); }
.screen-raw { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px -8px oklch(0.53 0.2 264 / .6); transition: background var(--t-hover) ease-out, transform var(--t-hover) ease-out; }
.play:hover { background: var(--accent-hover); }
.play:active { transform: scale(.96); }
.play[hidden] { display: none; }
.play .i-pause, .play[data-state="playing"] .i-play { display: none; }
.play[data-state="playing"] .i-pause { display: block; margin: 0; }
/* While playing, the pause control waits out of sight until the pointer or the keyboard comes to it. */
.play[data-state="playing"] { opacity: 0; transition: opacity var(--t-exit) ease-out; }
.screen:hover .play[data-state="playing"], .play[data-state="playing"]:focus-visible { opacity: 1; transition-duration: var(--t-enter); }
@media (hover: none) { .play[data-state="playing"] { opacity: .85; width: 48px; height: 48px; inset: auto var(--s3) var(--s3) auto; margin: 0; } .play[data-state="playing"] svg { width: 20px; height: 20px; } }
.screen video { cursor: pointer; }
.play svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; }

.chips { grid-column: 3; display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.chips li { position: relative; overflow: hidden; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px var(--s3); isolation: isolate; transition: color var(--t-enter) var(--ease-out), border-color var(--t-enter) var(--ease-out); }
.chips li::before { content: ""; position: absolute; inset: 0; background: var(--accent-soft); transform: scaleX(var(--p, 0)); transform-origin: left center; z-index: 0; }
.chips li span { position: relative; z-index: 1; }
.chips li.on { color: var(--accent-ink); border-color: color-mix(in oklch, var(--accent) 35%, var(--line)); }
.chips li.done { color: var(--ink); }
.demo-caption { margin: var(--s4) auto 0; max-width: 72ch; text-align: center; font-size: 14px; color: var(--ink-3); }
@media (max-width: 820px) {
  .pair { grid-template-columns: 1fr; gap: var(--s4); }
  .take-retake { order: 1; }
  .chips { order: 2; grid-column: 1; justify-content: center; }
  .take-arrow { display: none; }
  .take-raw { order: 3; width: 72%; margin: var(--s2) auto 0; }
}

/* ---------- sections ---------- */
.section { padding: var(--s10) 0; }
.section-tint { background: var(--sidebar); }
.section-title { font-weight: 560; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.035em; max-width: 24ch; margin-bottom: var(--s7); }
.section-title .quiet { display: block; font-family: var(--font); font-style: normal; font-weight: 500; letter-spacing: -.032em; color: var(--ink-3); margin-bottom: 4px; }
.soon { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--s3); margin-left: 10px; vertical-align: .4em; border-radius: 999px; background: var(--accent-soft); color: var(--info-ink); font: 500 13px/1 var(--font); letter-spacing: 0; white-space: nowrap; font-style: normal; }
.soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 600px) { .section { padding: var(--s8) 0; } .section-title { margin-bottom: var(--s6); } }

/* A section in the dark set, whatever the page's theme: the feature bento. */
.section-dark { --bg: oklch(0.155 0.01 264); --panel: oklch(0.19 0.012 264); --sidebar: oklch(0.14 0.01 264); --surface: oklch(0.225 0.013 264); --surface-2: oklch(0.265 0.015 264); --ink: oklch(0.96 0.005 264); --ink-2: oklch(0.8 0.012 264); --ink-3: oklch(0.7 0.014 264); --line: oklch(0.26 0.014 264); --line-strong: oklch(0.35 0.016 264); --accent-ink: oklch(0.78 0.12 264); --accent-soft: oklch(0.28 0.06 264); --toast-bg: oklch(0.29 0.016 264); --shadow-card: 0 0 0 1px oklch(1 0 0 / .03), 0 14px 36px -20px oklch(0 0 0 / .65);
  background: var(--bg); color: var(--ink); color-scheme: dark; }
:root[data-theme="dark"] .section-dark { --bg: oklch(0.12 0.01 264); --panel: oklch(0.165 0.012 264); --surface: oklch(0.2 0.013 264); --surface-2: oklch(0.24 0.015 264); --line: oklch(0.235 0.014 264); --line-strong: oklch(0.32 0.016 264); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.step { border-top: 1px solid var(--line-strong); padding-top: var(--s4); }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 500 12px/1 var(--mono); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: var(--s3) 0 var(--s2); }
.step p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: var(--s6); } }

/* Adaptive feature bento: warm paper in light, deep blue-black in dark, hairline section dividers. */
.section-features { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5); }
.feature { grid-column: span 3; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.feature.span-3 { grid-column: span 3; }
.feature-media { background: var(--surface); border-bottom: 1px solid var(--line); }
.feature-media img { width: 100%; }
.feature-text { padding: var(--s5); display: flex; flex-direction: column; }
.feature h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: var(--s2); color: var(--ink); }
.feature p { color: var(--ink-2); font-size: 16px; }
.feature-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; }
.feature-wide .feature-media { border-bottom: 0; border-right: 1px solid var(--line); display: flex; align-items: center; }
.feature-wide .feature-text { align-self: center; padding: var(--s6); }
.editor-list { margin: var(--s3) 0 var(--s4); padding: 0; list-style: none; }
.editor-list li { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.editor-list li::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--accent-ink); -webkit-mask: var(--i-check) center / 18px no-repeat; mask: var(--i-check) center / 18px no-repeat; }
.feature-text .note { font-size: 14px; color: var(--ink-3); }

/* ---------- 1. Prompt to Record (Beta) spotlight card ---------- */
.feature-prompt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); }
.feature-prompt .prompt-copy { order: 1; padding: var(--s6); gap: 0; }
.feature-prompt .prompt-stage-wrap { order: 2; border-right: 0; border-left: 1px solid var(--line); padding: var(--s5); background: radial-gradient(circle at 80% 10%, color-mix(in oklch, var(--accent) 10%, transparent), transparent 60%), var(--surface); display: flex; align-items: center; justify-content: center; }
.prompt-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); }
.beta-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--info-ink); font: 600 12px/1 var(--font); letter-spacing: .01em; }
.beta-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prompt-kicker { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.feature-prompt h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -.03em; margin-bottom: var(--s3); }
.prompt-steps { list-style: none; margin: var(--s5) 0; padding: 0; display: grid; gap: var(--s2); }
.pstep { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font: 500 14px/1.3 var(--font); text-align: left; cursor: pointer; transition: border-color var(--t-hover) ease-out, background var(--t-hover) ease-out, color var(--t-hover) ease-out; }
.pstep:hover { color: var(--ink); border-color: var(--line-strong); }
.pstep.is-active { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 42%, var(--line)); color: var(--info-ink); }
.pstep-n { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font: 500 11px/1 var(--mono); color: var(--ink-3); }
.pstep.is-active .pstep-n { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s2); }

/* Animated 3-act browser stage inside Prompt to Record */
.pstage { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-window); overflow: hidden; }
.pstage-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); height: 40px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pstage-dots { display: inline-flex; gap: 6px; flex: none; }
.pstage-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pstage-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font: 500 12px/1.2 var(--mono); color: var(--ink-2); }
.pstage-status { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font: 500 12px/1 var(--font); white-space: nowrap; }
.pstage-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
[data-phase="1"] .pstage-status { background: var(--surface-2); color: var(--ink-2); }
[data-phase="2"] .pstage-status { background: color-mix(in oklch, var(--rec) 14%, var(--panel)); color: var(--rec); }
[data-phase="2"] .pstage-dot { animation: pstage-pulse 1s ease-in-out infinite; }
@keyframes pstage-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }

.pstage-body { position: relative; min-height: 312px; background: var(--bg); }
.pstage-act { position: absolute; inset: 0; padding: var(--s5); display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
[data-phase="1"] .pstage-act-1,
[data-phase="2"] .pstage-act-2,
[data-phase="3"] .pstage-act-3 { opacity: 1; transform: none; pointer-events: auto; }

/* Act 1: Prompt input */
.pform { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: var(--s5); box-shadow: var(--shadow-card); display: grid; gap: 14px; }
.pform-label { font: 600 13px/1.2 var(--font); color: var(--ink); }
.pform-box { min-height: 76px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--bg); font: 400 14px/1.5 var(--font); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 16%, transparent); }
.pform-caret { display: inline-block; width: 2px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: pcaret 900ms steps(2) infinite; }
@keyframes pcaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.pform-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pform-url-pill { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 500 12px/1 var(--mono); color: var(--ink-2); }
.pform-submit { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 13px/1 var(--font); box-shadow: 0 6px 18px -8px oklch(0.53 0.2 264 / .7); }
[data-phase="1"].is-submitting .pform-submit { transform: scale(.96); }

/* Act 2: Live AI browser & action feed */
.plive { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; height: 100%; align-items: stretch; }
.plive-app { position: relative; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); padding: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.plive-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.plive-brand { font-weight: 700; color: var(--ink); }
.plive-crumb { font: 500 11px/1 var(--mono); color: var(--ink-3); }
.plive-head { display: flex; align-items: center; justify-content: space-between; }
.plive-title { font: 600 14px/1 var(--font); color: var(--ink); }
.plive-cta { padding: 4px 10px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font: 600 11px/1.2 var(--font); }
.plive-modal { border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); padding: 10px 12px; display: grid; gap: 8px; box-shadow: var(--shadow-card); }
.plive-field { display: grid; gap: 4px; }
.plive-field span { font: 500 11px/1 var(--font); color: var(--ink-3); }
.plive-field strong { font: 500 12px/1.3 var(--font); color: var(--ink); padding: 6px 8px; border-radius: 6px; border: 1px solid var(--accent); background: var(--panel); }
.plive-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.plive-chip { padding: 4px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font: 500 11px/1 var(--font); color: var(--ink-2); }
.plive-chip.is-accent { background: var(--accent-soft); border-color: transparent; color: var(--info-ink); }
.plive-save { justify-self: end; padding: 6px 12px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font: 600 11px/1 var(--font); }
.plive-cursor { position: absolute; width: 20px; height: 20px; top: 44px; right: 26px; fill: var(--ink); stroke: var(--panel); stroke-width: 1.5; filter: drop-shadow(0 3px 6px oklch(0 0 0 / .3)); pointer-events: none; }
.plive-ripple { position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--accent); top: 40px; right: 22px; opacity: 0; pointer-events: none; }
[data-phase="2"] .plive-cursor { animation: pcursor 3.2s var(--ease-out) forwards; }
[data-phase="2"] .plive-ripple { animation: pripple 3.2s var(--ease-out) forwards; }
@keyframes pcursor {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(0, 0) scale(.88); }
  55%  { transform: translate(-84px, 76px); }
  80%  { transform: translate(-18px, 148px); }
  90%  { transform: translate(-18px, 148px) scale(.88); }
  100% { transform: translate(-18px, 148px); }
}
@keyframes pripple {
  0%, 20% { opacity: 0; transform: translate(0, 0) scale(.5); }
  26%     { opacity: .85; transform: translate(0, 0) scale(1.2); }
  38%     { opacity: 0; transform: translate(0, 0) scale(1.7); }
  84%     { opacity: 0; transform: translate(-18px, 148px) scale(.5); }
  91%     { opacity: .85; transform: translate(-18px, 148px) scale(1.2); }
  100%    { opacity: 0; transform: translate(-18px, 148px) scale(1.7); }
}
.plive-log { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.plive-log-head { font: 600 12px/1 var(--mono); color: var(--ink-3); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.plive-item { display: flex; align-items: center; gap: 8px; font: 500 12px/1.3 var(--font); color: var(--ink-2); opacity: .45; transition: opacity 240ms ease-out, color 240ms ease-out; }
.plive-tick { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; }
[data-phase="2"] .plive-item-1 { animation: pitem 260ms ease-out 0ms forwards; }
[data-phase="2"] .plive-item-2 { animation: pitem 260ms ease-out 550ms forwards; }
[data-phase="2"] .plive-item-3 { animation: pitem 260ms ease-out 1200ms forwards; }
[data-phase="2"] .plive-item-4 { animation: pitem 260ms ease-out 1900ms forwards; }
[data-phase="2"] .plive-item-1 .plive-tick { animation: ptick 240ms ease-out 0ms forwards; }
[data-phase="2"] .plive-item-2 .plive-tick { animation: ptick 240ms ease-out 550ms forwards; }
[data-phase="2"] .plive-item-3 .plive-tick { animation: ptick 240ms ease-out 1200ms forwards; }
[data-phase="2"] .plive-item-4 .plive-tick { animation: ptick 240ms ease-out 1900ms forwards; }
@keyframes pitem { to { opacity: 1; color: var(--ink); } }
@keyframes ptick { to { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3px var(--panel); } }

/* Act 3: Finished rendered tutorial preview */
.pready { display: flex; flex-direction: column; gap: 12px; height: 100%; justify-content: center; }
.pready-canvas { position: relative; border-radius: 14px; padding: 24px 20px 16px; background: linear-gradient(135deg, oklch(0.42 0.18 264), oklch(0.28 0.12 254)); color: #fff; box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; }
.pready-badge { align-self: flex-end; padding: 4px 10px; border-radius: 999px; background: oklch(0.14 0.01 264 / .72); color: #fff; font: 500 11px/1 var(--mono); }
.pready-card { position: relative; width: 100%; max-width: 380px; border-radius: 12px; padding: 14px 16px; background: var(--panel); color: var(--ink); box-shadow: 0 18px 38px -14px oklch(0 0 0 / .45); border: 1px solid oklch(1 0 0 / .16); }
.pready-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pready-check { width: 16px; height: 16px; border-radius: 50%; background: var(--ok); flex: none; }
.pready-task { font: 600 14px/1.2 var(--font); color: var(--ink); flex: 1; }
.pready-tag { padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--info-ink); font: 600 11px/1 var(--font); }
.pready-sub { font: 400 12px/1.3 var(--font); color: var(--ink-2); padding-left: 26px; }
.pready-ripple { position: absolute; right: 24px; top: 12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent); }
.pready-caption { padding: 8px 14px; border-radius: 10px; background: oklch(0.14 0.01 264 / .88); color: #fff; font: 500 13px/1.3 var(--font); text-align: center; }
.pready-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pready-pill { padding: 6px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font: 500 12px/1 var(--font); color: var(--ink-2); }
.pready-pill.is-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok-ink); }

/* ---------- 2. Zoom Before / After card ---------- */
.zoom-stage { display: flex; flex-direction: column; }
.zoom-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--line); }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg-btn { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 13px/1 var(--font); cursor: pointer; transition: background var(--t-hover) ease-out, color var(--t-hover) ease-out, box-shadow var(--t-hover) ease-out; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-on { background: var(--nav-active); color: var(--accent-ink); box-shadow: var(--nav-active-shadow); }
.zoom-badge { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.zoom-frames { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, oklch(0.47 0.17 25), oklch(0.34 0.14 22)); }
.zoom-viewport { position: absolute; inset: 0; overflow: hidden; border-radius: 0; box-shadow: none; background: #1e2127; transition: inset 460ms cubic-bezier(.22, 1, .36, 1), border-radius 460ms cubic-bezier(.22, 1, .36, 1), box-shadow 460ms cubic-bezier(.22, 1, .36, 1); }
[data-zoom-demo][data-mode="after"] .zoom-viewport { inset: 14px 20px; border-radius: 10px; box-shadow: 0 18px 40px -14px oklch(0 0 0 / .6); }
.zoom-cam { position: relative; width: 100%; height: 100%; transform-origin: 34% 58%; transform: scale(1); transition: transform 760ms cubic-bezier(.22, 1, .36, 1); will-change: transform; }
[data-zoom-demo][data-mode="after"] .zoom-cam { transform: scale(1.92); }
.zoom-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom-blur { position: absolute; left: 27.5%; top: 47.6%; width: 24.5%; height: 3.4%; border-radius: 4px; background: oklch(0.24 0.01 260 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 280ms ease-out; pointer-events: none; }
[data-zoom-demo][data-mode="after"] .zoom-blur,
[data-zoom-demo].is-clicked .zoom-blur { opacity: 1; }
.zoom-cursor { position: absolute; left: 34%; top: 58%; width: 18px; height: 18px; margin: -2px 0 0 -2px; fill: #fff; stroke: #111318; stroke-width: 1.6; filter: drop-shadow(0 2px 5px oklch(0 0 0 / .5)); opacity: 0; transform: translate(110px, -78px); transition: transform 420ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease-out; pointer-events: none; }
[data-zoom-demo].is-gliding .zoom-cursor { opacity: 1; transform: translate(0, 0); }
[data-zoom-demo].is-clicked .zoom-cursor { opacity: 1; transform: translate(0, 0) scale(.86); transition-duration: 120ms; }
[data-zoom-demo][data-mode="after"] .zoom-cursor { opacity: 1; transform: translate(0, 0); }
.zoom-ripple { position: absolute; left: 34%; top: 58%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid oklch(0.62 0.21 25); background: oklch(0.62 0.21 25 / .18); opacity: 0; transform: scale(.35); pointer-events: none; }
[data-zoom-demo].is-rippling .zoom-ripple { animation: zripple 700ms cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes zripple {
  0%   { opacity: .95; transform: scale(.35); }
  55%  { opacity: .75; transform: scale(1.25); }
  100% { opacity: 0;   transform: scale(1.85); }
}
.zoom-step-pill { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: oklch(0.12 0.01 264 / .82); color: #fff; font: 600 11px/1 var(--font); opacity: 0; transform: translateY(-4px); transition: opacity 280ms ease-out 120ms, transform 280ms var(--ease-out) 120ms; pointer-events: none; }
.zoom-step-pill i { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.62 0.21 25); }
[data-zoom-demo][data-mode="after"] .zoom-step-pill { opacity: 1; transform: none; }
.zoom-caption { position: absolute; left: 16px; right: 16px; bottom: 10px; margin: 0 auto; width: fit-content; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 8px; background: oklch(0.12 0.01 264 / .9); color: #fff; font: 600 12px/1.3 var(--font); text-align: center; box-shadow: 0 8px 20px -6px oklch(0 0 0 / .6); opacity: 0; transform: translateY(8px); transition: opacity 300ms ease-out 180ms, transform 300ms var(--ease-out) 180ms; pointer-events: none; }
[data-zoom-demo][data-mode="after"] .zoom-caption { opacity: 1; transform: none; }

/* ---------- 3. Captions & AI Voice card ---------- */
.voice-stage { display: flex; flex-direction: column; }
.voice-frame { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.voice-frame img { width: 100%; height: 100%; object-fit: cover; }
.voice-player { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--line); }
.voice-play { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -8px oklch(0.53 0.2 264 / .7); transition: background var(--t-hover) ease-out, transform var(--t-hover) ease-out; }
.voice-play:hover { background: var(--accent-hover); }
.voice-play:active { transform: scale(.96); }
.voice-play svg { width: 16px; height: 16px; fill: currentColor; }
.voice-play .v-i-play { margin-left: 2px; }
.voice-play .v-i-pause { display: none; }
.is-playing .voice-play .v-i-play { display: none; }
.is-playing .voice-play .v-i-pause { display: block; }
.voice-meta { flex: 1; min-width: 0; display: grid; gap: 6px; }
.voice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.voice-title { font: 600 13px/1 var(--font); color: var(--ink); }
.voice-time { font: 500 12px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.voice-bars { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); align-items: center; gap: 4px; height: 24px; }
.voice-bars i { display: block; width: 100%; max-width: 4px; justify-self: center; height: var(--h, 50%); border-radius: 99px; background: var(--line-strong); transition: background 150ms ease-out, transform 150ms ease-out; transform-origin: center; }
.voice-bars i.is-lit { background: var(--accent); }
.is-playing .voice-bars i { animation: vwave 900ms ease-in-out infinite alternate; }
.is-playing .voice-bars i:nth-child(3n) { animation-delay: 140ms; }
.is-playing .voice-bars i:nth-child(3n+1) { animation-delay: 280ms; }
@keyframes vwave { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* ---------- 4. Interactive Brand Kit Switcher ---------- */
.brand-stage { display: flex; flex-direction: column; }
.brand-preview { aspect-ratio: 16 / 9; padding: 16px; display: flex; align-items: stretch; justify-content: center; background: var(--surface); }
.brand-canvas { width: 100%; border-radius: 14px; padding: 18px 20px 16px; display: flex; flex-direction: column; justify-content: center; gap: 16px; color: #fff; background: linear-gradient(135deg, var(--b-1, oklch(0.46 0.19 264)), var(--b-2, oklch(0.32 0.14 252))); box-shadow: var(--shadow-card); transition: background 260ms var(--ease-out); }
[data-brand="cobalt"]     { --b-1: oklch(0.46 0.19 264); --b-2: oklch(0.32 0.14 252); --b-accent: oklch(0.53 0.2 264); }
[data-brand="forest"]     { --b-1: oklch(0.44 0.12 168); --b-2: oklch(0.28 0.08 176); --b-accent: oklch(0.48 0.13 166); }
[data-brand="slate"]      { --b-1: oklch(0.32 0.02 260); --b-2: oklch(0.2 0.015 260); --b-accent: oklch(0.42 0.03 260); }
[data-brand="terracotta"] { --b-1: oklch(0.5 0.16 32);   --b-2: oklch(0.34 0.12 24);  --b-accent: oklch(0.54 0.17 30); }
.brand-window { background: var(--panel); color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 16px 32px -14px oklch(0 0 0 / .45); border: 1px solid oklch(1 0 0 / .16); }
.brand-wbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand-mark { width: 20px; height: 20px; border-radius: 6px; background: var(--b-accent); color: #fff; display: grid; place-items: center; font: 700 11px/1 var(--font); transition: background 220ms ease-out; }
.brand-name { font: 600 12px/1 var(--font); color: var(--ink); }
.brand-step { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.brand-wbody { padding: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.brand-wcopy { flex: 1; min-width: 0; display: grid; gap: 8px; }
.brand-wtitle { font: 600 13px/1.25 var(--font); color: var(--ink); }
.brand-winput { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font: 500 11px/1.2 var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-wbtn-wrap { position: relative; flex: none; padding: 0 6px 6px 0; }
.brand-wbtn { display: inline-block; padding: 8px 12px; border-radius: 8px; background: var(--b-accent); color: #fff; font: 600 12px/1 var(--font); transition: background 220ms ease-out; }
.brand-ripple { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--b-accent); background: var(--panel); box-shadow: 0 0 0 3px color-mix(in oklch, var(--b-accent) 26%, transparent); pointer-events: none; transition: border-color 220ms ease-out; }
.brand-caption { align-self: center; padding: 6px 12px; border-radius: 8px; background: oklch(0.14 0.01 264 / .86); color: #fff; font: 500 12px/1.3 var(--font); text-align: center; }
.brand-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 60px; padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--line); }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font: 500 13px/1 var(--font); cursor: pointer; transition: border-color var(--t-hover) ease-out, background var(--t-hover) ease-out, color var(--t-hover) ease-out; }
.swatch:hover { color: var(--ink); border-color: var(--line-strong); }
.swatch.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--info-ink); }
.swatch-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sw-cobalt { background: oklch(0.53 0.2 264); }
.sw-forest { background: oklch(0.48 0.13 166); }
.sw-slate { background: oklch(0.36 0.025 260); }
.sw-terracotta { background: oklch(0.54 0.17 30); }

/* ---------- 5. Hosted Page & Embed Code card ---------- */
.hosted-stage { display: flex; flex-direction: column; }
.hosted-shot { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.hosted-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.embed-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--line); }
.embed-code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1.3 var(--mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.embed-copy { min-height: 32px; padding: 0 12px; flex: none; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 600 12px/1 var(--font); cursor: pointer; transition: background var(--t-hover) ease-out, border-color var(--t-hover) ease-out, color var(--t-hover) ease-out; }
.embed-copy:hover { background: var(--surface); }
.embed-copy.is-copied { border-color: transparent; background: var(--ok-soft); color: var(--ok-ink); }

/* ---------- 6. Step Editor card ---------- */
.feature-editor { grid-template-columns: 1.45fr 1fr; }
.feature-editor .feature-media { align-items: center; padding: var(--s5); }
.feature-editor .feature-media img { border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }

@media (max-width: 960px) {
  .feature-prompt { grid-template-columns: 1fr; }
  .feature-prompt .prompt-stage-wrap { border-left: 0; border-top: 1px solid var(--line); }
  .feature-editor { grid-template-columns: 1fr; }
  .feature-editor .feature-media { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature.span-3 { grid-column: auto; }
}
@media (max-width: 600px) {
  .feature-prompt .prompt-copy, .feature-wide .feature-text { padding: var(--s5); }
  .feature-prompt .prompt-stage-wrap, .feature-editor .feature-media { padding: var(--s4); }
  .pstage-body { min-height: 340px; }
  .plive { grid-template-columns: 1fr; }
  .plive-log { display: none; }
  .brand-wbody { flex-direction: column; align-items: flex-start; }
}

/* Auto-update showcase: editorial copy + triggers on the left, live before/after release diff on the right. */
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: var(--s7); align-items: center; }
.next-text .section-title { margin-bottom: var(--s4); }
.next-text p { color: var(--ink-2); max-width: 52ch; margin-bottom: var(--s4); }
.au-triggers { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 var(--s5); padding: 0; }
.au-triggers li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 13px/1 var(--font); color: var(--ink-2); }
.au-triggers li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.au-demo { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-window); overflow: hidden; }
.au-demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.au-demo-title { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.au-demo-ver { padding: 4px 8px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--ink-3); }
.au-demo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--info-ink); font: 600 12px/1 var(--font); }
.au-demo-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
[data-au-demo][data-state="approved"] .au-demo-badge { background: var(--ok-soft); color: var(--ok-ink); }

.au-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: var(--bg); }
.au-pane { display: flex; flex-direction: column; gap: 8px; }
.au-pane-tag { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.au-pane-tag.is-fresh { color: var(--accent-ink); }
[data-au-demo][data-state="approved"] .au-pane-tag.is-fresh { color: var(--ok-ink); }
.au-mock { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.au-pane-new .au-mock { border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 2px color-mix(in oklch, var(--accent) 14%, transparent); transition: border-color 240ms ease-out, box-shadow 240ms ease-out; }
[data-au-demo][data-state="approved"] .au-pane-new .au-mock { border-color: color-mix(in oklch, var(--ok) 55%, var(--line)); box-shadow: 0 0 0 2px color-mix(in oklch, var(--ok) 16%, transparent); }
.au-mock-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.au-mock-logo { font: 700 12px/1 var(--font); color: var(--ink-2); }
.au-mock-btn-old { padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font: 600 11px/1 var(--font); }
.au-mock-rows { display: grid; gap: 6px; }
.au-mock-rows span { display: block; height: 10px; border-radius: 4px; background: var(--surface); }
.au-mock-rows span:last-child { width: 72%; }

.au-mock-new { flex-direction: row; align-items: stretch; gap: 10px; }
.au-mock-side { width: 46%; padding-right: 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.au-mock-btn-new { padding: 6px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 11px/1 var(--font); text-align: center; white-space: nowrap; }
[data-au-demo][data-state="approved"] .au-mock-btn-new { background: var(--ok); }
.au-mock-side-line { height: 8px; width: 70%; border-radius: 4px; background: var(--surface-2); }
.au-mock-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.au-mock-head { height: 10px; width: 65%; border-radius: 4px; background: var(--line-strong); }
.au-mock-row { height: 10px; border-radius: 4px; background: var(--surface); }

.au-demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); }
.au-demo-meta { font: 500 13px/1.3 var(--font); color: var(--ink-2); }
[data-au-demo][data-state="approved"] .au-demo-meta { color: var(--ok-ink); }
.au-approve { min-height: 36px; }
[data-au-demo][data-state="approved"] .au-approve { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }

.au-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: var(--s2); }
.au-soon-note { font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) { .next { grid-template-columns: 1fr; gap: var(--s6); } }
@media (max-width: 560px) { .au-diff { grid-template-columns: 1fr; } }

/* Pricing: separated Free, Pro Monthly, and Pro Yearly (highlighted) cards — no confusing switch. */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); max-width: 900px; align-items: stretch; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: var(--s6); display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.plan-monthly { border-color: var(--line-strong); }
.plan-pro { --ink: oklch(1 0 0); --ink-2: oklch(1 0 0 / .86); --ink-3: oklch(1 0 0 / .74); --line: oklch(1 0 0 / .2); --accent-ink: oklch(1 0 0); color: var(--ink); background: var(--accent); border-color: transparent; box-shadow: var(--shadow-window), 0 24px 48px -24px oklch(0.53 0.2 264 / .6); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.plan h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.plan-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font: 600 12px/1 var(--font); white-space: nowrap; }
.plan-pill-save { background: oklch(1 0 0 / .18); border-color: oklch(1 0 0 / .24); color: #fff; }
.price { margin: var(--s4) 0 4px; display: flex; align-items: baseline; gap: 4px; }
.amount { font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount.placeholder { padding: 0 6px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--ink-3); }
.per { font-size: 16px; font-weight: 500; color: var(--ink-3); }
.price-sub { font-size: 13px; color: var(--ink-3); margin-bottom: var(--s4); min-height: 20px; }
.plan-for { color: var(--ink-2); font-size: 15px; margin-bottom: var(--s5); }
.ticks { list-style: none; margin: 0 0 var(--s6); padding: 0; flex: 1; }
.ticks li { position: relative; padding: 8px 0 8px 28px; font-size: 14.5px; line-height: 1.45; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; background: var(--accent-ink); -webkit-mask: var(--i-check) center / 18px no-repeat; mask: var(--i-check) center / 18px no-repeat; }
.ticks li.minus { color: var(--ink-2); }
.ticks li.minus::before { background: var(--ink-3); -webkit-mask-image: var(--i-minus); mask-image: var(--i-minus); }
.plan-pro .btn-primary { background: #fff; color: oklch(0.45 0.2 264); box-shadow: 0 1px 2px oklch(0 0 0 / .15); }
.plan-pro .btn-primary:hover { background: oklch(0.96 0.01 264); }
.plan-pro .btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 980px) { .plans-3 { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } .plan { padding: var(--s5); } }

.faq-wrap { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; background: var(--ink-3); -webkit-mask: var(--i-chevron) center / 20px no-repeat; mask: var(--i-chevron) center / 20px no-repeat; transition: transform var(--t-enter) var(--ease-out); }
.faq summary:hover::after { background: var(--ink); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); padding: 0 0 var(--s5); max-width: 64ch; }

.final { padding: var(--s10) 0; border-top: 1px solid var(--line); }
.final-inner { text-align: center; }
.final h2 { font-weight: 560; font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -.035em; line-height: 1.04; margin: 0 auto var(--s6); max-width: 18ch; }
.final h2 .serif { font-size: 1em; }
@media (max-width: 600px) { .final { padding: var(--s8) 0; } }

.site-footer { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s7); font-size: 14px; color: var(--ink-3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.site-footer a:not(.logo) { display: inline-block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.site-footer a:not(.logo):hover { color: var(--ink); text-decoration: underline; }
/* "Featured on": directory badges and links, above the footer line (the entries are in landing/context_processors.py). */
.featured-on { display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--s4); margin-bottom: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.featured-label { margin: 0; font-size: 12px; color: var(--ink-3); }
.site-footer .featured-on ul { align-items: center; gap: 12px; }
.site-footer .featured-link a { padding: 4px 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; }
.site-footer .featured-link a:hover { text-decoration: none; border-color: var(--line-strong); }
/* A directory's own badge keeps its own markup: none of the footer's link padding. */
.site-footer .featured-badge a { padding: 0; line-height: 0; }
.featured-badge img { display: block; }

/* ---------- theme: system, light or dark (the app's control, in plain CSS; landing.js runs it) ---------- */
.theme-seg { display: none; gap: 2px; padding: 2px; margin: 0; border: 0; min-width: 0; border-radius: var(--r-btn); background: var(--surface); }
.js .theme-seg { display: inline-flex; }
.theme-seg label { position: relative; display: grid; place-items: center; width: 32px; height: 28px; border-radius: var(--r-sm); color: var(--ink-3); cursor: pointer; transition: color var(--t-hover) ease-out, background var(--t-hover) ease-out, box-shadow var(--t-hover) ease-out; }
.theme-seg label:hover { color: var(--ink); }
.theme-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
/* The chosen one in the accent as well as raised, so the selection reads at 3:1 against the others. */
.theme-seg label:has(input:checked) { color: var(--accent-ink); background: var(--nav-active); box-shadow: var(--nav-active-shadow); }
.theme-seg label:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.theme-seg .icon { width: 16px; height: 16px; }
@media (pointer: coarse) { .theme-seg label { width: 44px; height: 40px; } }
.footer-end { display: flex; align-items: center; gap: var(--s5); }
/* In the header only for signed-in visitors, and only where the row has room. */
@media (max-width: 860px) { .nav-actions .theme-seg { display: none; } }

/* ---------- zoom card: the same moment, before and after ---------- */
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; align-content: center; background: var(--surface); }
.feature-pair figure { margin: 0; background: var(--surface); }
.feature-pair figure + figure { border-left: 1px solid var(--line); }
.feature-pair figcaption { font: 500 12px/1 var(--font); color: var(--ink-2); padding: var(--s2) var(--s3); background: var(--panel); border-top: 1px solid var(--line); }
.feature-pair figure:last-child figcaption { color: var(--accent-ink); }

.price-soon { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); min-height: 44px; align-items: center; }

/* ---------- long text: the privacy policy, the terms and the refund policy ---------- */
.prose { max-width: 720px; padding-top: var(--s8); padding-bottom: var(--s9); }
.prose h1 { font-weight: 560; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: var(--s3); }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: var(--s7) 0 var(--s3); padding-top: var(--s5); border-top: 1px solid var(--line); }
.prose p { color: var(--ink-2); margin-bottom: var(--s4); }
.prose ul { color: var(--ink-2); margin: 0 0 var(--s4); padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose .summary { color: var(--ink); background: var(--accent-soft); border-radius: var(--r-md); padding: var(--s4) var(--s5); margin: var(--s5) 0 var(--s4); }
.prose .updated { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.prose code { font: 500 .88em/1 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1px 5px; color: var(--ink); }
.support-card { margin: var(--s5) 0 var(--s6); padding: var(--s5); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-card); display: grid; gap: var(--s4); }
.support-card h2 { margin: 0 0 var(--s2); padding: 0; border: 0; font-size: 20px; }
.support-card p { margin: 0; font-size: 15px; }
.support-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.support-faq summary { font-size: 17px; padding: var(--s4) 0; }
.support-faq details p { margin: 0; padding-bottom: var(--s4); font-size: 15px; }

/* ---------- allauth: sign in, sign up, reset and sign out, in one card (templates/account/) ---------- */
.auth { background: var(--sidebar); padding: var(--s8) var(--s4) var(--s9); min-height: calc(100vh - 64px - 120px); }
.auth-card { max-width: 440px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: var(--s6); box-shadow: var(--shadow-window); }
.auth-card h1 { text-wrap: balance; font-weight: 600; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: var(--s2); }
.auth-card h2 { font-size: 17px; font-weight: 600; margin: var(--s5) 0 var(--s2); }
.auth-sub, .auth-card > p, .auth-card form > p:not(:has(input)) { color: var(--ink-2); font-size: 15px; margin-bottom: var(--s5); text-wrap: pretty; }
.auth-card .auth-note { margin-bottom: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--accent-soft); color: var(--info-ink); font-size: 14px; }
.auth-sub a, .auth-fine a { font-weight: 500; }
.auth-card form { margin-top: var(--s5); }
.auth-card .auth-sub + form { margin-top: 0; }
.auth-card form p, .auth-card form > div { margin: 0 0 var(--s4); }
.auth-card label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text], .auth-card input[type=url] { width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1px solid var(--field-line); border-radius: 12px; transition: border-color var(--t-hover) ease-out, box-shadow var(--t-hover) ease-out; }
.auth-card input:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent); }
.auth-card input[aria-invalid="true"] { border-color: var(--error); }
.auth-card input::placeholder { color: var(--ink-3); }
.auth-card .check { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.auth-card .check label { margin: 0; font-weight: 400; font-size: 15px; color: var(--ink-2); }
.auth-card input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.auth-card .helptext { display: block; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.auth-card .helptext ul { margin: 0; padding-left: 18px; }
.auth-card .helptext a { color: var(--accent-ink); font-weight: 500; }
.auth-card .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--error); font-size: 14px; }
.auth-card form > .errorlist, .auth-card .errorlist.nonfield { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: color-mix(in oklch, var(--error) 8%, var(--panel)); }
.auth-submit, .auth-card button { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 48px; margin-top: var(--s2); padding: 0 var(--s5); border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 oklch(1 0 0 / .16), 0 1px 2px oklch(0.2 0.1 264 / .25), 0 8px 24px -12px oklch(0.53 0.2 264 / .6); transition: background var(--t-hover) ease-out, transform var(--t-hover) ease-out; }
.auth-submit:hover, .auth-card button:hover { background: var(--accent-hover); }
.auth-submit:active, .auth-card button:active { transform: scale(.98); }
.auth-card button:disabled { opacity: .6; cursor: default; }
.auth-card .auth-fine { margin: var(--s5) 0 0; font-size: 14px; color: var(--ink-3); text-align: center; }
.auth-or { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s4); color: var(--ink-3); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-providers form { margin: 0; }
.auth-providers, .auth-card ul.socialaccount_providers, .auth-card .socialaccount_providers { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.auth-card .auth-provider, .auth-card .socialaccount_providers a { width: 100%; margin: 0; box-shadow: none; font: 600 16px/1.2 var(--font); display: flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 48px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--ink); font-weight: 600; text-decoration: none; transition: background var(--t-hover) ease-out; }
.auth-card .auth-provider:hover, .auth-card .socialaccount_providers a:hover { background: var(--surface); }
.auth-provider-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.auth-card hr { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0; }
.auth-messages { max-width: 440px; margin: 0 auto var(--s4); background: var(--accent-soft); color: var(--info-ink); border-radius: var(--r-md); padding: var(--s3) var(--s4); font-size: 15px; }
.auth-messages div + div { margin-top: var(--s1); }
@media (max-width: 600px) { .auth { padding: var(--s6) var(--s4) var(--s8); } .auth-card { padding: var(--s5); border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .auth-submit:active, .auth-card button:active { transform: none; } }

/* ---------- phone tweaks ---------- */
@media (max-width: 600px) {
  .hero { padding: var(--s6) 0 var(--s7); }
  .ctas .btn { flex: 1 1 100%; }
  .demo { margin-top: var(--s6); }
  .take-raw { width: 100%; }
  .play { width: 60px; height: 60px; }
  .chips li { font-size: 12px; padding: 6px var(--s2); }
}

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--t-enter) var(--ease-out) var(--d, 0ms), transform var(--t-enter) var(--ease-out) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Movement off, fades kept. */
  .headline-was::after { animation: none; transform: scaleX(1); }
  .js .reveal { transform: none; }
  .btn:active, .play:active, .voice-play:active { transform: none; }
  .pstage-act { transform: none; }
  .pstage-dot, .pform-caret, .plive-cursor, .plive-ripple, .zoom-ripple, .is-playing .voice-bars i, .hs-unmute-cta, .hs-unmute-cta::after { animation: none; }
  .plive-item { animation: none; opacity: 1; color: var(--ink); }
  .plive-tick { animation: none; border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3px var(--panel); }
  .zoom-viewport, .zoom-cam, .zoom-cursor, .zoom-step-pill, .zoom-caption, .hs-frame-render { transition: none; transform: none; }
}
.auth-sub a, .auth-fine a { display: inline-block; padding: 3px 0; }

/* Sign in, create account, continue with a provider: once pressed, the button (disabled by
   landing.js for forms marked data-once) shows a spinner and the verb in progress. CSS only; the
   label is drawn over the button, which keeps its size. */
.auth-card button[data-pending]:disabled { position: relative; color: transparent; cursor: progress; opacity: .85; }
.auth-card button[data-pending]:disabled::after { content: attr(data-pending); position: absolute; inset: 0; display: grid; place-items: center; padding-left: 26px; color: var(--on-accent); }
.auth-card button[data-pending]:disabled::before { content: ""; position: absolute; left: calc(50% - 5.5em); top: 50%; width: 14px; height: 14px; margin-top: -9px; border-radius: 50%; border: 2px solid color-mix(in oklch, var(--on-accent) 30%, transparent); border-top-color: var(--on-accent); animation: auth-spin .8s linear infinite; z-index: 1; }
.auth-card .auth-provider[data-pending]:disabled::after { color: var(--ink); }
.auth-card .auth-provider[data-pending]:disabled::before { border-color: color-mix(in oklch, var(--ink) 25%, transparent); border-top-color: var(--ink); }
.auth-card .auth-provider[data-pending]:disabled .auth-provider-icon { opacity: 0; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes auth-breathe { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .auth-card button[data-pending]:disabled::before { animation: auth-breathe 1.6s ease-in-out infinite; } }
