/* rokan.computer home + /start (Nov 13 polish pass; research in docs/polish-research.md).
   Calm type (600, tight tracking), compact controls, one product window as the hero moment,
   hover/press <= 200ms, reveals 600ms strong ease-out, reduced motion = still. */
@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin.woff2') format('woff2');
  font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-style: normal; font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #faf9f6; --raised: #ffffff; --ink: #1c1b18; --muted: #5f5c56;
  --line: #e6e3dc; --accent: #c2410c; --alt: #f3f1ec; --on-accent: #ffffff; --soft: #fbefe7;
  --btn: #1c1b18; --on-btn: #ffffff; --btn-hover: #3a3833; --ok: #1d7a45; --bad: #c2362b; --warn: #a35f00;
  --term: #121214; --term-ink: #e4e4e7; --term-dim: #8b8d94;
  --shadow: 0 1px 2px rgb(23 24 27 / .04), 0 8px 24px -6px rgb(23 24 27 / .08), 0 32px 64px -24px rgb(23 24 27 / .14);
  --max: 1120px; --gutter: clamp(16px, 4.4vw, 56px); --section: clamp(80px, 11vw, 144px);
  --font: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-ui: cubic-bezier(.2, .8, .2, 1);
}
/* Nov 21: opens light like ElevenLabs; dark only when picked */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #191918; --raised: #222220; --ink: #ecebe7; --muted: #a6a39c;
  --line: #34332f; --accent: #f0894b; --alt: #1e1e1d; --on-accent: #191918; --soft: #2a2420;
  --btn: #ecebe7; --on-btn: #191918; --btn-hover: #ffffff; --ok: #4cc985; --bad: #ff7b70; --warn: #ffc266;
  --term: #0c0c0e; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 24px 64px -24px rgb(0 0 0 / .6);
}
:root { --edge: color-mix(in oklab, var(--accent) 22%, var(--line)); --edge-strong: color-mix(in oklab, var(--accent) 45%, var(--line)); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.6 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
[id] { scroll-margin-top: 80px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 9;
  background: var(--raised); padding: 8px 12px; border-radius: 8px; }
.mono { font-family: var(--mono); font-size: .82em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--accent) 24%, transparent); }

/* entrance: [data-in] plays on load; [data-reveal] plays when scrolled into view (home.js).
   `translate`, not `transform`, so hover transforms still work. */
@keyframes rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
html.js-reveal [data-reveal]:not(.in) { opacity: 0; }
html.js-reveal [data-reveal].in { animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: no-preference) {
  [data-in] { animation: rise .7s var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 70ms); } }

.hero { position: relative; isolation: isolate; }

/* header: transparent at the top, hairline + blur once the page scrolls (home.js adds .at-top) */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in oklab, var(--ground) 80%, transparent); border-bottom: 1px solid var(--edge);
  transition: background-color .2s var(--ease-ui), border-color .2s var(--ease-ui); }
html.at-top .top { background-color: transparent; border-bottom-color: transparent; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px;
  text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2.2; }
.brand .dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none;
  color: var(--muted); font-size: 15px; padding: 0 12px; border-radius: 8px;
  transition: color .15s var(--ease-ui), background-color .15s var(--ease-ui); }
.nav a:not(.btn):hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.nav .btn { margin-left: 8px; }
@media (max-width: 680px) { .nav .wide { display: none; } }

/* buttons: compact, one filled style, quick feedback */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; font: 600 15px/1 var(--font); letter-spacing: -.005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease-ui), border-color .15s var(--ease-ui), color .15s var(--ease-ui),
    transform .15s var(--ease-ui); }
.btn:active { transform: scale(.98); transition-duration: .06s; }
.btn .arrow { display: inline-block; transition: transform .2s var(--ease-ui); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: color-mix(in oklab, var(--raised) 70%, transparent); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: color-mix(in oklab, var(--ink) 35%, var(--line)); background: var(--raised); }
.btn-sm { min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* type */
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.0; letter-spacing: -.045em; margin: 0; font-weight: 600;
  text-wrap: balance; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -.035em; margin: 0;
  font-weight: 600; max-width: 20ch; text-wrap: balance; }
