/* RenderScience.io */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-sketch.woff2") format("woff2"); /* subset: only the sketch's characters */
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f1e7;
  --bg-alt: #efe8da;
  --surface: #ffffff;
  --line: #ddd3bf;
  --line-soft: #e8e0cf;
  --fg: #14202e;
  --muted: #55606d;
  --accent: #0e7c77;
  --accent-hover: #0a615d;
  --accent-soft: #dcf0ee;
  --on-accent: #ffffff;
  --studio: #1d6fe0;
  --studio-soft: #e4efff;
  --coral: #ff7a59;
  --danger: #b3261e;
  --ok: #1b6b36;
  --frame: #08111f;
  --frame-line: #1a2a42;
  --footer-bg: #ffffff;
  --footer-fg: #14202e;
  --footer-muted: #55606d;
  --shadow-card: 0 1px 1px rgb(20 32 46 / 0.04), 0 8px 24px -8px rgb(20 32 46 / 0.12), 0 24px 48px -24px rgb(20 32 46 / 0.12);
  --shadow-frame: 0 2px 4px rgb(11 31 58 / 0.06), 0 24px 60px -20px rgb(11 31 58 / 0.35);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--accent-soft); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--fg); color: var(--bg); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 0.9688rem/1 var(--sans); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgb(14 124 119 / 0.25); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-quiet { color: var(--fg); border-color: var(--line); background: transparent; }
.btn-quiet:hover { border-color: var(--fg); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.masthead.is-scrolled { border-bottom-color: var(--line-soft); }
.masthead-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  font: 600 0.9375rem/1 var(--serif); letter-spacing: -0.03em;
}
.brand-word { font: 600 1.1875rem/1 var(--serif); letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; transition: color 160ms var(--ease); }
.nav a:hover { color: var(--fg); }
.masthead .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .masthead .btn { margin-left: 8px; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 1.0625rem; }
  .masthead .btn-sm { padding: 0 14px; }
  .masthead .btn-sm { font-size: 0; }
  .masthead .btn-sm::after { content: "Early access"; font-size: 0.875rem; }
}

/* Type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.kicker span { color: var(--accent); }
.kicker::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--line); }

/* Hero: full-bleed videos made from prompts (app.js initHeroDemo).
   Copy top-left, the prompt box centred in the remaining space. */
.hero {
  position: relative; color: #f6f1e7; background: var(--frame); overflow: hidden;
  display: flex; flex-direction: column; min-height: clamp(600px, calc(100svh - 68px), 1000px);
}
.hero-stage { position: absolute; inset: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(110% 70% at 0% 0%, rgb(5 11 21 / 0.4) 0%, rgb(5 11 21 / 0.12) 45%, rgb(5 11 21 / 0) 70%),
    linear-gradient(to top, rgb(5 11 21 / 0.35), rgb(5 11 21 / 0) 30%);
}
.hero-copy { position: relative; z-index: 2; padding-top: 40px; }
.hero-panel { display: inline-flex; flex-direction: column; gap: 18px; max-width: 100%; padding: 24px 22px 24px; border-radius: 26px; color: var(--fg); }
@media (min-width: 900px) { .hero-panel { padding: 32px 36px 34px; border-radius: 30px; } }
/* On light glass the hero copy uses the page's ink + teal, like the prompt box */
.hero .hero-panel .eyebrow { color: var(--muted); }
.hero .hero-panel .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero .hero-panel h1 { color: var(--fg); text-shadow: none; }
.hero .hero-panel h1 em { color: var(--accent); }
.hero .hero-panel .tw-caret::after { background: var(--accent); }
.hero .hero-panel .btn-quiet { background: rgb(255 255 255 / 0.4); }
.hero .eyebrow { color: rgb(246 241 231 / 0.78); }
.hero .dot { background: #3fc4bd; box-shadow: 0 0 0 4px rgb(63 196 189 / 0.22); }
.hero h1 {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.028em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  text-wrap: balance; text-shadow: 0 2px 30px rgb(5 11 21 / 0.35);
}
.hero h1 em { color: #7fd8d2; font-weight: 300; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
/* Headline typewriter (app.js typeHeadline): letters keep their space, so nothing reflows */
.hero h1.is-typing .tw { opacity: 0; }
.hero h1.is-typing .tw.on { opacity: 1; }
.tw-caret { display: inline-block; position: relative; width: 0; height: 0.82em; vertical-align: -0.04em; }
.tw-caret::after { content: ""; position: absolute; left: 0.03em; top: 0; bottom: 0; width: 0.055em; background: #7fd8d2; animation: caret 1s steps(1) infinite; }
.hero .actions { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.hero .actions.is-waiting { opacity: 0; transform: translateY(8px); pointer-events: none; }
.hero-prompt-wrap { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; padding-top: 40px; padding-bottom: 56px; }
@media (min-width: 900px) { .hero-copy { padding-top: 56px; } }

/* Liquid glass (hero copy + prompt box): heavy blur with boosted colour so the video glows
   through, a light-catching rim (bright top-left, faint bottom-right), a top sheen, and a soft
   specular highlight that follows the pointer (--mx/--my set by app.js). */
.glass { position: relative; isolation: isolate; }
.glass > * { position: relative; z-index: 2; }
.glass-dark {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.16) 0%, rgb(255 255 255 / 0.05) 35%, rgb(255 255 255 / 0.02) 60%, rgb(255 255 255 / 0.09) 100%),
    rgb(8 17 31 / 0.3);
  -webkit-backdrop-filter: blur(26px) saturate(185%) brightness(1.05);
  backdrop-filter: blur(26px) saturate(185%) brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    inset 0 -1px 0 rgb(255 255 255 / 0.08),
    inset 0 0 24px rgb(255 255 255 / 0.05),
    0 2px 6px rgb(0 0 0 / 0.18),
    0 34px 70px -24px rgb(0 0 0 / 0.6);
}
.glass-light {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.86) 0%, rgb(255 255 255 / 0.68) 45%, rgb(255 255 255 / 0.76) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.08);
  backdrop-filter: blur(24px) saturate(180%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 1),
    inset 0 -1px 0 rgb(255 255 255 / 0.4),
    0 2px 6px rgb(0 0 0 / 0.16),
    0 30px 60px -20px rgb(0 0 0 / 0.55);
}
/* Rim: a 1px gradient border, brightest where light would hit */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.75) 0%, rgb(255 255 255 / 0.18) 22%, rgb(255 255 255 / 0) 48%, rgb(255 255 255 / 0.1) 72%, rgb(255 255 255 / 0.5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Sheen + specular highlight that tracks the pointer */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(360px circle at var(--mx, 18%) var(--my, -10%), rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.06) 35%, transparent 60%),
    linear-gradient(to bottom, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0) 38%);
  mix-blend-mode: screen;
  transition: background-position 200ms linear;
}
.glass-light::after {
  background:
    radial-gradient(300px circle at var(--mx, 18%) var(--my, -10%), rgb(255 255 255 / 0.7), transparent 55%),
    linear-gradient(to bottom, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0) 40%);
  mix-blend-mode: normal; opacity: 0.6;
}
/* Hero glass: clearer, icier. Lower white so the video shows through, heavy frost blur with a lift in
   brightness for legibility, a fine frost grain, a cool cyan-white rim and inner light like a slab of ice. */
