/* Unfluff landing page. Static HTML + CSS, no JavaScript.
   CSP-safe: no inline style attributes, no <style> blocks, no data: URIs.
   Tokens follow the Unfluff design system; names match the chat's where they overlap. */

@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio-Variable-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio-Variable-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio-Italic-Variable-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio-Italic-Variable-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
/* Inter: a copy of web/public/fonts/Inter-Variable-latin.woff2 (landing/DESIGN.md section 2). */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --white: #ffffff;
  --grey-50: #f5f5f4;
  --grey-100: #efeeec;
  --grey-200: #e6e6e4;
  --grey-300: #d4d4d2;
  --grey-400: #a3a3a1;
  --grey-500: #8a8a88;
  --grey-600: #6e6e6c;
  --grey-800: #2a2a2a;
  --grey-900: #161616;
  --black: #0a0a0a;
  --accent: #1446ff;
  --signal-gain: #1446ff;
  --signal-loss: #f2293a;

  --text-primary: var(--black);
  --text-body: var(--grey-800);
  --text-secondary: var(--grey-600);
  --surface-raised: #fafafa;
  --surface-muted: var(--grey-50);
  --line: var(--grey-200);
  --bar: var(--grey-900);
  --ink-hover: #2e2e2e;

  --font-display: "Gelasio", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-subhead: clamp(15px, 1.3vw, 18px);

  --gutter: clamp(20px, 4vw, 64px);
  --hero-pad-top: clamp(64px, 8vw, 112px);
  --section-void: clamp(128px, 18vw, 256px);
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --fast: 140ms;
  --base: 220ms;
  --loop: 14s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; background: var(--white); color: var(--text-body); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
