/* House design system: dark, calm, one signature gradient. Distilled from Trial Match (1st place, AgentVerse 2026).
   Link this one file, plus the fonts in <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,300..700&family=Google+Sans+Code:wght@400;500&display=swap">
   Order: tokens, light theme, base, layout, type, controls, surfaces, the agent, status, top bar, hero, relay, scenes,
   overlays, motion, touch. House rules: surfaces step up in tone instead of borders; the gradient appears only where the
   agent or the brand speaks; each colour means one thing; motion plays the same on every screen and setting. */

/* ---------- tokens ---------- */
@property --tba { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  color-scheme: dark;
  /* ground and surfaces: each step is a little lighter, so nothing needs a border */
  --bg: #0E0E0F;          /* page */
  --bg-alt: #121314;      /* every other section */
  --panel: #161719;       /* big panels, scene frames */
  --surface: #1A1B1D;     /* cards */
  --surface-2: #26282B;   /* chips, options, inputs */
  --surface-3: #333537;   /* raised controls */
  --hover: #37393B;
  --hair: rgba(255,255,255,.08);   /* the 1px inset ring on cards */
  --rule: rgba(255,255,255,.06);   /* section dividers */
  --line: #444746;                 /* outlined buttons and filter chips */
  /* ink, brightest to quietest */
  --ink: #E3E3E3; --muted: #C4C7C5; --soft: #9AA0A6; --faint: #8E918F; --dim: #6F7378;
  /* action */
  --accent: #A8C7FA; --accent-ink: #062E6F; --accent-soft: #004A77; --on-soft: #C2E7FF; --link-hover: #D3E3FD;
  /* meaning: one job each */
  --ok: #6DD58C;  --ok-soft: rgba(109,213,140,.14); --ok-tint: #9BE0AE;   /* met, done, kept safe, stays here */
  --ask: #FDD663; --ask-soft: rgba(253,214,99,.13);                       /* needs an answer, to check */
  --bad: #F2B8B5; --bad-soft: rgba(242,184,181,.14);                      /* not met, wrong, the problem */
  --ai: #CDB4F0;  --ai-soft: rgba(155,114,203,.18);                       /* AI, models, the agent's tags */
  --live: #F28B82; --badge: #D96570;                                      /* live dot, unread count */
  /* the signature gradient (blue, violet, rose) and its lighter twin for text on dark photos */
  --g1: #4285F4; --g2: #9B72CB; --g3: #D96570;
  --g1-lt: #8AB4F8; --g2-lt: #C58AF9; --g3-lt: #F28B82;
  --grad: linear-gradient(90deg, var(--g1), var(--g2) 55%, var(--g3));
  --grad-lt: linear-gradient(90deg, var(--g1-lt), var(--g2-lt) 55%, var(--g3-lt));
  --grad-loop: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g2), var(--g1));
  --grad-soft: linear-gradient(135deg, rgba(66,133,244,.16), rgba(155,114,203,.12) 55%, rgba(217,101,112,.08));
  --grad-edge: linear-gradient(135deg, rgba(66,133,244,.55), rgba(155,114,203,.35), rgba(217,101,112,.2));
  /* type */
  --sans: "Google Sans Flex", "Google Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Google Sans Code", "Roboto Mono", ui-monospace, monospace;
  /* shape */
  --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 24px; --r-xl: 28px; --r-2xl: 32px;
  /* motion */
  --ease: cubic-bezier(.2,.8,.2,1);     /* the house curve: quick out, soft landing */
  --spring: cubic-bezier(.3,1.6,.5,1);  /* small pops only: ticks, badges, chips */
  --sweep: cubic-bezier(.65,0,.35,1);   /* things that travel across the screen */
  --exit: cubic-bezier(.7,0,.2,1);      /* screens that leave */
  --wrap: 1200px;
}