h3 { letter-spacing: -.015em; font-weight: 600; }
.lede { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.5; color: var(--muted); margin: 0; max-width: 40ch; text-wrap: pretty; }
.sub { color: var(--muted); margin: 0; max-width: 52ch; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
code { font-family: var(--mono); font-size: .88em; font-variant-ligatures: none; }
@media (max-width: 520px) { .actions .btn { width: 100%; min-height: 48px; font-size: 16px; } }

/* hero: text, then one large product window (Linear/Cursor pattern) */
.hero { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.hero-copy h1 { max-width: 13ch; }
.hero-side { display: grid; gap: 24px; padding-bottom: 6px; }
@media (max-width: 900px) { .hero-copy { grid-template-columns: 1fr; } .hero-side { padding: 0; } }
.hero-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-bottom: clamp(40px, 7vw, 88px); }
.hero-split h1 { margin-bottom: 20px; } .hero-split .lede { margin-bottom: 28px; }
@media (max-width: 880px) { .hero-split { grid-template-columns: 1fr; } }

/* the product window */
.app { margin: clamp(40px, 6vw, 72px) 0 0; background: var(--raised); border: 1px solid var(--edge);
  border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--alt) 70%, var(--raised)); }
.lights { display: inline-flex; gap: 7px; } .lights i { width: 11px; height: 11px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 14%, var(--raised)); }
.app-title { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-title b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 12.5px; font-variant-ligatures: none; }
.app-replay { font: 500 13px/1 var(--font); color: var(--muted); background: transparent; border: 1px solid transparent;
  min-height: 30px; padding: 0 10px; border-radius: 7px; cursor: pointer;
  transition: color .15s var(--ease-ui), background-color .15s var(--ease-ui); }
.app-replay:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.app-replay:disabled { opacity: .5; cursor: default; }

.rail { display: flex; list-style: none; margin: 0; padding: 0 16px; gap: 4px 22px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; }
.rail li { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 13.5px;
  color: var(--muted); white-space: nowrap; transition: color .25s var(--ease-ui); }
.rail li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line); background: var(--raised);
  transition: background-color .25s var(--ease-ui), border-color .25s var(--ease-ui); }
.rail li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.rail li.done { color: var(--ink); }
.rail li.done::before { border-color: var(--ok); background: var(--ok)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.rail li.on { color: var(--ink); font-weight: 600; }
.rail li.on::before { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 18%, var(--raised)); }
.rail li.on::after { transform: scaleX(1); }

.app-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.runs { padding: 18px 16px; border-right: 1px solid var(--line); background: color-mix(in oklab, var(--alt) 45%, var(--raised));
  display: grid; gap: 12px; align-content: start; }