.hero .glass-light {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, rgb(255 255 255 / 0.66) 0%, rgb(236 246 255 / 0.42) 38%, rgb(226 240 255 / 0.34) 62%, rgb(255 255 255 / 0.52) 100%);
  -webkit-backdrop-filter: blur(34px) saturate(200%) brightness(1.16) contrast(1.03);
  backdrop-filter: blur(34px) saturate(200%) brightness(1.16) contrast(1.03);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 0 0 1px rgb(255 255 255 / 0.28),
    inset 0 22px 34px -22px rgb(255 255 255 / 0.85),
    inset 0 -26px 44px -28px rgb(160 205 255 / 0.45),
    inset 10px 0 30px -24px rgb(200 235 255 / 0.5),
    0 2px 6px rgb(0 0 0 / 0.12),
    0 30px 70px -24px rgb(10 30 60 / 0.5);
}
.hero .glass-light::before {
  padding: 1.25px;
  background: linear-gradient(140deg, rgb(255 255 255 / 0.95) 0%, rgb(210 240 255 / 0.55) 16%, rgb(255 255 255 / 0.05) 42%, rgb(190 225 255 / 0.15) 70%, rgb(255 255 255 / 0.75) 100%);
}
.hero .glass-light::after {
  background:
    radial-gradient(340px circle at var(--mx, 18%) var(--my, -10%), rgb(255 255 255 / 0.75), rgb(230 245 255 / 0.15) 40%, transparent 62%),
    linear-gradient(172deg, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0) 34%),
    linear-gradient(115deg, transparent 58%, rgb(255 255 255 / 0.22) 64%, transparent 70%);
  opacity: 0.7;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-dark { background: rgb(8 17 31 / 0.72); }
  .glass-light, .hero .glass-light { background: rgb(255 255 255 / 0.95); }
}

/* Crossfading slides (hero) */
.hero-stage .slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity 1400ms cubic-bezier(0.45, 0, 0.25, 1), visibility 0s linear 1400ms; }
.hero-stage .slide .frame { height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.hero-stage .slide video, .hero-stage .slide .poster, .hero-stage .slide .ph { transform: scale(1.035); transition: transform 7600ms cubic-bezier(0.2, 0.6, 0.2, 1); }
.hero-stage .slide.is-current { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero-stage .slide.is-current video, .hero-stage .slide.is-current .poster, .hero-stage .slide.is-current .ph { transform: none; }
.hero-stage .ph { place-items: end center; padding-bottom: 40px; }

/* Prompt box: looks like the app's input */
.prompt {
  position: relative; width: 100%; max-width: 380px; padding: 14px 14px 12px;
  border-radius: 18px; color: var(--fg);
}
.prompt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.prompt-label { font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prompt-result { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); transition: opacity 300ms var(--ease); }
.prompt.is-pending .prompt-result { opacity: 0; }
.prompt-text { margin: 8px 0 12px; min-height: 3em; font-size: 0.9375rem; line-height: 1.5; color: var(--fg); }
.prompt-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--accent); opacity: 0; }
.prompt.is-typing .prompt-caret { opacity: 1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.prompt-bottom { display: flex; justify-content: flex-end; }
.prompt-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font: 500 0.8125rem/1 var(--sans);
  box-shadow: 0 1px 2px rgb(20 32 46 / 0.18), 0 6px 16px -6px rgb(14 124 119 / 0.45);
  transition: transform 120ms var(--ease), background-color 160ms var(--ease), opacity 200ms var(--ease);
}
.prompt.is-click .prompt-btn { transform: scale(0.96); background: var(--accent-hover); }
.prompt.is-busy .prompt-btn .sk-spin { display: block; }
.prompt.is-busy .prompt-btn-label::after { content: "…"; }
.prompt-cursor {
  position: absolute; right: 34px; bottom: 6px; width: 24px; height: 24px; z-index: 2;
  fill: #14202e; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25));
  opacity: 0; transform: translate(-160px, -70px);
  transition: transform 800ms cubic-bezier(0.45, 0, 0.2, 1), opacity 250ms var(--ease);
}
.prompt.is-cursor .prompt-cursor { opacity: 1; transform: none; }
.prompt.is-click .prompt-cursor { transform: scale(0.86); transition-duration: 120ms; }
.prompt.is-busy .prompt-cursor { opacity: 0; transform: translate(30px, 24px); transition-duration: 500ms; }
/* Desktop arrows to step through the hero videos */
.hero-nav { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .hero-nav { display: block; }
  .hero-arrow {
    position: absolute; z-index: 4; top: 50%; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; color: #fff;
    background: rgb(255 255 255 / 0.16); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 6px 20px rgb(0 0 0 / 0.25);
    opacity: 0.7; transition: opacity 200ms var(--ease), background-color 200ms var(--ease), transform 200ms var(--ease);
  }
  .hero-arrow[data-dir="-1"] { left: 20px; }
  .hero-arrow[data-dir="1"] { right: 20px; }
  .hero:hover .hero-arrow { opacity: 0.95; }
  .hero-arrow:hover { background: rgb(255 255 255 / 0.3); transform: scale(1.06); }
  .hero-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}