/* ---------- light theme: for printed handouts, or a host that needs one. Dark is the house look. ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --bg-alt: #F8FAFD; --panel: #F0F4F9; --surface: #F0F4F9; --surface-2: #E4EAF2; --surface-3: #D8DFE8; --hover: #CED6E0;
  --hair: rgba(0,0,0,.06); --rule: rgba(0,0,0,.08); --line: #C4C7C5;
  --ink: #1F1F1F; --muted: #444746; --soft: #5F6368; --faint: #5F6368; --dim: #747775;
  --accent: #0B57D0; --accent-ink: #FFFFFF; --accent-soft: #D3E3FD; --on-soft: #041E49; --link-hover: #0842A0;
  --ok: #146C2E; --ok-soft: #C4EED0; --ok-tint: #146C2E;
  --ask: #7A5900; --ask-soft: #FFEFC2;
  --bad: #B3261E; --bad-soft: #F9DEDC;
  --ai: #6E3FBF; --ai-soft: #EADDFF;
  --g1-lt: #4285F4; --g2-lt: #9B72CB; --g3-lt: #D96570;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.snap { scroll-snap-type: y proximity; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .9em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-lt { background: var(--grad-lt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .faint { color: var(--faint); } .dim { color: var(--dim); }
.turn { color: var(--dim); }   /* the grey second beat of a headline */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; }
.sect { position: relative; padding: 140px 24px; }
.sect.alt { background: var(--bg-alt); }
.sect.ruled { border-top: 1px solid var(--rule); }
.slide { min-height: min(100vh, 980px); display: flex; flex-direction: column; justify-content: center; }
.snap .slide { scroll-snap-align: start; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 20px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.row.split { justify-content: space-between; align-items: baseline; }
.g2, .g3, .g4, .g5 { display: grid; gap: var(--gap, 24px); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.center { align-items: center; }
@media (max-width: 900px) {
  .sect { padding: 96px 20px; }
  .slide { min-height: 0; }
  .g2, .g3 { grid-template-columns: minmax(0,1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .sect { padding: 80px 16px; }
  .g4 { grid-template-columns: minmax(0,1fr); }
}

/* ---------- type ---------- */
.eyebrow { font-size: 14px; font-weight: 500; color: var(--accent); }
.display { font-size: clamp(42px, 5.6vw, 96px); line-height: 1; letter-spacing: -.04em; max-width: 17ch; }
.h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.025em; max-width: 20ch; }
.h2.sm { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.02em; max-width: 22ch; }
.h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.015em; }
.closing { font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -.035em; }
.lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; color: var(--muted); max-width: 40em; }
.intro { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.body { font-size: 18px; color: var(--soft); }
.fine { font-size: 13px; color: var(--dim); }
.label { font-size: 14px; color: var(--soft); }
.caps { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.bignum { font-size: clamp(72px, 9vw, 120px); line-height: .9; letter-spacing: -.04em; font-weight: 300; font-variant-numeric: tabular-nums; }
.bignum.xl { font-size: clamp(80px, 11vw, 150px); letter-spacing: -.05em; }
.bignum.bad { color: var(--bad); }
.bignum.off { color: var(--dim); }
.beats { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; color: var(--dim); }   /* "Reads. Checks. Matches. People decide." */

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 20px; font-size: 14px; font-weight: 500; background: var(--surface-3); color: var(--ink); text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), filter .2s, background .2s; }
.btn:hover { background: var(--hover); color: var(--ink); }
.btn.pri { background: var(--accent); color: var(--accent-ink); }
.btn.pri:hover { filter: brightness(1.1); color: var(--accent-ink); }
.btn.tonal { background: var(--accent-soft); color: var(--on-soft); }
.btn.tonal:hover { filter: brightness(1.15); }
.btn.out { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--accent); }
.btn.out:hover { background: var(--surface-2); }
.btn.text { background: transparent; color: var(--accent); padding: 0 12px; }
.btn.text:hover { background: var(--surface-2); }
.btn.glass { background: rgba(255,255,255,.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: #fff; }
.btn.glass:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn.big { height: 56px; padding: 0 30px; border-radius: 28px; font-size: 16px; }
.btn.big:hover { transform: translateY(-2px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .38; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.arr { display: inline-block; transition: transform .2s var(--ease); }
a:hover .arr, .btn:hover .arr, button:hover .arr { transform: translateX(4px); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--accent); transition: gap .2s var(--ease); }
.more:hover { gap: 12px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .2s; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn svg { width: 22px; height: 22px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13px; color: #fff; background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); white-space: nowrap; }
.pill svg { width: 15px; height: 15px; flex: none; }
.pill.edge { background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 0 32px rgba(155,114,203,.25); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.input { height: 48px; width: 100%; border: 0; border-radius: var(--r-sm); background: var(--surface-2); padding: 0 14px; font-size: 16px; color: var(--ink); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.seg { display: inline-flex; flex-wrap: wrap; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.seg button { height: 40px; padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg button + button { box-shadow: inset 1px 0 0 var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--on-soft); }
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 32px; margin: 0; border-radius: 16px; background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--faint); cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 8px; left: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--faint); transition: all .2s var(--ease); }
.switch:checked { background: var(--accent); box-shadow: none; }
.switch:checked::after { top: 4px; left: 24px; width: 24px; height: 24px; background: var(--accent-ink); }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 18px; border-radius: var(--r); background: var(--surface-2); font-size: 15px; text-align: left; transition: background .2s; }
.opt:hover { background: var(--hover); }
.opt[aria-pressed="true"], .opt.on { background: var(--accent-soft); color: var(--on-soft); }
.askbar { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 28px; padding: 6px 6px 6px 20px; transition: box-shadow .2s; }
.askbar:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.askbar input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; font-size: 16px; color: var(--ink); }
.askbar input:focus { outline: none; }
.askbar .send { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; transition: transform .18s, filter .18s; }
.askbar .send:hover { filter: brightness(1.08); }
.askbar .send:active { transform: scale(.94); }
.askbar .send svg { width: 20px; height: 20px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { min-height: 36px; padding: 6px 14px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--muted); text-align: left; transition: background .2s, transform .18s; }
.suggest button:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: inset 0 0 0 1px var(--hair); min-width: 0; }
.card.lg { padding: 28px; border-radius: var(--r-xl); }
.card.flat { box-shadow: none; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px; border-radius: var(--r-xl); overflow: hidden; }
.duo > * { background: var(--panel); padding: 40px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.duo hr { width: 100%; height: 1px; margin: 10px 0; border: 0; background: var(--hair); }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0,1fr); } .duo > * { padding: 28px; } }
.list { display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-lg); overflow: hidden; }
.item { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; padding: 16px 20px; background: var(--surface); color: var(--ink); text-align: left; text-decoration: none; transition: background .2s; }
button.item:hover, a.item:hover, .item.click:hover { background: var(--surface-2); }
.item .grow { flex: 1; min-width: 0; }
.item b { display: block; font-weight: 500; }
.item small { display: block; font-size: 14px; color: var(--muted); }
.ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.ic svg { width: 20px; height: 20px; }
.lift { transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.lift:hover { transform: translateY(-4px); }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature svg { width: 24px; height: 24px; color: var(--accent); }
.feature b { font-weight: 500; }
.feature span { font-size: 15px; color: var(--soft); }
.frame { border-radius: var(--r-2xl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); padding: 24px; }
.floor-glow { position: absolute; left: 50%; bottom: -420px; width: 1400px; max-width: 200vw; height: 820px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(155,114,203,.2), rgba(66,133,244,.1) 55%, transparent); pointer-events: none; }
.halo { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(66,133,244,.28), rgba(155,114,203,.12) 60%, transparent); pointer-events: none; }
/* a monogram placeholder until the project has its own logo: <span class="brand-mark" data-l="G"></span>. Sizes with the text beside it. */
.brand-mark { display: inline-grid; place-items: center; flex: none; width: 1.3em; height: 1.3em; border-radius: .36em; background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3)); color: #fff; font-weight: 600; line-height: 1; letter-spacing: 0; }
.brand-mark::before { content: attr(data-l); font-size: .72em; }
.scr-app .brand-mark { font-size: 1.45em; }
.footer { padding: 40px 24px 56px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--dim); }
.footer b { color: var(--muted); font-weight: 500; }
.footer p { line-height: 1.7; }