a { color: var(--text-primary); text-decoration: none; }
a:hover { color: var(--text-secondary); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.i { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.i.w15 { stroke-width: 1.5; } .i.w175 { stroke-width: 1.75; } .i.w2 { stroke-width: 2; }

/* Announcement bar */
.bar { position: sticky; top: 0; z-index: 50; height: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 16px; padding: 0 var(--gutter); background: var(--bar); font-size: 13px; letter-spacing: -.01em; line-height: 1; }
.wordmark { justify-self: start; font-size: 17px; font-weight: 500; letter-spacing: -.045em; line-height: 1; color: var(--white); white-space: nowrap; }
.wordmark:hover { color: var(--white); }
.bar-link { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.bar-msg { color: var(--white); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-cta { color: var(--grey-500); white-space: nowrap; transition: color var(--fast) var(--ease-out); }
.bar-arrow { flex: none; width: 14px; height: 14px; color: var(--grey-400); transition: transform var(--base) var(--ease-out), color var(--fast) var(--ease-out); }
.bar-link:hover .bar-cta, .bar-link:hover .bar-arrow { color: var(--white); }
.bar-link:hover .bar-arrow { transform: translateX(3px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); background: var(--grey-900); color: var(--white); font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -.01em; line-height: 1; white-space: nowrap; cursor: pointer; transition: background var(--fast) var(--ease-out), transform var(--fast) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--ink-hover); color: var(--white); }
.btn:active { transform: scale(.98); }
.btn-ic { display: inline-flex; flex: none; width: 16px; height: 16px; margin-left: 5px; }
.btn-sm { height: 32px; padding: 0 14px; gap: 6px; font-size: 12px; }
.btn-sm .btn-ic { width: 13px; height: 13px; margin-left: 3px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-lg .btn-ic { width: 18px; height: 18px; }
.btn-secondary { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1px var(--grey-200); }
.btn-secondary:hover { background: var(--surface-muted); color: var(--black); }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--hero-pad-top) var(--gutter) 0; }
.hero h1 { margin: 24px 0 0; max-width: 940px; font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6.2vw, 84px); line-height: 1.05; letter-spacing: -.03em; color: var(--text-primary); text-wrap: balance; }
h1 em, h2 em { font-style: italic; }
.hero-sub { margin: 20px 0 0; max-width: 560px; font-size: var(--text-subhead); line-height: 1.5; color: var(--text-secondary); }
.hero-ctas { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.hero-note { margin: 16px 0 0; font-size: 13px; color: var(--text-secondary); }
.hero-media { display: flex; justify-content: center; max-width: 100%; margin-top: clamp(-72px, -5vw, -24px); overflow: hidden; }

/* Hero phone. Coordinates are the screen rect inside the 896×1120 photo.
   Everything inside .ph is sized in em on a 380-unit-wide phone, scaled by container units. */
.phone { position: relative; flex: none; width: min(780px, calc(100vw - 32px)); aspect-ratio: 896 / 1120; container-type: inline-size; }
.phone-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; mix-blend-mode: multiply; }
.phone-screen { position: absolute; left: 36.719%; top: 15.268%; width: 26.897%; height: 46.339%; border-radius: 3.348cqw; overflow: hidden; background: var(--white); container-type: inline-size; }
.phone-island { position: absolute; left: 34.025%; top: 1.349%; width: 30.705%; height: 4.046%; border-radius: var(--radius-pill); background: var(--black); }
.ph { height: 100%; display: flex; flex-direction: column; gap: .625em; padding: 3.625em .75em .75em; background: var(--surface-raised); font-size: calc(100cqw * .0421053); -webkit-font-smoothing: antialiased; text-align: left; }
.ph-stack { display: grid; }
.ph-stack > * { grid-area: 1 / 1; }
.ph-dots { justify-self: start; align-self: start; display: inline-flex; gap: .3125em; padding: 1.5em 1.25em; border-radius: 1.375em; background: var(--white); box-shadow: 0 0 0 1px var(--grey-200), 0 .125em .5em rgba(10, 10, 10, .04); }
.ph-dots i { width: .375em; height: .375em; border-radius: 50%; background: var(--grey-400); opacity: .35; }
.ph-verdict { margin: 0; }
.ph-verdict-mark { display: inline-flex; width: .875em; height: .875em; margin-right: .375em; vertical-align: -.125em; color: var(--accent); }
.ph-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.ph-panel { display: flex; flex-direction: column; gap: .5em; min-width: 0; padding: .75em .75em .875em; }
.ph-panel + .ph-panel { border-left: 1px solid var(--line); }
.ph-panel-title { display: flex; align-items: center; gap: .5em; font-size: .75em; color: var(--text-primary); }
.ph-panel-title span { display: inline-flex; width: 1em; height: 1em; }
.ph-panel-intro { font-size: .6875em; line-height: 1.45; color: var(--text-body); }
.ph-item { display: grid; grid-template-columns: 1.0476em minmax(0, 1fr); column-gap: .5714em; font-size: .65625em; line-height: 1.45; color: var(--text-secondary); }
.ph-item span:first-child { display: inline-flex; width: 1.0476em; height: 1.0476em; margin-top: .19em; color: var(--text-body); }
.ph-item b { font-weight: 400; color: var(--text-primary); }
.ph-foot { margin: 0; font-size: .75em; line-height: 1.5; color: var(--text-secondary); }

/* Loop: question in → thinking dots → verdict → table → panels → runner-up → hold → fade. */
.ph-user, .ph-dots, .ph-asst, .ph-b1, .ph-b2, .ph-b3 { animation: var(--loop) var(--ease-out) infinite both; }
.ph-user { animation-name: ph-user; }
.ph-dots { animation-name: ph-dots; }
.ph-asst { animation-name: ph-asst; }
.ph-b1 { animation-name: ph-b1; }
.ph-b2 { animation-name: ph-b2; }
.ph-b3 { animation-name: ph-b3; }
.ph-dots i { animation: ph-dot 780ms linear infinite; }
/* Word-by-word streaming: one keyframe, staggered 70ms (0.5% of the loop) per word. Pure CSS, no script. */
.ph-w { animation: ph-word var(--loop) linear infinite both; }
.ph-w.w1 { animation-delay: 0ms; }
.ph-w.w2 { animation-delay: 70ms; }
.ph-w.w3 { animation-delay: 140ms; }
.ph-w.w4 { animation-delay: 210ms; }
.ph-w.w5 { animation-delay: 280ms; }
.ph-w.w6 { animation-delay: 350ms; }
.ph-w.w7 { animation-delay: 420ms; }
.ph-w.w8 { animation-delay: 490ms; }
.ph-w.w9 { animation-delay: 560ms; }
.ph-w.w10 { animation-delay: 630ms; }
.ph-w.w11 { animation-delay: 700ms; }
.ph-w.w12 { animation-delay: 770ms; }
.ph-w.w13 { animation-delay: 840ms; }
.ph-w.w14 { animation-delay: 910ms; }
.ph-w.w15 { animation-delay: 980ms; }
.ph-w.w16 { animation-delay: 1050ms; }
.ph-w.w17 { animation-delay: 1120ms; }
.ph-w.w18 { animation-delay: 1190ms; }
.ph-w.w19 { animation-delay: 1260ms; }
.ph-w.w20 { animation-delay: 1330ms; }
.ph-dots i:nth-child(2) { animation-delay: 260ms; }
.ph-dots i:nth-child(3) { animation-delay: 520ms; }
@keyframes ph-user { 0%, 3% { opacity: 0; transform: translateY(.375em); } 7%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes ph-dots { 0%, 13% { opacity: 0; } 15%, 26% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes ph-asst { 0%, 26% { opacity: 0; transform: translateY(.375em); } 30%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes ph-b1 { 0%, 41% { opacity: 0; transform: translateY(.375em); } 45%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes ph-b2 { 0%, 48% { opacity: 0; transform: translateY(.375em); } 52%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes ph-b3 { 0%, 55% { opacity: 0; transform: translateY(.375em); } 59%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes ph-word { 0%, 29.5% { opacity: 0; } 30%, 93% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes ph-dot { 0%, 33% { opacity: 1; } 34%, 100% { opacity: .35; } }

/* Proof points */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; width: 100%; max-width: var(--container-max); margin-top: 12px; text-align: left; }
.proof-card { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 26px; border-radius: var(--radius-lg); background: var(--surface-muted); }
.proof-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--text-primary); }
.proof-ic svg { width: 18px; height: 18px; }
.proof-card p { margin: 0; font-size: 15px; line-height: 1.5; letter-spacing: -.01em; color: var(--text-secondary); text-wrap: pretty; }
.proof-card b { font-weight: 500; color: var(--text-primary); }

/* Questions */
.questions { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(80px, 9vw, 128px) var(--gutter) var(--section-void); scroll-margin-top: 40px; }
.questions h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; color: var(--text-primary); text-wrap: balance; }
.q-sub { margin: 18px 0 0; max-width: 560px; font-size: var(--text-subhead); line-height: 1.5; color: var(--text-secondary); }
.qa { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.qa-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.qa-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin-top: 64px; }
.qa-answers { display: flex; justify-content: center; width: 100%; margin-top: 64px; text-align: left; }
.qa-answer { display: none; flex-direction: column; gap: 12px; width: 100%; max-width: 760px; }
@keyframes qa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#qa-1:checked ~ .qa-answers #a-1, #qa-2:checked ~ .qa-answers #a-2, #qa-3:checked ~ .qa-answers #a-3, #qa-4:checked ~ .qa-answers #a-4,
#qa-5:checked ~ .qa-answers #a-5, #qa-6:checked ~ .qa-answers #a-6, #qa-7:checked ~ .qa-answers #a-7, #qa-8:checked ~ .qa-answers #a-8 { display: flex; animation: qa-in 200ms var(--ease-out); }
#qa-1:checked ~ .qa-chips [for="qa-1"], #qa-2:checked ~ .qa-chips [for="qa-2"], #qa-3:checked ~ .qa-chips [for="qa-3"], #qa-4:checked ~ .qa-chips [for="qa-4"],
#qa-5:checked ~ .qa-chips [for="qa-5"], #qa-6:checked ~ .qa-chips [for="qa-6"], #qa-7:checked ~ .qa-chips [for="qa-7"], #qa-8:checked ~ .qa-chips [for="qa-8"] { background: var(--grey-900); color: var(--white); box-shadow: none; }
#qa-1:focus-visible ~ .qa-chips [for="qa-1"], #qa-2:focus-visible ~ .qa-chips [for="qa-2"], #qa-3:focus-visible ~ .qa-chips [for="qa-3"], #qa-4:focus-visible ~ .qa-chips [for="qa-4"],
#qa-5:focus-visible ~ .qa-chips [for="qa-5"], #qa-6:focus-visible ~ .qa-chips [for="qa-6"], #qa-7:focus-visible ~ .qa-chips [for="qa-7"], #qa-8:focus-visible ~ .qa-chips [for="qa-8"] { outline: 2px solid var(--black); outline-offset: 2px; }
.q-cta { margin-top: 48px; }

/* Chat messages: the locked Q&A card. Sized in em so the hero phone can scale them. */
.msg { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: .75em; align-items: start; border-radius: 1.375em; color: var(--text-primary); line-height: 1.5; letter-spacing: -.005em; }
.msg.has-mark { grid-template-columns: 1.25em minmax(0, 1fr); }
.msg-user { padding: 1em 1.25em; background: var(--grey-100); }
.msg-asst { padding: 1.125em 1.25em 1.25em; background: var(--white); box-shadow: 0 0 0 1px var(--grey-200), 0 .125em .5em rgba(10, 10, 10, .04); }
.msg-mark { display: inline-flex; width: 1.25em; height: 1.25em; margin-top: .125em; color: var(--accent); }
.msg-body { display: flex; flex-direction: column; gap: .875em; min-width: 0; }
.msg-body p { margin: 0; }
.msg-body b { font-weight: 500; }
.av { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; margin-top: .125em; border-radius: 50%; overflow: hidden; background: var(--grey-300); }
.av span { font-size: .5625em; font-weight: 500; line-height: 1; color: var(--grey-800); }

.sources { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.src { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.3; letter-spacing: -.005em; color: var(--text-secondary); white-space: nowrap; }
.src svg { flex: none; width: 14px; height: 14px; color: var(--text-body); }

.dt-wrap { width: 100%; overflow-x: auto; }
.dt { width: 100%; border-collapse: separate; border-spacing: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); font-size: .875em; line-height: 1.45; color: var(--text-body); }
.dt th, .dt td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.dt th { padding: .846em 1.077em; background: var(--surface-muted); font-size: .9286em; font-weight: 400; color: var(--text-secondary); white-space: nowrap; }
.dt td { padding: .7857em 1em; font-variant-numeric: tabular-nums; }
.dt .r { text-align: right; }
.th-in { display: inline-flex; align-items: center; gap: 8px; }
.th-in svg { width: 14px; height: 14px; }
.sig { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; letter-spacing: -.01em; color: var(--text-body); white-space: nowrap; }
.sig svg { flex: none; width: 14px; height: 14px; color: var(--text-body); }
.sig.gain svg { color: var(--signal-gain); }
.sig.loss svg { color: var(--signal-loss); }

/* Follow-up chips: shown for realism, not links (nothing to open on the landing page). */
.lchips { display: flex; flex-wrap: wrap; gap: 8px; }
.lchip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 10px; border-radius: var(--radius-sm); background: var(--white); color: var(--text-primary); box-shadow: 0 0 0 1px var(--grey-100), 0 1px 3px rgba(10, 10, 10, .05); font-size: 13px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.lchip-ic { display: inline-flex; width: 13px; height: 13px; color: var(--text-body); }
.lchip-dot { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 2px; border-radius: 50%; background: var(--grey-900); color: var(--white); }
.lchip-dot svg { width: 9px; height: 9px; }

@media (max-width: 640px) {
  .bar { grid-template-columns: auto 1fr; }
  .bar-msg, .bar-end { display: none; }
  .bar-link { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph-user, .ph-asst, .ph-b1, .ph-b2, .ph-b3, .ph-w { animation: none; opacity: 1; transform: none; }
  .ph-dots { display: none; }
  #qa-1:checked ~ .qa-answers #a-1, #qa-2:checked ~ .qa-answers #a-2, #qa-3:checked ~ .qa-answers #a-3, #qa-4:checked ~ .qa-answers #a-4,
  #qa-5:checked ~ .qa-answers #a-5, #qa-6:checked ~ .qa-answers #a-6, #qa-7:checked ~ .qa-answers #a-7, #qa-8:checked ~ .qa-answers #a-8 { animation: none; }
  .btn, .bar-arrow, .bar-cta { transition: none; }
}