.hero .vctl.hero-ctl { z-index: 3; opacity: 0.85; left: var(--gutter); right: auto; bottom: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn-light { background: #f6f1e7; color: #0b1f3a; }
.btn-light:hover { background: #ffffff; }
.btn-ghost { color: #f6f1e7; border-color: rgb(246 241 231 / 0.35); background: rgb(5 11 21 / 0.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: #f6f1e7; }

/* Figures / video frames */
.fig { margin: 0; }
.frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: var(--radius); background: var(--frame);
  box-shadow: var(--shadow-frame);
  isolation: isolate;
}
.frame video, .frame .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.frame video { opacity: 0; transition: opacity 600ms var(--ease); }
.is-live > .frame > video { opacity: 1; } /* any [data-video] figure (fig, hero slide) once playing */

/* Placeholder shown until a real poster/video exists. Designed, not a grey box. */
.ph {
  position: absolute; inset: 0; z-index: -1;
  display: grid; place-items: center; padding: 24px; text-align: center;
  color: #9fb0c3;
  background:
    radial-gradient(120% 90% at 30% 20%, rgb(31 166 160 / 0.16), transparent 60%),
    radial-gradient(100% 80% at 85% 90%, rgb(29 111 224 / 0.14), transparent 60%),
    var(--frame);
}
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: 0.07;
  background: url("brand/pattern-hex-grid.svg") center / 56px repeat;
  filter: invert(1);
}
.ph-label {
  position: relative; max-width: 30em;
  font: 500 0.6875rem/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.ph-label b { display: block; margin-bottom: 4px; color: #e9eef4; font-weight: 500; letter-spacing: 0.12em; }

.fig figcaption {
  display: flex; align-items: baseline; flex-wrap: wrap; row-gap: 4px; gap: 4px 14px;
  padding: 14px 2px 0;
}
.fig-no { flex-basis: 100%; font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fig-title { flex: 1 1 0; min-width: 0; font: 400 1.125rem/1.3 var(--serif); letter-spacing: -0.01em; }
.fig figcaption .badge { flex: none; margin-left: auto; }

/* Play/pause control */
.vctl {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgb(255 255 255 / 0.18); border-radius: 50%;
  background: rgb(5 11 21 / 0.55); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 200ms var(--ease);
}
.vctl svg { width: 14px; height: 14px; fill: currentColor; }
.fig.is-ready .vctl { opacity: 0.85; }
@media (hover: hover) {
  .fig.is-ready .vctl { opacity: 0; }
  .fig.is-ready:hover .vctl, .vctl:focus-visible { opacity: 1; }
  .fig.is-ready.is-paused .vctl { opacity: 1; }
}

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  font: 500 0.6875rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; vertical-align: 0.1em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-studio { color: var(--studio); background: var(--studio-soft); }
.badge-edu { color: var(--accent); background: var(--accent-soft); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 960px) { .section { padding: 128px 0; } }
.section-head { display: grid; gap: 18px; margin-bottom: 48px; max-width: 760px; }
.section-head h2, .signup h2 {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(2.125rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.018em;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}
.section-head h2 em { color: var(--accent); font-weight: 300; }
.lede { color: var(--muted); font-size: 1.125rem; line-height: 1.6; max-width: 38em; }
.legend { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 12px; color: var(--muted); font-size: 1.0625rem; }
.legend .badge { justify-self: start; }
.footnote { margin-top: 32px; color: var(--muted); font-size: 0.875rem; }

/* Section textures: quiet, faded at the edges, never behind body text at full strength */
.tex { position: relative; isolation: isolate; overflow: hidden; }
.tex::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tex-hatch::before {
  background: repeating-linear-gradient(135deg, var(--fg) 0 1px, transparent 1px 10px);
  opacity: 0.085;
  -webkit-mask-image: radial-gradient(75% 90% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(75% 90% at 100% 0%, #000 0%, transparent 70%);
}
.tex-grid::before {
  background:
    linear-gradient(var(--fg) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--fg) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(var(--fg) 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(90deg, var(--fg) 1px, transparent 1px) 0 0 / 160px 160px;
  opacity: 0.07;
  -webkit-mask-image: radial-gradient(80% 100% at 0% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 100% at 0% 100%, #000 0%, transparent 75%);
}

/* CTA band */
.band { background: var(--accent-soft); color: var(--fg); border-block: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 40px; padding-bottom: 40px; }
.band-text { font: 350 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--serif); letter-spacing: -0.02em; }
.band-text span { display: block; margin-top: 6px; font: 400 1rem/1.5 var(--sans); letter-spacing: 0; color: var(--muted); }

/* Sketch demo: sketch draws in, cursor clicks "Make video", the real clip appears beside it */
.sk-sub { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.sk-head { display: grid; gap: 8px; margin-bottom: 28px; }
.sk-head h3 { font: 400 clamp(1.5rem, 2.4vw, 1.875rem)/1.2 var(--serif); letter-spacing: -0.015em; }
.sk-head p { color: var(--muted); }
.sk { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .sk { grid-template-columns: 1fr 56px 1fr; gap: 16px; } }
.sk-card { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.sk-paper { background: #ffffff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-card); }
.sk-draw { display: block; width: 100%; height: 100%; }
.sk-draw path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sk-draw text { font-family: "Caveat", "Bradley Hand", cursive; font-weight: 600; text-anchor: middle; }
.sk-bar { position: absolute; right: 16px; bottom: 14px; }
.sk-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font: 500 0.875rem/1 var(--sans);
  box-shadow: 0 1px 2px rgb(20 32 46 / 0.18), 0 6px 16px -6px rgb(14 124 119 / 0.45);
  transition: transform 120ms var(--ease), background-color 160ms var(--ease);
}
.sk-spin { display: none; width: 12px; height: 12px; border: 1.5px solid rgb(255 255 255 / 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; }
.sk-cursor {
  position: absolute; right: 30px; bottom: -2px; width: 26px; height: 26px; z-index: 2;
  fill: #14202e; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25));
}
.sk-arrow { display: block; justify-self: center; width: 2px; height: 32px; background: var(--line); position: relative; }
.sk-arrow::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 9px; height: 9px; border: solid var(--line); border-width: 0 2px 2px 0; transform: translateX(-50%) rotate(45deg); }
@media (min-width: 900px) {
  .sk-arrow { width: 40px; height: 2px; }
  .sk-arrow::after { left: auto; right: -1px; bottom: 50%; transform: translateY(50%) rotate(-45deg); }
}
.sk-video { background: #f6f1e7; border: 1.5px dashed var(--line); }
.sk-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Animated states (only with JS + motion; otherwise everything is simply shown) */
@media (prefers-reduced-motion: no-preference) {
  /* Pen strokes: each path/word draws in order, timed by its --d (delay) and --t (duration). */
  .js .sk .sk-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .sk.is-drawn .sk-draw path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t) cubic-bezier(0.4, 0, 0.6, 1) var(--d); }
  .js .sk .sk-draw text { clip-path: inset(-30% 100% -30% -2%); }
  .js .sk.is-drawn .sk-draw text { clip-path: inset(-30% -2% -30% -2%); transition: clip-path var(--t) linear var(--d); }
  .js .sk .sk-btn { opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease), transform 300ms var(--ease), background-color 160ms var(--ease); }
  .js .sk.is-button .sk-btn { opacity: 1; transform: none; }
  .js .sk .sk-cursor { opacity: 0; transform: translate(-220px, -150px); transition: transform 650ms cubic-bezier(0.45, 0, 0.2, 1), opacity 250ms var(--ease); }
  .js .sk.is-cursor .sk-cursor { opacity: 1; transform: none; }
  .js .sk.is-click .sk-cursor { transform: scale(0.86); transition-duration: 120ms; }
  .js .sk.is-click .sk-btn { transform: scale(0.96); background: var(--accent-hover); }
  .js .sk.is-done .sk-cursor { opacity: 0; transform: translate(40px, 30px); transition-duration: 600ms; }
  .js .sk .sk-arrow { opacity: 0; transition: opacity 400ms var(--ease); }
  .js .sk.is-busy .sk-arrow { opacity: 1; }
  .js .sk .sk-video video { opacity: 0; transform: scale(0.97); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
  .js .sk.is-done .sk-video video { opacity: 1; transform: none; }
  .js .sk.is-done .sk-video { border-style: solid; border-color: var(--line-soft); box-shadow: var(--shadow-card); transition: box-shadow 700ms var(--ease); }
}
.sk.is-busy .sk-btn-label::after { content: "…"; }
.sk.is-busy .sk-spin { display: block; }
.sk.is-done .sk-spin { display: none; }
@media (prefers-reduced-motion: reduce) { .sk-cursor { display: none; } }

/* Steps, each with a short app walkthrough clip */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.steps .fig { margin-bottom: 24px; }
.step-text { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 14px; }
.step-no { font: 400 1.25rem/1.3 var(--serif); font-style: italic; color: var(--accent); }
.steps h3 { font: 400 1.5rem/1.25 var(--serif); letter-spacing: -0.015em; }
.steps p { grid-column: 2; color: var(--muted); max-width: 32em; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* App walkthrough frames: light, like the app itself, with a thin window bar */
.fig-ui .frame {
  aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); border-radius: var(--radius-sm);
}
.fig-ui .frame::before {
  content: ""; position: absolute; z-index: 3; inset: 0 0 auto 0; height: 22px; pointer-events: none;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 12px 11px, var(--line) 3px, transparent 3.5px),
    radial-gradient(circle at 24px 11px, var(--line) 3px, transparent 3.5px),
    radial-gradient(circle at 36px 11px, var(--line) 3px, transparent 3.5px),
    var(--bg-alt);
}
.fig-ui video, .fig-ui .poster { top: 22px; height: calc(100% - 22px); }
.fig-ui .ph { top: 22px; color: var(--muted); background: var(--surface); }
.fig-ui .ph::before { filter: none; opacity: 0.05; }
.fig-ui .ph-label b { color: var(--fg); }

/* Standard vs Studio comparison inside the clip card */
.mv-screen video.mv-b { clip-path: inset(0 0 0 var(--split, 50%)); }
.mv-split {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px;
  background: rgb(255 255 255 / 0.9); box-shadow: 0 0 12px rgb(255 255 255 / 0.6), 0 0 2px rgb(0 0 0 / 0.3); pointer-events: none;
}
.mv-split i {
  position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgb(255 255 255 / 0.55); -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 #fff, 0 2px 10px rgb(0 0 0 / 0.25);
}
.mv-split i::before, .mv-split i::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px; border: solid var(--fg); border-width: 0 0 1.5px 1.5px;
}
.mv-split i::before { left: 8px; transform: translateY(-50%) rotate(45deg); }
.mv-split i::after { right: 8px; transform: translateY(-50%) rotate(-135deg); }
.mv-side { position: absolute; z-index: 2; top: 9px; padding: 4px 9px; border-radius: 999px; font: 600 0.6875rem/1 var(--sans); pointer-events: none; }
.mv-side-a { left: 9px; background: rgb(255 255 255 / 0.85); color: var(--accent); box-shadow: inset 0 1px 0 #fff; }
.mv-side-b { right: 9px; background: rgb(29 111 224 / 0.88); color: #fff; box-shadow: 0 0 14px rgb(29 111 224 / 0.6); }
.howto[data-level="compare"] .mv-screen { cursor: ew-resize; touch-action: pan-y; }
.howto[data-level="compare"] .mv-badge { display: none; }
.mock-video:not(.is-live) .mv-split, .mock-video:not(.is-live) .mv-side, .mock-video:not(.is-live) .mv-badge { display: none; }
.howto:not([data-level="compare"]) .mv-b, .howto:not([data-level="compare"]) .mv-split, .howto:not([data-level="compare"]) .mv-side { display: none; }
.howto[data-level="compare"] .mock-level b[data-level="standard"] { background: var(--accent-soft); color: var(--accent); }
.howto[data-level="compare"] .mock-level b[data-level="studio"] { background: var(--studio); color: #fff; }

/* "Made with" note closing How it works */
.made-note {
  position: fixed; z-index: 40; right: 14px; bottom: 14px; margin: 0; max-width: min(330px, calc(100vw - 28px));
  transition: opacity 400ms var(--ease), transform 400ms var(--ease), bottom 300ms var(--ease);
}
.made-note.is-gone { opacity: 0; transform: translateY(8px); pointer-events: none; }
body:has(.mobile-cta.is-visible) .made-note { bottom: 84px; }
.made-short { display: none; }
@media (max-width: 719px) { .made-long { display: none; } .made-short { display: inline; } .made-note { max-width: 210px; right: 10px; bottom: 10px; } .made-pill { font-size: 0.625rem; padding: 6px 9px 6px 8px; } }
.made-pill {
  display: flex; align-items: flex-start; gap: 7px; padding: 7px 11px 7px 9px; border-radius: 12px;
  font-size: 0.6875rem; line-height: 1.4; color: var(--muted);
}
.made-pill.glass-light { box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgb(20 32 46 / 0.08), 0 10px 24px -14px rgb(20 32 46 / 0.35); }
.made-pill svg { flex: none; width: 11px; height: 11px; margin-top: 2px; fill: var(--accent); }

/* Trust pillars */
.pillars { display: grid; gap: 20px; }
@media (min-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; gap: 28px; } }
.pillar { padding: 36px 32px; border-radius: var(--radius); box-shadow: var(--shadow-card); }
@media (min-width: 960px) { .pillar { padding: 48px 44px; } }
.pillar-icon { width: 40px; height: 40px; margin-bottom: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font: 400 1.625rem/1.2 var(--serif); letter-spacing: -0.02em; margin-bottom: 14px; }
.pillar p { color: var(--muted); }

/* How it works: level toggle, example tabs, three live step cards */
.howto-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: 28px; }
.level { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.level-btn {
  border: 0; cursor: pointer; padding: 9px 20px; border-radius: 999px; background: transparent;
  font: 500 0.9375rem/1 var(--sans); color: var(--muted);
  transition: background-color 220ms var(--ease), color 220ms var(--ease), box-shadow 300ms var(--ease);
}
.level-btn:hover { color: var(--fg); }
.level-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.level-studio[aria-pressed="true"] { background: var(--studio); color: #fff; box-shadow: 0 0 0 4px var(--studio-soft), 0 6px 22px rgb(29 111 224 / 0.45); }
.subjects { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.subj {
  position: relative; border: 0; background: none; cursor: pointer; padding: 6px 0 9px;
  font: 500 0.875rem/1 var(--sans); color: var(--muted); transition: color 200ms var(--ease);
}
.subj::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--line-soft); }
.subj i { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.subj:hover, .subj[aria-pressed="true"] { color: var(--fg); }
.sk-subjects { margin-top: 8px; }

.howto { position: relative; isolation: isolate; }
.howto::before {
  content: ""; position: absolute; z-index: -1; inset: 60px -4% -10px; pointer-events: none; filter: blur(48px);
  background:
    radial-gradient(38% 60% at 18% 55%, rgb(14 124 119 / 0.20), transparent 70%),
    radial-gradient(34% 55% at 52% 40%, rgb(255 122 89 / 0.10), transparent 70%),
    radial-gradient(40% 65% at 84% 55%, rgb(29 111 224 / 0.16), transparent 70%);
  transition: opacity 600ms var(--ease);
}
.howto[data-level="studio"]::before {
  background:
    radial-gradient(38% 60% at 18% 55%, rgb(29 111 224 / 0.16), transparent 70%),
    radial-gradient(34% 55% at 52% 40%, rgb(14 124 119 / 0.12), transparent 70%),
    radial-gradient(40% 65% at 84% 55%, rgb(29 111 224 / 0.30), transparent 70%);
}
.mock {
  position: relative; margin: 0 0 24px; aspect-ratio: 16 / 9; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  border-radius: 18px; font-size: 0.8125rem; line-height: 1.45;
}
.steps > li { container-type: inline-size; }
.mock-prompt, .mock-script { aspect-ratio: auto; height: calc((100cqw - 12px) * 9 / 16 + 12px); }
.mock.glass-light { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(255 255 255 / 0.4), 0 2px 6px rgb(20 32 46 / 0.08), 0 26px 50px -22px rgb(20 32 46 / 0.35); }
.mock-label { display: flex; align-items: center; gap: 8px; font: 500 0.625rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mock-text { flex: 1; min-height: 0; overflow: hidden; color: var(--fg); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.mock-btn {
  flex: none; padding: 7px 13px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font: 500 0.75rem/1 var(--sans); transition: transform 120ms var(--ease), background-color 160ms var(--ease);
}
.mock.is-click .mock-btn { transform: scale(0.93); background: var(--accent-hover); }
.mock.is-done .mock-btn { background: var(--accent-soft); color: var(--accent); }
.mock-prompt.is-typing .prompt-caret { opacity: 1; animation: caret 1s steps(1) infinite; }
.mock-level { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg); }
.mock-level b { padding: 4px 9px; border-radius: 999px; font: 600 0.6875rem/1 var(--sans); color: var(--muted); transition: background-color 250ms var(--ease), color 250ms var(--ease), box-shadow 300ms var(--ease); }
.howto[data-level="standard"] .mock-level b[data-level="standard"] { background: var(--accent-soft); color: var(--accent); }
.howto[data-level="studio"] .mock-level b[data-level="studio"] { background: var(--studio); color: #fff; box-shadow: 0 0 12px rgb(29 111 224 / 0.55); }

.ms-ready { padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); letter-spacing: 0.04em; }
.ms-title { font: 400 1rem/1.25 var(--serif); letter-spacing: -0.01em; }
.ms-lines { list-style: none; margin: 0 -6px; padding: 0; display: grid; gap: 2px; flex: 1; min-height: 0; align-content: start; }
.ms-lines li {
  padding: 2px 6px; border-radius: 4px; color: var(--muted); font-size: 0.75rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 900px) and (max-width: 1239px) { .ms-lines li { -webkit-line-clamp: 1; } }
.ms-lines li {
  transition: background-color 500ms var(--ease), color 500ms var(--ease), box-shadow 500ms var(--ease), opacity 400ms var(--ease), transform 400ms var(--ease);
}
.mock-script.is-flagged li.is-flag { background: rgb(255 122 89 / 0.14); color: var(--fg); box-shadow: inset 2px 0 0 var(--coral); }
.ms-note { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 0.6875rem/1.2 var(--sans); color: #b4472b; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.ms-note::before { content: "⚑ "; }

.mock-video { padding: 6px; aspect-ratio: auto; }
.mv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: var(--frame); box-shadow: 0 0 0 1px rgb(20 32 46 / 0.08); }
.mv-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease); }
.mock-video.is-live video { opacity: 1; }
.mock-video { transition: box-shadow 500ms var(--ease); }
.howto[data-level="studio"] .mock-video { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(29 111 224 / 0.35), 0 0 28px rgb(29 111 224 / 0.35), 0 26px 50px -22px rgb(29 111 224 / 0.5); }
.mv-badge { position: absolute; z-index: 2; top: 9px; left: 9px; padding: 4px 9px; border-radius: 999px; background: rgb(255 255 255 / 0.72); -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); color: var(--accent); font: 600 0.6875rem/1 var(--sans); box-shadow: inset 0 1px 0 #fff; }
.howto[data-level="studio"] .mv-badge { background: rgb(29 111 224 / 0.85); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0 14px rgb(29 111 224 / 0.7); }
.mv-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #c9d4e0; font: 500 0.75rem/1 var(--sans); opacity: 0; transition: opacity 300ms var(--ease); }
.mv-busy .sk-spin { display: block; }
.mock-video.is-busy .mv-busy { opacity: 1; }
.js .ms-ready, .js .ms-note { opacity: 0; }
.js .mock-script.is-shown .ms-ready, .js .mock-script.is-flagged .ms-note { opacity: 1; }
.js .ms-lines li { opacity: 0; transform: translateY(4px); }
.js .mock-script.is-shown .ms-lines li { opacity: 1; transform: none; transition-property: opacity, transform, background-color, color, box-shadow; transition-delay: calc(var(--k) * 220ms), calc(var(--k) * 220ms), 0s, 0s, 0s; }

/* Trust pillars: drawn shield + tick, a lock that closes, glowing chips, a slow light along the border */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pillar {
  position: relative; border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--sweep), var(--line-soft) 0 72%, color-mix(in srgb, var(--accent) 70%, transparent) 86%, var(--line-soft) 100%) border-box;
}
.pillar-badge {
  position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 26px;
  border-radius: 50%; background: var(--accent-soft);
  box-shadow: 0 0 0 0 rgb(14 124 119 / 0);
}
.pillar-badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; }
.pillar-badge .pillar-icon { width: 34px; height: 34px; margin: 0; stroke-width: 1.6; }
.icon-lock .keyhole { fill: var(--accent); stroke: none; }
.pillar { display: flex; flex-direction: column; align-items: flex-start; }
.pillar-chips { list-style: none; margin: auto 0 0; padding: 26px 0 0; display: flex; flex-wrap: nowrap; gap: 8px; }
.pillar-chips li { white-space: nowrap; }
.pillar-chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-soft); font: 500 0.8125rem/1 var(--sans); color: var(--fg);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.pillar-chips li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m4 7.2 2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
/* Start states only when the reveal runs (JS + motion allowed); otherwise everything shows as final. */
.pillar[data-reveal]:not(.is-in) .icon-shield .draw, .pillar[data-reveal]:not(.is-in) .icon-shield .tick { stroke-dashoffset: 1; }
.icon-shield .draw, .icon-shield .tick { stroke-dasharray: 1; stroke-dashoffset: 0; }
.icon-shield .draw { transition: stroke-dashoffset 1100ms cubic-bezier(0.5, 0, 0.3, 1) 300ms; }
.icon-shield .tick { stroke: var(--accent); stroke-width: 2.2; transition: stroke-dashoffset 450ms var(--ease) 1350ms; }
.pillar[data-reveal]:not(.is-in) .icon-lock .shackle { transform: translateY(-5px) rotate(-14deg); }
.icon-lock .shackle { transform-box: fill-box; transform-origin: 100% 100%; transition: transform 520ms cubic-bezier(0.5, -0.4, 0.4, 1.6) 900ms; }
.pillar[data-reveal]:not(.is-in) .icon-lock .keyhole { opacity: 0; }
.icon-lock .keyhole { transition: opacity 300ms var(--ease) 1400ms; }
.pillar[data-reveal]:not(.is-in) .pillar-chips li { opacity: 0; transform: translateY(6px); }
.pillar-chips li:nth-child(1) { transition-delay: 1500ms; }
.pillar-chips li:nth-child(2) { transition-delay: 1700ms; }
.pillar-chips li:nth-child(3) { transition-delay: 1900ms; }
@media (prefers-reduced-motion: no-preference) {
  .pillar.is-in { animation: sweep 9s linear 1.6s infinite; }
  .pillar + .pillar.is-in { animation-delay: 6s; }
  .pillar.is-in .pillar-badge { animation: glow 4.8s ease-in-out 1.9s infinite; }
  .pillar.is-in .pillar-badge::after { animation: ring 4.8s ease-out 1.9s infinite; }
  .pillar.is-in .pillar-chips li { animation: chipglow 7.5s ease-in-out infinite; }
  .pillar.is-in .pillar-chips li:nth-child(1) { animation-delay: 2.6s; }
  .pillar.is-in .pillar-chips li:nth-child(2) { animation-delay: 3.4s; }
  .pillar.is-in .pillar-chips li:nth-child(3) { animation-delay: 4.2s; }
}
@keyframes sweep { to { --sweep: 360deg; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgb(14 124 119 / 0); } 30% { box-shadow: 0 0 26px 2px rgb(14 124 119 / 0.32); } }
@keyframes ring { 0% { opacity: 0.55; transform: scale(1); } 45%, 100% { opacity: 0; transform: scale(1.55); } }
@keyframes chipglow { 0%, 14%, 100% { border-color: var(--line-soft); box-shadow: none; } 6% { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 18px rgb(14 124 119 / 0.25); } }


/* Audience */
.audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.audience li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.audience h3 { font: 400 1.25rem/1.3 var(--serif); letter-spacing: -0.01em; margin-bottom: 6px; }
.audience p { color: var(--muted); font-size: 0.9688rem; }
@media (min-width: 640px) {
  .audience { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 1040px) {
  .audience { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-top: 0; }
  .audience li { padding: 28px 28px 32px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
  .audience li:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
  .audience li:nth-child(-n + 4) { border-top: 1px solid var(--line); }
}
.inline-cta { margin-top: 48px; }

/* FAQ */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: 108px; }
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none;
  font: 400 1.1875rem/1.35 var(--serif); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--muted); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 40em; }

/* Signup */
.signup { position: relative; overflow: hidden; }
.signup::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.035;
  background: url("brand/pattern-dotted-cells.svg") center / 220px repeat;
  -webkit-mask-image: radial-gradient(70% 70% at 80% 50%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 80% 50%, #000, transparent);
}
.signup-grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 960px) { .signup-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.signup-copy { display: grid; gap: 20px; align-content: start; }
.assure { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 0.9375rem; }
.assure li { display: flex; gap: 12px; align-items: baseline; }
.assure li::before { content: ""; flex: 0 0 14px; height: 8px; border: solid var(--accent); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translateY(-3px); }

.card {
  padding: 28px 22px; border-radius: calc(var(--radius) + 4px);
  background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-card);
}
@media (min-width: 600px) { .card { padding: 40px; } }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.input-wrap, .select-wrap { position: relative; }
.form input, .form select {
  width: 100%; min-height: 52px; padding: 0 44px 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg);
  font: 400 1rem/1.2 var(--sans);
  -webkit-appearance: none; appearance: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.form input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.form input:hover, .form select:hover { border-color: color-mix(in srgb, var(--fg) 35%, var(--line)); }
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form select:invalid { color: var(--muted); }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
/* Custom select (app.js customSelect) */
.form select.is-enhanced { display: none; }
.cselect-btn {
  display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 44px 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--muted); text-align: left; cursor: pointer;
  font: 400 1rem/1.2 var(--sans);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.cselect-btn.has-value { color: var(--fg); }
.cselect-btn:hover { border-color: color-mix(in srgb, var(--fg) 35%, var(--line)); }
.cselect-btn:focus-visible, .cselect.is-open .cselect-btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cselect-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-wrap::after { transition: transform 160ms var(--ease); }
.cselect.is-open::after { transform: rotate(-135deg); margin-top: -2px; }
.cselect-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px);
  max-height: 296px; overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px;
  box-shadow: 0 1px 2px rgb(20 32 46 / 0.06), 0 16px 40px -12px rgb(20 32 46 / 0.28);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.99); transform-origin: top center;
  transition: opacity 140ms var(--ease), transform 140ms var(--ease), visibility 0s linear 140ms;
}
.cselect.drop-up .cselect-list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; transform: translateY(4px) scale(0.99); }
.cselect.is-open .cselect-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cselect-list [role="option"] {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 10px 12px; border-radius: 8px; cursor: pointer;
  font-size: 0.9688rem; color: var(--fg);
}
.cselect-list [role="option"].is-active { background: var(--bg-alt); }
.cselect-list [role="option"][aria-selected="true"] { color: var(--accent); font-weight: 500; }
.cselect-list svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.cselect-list [aria-selected="true"] svg { opacity: 1; }