/* ---------- the agent: the one surface that wears the gradient ---------- */
.agent { position: relative; border-radius: var(--r-xl); padding: 24px; background: var(--grad-soft), var(--surface); display: flex; flex-direction: column; gap: 18px; }
.agent::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.agent-top { display: flex; align-items: center; gap: 14px; }
.agent-top .grow { flex: 1; min-width: 0; }
.agent-top b { display: block; font-weight: 500; }
.agent-top small { display: block; font-size: 14px; color: var(--muted); }
.spark { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(from 200deg, var(--g1), var(--g2), var(--g3), var(--g1)); }
.spark::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--surface); }
.spark svg { position: relative; z-index: 1; width: 50%; height: 50%; color: #fff; }
.spark.sm { width: 32px; height: 32px; }
.spark.live { animation: spin 6s linear infinite; }
.spark.live svg { animation: spin 6s linear infinite reverse; }
.say { color: var(--muted); }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 500; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.av.team { background: linear-gradient(135deg, #1E8E3E, #4285F4); }
.av.local { background: linear-gradient(135deg, #188038, #12807A); }
.bubble { align-self: flex-end; max-width: 80%; padding: 12px 18px; border-radius: 22px 22px 6px 22px; background: var(--surface-2); line-height: 1.4; }
.cite { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 4px; border-radius: 10px; background: rgba(168,199,250,.16); color: var(--accent); font-size: 11.5px; font-weight: 500; line-height: 1; vertical-align: 2px; }

/* ---------- status: colour and shape together, so it reads in greyscale ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.chip.round { border-radius: 13px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.ask { background: var(--ask-soft); color: var(--ask); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.acc { background: var(--accent-soft); color: var(--on-soft); }
.chip.info { background: rgba(168,199,250,.14); color: var(--accent); }
.chip.ai { background: var(--ai-soft); color: var(--ai); }
.mk { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; font-style: normal; background: var(--surface-3); color: var(--muted); }
.mk.ok { background: var(--ok-soft); color: var(--ok); }
.mk.ask { background: var(--ask-soft); color: var(--ask); }
.mk.bad { background: var(--bad-soft); color: var(--bad); }
.rules { display: flex; flex-direction: column; gap: 2px; border-radius: var(--r); overflow: hidden; }
.rule { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: var(--surface-2); font-size: 14px; }
.rule .mk { margin-top: 1px; }
.rule small { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.ring { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.4; }
.ring .tr { stroke: var(--surface-3); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc((100 - var(--p, 0)) * 1px); transition: stroke-dashoffset .85s var(--ease), stroke .4s; }
.ring.ok .fg { stroke: var(--ok); } .ring.ask .fg { stroke: var(--ask); } .ring.bad .fg { stroke: var(--bad); }
.ring > b { position: relative; font-weight: 500; font-variant-numeric: tabular-nums; }
.ring > b small { font-size: .7em; font-weight: 400; color: var(--faint); }
.meter { display: flex; gap: 3px; height: 8px; }
.meter i { flex: 1; border-radius: 4px; background: var(--surface-3); }
.meter i.ok { background: var(--accent); }
.meter i.ask { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.meter i.bad { background: #5F6368; }
.progress-steps { display: flex; gap: 4px; }
.progress-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.progress-steps i.done { background: var(--accent); }
.progress-steps i.now { background: linear-gradient(90deg, var(--g1), var(--g2)); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--badge); color: #fff; font-size: 11px; font-weight: 700; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse-ok 1.8s ease-out infinite; }
.live-dot.rec { background: var(--live); animation-name: pulse-live; }
.src { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 6px 0 0 12px; vertical-align: top; border-radius: 50%; color: var(--soft); background: rgba(255,255,255,.06); font-size: 12px; letter-spacing: 0; line-height: 1; transition: background .2s, color .2s, transform .2s; }
.src svg { width: 15px; height: 15px; }
.src:hover, .src:focus-visible { background: rgba(168,199,250,.16); color: var(--accent); transform: translateY(-1px); outline: none; }
.src::after { content: attr(data-tip); position: absolute; right: -4px; bottom: calc(100% + 8px); padding: 8px 10px; border-radius: 8px; white-space: nowrap; font-size: 12px; font-weight: 400; background: #2A2B2E; color: #E3E3E3; box-shadow: 0 4px 16px rgba(0,0,0,.4); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s; }
.src:hover::after, .src:focus-visible::after { opacity: 1; transform: none; }
.synthetic { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- top bar: frosted islands over the hero, a flowing gradient line, a live call to action ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; }
.topbar header { position: relative; z-index: 3; max-width: var(--wrap); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
.topbar .fill { flex: 1; }
.isl { position: relative; isolation: isolate; height: 46px; border-radius: 23px; display: inline-flex; align-items: center; background: rgba(24,25,28,.5); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background .35s; }
.isl-brand { padding: 0 18px; gap: 10px; color: #fff; font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.isl-brand:hover { color: #fff; }
.isl-brand svg { width: 22px; height: 22px; }
.navlinks { padding: 0 6px; font-size: 14px; }
.navlinks a { position: relative; padding: 0 15px; line-height: 46px; text-decoration: none; color: rgba(255,255,255,.82); transition: color .2s; }
.navlinks a:hover, .navlinks a.is-on { color: #fff; }
.nav-dot { position: absolute; left: 0; bottom: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g3)); box-shadow: 0 0 8px rgba(155,114,203,.9); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .3s; }
.under { position: absolute; left: 8%; right: 8%; top: 30%; bottom: -40%; z-index: -1; border-radius: 50%; background: var(--grad); filter: blur(18px); opacity: .45; pointer-events: none; animation: breathe 4s ease-in-out infinite; }
.topbar.is-scrolled .isl { background: rgba(24,25,28,.92); }
.topbar.is-scrolled .under { animation-name: breathe-low; }
.live-cta { position: relative; isolation: isolate; height: 46px; border-radius: 23px; display: inline-flex; text-decoration: none; white-space: nowrap; box-shadow: 0 0 26px rgba(155,114,203,.5); transition: transform .2s var(--ease); }
.live-cta:hover { transform: translateY(-2px); }
.live-cta .ring-wrap { position: absolute; inset: 0; border-radius: 23px; overflow: hidden; }
.live-cta .ring-wrap::before { content: ""; position: absolute; inset: -2px; background: conic-gradient(from var(--tba), var(--g1), var(--g2), var(--g3), var(--g2), var(--g1)); animation: turn 3s linear infinite; }
.live-cta .in { position: relative; margin: 2px; padding: 0 20px; border-radius: 21px; background: #131314; color: #fff; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.topbar .strip { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-loop); background-size: 200% 100%; animation: flow 6s linear infinite; transition: opacity .35s; }
.topbar .glow { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: var(--grad-loop); background-size: 200% 100%; filter: blur(16px); opacity: .45; pointer-events: none; animation: flow 6s linear infinite; transition: opacity .35s; }
.topbar .comet { position: absolute; top: -3px; left: -12%; width: 140px; height: 9px; border-radius: 5px; background: radial-gradient(closest-side, #fff, rgba(255,255,255,0)); pointer-events: none; animation: comet 3.6s cubic-bezier(.45,0,.2,1) infinite; transition: opacity .35s; }
.topbar .progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 1; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: var(--grad); box-shadow: 0 0 14px rgba(155,114,203,.9); opacity: 0; pointer-events: none; transition: opacity .35s; }
.topbar.is-scrolled .strip { opacity: .16; }
.topbar.is-scrolled .glow, .topbar.is-scrolled .comet { opacity: 0; }
.topbar.is-scrolled .progress { opacity: 1; }
@supports (animation-timeline: scroll()) { .topbar .progress { transform: scaleX(0); animation: grow-x linear both; animation-timeline: scroll(root); } }
@media (max-width: 900px) {
  .topbar header { padding: 14px 16px; gap: 8px; }
  .navlinks { display: none !important; }
  .isl-brand { font-size: 16px; padding: 0 14px; }
  .live-cta .in { padding: 0 15px; gap: 8px; }
}

/* ---------- hero: full-bleed photo (or the aurora when there are no photos), headline on a dark fade ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 24px 72px; overflow: hidden; background: var(--bg); }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--y, 30%); transform-origin: 50% var(--y, 30%); animation: settle 12s var(--ease) both; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14,14,15,.62) 0%, rgba(14,14,15,0) 16%, rgba(14,14,15,.08) 30%, rgba(14,14,15,.8) 54%, #0E0E0F 92%); }
.hero-glow { position: absolute; left: -200px; bottom: -300px; width: 1100px; height: 600px; background: radial-gradient(closest-side, rgba(66,133,244,.28), rgba(155,114,203,.12) 55%, transparent); pointer-events: none; }
.hero-body { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.hero-body .display { color: #fff; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.hero-row p { max-width: 34em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: rgba(255,255,255,.8); }
.hero-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-loop); background-size: 200% 100%; animation: flow 6s linear infinite; }
.hero-credit { position: absolute; right: 24px; bottom: 14px; z-index: 1; font-size: 11px; color: rgba(255,255,255,.55); }
.aurora { position: absolute; inset: 0; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 62vw; height: 62vw; left: -12vw; top: -24vw; background: var(--g1); }
.aurora i:nth-child(2) { width: 50vw; height: 50vw; right: -14vw; top: -6vw; background: var(--g2); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 44vw; height: 44vw; left: 34vw; top: 18vw; background: var(--g3); opacity: .2; animation-delay: -12s; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
@supports (animation-timeline: scroll()) { .hero-media, .aurora { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; } }
@media (max-width: 900px) {
  .hero { min-height: 0; justify-content: flex-start; padding: calc(min(56svh, 480px) - 44px) 20px 64px; }
  .hero.no-photo { min-height: 92svh; justify-content: flex-end; padding-top: 120px; }
  .hero-media, .hero-img, .hero-scrim { height: min(56svh, 480px); bottom: auto; }
  .hero.no-photo .hero-scrim { height: 100%; }
  .hero-scrim { background: linear-gradient(180deg, rgba(14,14,15,.6) 0%, rgba(14,14,15,0) 22%, rgba(14,14,15,0) 58%, #0E0E0F 100%); }
  .hero-glow { display: none; }
  .display { font-size: clamp(38px, 10.4vw, 56px); }
  .hero-body { gap: 22px; }
}

/* ---------- relay: the agents as a team. A light runs along the track and each card glows as it arrives.
   Set data-n on .relay (3, 4 or 5); house.js times each card and node. ---------- */
.relay { --n: 5; --cyc: 10s; position: relative; display: flex; flex-direction: column; gap: 20px; }
.relay[data-n="3"] { --n: 3; --cyc: 6s; } .relay[data-n="4"] { --n: 4; --cyc: 8s; }
.relay:not(.play), .relay:not(.play) * { animation-play-state: paused !important; }
.rl-track { position: relative; height: 28px; }
.rl-line, .rl-pulse { --edge: calc(50% / var(--n) - 8px * (var(--n) - 1) / var(--n)); }
.rl-line { position: absolute; left: var(--edge); right: var(--edge); top: 13px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(66,133,244,.8), rgba(155,114,203,.8) 60%, rgba(217,101,112,.8)); }
.rl-nodes, .rl-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0,1fr)); gap: 16px; }
.rl-nodes { position: absolute; inset: 0; align-items: center; justify-items: center; }
.rl-node { width: 12px; height: 12px; border-radius: 50%; background: #3C4043; box-shadow: 0 0 0 4px var(--bg); animation: rl-node var(--cyc) var(--d, 0s) infinite; }
.sect.alt .rl-node { box-shadow: 0 0 0 4px var(--bg-alt); }
.rl-pulse { position: absolute; top: 14px; left: var(--edge); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(168,199,250,.9), 0 0 32px 10px rgba(155,114,203,.4); opacity: 0; animation: rl-run-5 var(--cyc) linear infinite; }
.relay[data-n="3"] .rl-pulse { animation-name: rl-run-3; } .relay[data-n="4"] .rl-pulse { animation-name: rl-run-4; }
.rl-row { list-style: none; margin: 0; padding: 0; }
.ag { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 18px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); animation: rl-card var(--cyc) var(--d, 0s) infinite; }
.ag-art { position: relative; height: 132px; border-radius: 16px; background: #131314; overflow: hidden; }
.ag-txt { padding: 0 6px; }
.ag-txt b { display: block; font-size: 17px; font-weight: 500; }
.ag-txt .chip { margin-top: 8px; border-radius: 12px; }
/* four mini-visuals for the card art: read a document, check claims, search a live list, a person decides */
.v-doc { position: absolute; left: 14px; right: 14px; top: 16px; display: flex; flex-direction: column; gap: 9px; }
.v-doc i { position: relative; display: block; height: 6px; border-radius: 3px; background: #2A2C2F; overflow: hidden; }
.v-doc i.hl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--g2)); transform-origin: 0 50%; animation: rl-sweep var(--cyc) var(--d, 0s) infinite backwards; }
.v-chip { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; background: rgba(168,199,250,.14); color: var(--accent); animation: rl-pop var(--cyc) var(--d, 0s) infinite backwards; }
.v-checks { position: absolute; left: 14px; right: 14px; top: 15px; display: flex; flex-direction: column; gap: 8px; }
.v-checks span { display: flex; align-items: center; gap: 9px; }
.v-checks span::after { content: ""; flex: 1; height: 6px; border-radius: 3px; background: #2A2C2F; }
.v-checks em { flex: none; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 700; background: var(--ok-soft); color: var(--ok); animation: rl-tick var(--cyc) calc(var(--d, 0s) + var(--k, 0s)) infinite backwards; }
.v-checks em.q { background: var(--ask-soft); color: var(--ask); }
.v-checks em.x { background: var(--bad-soft); color: var(--bad); }
.v-live { position: absolute; left: 14px; top: 13px; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .08em; color: var(--soft); }
.v-list { position: absolute; left: 14px; right: 14px; top: 40px; display: flex; flex-direction: column; gap: 8px; }
.v-list i { position: relative; display: block; height: 20px; border-radius: 7px; background: var(--surface-2); animation: rl-in-r var(--cyc) calc(var(--d, 0s) + var(--k, 0s)) infinite backwards; }
.v-list i::before { content: ""; position: absolute; left: 9px; top: 7px; width: 58%; height: 6px; border-radius: 3px; background: #3C4043; }
.v-list i::after { content: ""; position: absolute; right: 9px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #B79CE8; }
.v-person { position: absolute; left: 50%; top: 16px; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1E8E3E, #4285F4); }
.v-person svg { width: 24px; height: 24px; color: #fff; }
.v-person em { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-style: normal; background: var(--ok); color: #0E0E0F; box-shadow: 0 0 0 3px #131314; animation: rl-tick var(--cyc) calc(var(--d, 0s) + .75s) infinite backwards; }
.v-btn { position: absolute; left: 50%; bottom: 14px; height: 30px; padding: 0 16px; border-radius: 15px; display: inline-flex; align-items: center; white-space: nowrap; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 500; transform: translateX(-50%); animation: rl-press var(--cyc) calc(var(--d, 0s) + .3s) infinite backwards; }
@media (max-width: 900px) {   /* phones: the same relay; the cards sit in a swipeable row that follows the light */
  .rl-row { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 6px calc((100vw - min(78vw, 340px)) / 2) 20px; }
  .rl-row::-webkit-scrollbar { display: none; }
  .rl-row > li { flex: 0 0 min(78vw, 340px); scroll-snap-align: center; }
  .rl-track { cursor: pointer; }
}

/* ---------- scenes: the product drawn in code inside a device frame. Everything inside is in em and 1em follows the
   frame's width, so a scene scales with its frame. house.js steps classes s1..sN on the frame. ---------- */
.device { width: 300px; max-width: 100%; padding: 10px; border-radius: 44px; background: var(--surface-2); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 0 0 1px var(--hair); }
.phone { position: relative; aspect-ratio: 390/844; border-radius: 36px; overflow: hidden; background: #131314; container-type: inline-size; isolation: isolate; }
.window { position: relative; aspect-ratio: 1000/680; border-radius: var(--r-xl); overflow: hidden; background: #131314; container-type: inline-size; isolation: isolate; box-shadow: 0 40px 100px rgba(0,0,0,.55), inset 0 0 0 1px var(--hair); }
.scr { position: absolute; inset: 0; font-size: 9px; font-size: calc(100cqw / 32); line-height: 1.35; color: var(--ink); }
.window .scr { font-size: calc(100cqw / 58); }
@container (max-width: 460px) { .window .scr { font-size: calc(100cqw / 36); } }
.scr svg { flex: none; }
.scr-bar { display: flex; justify-content: space-between; align-items: center; height: 3em; padding: 0 2.6em 0 2.9em; font-size: 1em; }
.scr-bar b { font-size: 1.15em; font-weight: 500; }
.scr-app { display: flex; align-items: center; gap: .7em; padding: .4em 1.6em; }
.scr-app svg { width: 1.9em; height: 1.9em; }
.scr-app b { font-size: 1.45em; font-weight: 500; }
.scr-app .me { margin-left: auto; width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--g1), var(--g2)); font-size: 1.1em; font-weight: 500; color: #fff; }
.scr-hi { width: max-content; margin: .2em 0 .25em .64em; font-size: 2.5em; line-height: 1.2; letter-spacing: -.01em; background: var(--grad-lt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scr-agent { display: flex; align-items: center; gap: .9em; margin: 0 1.2em; padding: .95em 1.1em; border-radius: 1.7em; background: linear-gradient(135deg, rgba(66,133,244,.16), rgba(155,114,203,.1) 60%, rgba(217,101,112,.06)), #1A1B1D; box-shadow: inset 0 0 0 1px rgba(168,199,250,.16); }
.scr-agent .spark { width: 2.6em; height: 2.6em; }
.scr-agent .grow { flex: 1; min-width: 0; }
.scr-agent b { display: block; font-size: 1.1em; font-weight: 500; }
.scr-say { display: block; font-size: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.scr-card { position: relative; margin: 1em 1.2em 0; padding: 1.1em 1.3em 1.2em; border-radius: 1.8em; background: #1E1F21; }
.scr-card .ring { position: absolute; right: 1.1em; top: .8em; width: 3.6em; height: 3.6em; font-size: 1em; }
.scr-meta { display: block; height: 2.2em; line-height: 2.2em; font-size: 1em; color: var(--soft); }
.scr-title { display: block; margin: .3em 4.4em .45em 0; font-size: 1.5em; line-height: 1.25; }
.scr-list { list-style: none; margin: .8em 1.2em 0; padding: 0; }
.scr-list li { position: relative; display: flex; align-items: center; gap: .75em; height: 2.6em; padding: 0 .55em; border-radius: .9em; overflow: hidden; transition: background .3s; }
.scr-list li.now { background: rgba(168,199,250,.07); }
.scr-list i { flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; box-shadow: inset 0 0 0 .12em #3C4043; transition: background .3s, box-shadow .3s, color .3s; }
.scr-list i::after { content: ""; transform: scale(0); transition: transform .4s var(--spring); }
.scr-list li.now i { animation: ping 1s ease-out infinite; }
.scr-list li.ok i { background: var(--ok-soft); box-shadow: none; color: var(--ok); }
.scr-list li.ok i::after { content: "✓"; transform: scale(1); }
.scr-list li.q i { background: var(--ask-soft); box-shadow: none; color: var(--ask); animation: ping-ask 1.4s ease-out infinite; }
.scr-list li.q i::after { content: "?"; transform: scale(1); }
.scr-list li::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; background: linear-gradient(90deg, transparent, rgba(109,213,140,.16), transparent); transform: translateX(-100%); pointer-events: none; }
.scr-list li.ok::before { animation: sweep-x .75s ease-out; }
.scr-list span { flex: 1; min-width: 0; font-size: 1.15em; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.scr-list li.ok span, .scr-list li.q span, .scr-list li.now span { color: var(--ink); }
.scr-list em { flex: none; font-style: normal; font-size: .92em; padding: .2em .6em; border-radius: .7em; background: var(--surface-2); color: var(--soft); opacity: 0; transform: translateX(.6em); transition: opacity .35s, transform .35s; }
.scr-list li.ok em, .scr-list li.q em { opacity: 1; transform: none; }
.scr-cta { position: absolute; left: 1.2em; right: 1.2em; bottom: 2.2em; height: 4.2em; border-radius: 2.1em; display: flex; align-items: center; justify-content: center; gap: .5em; overflow: hidden; background: var(--surface-2); color: var(--faint); font-size: 1.3em; font-weight: 500; transition: background .35s, color .35s, box-shadow .35s, transform .2s var(--ease); }
.scr-cta.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 .6em 2em rgba(66,133,244,.35); }
.scr-cta.on::before { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 1.1s .3s ease-out both; }
.scr-cta.done { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.scr-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .4s; pointer-events: none; }
.scr-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: .8em 1.6em 2.6em; border-radius: 2.4em 2.4em 0 0; background: #1E1F21; box-shadow: 0 -1em 3em rgba(0,0,0,.4); transform: translateY(105%); transition: transform .55s var(--ease); }
.scr-sheet .grab { display: block; width: 3.6em; height: .4em; margin: 0 auto 1.3em; border-radius: .2em; background: #444746; }
.scr-sheet .q { display: block; margin: .4em 0 .7em; font-size: 1.65em; line-height: 1.25; }
.scr-sheet .o { display: block; margin-top: .55em; padding: .85em 1.1em; border-radius: 1.3em; background: var(--surface-2); font-size: 1.15em; line-height: 1.3; }
.scr-sheet .o.sel { background: rgba(168,199,250,.16); box-shadow: inset 0 0 0 .1em var(--accent); }
.open .scr-scrim { opacity: 1; }
.open .scr-sheet { transform: none; }
.scr-toast { position: absolute; left: 1.2em; right: 1.2em; top: 3.4em; padding: 1em 1.2em; border-radius: 1.2em; background: #E3E3E3; color: #1F1F1F; font-size: 1.1em; box-shadow: 0 .8em 2em rgba(0,0,0,.45); opacity: 0; transform: translateY(-160%); transition: transform .5s var(--ease), opacity .4s; }
.toasting .scr-toast { opacity: 1; transform: none; }
.steps-pill { position: relative; display: flex; gap: 4px; list-style: none; margin: 0; padding: 4px; border-radius: 17px; background: rgba(255,255,255,.05); }
.steps-pill li { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 12px; color: var(--faint); white-space: nowrap; transition: color .4s; }
.steps-pill li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3C4043; transition: background .4s, box-shadow .4s; }
.steps-pill li.on { color: var(--muted); }
.steps-pill li.on::before { background: var(--accent); }
.steps-pill li.now { color: var(--ink); }
.steps-pill li.now::before { box-shadow: 0 0 0 3px rgba(168,199,250,.25); }
.steps-pill::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: var(--x, 4px); width: var(--w, 0); border-radius: 13px; background: rgba(168,199,250,.13); opacity: var(--o, 0); transition: left .5s var(--ease), width .5s var(--ease), opacity .4s; }

/* ---------- app shell: the demo itself. A calm column for the person, a wider workspace for the team. ---------- */
body.app { --bg: #131314; --surface: #1E1F20; --surface-2: #282A2C; font-size: 16px; line-height: 1.5; }
.appbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.appbar-in { display: flex; align-items: center; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-left, 0px)); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo svg { width: 28px; height: 28px; }
.logo small { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 400; color: var(--faint); }
.tabs { display: flex; gap: 4px; margin-left: 16px; }
.tabs button { position: relative; height: 40px; padding: 0 16px; border-radius: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s; }
.tabs button:hover { background: var(--surface-2); color: var(--ink); }
.tabs button[aria-current="page"] { background: var(--accent-soft); color: var(--on-soft); }
.tabs svg { width: 20px; height: 20px; }
.me { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px; border-radius: 20px; background: var(--surface); font-size: 14px; }
.app-main { max-width: 1240px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 104px; }
.col { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.hello { padding-top: 24px; font-size: clamp(32px, 6vw, 44px); line-height: 1.15; width: max-content; max-width: 100%; }
.sect-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sect-h h2 { font-size: 20px; }
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 25; height: 52px; padding: 0 20px 0 8px; border-radius: 26px; display: inline-flex; align-items: center; gap: 12px; background: var(--surface-3); color: var(--ink); font-weight: 500; box-shadow: 0 8px 28px rgba(0,0,0,.5), inset 0 0 0 1px var(--hair); transition: transform .2s var(--ease); }
.fab:hover { transform: translateY(-2px); }
.fab .spark { width: 36px; height: 36px; }
.fab .spark::after { background: var(--surface-3); }
.bnav { display: none; }
@media (max-width: 760px) {
  .tabs, .me .who, .appbar .note { display: none; }
  .bnav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
  .bnav button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
  .bnav .bn-ic { width: 56px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .2s; }
  .bnav button[aria-current="page"] { color: var(--ink); }
  .bnav button[aria-current="page"] .bn-ic { background: var(--accent-soft); color: var(--on-soft); }
  .bnav svg { width: 22px; height: 22px; }
  .bnav .badge { position: absolute; top: -2px; left: 54%; }
  .fab { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
/* entrance: the agent speaks first. Children of .enter rise one after another; a .spark inside spins in. */
.enter > * { animation: rise-in .5s var(--ease) calc(.15s + var(--i, 0) * 110ms) both; }
.enter .spark { animation: spark-in .9s cubic-bezier(.65,0,.2,1) both; }
.enter .spark.live { animation: spark-in .9s cubic-bezier(.65,0,.2,1) both, spin 6s .9s linear infinite; }
.hl-loading .enter > *, .hl-loading .enter .spark { animation-play-state: paused; }   /* wait for the loader to leave */
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes spark-in { 0% { transform: scale(2.2) rotate(-180deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; } }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.55); }
.scrim[hidden] { display: none; }
.sheet { width: min(640px, 100%); max-height: min(88vh, 900px); overflow: auto; display: flex; flex-direction: column; gap: 18px; padding: 8px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); animation: rise .22s ease-out; }
.sheet-h { position: sticky; top: -8px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 4px; background: var(--surface); }
.sheet-h h2 { font-size: 22px; line-height: 1.3; }
.handle { width: 32px; height: 4px; margin: 6px auto 0; border-radius: 2px; background: var(--line); }
@media (min-width: 761px) { .scrim { align-items: center; padding: 24px; } .sheet { border-radius: var(--r-xl); padding: 8px 28px 28px; } .handle { display: none; } }
.toast { position: fixed; z-index: 60; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(460px, calc(100% - 32px)); padding: 12px 16px; border-radius: 8px; background: #E3E3E3; color: #1F1F1F; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.4); opacity: 0; transform: translate(-50%, -12px); transition: all .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: #0B57D0; font-weight: 500; }
.tip { position: relative; }
.tip:hover::after, .tip:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 6; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 8px 10px; border-radius: 10px; background: var(--surface-3); color: var(--ink); box-shadow: 0 4px 16px rgba(0,0,0,.35); font-size: 13px; line-height: 1.35; white-space: pre; pointer-events: none; }

/* ---------- motion. house.js adds .anim to <html> and .mo to each block, then .in as it scrolls into view. ---------- */
.w { display: inline-block; }
.anim .mo { transition: opacity .45s var(--ease), transform .5s var(--ease), filter .45s ease; }
.anim .mo:not(.in) { opacity: 0 !important; transform: translateY(40px) !important; filter: blur(10px); }
.anim .w.mo:not(.in) { transform: translateY(.6em) rotate(4deg) !important; filter: blur(12px); }
.anim .zoomIn.mo:not(.in) { transform: scale(.88) !important; }
.anim .tiltIn.mo:not(.in) { transform: translateY(160px) rotate(10deg) scale(.9) !important; }
.anim .swipeIn.mo:not(.in) { transform: translateX(240px) rotate(24deg) !important; }
.anim .slideL.mo:not(.in) { transform: translateX(-160px) rotate(-5deg) !important; }
.anim .slideR.mo:not(.in) { transform: translateX(160px) rotate(5deg) !important; }
.anim .pop.mo:not(.in) { transform: scale(.3) rotate(-120deg) !important; }
.anim .pop.mo { transition-duration: .45s, .6s, .45s; transition-timing-function: ease, var(--spring), ease; }
.hl-loading .topbar header { opacity: 0; }
.hl-ready .topbar header { animation: nav-in .7s .1s var(--ease) both; }
.shim { background: linear-gradient(90deg, var(--muted) 30%, #fff 50%, var(--muted) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shim 1.8s linear infinite; }
.flip { animation: flip .35s ease-out; }
.shim.flip { animation: flip .35s ease-out, shim 1.8s linear infinite; }
.tick { animation: tick .42s var(--ease); }
.popped { animation: pop .5s var(--spring); }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -3px; background: currentColor; animation: caret 1s steps(2) infinite; }
.draw path { stroke-dasharray: 22; animation: draw .45s .1s cubic-bezier(.4,0,.2,1) backwards; }
.spin { animation: spin 8s linear infinite; }
.spinner { display: inline-block; width: 1.15em; height: 1.15em; border-radius: 50%; border: .16em solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.ripple { position: relative; overflow: hidden; }
.ripple::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; }
.ripple.tap { transform: scale(.96); }
.ripple.tap::after { animation: tap .65s ease-out; }
.done-ring { animation: done-ring 1s ease-out; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes turn { to { --tba: 360deg; } }
@keyframes flow { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes breathe { 0%, 100% { opacity: .32; transform: scale(.94); } 50% { opacity: .62; transform: scale(1.06); } }
@keyframes breathe-low { 0%, 100% { opacity: .14; transform: scale(.94); } 50% { opacity: .28; transform: scale(1.04); } }
@keyframes comet { 0% { left: -12%; } 100% { left: 104%; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nav-in { from { opacity: 0; transform: translateY(-28px); } }
@keyframes settle { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes drift { to { transform: translate(6vw, 4vw) scale(1.15); } }
@keyframes parallax { to { transform: translateY(16%); } }
@keyframes pulse-ok { 0% { box-shadow: 0 0 0 0 rgba(109,213,140,.6); } 100% { box-shadow: 0 0 0 8px rgba(109,213,140,0); } }
@keyframes pulse-live { 0% { box-shadow: 0 0 0 0 rgba(242,139,130,.55); } 100% { box-shadow: 0 0 0 10px rgba(242,139,130,0); } }
@keyframes shim { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes flip { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes tick { 0% { transform: translateY(.5em); opacity: .15; } 100% { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(.7); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
@keyframes shine { 0% { left: -45%; } 100% { left: 110%; } }
@keyframes sweep-x { to { transform: translateX(180%); } }
@keyframes ping { 0% { box-shadow: inset 0 0 0 .12em var(--accent), 0 0 0 0 rgba(168,199,250,.5); } 100% { box-shadow: inset 0 0 0 .12em var(--accent), 0 0 0 .55em rgba(168,199,250,0); } }
@keyframes ping-ask { 0% { box-shadow: 0 0 0 0 rgba(253,214,99,.45); } 100% { box-shadow: 0 0 0 .6em rgba(253,214,99,0); } }
@keyframes tap { 0% { opacity: .3; transform: scale(.2); } 100% { opacity: 0; transform: scale(7); } }
@keyframes done-ring { 0% { box-shadow: 0 0 0 0 rgba(109,213,140,.6); } 100% { box-shadow: 0 0 0 1em rgba(109,213,140,0); } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes rl-run-3 { 0% { left: var(--edge); opacity: 0; } 3% { opacity: 1; } 66.7% { left: calc(100% - var(--edge)); opacity: 1; } 76%, 100% { left: calc(100% - var(--edge)); opacity: 0; } }
@keyframes rl-run-4 { 0% { left: var(--edge); opacity: 0; } 2% { opacity: 1; } 75% { left: calc(100% - var(--edge)); opacity: 1; } 84%, 100% { left: calc(100% - var(--edge)); opacity: 0; } }
@keyframes rl-run-5 { 0% { left: var(--edge); opacity: 0; } 2% { opacity: 1; } 80% { left: calc(100% - var(--edge)); opacity: 1; } 88%, 100% { left: calc(100% - var(--edge)); opacity: 0; } }
@keyframes rl-node { 0% { background: #fff; box-shadow: 0 0 0 4px var(--bg), 0 0 0 9px rgba(168,199,250,.3); } 10%, 88% { background: var(--accent); box-shadow: 0 0 0 4px var(--bg); } 100% { background: #3C4043; box-shadow: 0 0 0 4px var(--bg); } }
@keyframes rl-card { 0% { box-shadow: inset 0 0 0 1px rgba(168,199,250,.6), 0 18px 50px rgba(66,133,244,.18); } 24%, 100% { box-shadow: inset 0 0 0 1px var(--hair), 0 18px 50px rgba(66,133,244,0); } }
@keyframes rl-sweep { 0% { transform: scaleX(0); } 7%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes rl-pop { 0%, 7% { opacity: 0; transform: translateY(8px) scale(.9); } 12%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px) scale(.9); } }
@keyframes rl-tick { 0% { transform: scale(0); } 4% { transform: scale(1.25); } 6%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes rl-in-r { 0% { opacity: 0; transform: translateX(28px); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(28px); } }
@keyframes rl-press { 0%, 3% { transform: translateX(-50%) scale(1); } 6% { transform: translateX(-50%) scale(.88); } 10%, 100% { transform: translateX(-50%) scale(1); } }

/* ---------- touch: phones get every effect. Hover effects play while a finger is down (touch-press.js twins
   each :hover rule as .is-press), and presses shrink a little. ---------- */
@media (hover: none) {
  a, button { -webkit-tap-highlight-color: transparent; }
  .btn:active, .opt:active, .suggest button:active { transform: scale(.96); }
  .lift:active { transform: translateY(-4px); }
  .ag { transition: transform .2s var(--ease); }
  .ag:active { transform: scale(.97); }
}