.runs-h { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.cust { display: grid; gap: 6px; }
.cn { font-weight: 600; font-size: 14px; }
.chips { display: flex; gap: 6px; }
.rc { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 32px; padding: 0 9px;
  border-radius: 8px; font: 500 12.5px/1 var(--mono); font-variant-ligatures: none; white-space: nowrap;
  border: 1px solid var(--line); color: var(--muted); background: var(--raised);
  transition: background-color .25s var(--ease-ui), border-color .25s var(--ease-ui), color .25s var(--ease-ui),
    transform .25s var(--ease-out); }
.rc.scan { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.rc.ok { border-color: color-mix(in oklab, var(--ok) 45%, var(--line)); color: var(--ink); }
.rc.bad { border-color: var(--bad); color: var(--bad); background: color-mix(in oklab, var(--bad) 9%, var(--raised)); }
.rc.fixed { border-color: var(--ok); color: var(--ok); background: color-mix(in oklab, var(--ok) 11%, var(--raised)); }
.rc.fixed::after { content: "\00a0\2713"; }
.rc.regress { border-color: var(--bad); color: var(--bad); background: color-mix(in oklab, var(--bad) 14%, var(--raised));
  animation: shake .4s var(--ease-ui); }
@keyframes shake { 20% { translate: -3px 0; } 40% { translate: 3px 0; } 60% { translate: -2px 0; } 80% { translate: 1px 0; } }
.runs-status { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* stage: every scene sits in the same grid cell, so the window never changes height (no CLS) */
.stage { display: grid; padding: 20px 24px; }
.scene { grid-area: 1 / 1; align-self: start; min-width: 0; opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity .3s var(--ease-ui), translate .4s var(--ease-out), visibility 0s .3s; }
.app[data-step="1"] [data-scene="1"], .app[data-step="2"] [data-scene="2"], .app[data-step="3"] [data-scene="3"],
.app[data-step="4"] [data-scene="4"], .app[data-step="5"] [data-scene="5"], .app[data-step="6"] [data-scene="6"] {
  opacity: 1; visibility: visible; translate: 0 0; transition-delay: .12s, .12s, 0s; }
.scene p { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.scene .st-title { color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin-bottom: 12px; }
.st-ready { display: flex; align-items: center; gap: 10px; }
.mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  font-size: 12px; font-weight: 700; line-height: 1; }
.st-ready .mark, .g-ok .mark { background: color-mix(in oklab, var(--ok) 16%, var(--raised)); color: var(--ok); }
.g-bad .mark { background: color-mix(in oklab, var(--bad) 14%, var(--raised)); color: var(--bad); }
.ex { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--ground); }
.scene .ex p { color: var(--ink); margin: 0 0 6px; font-size: 15px; }
.scene .ex p:last-child { margin: 0; }
.ex p span:not(.pill) { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.scene .ex .ex-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted);
  font: 500 12px/1.4 var(--mono); font-variant-ligatures: none; margin-bottom: 8px; }
.pill { font: 600 11.5px/1 var(--font); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.pill.bad { color: var(--bad); background: color-mix(in oklab, var(--bad) 12%, var(--raised)); }
.st-note b { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 13px; font-variant-ligatures: none; }
.why { margin: 0; display: grid; gap: 0; }
.why div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.why dt { font-weight: 600; font-size: 14.5px; } .why dd { margin: 0; color: var(--muted); font-size: 15px; }
.diff { display: grid; gap: 8px; }
.diff > div { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--ground);
  font: 12.5px/1.6 var(--mono); font-variant-ligatures: none; }
.scene .diff p { margin: 0; font: inherit; color: var(--ink); overflow-wrap: anywhere; }
.scene .diff .d-id { font-weight: 500; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.d-id span { font-family: var(--font); font-size: 12px; color: var(--muted); }
.scene .diff .d-rm { color: var(--bad); } .scene .diff .d-add { color: var(--ok); }
.diff-sum { margin: 0 0 14px; }
.gate { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gate li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); line-height: 1.5;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); }
.gate li b { color: var(--ink); font: 500 13px var(--mono); font-variant-ligatures: none; }
.gate .g-bad { border-color: color-mix(in oklab, var(--bad) 40%, var(--line)); }
.app.playing .gate li:not(.shown) { opacity: 0; }
.app.playing .gate li.shown { animation: line .35s var(--ease-out) both; }
.st-link { color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.st-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* real terminal output, lines arrive in order */
.term { margin: 0; background: var(--term); color: var(--term-ink); padding: 16px 20px 18px;
  font: 12.5px/1.75 var(--mono); white-space: pre-wrap; font-variant-ligatures: none; overflow-wrap: anywhere; }
.term code { font-size: inherit; }
.term .l { display: block; transition: opacity .3s var(--ease-ui); }
.term .p { color: var(--term-dim); }
.term .rej { color: #ff8a80; } .term .acc { color: #5bd394; } .term b { font-weight: 700; }
.app.playing .term .l:not(.shown) { opacity: .16; }
.app figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@keyframes line { from { opacity: 0; translate: -4px 0; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 760px) {
  .app { border-radius: 14px; }
  .app-title span { display: none; }
  .rail { padding: 0 14px; gap: 4px 16px; }
  .rail li:not(.on):not(:last-child) { font-size: 0; gap: 0; }
  .rail li:not(.on)::after { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .runs { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px; }
  .runs-h { display: none; } .runs-status { grid-column: 1 / -1; margin: 0; }
  .rc { min-width: 0; flex: 1; padding: 0 4px; }
  .stage { padding: 16px 14px; }
  .why div { grid-template-columns: 1fr; gap: 2px; }
  .diff > div { padding: 8px 10px; font-size: 11.5px; }
  .term { font-size: 11px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arrow, .rc, .rail li, .rail li::before, .rail li::after, .scene, .term .l, .top { transition: none; }
  .btn:active, .btn:hover .arrow { transform: none; }
  .rc.regress, .gate li.shown { animation: none; }
}

/* sections */
.band { padding-top: var(--section); }
.band-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 56px; align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px); }
.band-head .sub { padding-bottom: 4px; }
@media (max-width: 860px) { .band-head { grid-template-columns: 1fr; } }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0;
  counter-reset: step; }
.flow li { border-top: 1px solid var(--line); padding-top: 18px; counter-increment: step; }
.flow li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px;
  font: 500 12.5px/1 var(--mono); color: var(--accent); }
.flow strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.flow span { color: var(--muted); font-size: 15px; line-height: 1.55; display: block; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

/* alternating band: full-bleed tint behind one section */
.band-alt { position: relative; isolation: isolate; margin-top: var(--section); padding-bottom: var(--section); }
.band-alt + .band { padding-top: var(--section); }
.band-alt::after { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw);
  background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rows { margin: 0; }
.rows div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 56px;
  padding: 22px 0; border-top: 1px solid var(--line); }
.rows div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 600; font-size: 19px; letter-spacing: -.015em; }
.rows dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .rows div { grid-template-columns: 1fr; gap: 4px; } }