.input-state { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; }
.field[data-state="checking"] .input-state { border: 1.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 700ms linear infinite; }
.field[data-state="valid"] .input-state::after { content: ""; position: absolute; left: 3px; top: 3px; width: 11px; height: 6px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.field[data-state="invalid"] input { border-color: var(--danger); }
.field[data-state="invalid"] input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
.hint { min-height: 0; font-size: 0.875rem; color: var(--muted); }
.hint:empty { display: none; }
.field[data-state="invalid"] .hint { color: var(--danger); }
.hint button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.form-status { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: -8px; }
.form-status.is-error { color: var(--danger); }
.form.is-busy .btn { opacity: 0.7; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

.done[hidden] { display: none; }
.done { display: grid; justify-items: start; gap: 12px; padding: 12px 0; outline: none; }
.done-icon { width: 48px; height: 48px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.done h3 { font: 400 2rem/1.1 var(--serif); letter-spacing: -0.02em; }
.done p { color: var(--muted); }

/* Footer */
.footer { background: var(--footer-bg); color: var(--footer-fg); border-top: 1px solid var(--line); padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer .brand { color: var(--footer-fg); }
.footer-top { display: grid; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 1.4fr; } }
.footer-brand p { margin-top: 16px; max-width: 26em; color: var(--footer-muted); font-size: 0.9688rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 600px) { .footer-nav { grid-template-columns: repeat(3, 1fr); } }
.footer-nav h2 { margin-bottom: 14px; font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--footer-muted); }
.footer-nav a { display: block; padding: 6px 0; color: var(--footer-fg); text-decoration: none; font-size: 0.9375rem; opacity: 0.85; overflow-wrap: anywhere; }
.footer-nav a:hover { opacity: 1; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; color: var(--footer-muted); font-size: 0.8125rem; }

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  transform: translateY(110%); transition: transform 240ms var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta { display: none; } /* removed: the header button already offers early access */

/* Scroll reveal (only when JS + motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Phones: fewer words, smaller pieces, one thing at a time ---------- */
@media (max-width: 719px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; }
  .lede { font-size: 1rem; }
  .hero-panel { gap: 14px; padding: 20px 18px; }
  .prompt-text { min-height: 0; font-size: 0.875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .sk-sub { margin-top: 44px; padding-top: 36px; }
  .sk-head { margin-bottom: 18px; }

  /* Trust: icon, heading, chips; the long paragraph goes */
  .pillars { gap: 14px; }
  .pillar { padding: 22px 20px; }
  .pillar-badge { width: 44px; height: 44px; margin-bottom: 14px; }
  .pillar-badge .pillar-icon { width: 24px; height: 24px; }
  .pillar h3 { font-size: 1.3125rem; margin-bottom: 0; }
  .pillar p { display: none; }
  .pillar-chips { padding-top: 14px; gap: 6px; }
  .pillar-chips li { font-size: 0.75rem; padding: 6px 10px 6px 8px; }

  /* Audience: names only, as pills */
  .audience { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .audience li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .audience h3 { font: 500 0.875rem/1.2 var(--sans); letter-spacing: 0; margin: 0; }
  .audience p { display: none; }
  .inline-cta { display: none; } /* the sticky bottom bar already offers it */
  .band .btn { width: 100%; }
  .band-inner { padding-top: 28px; padding-bottom: 28px; }

  /* Sign-up and footer: drop the repeats */
  .assure { display: none; }
  .footer-nav { display: none; }
}

/* How it works below ~half a monitor: one card plays I -> II -> III in place (prompt, script, clip),
   the three step names sit underneath with the current one lit. */
@media (max-width: 1099px) {
  .howto-bar { gap: 14px; margin-bottom: 18px; }
  .level-btn { padding: 8px 16px; font-size: 0.875rem; }
  .subjects { gap: 4px 16px; }
  .howto-bar, .steps { max-width: 760px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
  .steps > li { display: contents; }
  .mock { grid-row: 1; grid-column: 1 / -1; margin-bottom: 20px; }
  .mock-prompt, .mock-script { height: auto; align-self: stretch; padding: 18px 22px; gap: 10px; }
  .mock-text { font-size: 0.9375rem; }
  .ms-title { font-size: 1.125rem; }
  .ms-lines li { font-size: 0.8125rem; }
  .mv-busy { display: none; }
  .js .howto[data-stage] .mock { opacity: 0; visibility: hidden; transition: opacity 450ms var(--ease), visibility 0s linear 450ms; }
  .js .howto[data-stage="1"] .mock-prompt, .js .howto[data-stage="2"] .mock-script, .js .howto[data-stage="3"] .mock-video {
    opacity: 1; visibility: visible; transition: opacity 450ms var(--ease), visibility 0s;
  }
  .howto:not([data-stage]) .mock-prompt, .howto:not([data-stage]) .mock-script { visibility: hidden; }
  .step-text { grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; transition: opacity 300ms var(--ease); }
  .step-no { font-size: 0.9375rem; }
  .steps h3 { font-size: 1.0625rem; }
  .step-text p { display: none; }
  .howto[data-stage] .step-text { opacity: 0.4; }
  .howto[data-stage="1"] li:nth-child(1) .step-text, .howto[data-stage="2"] li:nth-child(2) .step-text, .howto[data-stage="3"] li:nth-child(3) .step-text { opacity: 1; }
}
@media (max-width: 719px) {
  .mock-prompt, .mock-script { padding: 14px 16px; gap: 6px; }
  .mock-text { font-size: 0.8125rem; }
  .ms-title { font-size: 1rem; }
  .ms-lines li { font-size: 0.75rem; -webkit-line-clamp: 1; }
}

/* Sketch, whenever it is not side by side: one card, the clip fades in over the drawing */
@media (max-width: 899px) {
  .sk { display: grid; gap: 0; }
  .sk > .sk-card { grid-area: 1 / 1; }
  .sk-arrow { display: none; }
  .js .sk .sk-video { opacity: 0; border: 0; transition: opacity 700ms var(--ease); z-index: 3; }
  .js .sk.is-done .sk-video { opacity: 1; }
}

/* Who it's for: a soft light walks through the list, one name every half second, leaving a fading trail */
@media (prefers-reduced-motion: no-preference) {
  .audience li { position: relative; }
  .audience li::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(70% 90% at 50% 50%, rgb(14 124 119 / 0.13), transparent 75%);
    filter: blur(6px);
  }
  .audience.is-lit li::after { animation: trail 4s linear infinite; }
  .audience.is-lit li h3 { animation: trail-ink 4s linear infinite; }
  .audience:not(.is-on) li::after, .audience:not(.is-on) li h3 { animation-play-state: paused; }
  .audience.is-lit li:nth-child(1)::after, .audience.is-lit li:nth-child(1) h3 { animation-delay: 0.0s; }
  .audience.is-lit li:nth-child(2)::after, .audience.is-lit li:nth-child(2) h3 { animation-delay: 0.5s; }
  .audience.is-lit li:nth-child(3)::after, .audience.is-lit li:nth-child(3) h3 { animation-delay: 1.0s; }
  .audience.is-lit li:nth-child(4)::after, .audience.is-lit li:nth-child(4) h3 { animation-delay: 1.5s; }
  .audience.is-lit li:nth-child(5)::after, .audience.is-lit li:nth-child(5) h3 { animation-delay: 2.0s; }
  .audience.is-lit li:nth-child(6)::after, .audience.is-lit li:nth-child(6) h3 { animation-delay: 2.5s; }
  .audience.is-lit li:nth-child(7)::after, .audience.is-lit li:nth-child(7) h3 { animation-delay: 3.0s; }
  .audience.is-lit li:nth-child(8)::after, .audience.is-lit li:nth-child(8) h3 { animation-delay: 3.5s; }
}
@keyframes trail { 0% { opacity: 0; } 3% { opacity: 1; } 12.5% { opacity: 0.75; } 40% { opacity: 0; } 100% { opacity: 0; } }
@keyframes trail-ink { 0%, 40%, 100% { color: inherit; } 3%, 12.5% { color: var(--accent); } }