.sec { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--edge);
  border-radius: 16px; background: var(--raised); }
.sec > div { padding: 28px; } .sec > div + div { border-left: 1px solid var(--line); }
.sec h3 { margin: 0 0 8px; font-size: 19px; }
.sec p { margin: 0 0 14px; color: var(--muted); }
.sec a { color: var(--accent); font-weight: 600; text-decoration: none; }
.sec a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .sec { grid-template-columns: 1fr; } .sec > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .sec > div { padding: 22px; } }

.cta { padding-top: var(--section); padding-bottom: var(--section); }
.cta h2 { margin-bottom: 16px; max-width: 18ch; } .cta > p:not(.note) { color: var(--muted); margin: 0 0 28px; max-width: 52ch; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand .brand { color: var(--ink); font-size: 17px; }
.foot-brand p { margin: 10px 0 0; max-width: 30ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 24px 56px; }
.foot-cols p { margin: 0 0 12px; color: var(--ink); font-weight: 600; font-size: 13px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; transition: color .15s var(--ease-ui); } .foot ul a:hover { color: var(--ink); }
.foot-legal { margin: 40px 0 0; font-size: 13px; }
@media (max-width: 640px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

.hl { color: var(--accent); }

/* ---------- Home (Nov 19, light rebuild) ----------
   Calm and familiar, like the product tools people already like: warm white ground, near-black
   type, one orange accent for emphasis, hairlines and soft shadows instead of colour blocks.
   The hero is the copy, centred, then the real product in a plain browser window. */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--raised);
  font-size: 13.5px; color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lead { padding-top: clamp(56px, 9vw, 112px); text-align: center; }
.lead-copy { display: grid; justify-items: center; gap: 22px; }
.lead h1 { max-width: 13ch; }
.lead .lede { max-width: 36em; }
.lead .actions { justify-content: center; }

/* the product window: flat, full container width, the live demo inside */
.shot { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1200px; text-align: left; }
.shot-frame { border: 1px solid var(--line); border-radius: 14px; background: var(--raised); overflow: hidden;
  box-shadow: 0 1px 2px rgb(23 24 27 / .04), 0 24px 48px -16px rgb(23 24 27 / .12), 0 60px 120px -40px rgb(23 24 27 / .18); }
.shot-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--alt); font-size: 13px; color: var(--muted); }
.shot-dots { display: flex; gap: 6px; } .shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-url { flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-open { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 600;
  text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.shot-open:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.shot-open svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.shot-screen { position: relative; height: clamp(460px, 72vh, 760px); background: #faf9f6; }
.shot-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  opacity: 0; transition: opacity .4s var(--ease-out); pointer-events: none; }
.shot.is-loaded .shot-screen iframe { opacity: 1; }
.shot.is-live .shot-screen iframe { pointer-events: auto; }
.shot-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #5f5c56; font-size: 15px; }
.shot-wait a { color: #c2410c; }
.shot.is-loaded .shot-wait { display: none; }
.shot-use { position: absolute; right: 16px; bottom: 16px; z-index: 2; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid #e6e3dc; background: #ffffff; color: #1c1b18;
  font: 600 14px/1 var(--font); cursor: pointer; box-shadow: 0 6px 20px -8px rgb(23 24 27 / .3); }
.shot-use:hover { border-color: #c9c5bc; }
.shot-use .for-touch { display: none; }
@media (hover: none) { .shot-use .for-mouse { display: none; } .shot-use .for-touch { display: inline; } }
.shot-cap { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .shot-screen { height: 560px; } .shot-url { display: none; } }

/* where runs come from */
.stack { padding-top: clamp(48px, 6vw, 72px); text-align: center; }
.stack p { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.stack ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.stack li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised);
  font-size: 14.5px; font-weight: 500; }

/* cards: one look for every grid of points */
.cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--raised); padding: 24px;
  box-shadow: 0 1px 2px rgb(23 24 27 / .03); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card .step { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 16px;
  border-radius: 8px; background: var(--soft); color: var(--accent); font: 600 13px/1 var(--mono); }
@media (max-width: 900px) { .cards { --n: 2 !important; } }
@media (max-width: 560px) { .cards { --n: 1 !important; } }

/* proof: two results, the number first */
.stat .big { display: block; margin: 0 0 6px; font-size: clamp(34px, 4vw, 44px); font-weight: 650;
  letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.stat .big small { font-size: .5em; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.stat h3 { margin-top: 14px; }
.fine { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); max-width: 70ch; }

/* closing call: centred on a raised panel */
.cta { text-align: center; }
.cta-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--raised);
  padding: clamp(40px, 6vw, 72px) var(--gutter); display: grid; justify-items: center; gap: 18px; box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 18ch; }
.cta-panel p { margin: 0; color: var(--muted); max-width: 52ch; }
.cta-panel .actions { justify-content: center; }
.cta-panel .note { margin: 0; }
.card a.inline { color: var(--accent); font-weight: 600; text-decoration: none; } .card a.inline:hover { text-decoration: underline; text-underline-offset: 3px; }
.top { border-bottom-color: var(--line); }
.shot-open { margin-left: auto; }
@media (max-width: 420px) { .eyebrow { font-size: 12.5px; } }


/* ---- Eleven look (Arav, Nov 21): neutral, airy, soft depth, pill buttons, 3D orbs ---- */
:root:not([data-theme="dark"]) { --ground: #fdfdfc; --raised: #ffffff; --alt: #f5f5f4; --line: #ebebe9;
  --ink: #0d0d0e; --muted: #5d5f64; --btn: #0d0d0e; --btn-hover: #2a2a2d; --soft: #f7efe9;
  --shadow: 0 1px 2px rgb(16 16 20 / .04), 0 12px 32px -14px rgb(16 16 20 / .14), 0 40px 80px -40px rgb(16 16 20 / .18); }
.btn { border-radius: 999px; }
.btn-sm { border-radius: 999px; padding: 0 16px; }
.btn-ghost { background: var(--raised); box-shadow: 0 1px 2px rgb(16 16 20 / .06); }
.btn-primary:hover { box-shadow: 0 10px 24px -10px rgb(16 16 20 / .45); transform: translateY(-1px); }
h1 { font-weight: 500; letter-spacing: -.05em; }
@media (min-width: 900px) {
  .lead { text-align: left; }
  .lead-copy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; justify-items: start;
    column-gap: clamp(32px, 5vw, 80px); row-gap: 22px; }
  .lead .eyebrow { grid-column: 1 / -1; }
  .lead h1 { grid-column: 1; grid-row: 2 / span 2; max-width: 12ch; }
  .lead .lede { grid-column: 2; grid-row: 2; max-width: 30em; font-size: 17px; }
  .lead .actions { grid-column: 2; grid-row: 3; justify-content: flex-start; }
}
.shot { position: relative; isolation: isolate; }
.shot-frame { border-radius: 22px; box-shadow: var(--shadow); }
.shot::before { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 32px; background: var(--alt);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), inset 0 0 0 1px var(--line); }
.orb { position: absolute; z-index: -2; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .95) 0 6%, rgb(255 255 255 / 0) 22%),
    radial-gradient(circle at 70% 75%, #6d4bd8 0, rgb(109 75 216 / 0) 55%),
    radial-gradient(circle at 30% 70%, #f0894b 0, rgb(240 137 75 / 0) 60%),
    radial-gradient(circle at 50% 50%, #c2410c, #7a2a10);
  box-shadow: inset -18px -24px 40px rgb(0 0 0 / .28), inset 10px 14px 30px rgb(255 255 255 / .35), 0 30px 60px -20px rgb(122 42 16 / .45);
  animation: orb-float 9s ease-in-out infinite; }
.orb.a { width: clamp(120px, 14vw, 190px); aspect-ratio: 1; top: -70px; right: -40px; }
.orb.b { width: clamp(70px, 8vw, 110px); aspect-ratio: 1; bottom: 40px; left: -46px; animation-delay: -4s;
  filter: hue-rotate(-28deg) saturate(1.1); }
@keyframes orb-float { 50% { transform: translate3d(0, -12px, 0) rotate(8deg); } }
@media (max-width: 720px) { .orb { display: none; } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } .btn-primary:hover { transform: none; } }

/* FIG. 01: the audited result as a chart (AgentWeb-style figure with its notes) */
.fig { margin: 40px 0 8px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--raised); box-shadow: var(--shadow); }
.fig-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 0 0 18px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.fig-key { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0; font-family: var(--font); }
.fig-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fig-key i.base, .fig-bar.base { background: color-mix(in oklab, var(--ink) 18%, var(--alt)); }
.fig-key i.fix, .fig-bar.fix { background: var(--accent); }
.fig-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 14px; margin: 0 0 12px; }
.fig-k { font-size: 13px; color: var(--muted); }
.fig-bars { display: grid; gap: 5px; }
.fig-bar { display: flex; justify-content: flex-end; align-items: center; height: 22px; width: calc(var(--v) / 50 * 100%); border-radius: 6px; padding: 0 8px; transform-origin: left; animation: fig-grow 1s var(--ease-out) both; }
.fig-bar b { font: 600 12px var(--mono); color: var(--ink); }
.fig-bar.fix b { color: #fff; }
.fig-axis { display: flex; justify-content: space-between; margin: 6px 0 0 104px; font: 11px var(--mono); color: var(--muted); }
.fig figcaption { margin: 14px 0 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
@keyframes fig-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .fig-bar { animation: none; } }

.fig-row.wide { grid-template-columns: 190px 1fr; }
.fig-row.wide .fig-bar { width: calc(var(--v) / var(--max) * 100%); height: 26px; }
.fig-note { display: block; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.proofline { margin: 0; font-size: 14px; color: var(--muted); }
.proofline b { color: var(--ink); font-weight: 600; }
.proofline a { margin-left: 6px; color: var(--accent); }
@media (min-width: 900px) { .lead .proofline { grid-column: 2; grid-row: 4; } .lead .actions { grid-row: 3; } }
@media (max-width: 640px) { .fig-row.wide { grid-template-columns: 1fr; } }


/* ---- Design pass, Nov 21 (study: gtm/design-study-elevenlabs-nov21.md). Clarity first: the
   message and next step fit one laptop screen; depth from soft stacked shadows, not outlines;
   steady buttons; calm motion, off for reduced-motion users. ---- */
.lead { padding-top: clamp(40px, 6vw, 80px); }
h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
:root:not([data-theme="dark"]) {
  --line: rgb(13 13 14 / .08);
  --ring: 0 0 0 1px rgb(16 16 20 / .06);
  --shadow-xs: var(--ring), 0 1px 1px -.5px rgb(16 16 20 / .06), 0 3px 3px -1.5px rgb(16 16 20 / .05);
  --shadow-sm: var(--shadow-xs), 0 6px 6px -3px rgb(16 16 20 / .05), 0 12px 12px -6px rgb(16 16 20 / .03);
  --shadow-md: var(--shadow-sm), 0 24px 24px -12px rgb(16 16 20 / .04);
  --shadow-lg: var(--shadow-md), 0 48px 48px -24px rgb(16 16 20 / .04);
}
:root[data-theme="dark"] {
  --line: rgb(255 255 255 / .09);
  --ring: 0 0 0 1px rgb(255 255 255 / .08);
  --shadow-xs: var(--ring); --shadow-sm: var(--ring), 0 8px 24px -8px rgb(0 0 0 / .6);
  --shadow-md: var(--shadow-sm); --shadow-lg: var(--ring), 0 32px 64px -24px rgb(0 0 0 / .7);
}
.card { border: 0; box-shadow: var(--shadow-sm); border-radius: 16px; }
.fig, .cta-panel { border: 0; box-shadow: var(--shadow-md); }
.shot-frame { border: 0; box-shadow: var(--shadow-lg); }
.btn-ghost, .stack li, .eyebrow { border-color: transparent; box-shadow: var(--shadow-xs); }
.top { border-bottom-color: var(--line); }
.btn { min-height: 44px; padding: 0 20px; font-size: 16px; font-weight: 550; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary:hover { transform: none; box-shadow: none; background: #2a2a2d; }
.btn-ghost { background: var(--raised); }
.btn-ghost:hover { background: #fafafa; box-shadow: var(--ring), 0 2px 4px rgb(16 16 20 / .06); }
:root[data-theme="dark"] .btn-ghost:hover { background: rgb(255 255 255 / .06); }
.btn:active { transform: scale(.98); transition-duration: .06s; }
.orb { display: none; }
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .shot-frame { animation: settle .9s cubic-bezier(.16, 1, .3, 1) .2s both; transform-origin: 50% 0; }
  @keyframes settle { from { transform: perspective(1600px) rotateX(6deg) translateY(16px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Design pass 2 (Nov 21): proof numbers readable at a glance; bars grow when seen, not on load; the
   proof section sits on one warm band instead of boxes on white. */
.stat .big, .fig-bar b, .proofline b, .rc { font-variant-numeric: tabular-nums; }
.stat .big { font-weight: 600; letter-spacing: -.03em; }
.proofline { font-size: 15px; }
.proofline b { font-size: 17px; }
.fig-bar { animation: none; }
html.js-reveal .fig.in .fig-bar { animation: fig-grow 1s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { html.js-reveal .fig.in .fig-bar { animation: none; } }
:root:not([data-theme="dark"]) { --alt: #f6f5f3; }
.band-alt .card, .band-alt .fig { background: var(--raised); }

/* Phones: a picture of the product and a link, not the whole app in a small box (design study #10) */
@media (max-width: 719px) {
  .shot-screen { height: auto; min-height: 0; aspect-ratio: auto; background: var(--alt); }
  .shot-screen iframe { display: none; }
  .shot-wait { position: static; padding: 24px; background: color-mix(in oklab, var(--raised) 88%, transparent); border-radius: 12px; margin: 16px; }
  .shot-use, .shot-cap { display: none; }
}

/* Neutral dark (founder rule: no warm/brown dark). Contrast: ink 16.1:1, muted 7.3:1, accent 7.5:1 on #111112. */
:root[data-theme="dark"] { --ground: #111112; --raised: #1a1a1c; --alt: #161618; --ink: #ededee; --muted: #a1a1a6;
  --accent: #f0894b; --on-accent: #111112; --soft: #22201f; --btn: #ededee; --on-btn: #111112; }

/* focus ring hugs the pill shapes (visitor walk #16) */
.btn:focus-visible, .stack li a:focus-visible { outline-offset: 2px; }
