/* The landing page speaks the product's design language: the palette, families, radii and
   motion here are the values of src/frontend/src/styles/tokens.css, carried by the same names
   so a retune there is a copy here. The page is its own deployable and imports nothing from the
   app. Motion follows the app's calm rule: things arrive by fading, nothing slides or scales. */
:root {
  color-scheme: dark;
  --bg: #0b0e15;
  --surface: #191b22;
  --raised: #272a31;
  --line: #424753;
  --ink: #e1e2ec;
  --ink-2: #c2c6d6;
  --ink-3: #8c909f;
  --accent: #aec6ff;
  --accent-ink: #002e6b;
  --arc: #3d7cff;
  --good: #85d8a2;
  --warn: #ffb874;
  --bad: #ffb4aa;
  --ground-1: #0b0e15;
  --ground-2: #11131a;
  --s1: #3987e5;
  --s2: #199e89;
  --s3: #8477f3;
  --wash-1: #326ebe;
  --wash-2: #785abe;
  --wash-3: #14788c;
  --glint: #ffffff;
  --shadow-color: #000000;

  --line-strong: color-mix(in srgb, var(--ink) 18%, var(--line));
  --raise: color-mix(in srgb, var(--glint) 5%, transparent);
  --sunk: color-mix(in srgb, var(--bg) 60%, transparent);
  --glass: color-mix(in srgb, var(--surface) 62%, transparent);
  --glass-line: color-mix(in srgb, var(--glint) 14%, var(--line));
  --frost: saturate(150%) blur(22px);
  --specular: inset 0 1px 0 color-mix(in srgb, var(--glint) 16%, transparent);
  --shadow-float: 0 24px 60px color-mix(in srgb, var(--shadow-color) 60%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, var(--line));
  --good-soft: color-mix(in srgb, var(--good) 12%, transparent);
  --warn-soft: color-mix(in srgb, var(--warn) 14%, transparent);
  --warn-line: color-mix(in srgb, var(--warn) 40%, var(--line));
  --bad-soft: color-mix(in srgb, var(--bad) 12%, transparent);
  --ground:
    radial-gradient(60% 50% at 22% 18%, color-mix(in srgb, var(--wash-1) 22%, transparent), transparent 70%),
    radial-gradient(55% 45% at 82% 28%, color-mix(in srgb, var(--wash-2) 16%, transparent), transparent 72%),
    radial-gradient(70% 60% at 60% 100%, color-mix(in srgb, var(--wash-3) 16%, transparent), transparent 70%),
    linear-gradient(170deg, var(--ground-1), var(--ground-2));

  --font-display: "Archivo", system-ui, sans-serif;
  --font-ui: "Archivo", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --width-display: "wdth" 110;
  --text-hero: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);
  --text-h2: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  --text-h3: 1.1875rem;
  --text-lede: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --text-md: 1rem;
  --text-base: 0.875rem;
  --text-sm: 0.75rem;
  --tracking-tight: -0.035em;
  --tracking-label: 0.14em;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-2xl: 1.5rem;
  --radius-full: 999px;
  --gutter: 1rem;
  --page-max: 75rem;
  --hit-min: 44px;

  --ease: cubic-bezier(0, 0, 0, 1);
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --duration-fast: 100ms;
  --duration: 200ms;
  --duration-draw: 500ms;
  --duration-arrive: 600ms;
  --duration-settle: 800ms;
  --duration-ambient: 3s;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #ecedf7;
    --surface: #ffffff;
    --raised: #e7e7f2;
    --line: #c2c6d6;
    --ink: #191b22;
    --ink-2: #424753;
    --ink-3: #636875;
    --accent: #004ca9;
    --accent-ink: #ffffff;
    --arc: #0b63d6;
    --good: #106c40;
    --warn: #8b5005;
    --bad: #b32921;
    --ground-1: #faf9ff;
    --ground-2: #ecedf7;
    --s1: #0b63d6;
    --s2: #0e8a78;
    --s3: #7a4fd1;
    --wash-1: #467ddc;
    --wash-2: #8c6ed7;
    --wash-3: #1e96a5;
    --shadow-color: #172a54;
    --glass: color-mix(in srgb, var(--surface) 66%, transparent);
    --sunk: color-mix(in srgb, var(--surface) 75%, transparent);
    --raise: color-mix(in srgb, var(--surface) 72%, transparent);
    --specular: inset 0 1px 0 var(--glint), 0 0 0 1px color-mix(in srgb, var(--shadow-color) 7%, transparent);
    --shadow-float: 0 3px 8px color-mix(in srgb, var(--shadow-color) 10%, transparent), 0 26px 60px color-mix(in srgb, var(--shadow-color) 18%, transparent);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground-1);
  background-image: var(--ground);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--radius-full);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--gutter); }

.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 2rem; } }

.display { font-family: var(--font-display); font-variation-settings: var(--width-display); font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1.04; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--text-sm); text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--accent);
}
.lede { font-size: var(--text-lede); color: var(--ink-2); line-height: 1.55; max-width: 38rem; }
.muted { color: var(--ink-3); }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--specular), var(--shadow-float);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}

/* ---------- buttons and the email form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--hit-min); padding: 0 1.25rem; border-radius: var(--radius-full);
  border: 1px solid var(--glass-line); background: var(--raise); color: var(--ink);
  font: inherit; font-size: var(--text-base); font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; box-shadow: var(--specular);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.btn:hover { border-color: var(--accent-line); }
.btn[data-variant="primary"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.btn[data-variant="primary"]:hover { background: color-mix(in srgb, var(--accent) 86%, var(--glint)); }
.btn[data-variant="ghost"] { background: none; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn[data-variant="ghost"]:hover { color: var(--ink); background: var(--raise); }
.btn:disabled { cursor: progress; opacity: 0.75; }
.btn svg { width: 1rem; height: 1rem; }

.signup { display: grid; gap: 0.75rem; max-width: 34rem; }
.signup-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.375rem;
  border-radius: var(--radius-full); border: 1px solid var(--glass-line);
  background: var(--sunk); box-shadow: var(--specular);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.signup-row:focus-within { border-color: var(--accent-line); box-shadow: var(--specular), 0 0 0 4px var(--accent-soft); }
.signup-row[data-invalid] { border-color: var(--bad); }
.signup input {
  flex: 1 1 14rem; min-width: 0; min-height: var(--hit-min); padding: 0 1rem;
  border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--text-md);
}
.signup input::placeholder { color: var(--ink-3); }
.signup input:focus { outline: none; }
.signup .btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .signup-row { border-radius: var(--radius-xl); }
  .signup .btn { flex: 1 1 100%; }
}
.signup-note { font-size: var(--text-sm); color: var(--ink-3); min-height: 1.25rem; padding-inline: 1rem; }
.signup-note[data-tone="bad"] { color: var(--bad); }
.signup-note:empty { display: none; }
.signup-legal { font-size: var(--text-sm); color: var(--ink-3); padding-inline: 1rem; }
.signup-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.signup-legal a:hover { color: var(--ink); }
.closing .signup-legal { text-align: center; }
.signup-done {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.25rem;
  border-radius: var(--radius-xl); border: 1px solid color-mix(in srgb, var(--good) 40%, var(--line));
  background: var(--good-soft);
}
.signup-done svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--good); margin-top: 0.125rem; }
.signup-done strong { display: block; }
.signup-done p { color: var(--ink-2); font-size: var(--text-base); }
.spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: breathe var(--duration-ambient) ease-in-out infinite; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; padding-block: 0.75rem; }
.top-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.375rem 0.375rem 0.375rem 1rem; border-radius: var(--radius-full);
}
.brand { display: inline-flex; align-items: center; gap: 0.125rem; text-decoration: none; font-family: var(--font-display); font-variation-settings: "wdth" 106; font-weight: 650; font-size: 1.375rem; letter-spacing: -0.01em; }
.brand svg { width: 1.75em; height: 1.75em; margin-right: -0.35em; margin-top: -0.2em; }
.mark-ink { fill: var(--ink); } .mark-stroke { stroke: var(--ink); } .mark-arc { fill: var(--arc); } .mark-ring { stroke: var(--arc); }
.nav { display: none; gap: 0.25rem; }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- hero ---------- */
.hero h1 { font-size: var(--text-hero); }
.hero h1 em { font-style: normal; color: var(--accent); }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border-radius: var(--radius-full); border: 1px solid var(--glass-line); background: var(--raise);
  font-size: var(--text-sm); color: var(--ink-2);
}
.pulse { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--good); animation: breathe var(--duration-ambient) ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- the live demo ---------- */
.demo { border-radius: var(--radius-2xl); padding: 1.25rem; display: grid; gap: 1rem; min-height: 33rem; grid-template-rows: auto 1fr auto; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.demo-title { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); color: var(--ink-3); font-family: var(--font-mono); }
.tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: var(--radius-full); background: var(--sunk); border: 1px solid var(--glass-line); }
.tab {
  min-height: 2rem; padding: 0 0.875rem; border-radius: var(--radius-full); border: 0; background: none;
  color: var(--ink-3); font: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--specular); }
.demo-body { display: flex; flex-direction: column; gap: 0.875rem; min-height: 0; }
.ask {
  align-self: flex-end; max-width: 90%; padding: 0.75rem 1rem; border-radius: var(--radius-xl) var(--radius-xl) var(--radius-sm) var(--radius-xl);
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink); min-height: 2.875rem;
}
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.working { display: flex; align-items: center; gap: 0.625rem; font-size: var(--text-sm); color: var(--ink-3); font-family: var(--font-mono); }
.working .pulse { background: var(--accent); }
.reply { display: grid; gap: 0.875rem; padding: 1rem; border-radius: var(--radius-xl); background: var(--raise); border: 1px solid var(--glass-line); }
.fade { animation: fade-in var(--duration-arrive) var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.figure-row { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.figure { font-family: var(--font-display); font-variation-settings: var(--width-display); font-size: 3rem; font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1; font-variant-numeric: tabular-nums; }
.figure-label { color: var(--ink-2); font-size: var(--text-base); }
.bars { display: grid; gap: 0.5rem; }
.bar-row { display: grid; grid-template-columns: 6.5rem 1fr 3rem; align-items: center; gap: 0.75rem; font-size: var(--text-sm); color: var(--ink-2); }
.bar-row b { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { height: 0.5rem; border-radius: var(--radius-full); background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  font-size: var(--text-sm); color: var(--ink-2); background: color-mix(in srgb, var(--ink) 7%, transparent); border: 0;
}
.chip svg { width: 0.875rem; height: 0.875rem; }
.chip[data-tone="good"] { color: var(--good); background: var(--good-soft); }
.chip[data-tone="warn"] { color: var(--warn); background: var(--warn-soft); }
.chip[data-tone="accent"] { color: var(--accent); background: var(--accent-soft); }
.choices { display: grid; gap: 0.5rem; }
.choice {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-lg); border: 1px solid var(--glass-line); background: var(--sunk);
  font-size: var(--text-base); color: var(--ink-2);
}
.choice b { font-family: var(--font-display); font-variation-settings: var(--width-display); font-size: 1.375rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.choice[data-picked] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink); }
.plan { display: grid; gap: 0.5rem; padding: 0.875rem 1rem; border-radius: var(--radius-lg); border: 1px dashed var(--warn-line); background: var(--warn-soft); font-size: var(--text-base); color: var(--ink-2); }
.plan strong { color: var(--ink); font-weight: 600; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: var(--text-sm); color: var(--ink-3); }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--glass-line); background: none; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--accent-line); }
.icon-btn svg { width: 0.875rem; height: 0.875rem; }

/* ---------- sections ---------- */
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--text-h2); }
.center { text-align: center; margin-inline: auto; justify-items: center; }

.versus { border-radius: var(--radius-2xl); padding: 0.5rem clamp(0.75rem, 2vw, 1.5rem); display: grid; }
.versus-row { display: grid; gap: 0.375rem 1.5rem; padding: 1.125rem 0.25rem; border-top: 1px solid var(--glass-line); }
.versus-row:first-child { border-top: 0; }
.versus-row > span:first-child { font-weight: 600; color: var(--ink); }
.versus-row > span:nth-child(2) { color: var(--ink-3); font-size: var(--text-base); }
.versus-row > span:nth-child(3) { color: var(--ink); font-size: var(--text-base); }
.versus-row > span:nth-child(2)::before { content: "Other AI data tools: "; color: var(--ink-3); font-weight: 600; }
.versus-row > span:nth-child(3)::before { content: "Lumos: "; color: var(--accent); font-weight: 600; }
.versus-head { display: none; }
@media (min-width: 760px) {
  .versus-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .versus-row > span:nth-child(n+2)::before { content: none; }
  .versus-head { display: grid; }
  .versus-head > span { font-family: var(--font-mono); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-3); font-weight: 400; display: flex; align-items: center; gap: 0.5rem; }
  .versus-head > span:nth-child(3) { color: var(--accent); }
  .versus-row > span:nth-child(3) { padding-left: 1rem; border-left: 2px solid var(--accent-line); }
}
.versus-foot { margin-top: 1.5rem; max-width: 46rem; color: var(--ink-2); font-size: var(--text-md); }
.versus-foot strong { color: var(--ink); }

.agree { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.agree-card { display: grid; gap: 0.5rem; padding: 1.25rem; border-radius: var(--radius-xl); background: var(--sunk); border: 1px solid var(--glass-line); }
.agree-card .eyebrow { color: var(--ink-3); }
.agree-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.concept-head { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.concept-head strong { font-size: var(--text-h3); font-weight: 600; }
.concept-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--s1); }
.facts { display: grid; gap: 0.625rem; margin: 0; }
.fact { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; align-items: baseline; font-size: var(--text-sm); }
.fact dt { color: var(--ink-3); font-family: var(--font-mono); }
.fact dd { margin: 0; color: var(--ink); display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; }
.fact .num { font-family: var(--font-display); font-variation-settings: var(--width-display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
@media (max-width: 480px) { .fact { grid-template-columns: 1fr; gap: 0.25rem; } }

/* how it works */
.how { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 960px) { .how { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.steps { display: grid; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.step {
  width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem;
  padding: 1.25rem 1.375rem; border-radius: var(--radius-xl); border: 1px solid transparent; background: none;
  color: var(--ink-2); font: inherit; cursor: pointer;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.step:hover { background: var(--raise); }
.step[aria-selected="true"] { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--specular); color: var(--ink); }
.step-n { grid-row: span 2; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-3); padding-top: 0.25rem; }
.step[aria-selected="true"] .step-n { color: var(--accent); }
.step-title { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.step-text { font-size: var(--text-base); line-height: 1.6; color: var(--ink-2); }
.stage { border-radius: var(--radius-2xl); padding: clamp(1.25rem, 3vw, 2rem); min-height: 24rem; display: grid; align-content: center; }
.stage [role="tabpanel"][hidden] { display: none; }
.stage[hidden] { display: none; }
.stage.stacked { min-height: 0; margin-bottom: 0.75rem; }
.step[data-stacked] { cursor: default; background: none; border-color: transparent; box-shadow: none; }
.step[data-stacked] .step-n { color: var(--accent); }
.src-list { display: grid; gap: 0.625rem; }
.src {
  display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: 0.875rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-lg); background: var(--sunk); border: 1px solid var(--glass-line);
}
.src-logo { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); display: grid; place-items: center; font-weight: 700; font-size: var(--text-base); color: var(--bg); }
.src-name { font-weight: 500; }
.src-sub { font-size: var(--text-sm); color: var(--ink-3); }
.src .chip { opacity: 0; transition: opacity var(--duration-arrive) var(--ease-out); }
.src .chip[data-on] { opacity: 1; }
.graph { width: 100%; height: auto; }
.graph-narrow { display: none; }
.graph-narrow .node text { font-size: 15px; }
.graph-narrow .node .sub { font-size: 11px; }
@media (max-width: 559px) { #graph { display: none; } .graph-narrow { display: block; } }
.graph .edge { stroke: var(--accent-line); stroke-width: 1.5; fill: none; stroke-dasharray: 220; stroke-dashoffset: 220; }
.graph .node rect { fill: var(--surface); stroke: var(--glass-line); }
.graph .node text { fill: var(--ink); font-family: var(--font-ui); font-size: 13px; font-weight: 500; }
.graph .node .sub { fill: var(--ink-3); font-family: var(--font-mono); font-size: 10px; font-weight: 400; }
.graph .node .dot { stroke: none; }
.graph .node { opacity: 0; }
.graph[data-on] .node { animation: fade-in var(--duration-arrive) var(--ease-out) both; }
.graph[data-on] .edge { animation: draw 900ms var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rulings { display: grid; gap: 0.75rem; }
.ruling { padding: 1rem 1.125rem; border-radius: var(--radius-lg); background: var(--sunk); border: 1px solid var(--glass-line); display: grid; gap: 0.375rem; }
.ruling-term { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; font-weight: 600; }
.ruling p { font-size: var(--text-base); color: var(--ink-2); }

/* roles */
.roles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .roles { grid-template-columns: 1fr 1fr; } }
.role { padding: 1.75rem; border-radius: var(--radius-2xl); display: grid; gap: 1rem; grid-template-rows: auto auto 1fr auto; }
.role .eyebrow { color: var(--ink-3); }
.role h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.02em; }
.role p { color: var(--ink-2); font-size: var(--text-base); line-height: 1.6; }
.role q { display: block; align-self: end; padding: 0.875rem 1rem; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--ink); font-size: var(--text-base); quotes: none; }

/* trust */
.trust { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.trust-item { display: grid; align-content: start; gap: 0.5rem; padding: 1.5rem; border-radius: var(--radius-xl); border: 1px solid var(--glass-line); background: var(--raise); }
.trust-item svg { width: 1.25rem; height: 1.25rem; color: var(--good); }
.trust-item h4 { margin: 0; font-size: var(--text-md); font-weight: 600; }
.trust-groups { display: grid; gap: 2rem; }
@media (min-width: 860px) { .trust-groups { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.trust-group { display: grid; gap: 1rem; grid-template-rows: auto 1fr; }
.trust-head { margin: 0; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 400; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-3); }
.trust-group .trust { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
@media (min-width: 560px) { .trust-group .trust { grid-template-columns: 1fr 1fr; } }
.trust-item p { font-size: var(--text-base); color: var(--ink-2); line-height: 1.55; }

/* closing call */
.closing { border-radius: var(--radius-2xl); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem); display: grid; gap: 1.5rem; justify-items: center; text-align: center; position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--arc) 26%, transparent), transparent 70%);
}
.closing h2 { font-size: var(--text-h2); max-width: 40rem; }
.closing .signup { width: 100%; justify-self: center; }
.closing .signup-note { text-align: center; }

footer { padding-block: 2.5rem 3rem; border-top: 1px solid var(--glass-line); margin-top: clamp(3rem, 6vw, 5rem); }
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: var(--text-sm); color: var(--ink-3); }
.foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot-meta { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.foot a:hover { color: var(--ink); }

/* Scroll arrivals: a block fades in once as it enters the view. Without script, or if the
   observer never fires, everything is simply visible. */
.js .reveal { opacity: 0; transition: opacity var(--duration-settle) var(--ease-out); }
.js .reveal[data-in] { opacity: 1; }
.js .reveal[data-delay="1"] { transition-delay: 90ms; }
.js .reveal[data-delay="2"] { transition-delay: 180ms; }
.js .reveal[data-delay="3"] { transition-delay: 270ms; }

/* ================= the lively layer =================
   Everything below is the page's motion and light. All of it is plain 2D painting (canvas and
   gradients), never a filter, so it renders without a GPU. A viewer who asks the system for
   reduced motion gets the same page standing still. */

/* hero: the sky. Data as stars; Lumos traces what they mean as constellations and names them,
   so a chart of the business builds up beside the copy. Painted on a canvas, no filters. */
.hs { position: relative; overflow: hidden; min-height: min(100svh, 62rem); margin-top: -5.25rem; padding-top: 5.25rem; display: grid; align-items: center; }
.hs canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-copy { position: relative; z-index: 1; display: grid; gap: 1.25rem; justify-items: start; max-width: 33rem; padding-block: 3rem; }
.hs h1 { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4.25rem); }
.hs h1 em { font-style: normal; color: var(--accent); }
.hs .lede { font-size: var(--text-md); }
.hs .signup { width: 100%; max-width: 30rem; }
.hs .signup-note { padding-inline: 1rem; }
@media (max-width: 899px) { .hs { display: flex; flex-direction: column; min-height: 0; } .hs canvas { position: relative; order: 2; height: 15rem; } }

/* the headline arrives word by word; the accent carries a slow sweep of light */
.word { display: inline-block; opacity: 0; transform: translateY(0.45em); animation: word-in 900ms var(--ease-out) forwards; }
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero h1 em {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 35%, color-mix(in srgb, var(--accent) 25%, var(--glint)) 50%, var(--accent) 65%, var(--accent) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 7s ease-in-out 1.6s infinite;
}
@keyframes sweep { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
.hero .lede, .hero .signup, .hero .badge { opacity: 0; animation: fade-in 900ms var(--ease-out) forwards; }
.hero .badge { animation-delay: 100ms; }
.hero .lede { animation-delay: 700ms; }
.hero .signup { animation-delay: 900ms; }
.hero .signup-row { box-shadow: var(--specular), 0 0 0 1px var(--accent-line), 0 18px 60px color-mix(in srgb, var(--arc) 28%, transparent); }

/* questions people ask, in two rows that drift past each other */
.marquee { display: grid; gap: 0.875rem; padding-block: 1rem 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-3); text-transform: uppercase; letter-spacing: var(--tracking-label); margin-bottom: 0.25rem; }
.marquee-row { display: flex; width: max-content; animation: drift 60s linear infinite; }
.marquee-row[data-reverse] { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-track { display: flex; gap: 0.75rem; padding: 0 0.375rem; margin: 0; list-style: none; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 0.625rem; white-space: nowrap;
  padding: 0.75rem 1.125rem; border-radius: var(--radius-full); border: 1px solid var(--glass-line);
  background: var(--glass); box-shadow: var(--specular); color: var(--ink-2); font-size: var(--text-base);
}
.marquee-track li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
@keyframes drift { to { transform: translateX(-50%); } }

/* the preview, in a frame a band of light travels around */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.glow-frame {
  position: relative; max-width: 54rem; margin-inline: auto; padding: 2px; border-radius: calc(var(--radius-2xl) + 2px);
  background:
    conic-gradient(from var(--angle), transparent 0deg, var(--accent) 60deg, var(--s3) 110deg, transparent 170deg, transparent 180deg, var(--s2) 240deg, var(--accent) 290deg, transparent 350deg),
    var(--glass-line);
  animation: orbit 6s linear infinite;
  box-shadow: 0 30px 120px color-mix(in srgb, var(--arc) 22%, transparent);
}
@keyframes orbit { to { --angle: 360deg; } }
.glow-frame .demo { border: 0; background: color-mix(in srgb, var(--surface) 94%, var(--bg)); min-height: 27rem; }

/* cards light up under the pointer */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity var(--duration-arrive) var(--ease);
}
.spot:hover::after { opacity: 1; }

/* arrivals rise as they fade in */
.js .reveal { transform: translateY(28px); transition: opacity var(--duration-settle) var(--ease-out), transform var(--duration-settle) var(--ease-out); }
.js .reveal[data-in] { transform: none; }
.versus-row > span:nth-child(3) { transition: border-color 1.2s var(--ease); }
.versus-row[data-in] > span:nth-child(3) { border-left-color: var(--accent); }

/* how it works advances as you scroll on wide screens */
@media (min-width: 960px) {
  .how { align-items: start; }
  .stage { position: sticky; top: 6.5rem; min-height: 26rem; }
  .steps { gap: 0; }
  .step { min-height: 13rem; align-content: center; }
}

/* the closing beacon: the mark's light, radiating */
.beacon { position: relative; width: 5.5rem; height: 5.5rem; display: grid; place-items: center; margin-bottom: 1.25rem; }
.beacon svg { width: 4rem; height: 4rem; position: relative; z-index: 1; }
.beacon span {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--arc);
  opacity: 0; animation: radiate 3.6s var(--ease) infinite;
}
.beacon span:nth-child(2) { animation-delay: 1.2s; }
.beacon span:nth-child(3) { animation-delay: 2.4s; }
.beacon::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--arc) 35%, transparent), transparent); }
@keyframes radiate { 0% { opacity: 0.7; transform: scale(0.5); } 100% { opacity: 0; transform: scale(2.4); } }

@media (prefers-reduced-motion: reduce) {
  .word, .hero .lede, .hero .signup, .hero .badge { animation: none; opacity: 1; transform: none; }
  .hero h1 em, .glow-frame, .beacon span, .pulse { animation: none; }
  .marquee-row { animation: none; }
  .marquee-row:nth-child(n+3) { display: none; }
  .marquee-row { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-row .marquee-track { flex-wrap: wrap; justify-content: center; }
  .js .reveal { transform: none; }
}

/* ================= See it work: the Lumos app, toured =================
   The app's own language (docs/mvp-v2-demo.html): a rail, the work area and the assistant beside
   it, inside a browser window that straightens as it scrolls into view. A guided cursor drives it. */
.tour { display: grid; gap: 1.25rem; }
.tour-steps { display: grid; gap: 0.75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tstep { position: relative; display: grid; gap: 0.25rem; align-content: start; text-align: left; padding: 1rem 1rem 1.25rem; border-radius: var(--radius-xl);
  border: 1px solid var(--glass-line); background: var(--raise); color: var(--ink-3); font: inherit; cursor: pointer; overflow: hidden;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.tstep:hover { border-color: var(--accent-line); }
.tstep[aria-selected="true"] { background: var(--glass); border-color: var(--accent-line); color: var(--ink-2); box-shadow: var(--specular); }
.tstep-n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-3); }
.tstep[aria-selected="true"] .tstep-n { color: var(--accent); }
.tstep-t { font-size: var(--text-md); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }
.tstep-d { font-size: var(--text-sm); line-height: 1.5; }
.tstep-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.tstep-bar b { display: block; height: 100%; width: 0; background: var(--accent); }
@media (max-width: 899px) {
  .tour-steps { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tour-steps::-webkit-scrollbar { display: none; }
  .tstep { flex: 0 0 15rem; }
}
.tour-stage { perspective: 2200px; perspective-origin: 50% 0%; }
.tour-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--text-sm); color: var(--ink-3); }

.app { --tilt: 0deg; position: relative; overflow: hidden; border-radius: 1.125rem; border: 1px solid var(--glass-line);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg)); box-shadow: var(--specular), var(--shadow-float), 0 40px 120px color-mix(in srgb, var(--arc) 14%, transparent);
  transform: rotateX(var(--tilt)); transform-origin: 50% 0%; font-size: 13px; color: var(--ink); text-align: left; user-select: none; }
.app svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-bar { display: grid; grid-template-columns: 1fr minmax(0, 26rem) 1fr; align-items: center; gap: 1rem; height: 2.5rem; padding: 0 1rem; border-bottom: 1px solid var(--glass-line); background: color-mix(in srgb, var(--raised) 60%, transparent); }
.app-dots { display: flex; gap: 6px; } .app-dots i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.app-url { display: flex; align-items: center; justify-content: center; gap: 0.375rem; height: 1.625rem; border-radius: var(--radius-full); background: var(--sunk); color: var(--ink-3); font-size: 12px; font-family: var(--font-mono); min-width: 0; overflow: hidden; white-space: nowrap; }
.app-url svg { width: 12px; height: 12px; flex: none; }
.app-body { display: grid; grid-template-columns: 12rem minmax(0, 1fr) 21rem; height: 36rem; }

.rail { display: flex; flex-direction: column; gap: 2px; padding: 0.875rem 0.625rem; border-right: 1px solid var(--glass-line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.rail-brand { display: flex; align-items: center; font-family: var(--font-display); font-variation-settings: "wdth" 106; font-weight: 650; font-size: 18px; padding: 0 0.5rem 0.875rem; }
.rail-brand svg { width: 1.75em; height: 1.75em; margin-right: -0.35em; margin-top: -0.2em; stroke: none; }
.rail-item { display: flex; align-items: center; gap: 0.625rem; height: 2.25rem; padding: 0 0.625rem; border-radius: var(--radius-md); color: var(--ink-2); transition: background 300ms var(--ease), color 300ms var(--ease); }
.rail-item svg { width: 17px; height: 17px; flex: none; }
.rail-item[data-on] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.rail-user { margin-top: auto; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border-radius: var(--radius-lg); border: 1px solid var(--glass-line); font-size: 12px; }
.rail-user b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; }
.rail-user small { display: block; color: var(--ink-3); font-size: 11px; }

.app-main { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.view { display: flex; flex-direction: column; height: 100%; animation: fade-in 450ms var(--ease-out); }
.view-head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem 0.75rem; flex-wrap: wrap; }
.view-head h4 { margin: 0; font-family: var(--font-display); font-variation-settings: "wdth" 110; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.view-head .meta { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; font-size: 12px; color: var(--ink-3); }
.seg { display: inline-flex; padding: 2px; border-radius: var(--radius-full); background: var(--sunk); border: 1px solid var(--glass-line); font-size: 11.5px; }
.seg span { padding: 3px 10px; border-radius: var(--radius-full); color: var(--ink-2); } .seg span[data-on] { background: var(--arc); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 2px 9px; border-radius: var(--radius-full); font-size: 11.5px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); white-space: nowrap; }
.pill[data-tone="good"] { color: var(--good); background: var(--good-soft); } .pill[data-tone="warn"] { color: var(--warn); background: var(--warn-soft); } .pill[data-tone="accent"] { color: var(--accent); background: var(--accent-soft); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* the map */
.mapc { position: relative; flex: 1; margin: 0 1rem 1rem; border-radius: var(--radius-lg); background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.5px) 0 0 / 18px 18px; }
.mapc svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mapc .wire { stroke: var(--line-strong); stroke-width: 1; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease), stroke 300ms; }
.mapc .wire[data-on] { stroke-dashoffset: 0; } .mapc .wire[data-lit] { stroke: var(--arc); stroke-width: 1.6; }
.zone { position: absolute; border: 1px dashed var(--line); border-radius: 16px; background: color-mix(in srgb, var(--ink) 2.5%, transparent); opacity: 0; transition: opacity 500ms var(--ease); }
.zone[data-on] { opacity: 1; }
.zone span { position: absolute; left: 12px; top: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.mnode { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: var(--radius-full); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--glass-line); box-shadow: var(--specular), var(--shadow-raised); opacity: 0; transition: opacity 500ms var(--ease), border-color 300ms, box-shadow 300ms; }
.mnode[data-on] { opacity: 1; }
.mnode[data-sel] { border-color: color-mix(in srgb, var(--arc) 65%, transparent); box-shadow: var(--specular), 0 0 0 4px color-mix(in srgb, var(--arc) 16%, transparent); }
.mnode .disc { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.mnode[data-r="ok"] .disc { background: var(--good); box-shadow: none; }
.mnode b { display: block; font-weight: 500; font-size: 12.5px; } .mnode small { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); }
.mnode .q { position: absolute; top: -3px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.drawer { position: absolute; top: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: min(19rem, 60%); padding: 1rem; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 0.75rem; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--glass-line); box-shadow: var(--shadow-float); animation: fade-in 400ms var(--ease-out); }
.drawer h5 { margin: 0; font-size: 17px; font-weight: 600; }
.drawer p { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.drawer .lbl, .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.lives { display: grid; gap: 6px; }
.live { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: var(--radius-md); border: 1px solid var(--glass-line); background: var(--raise); font-size: 12px; }
.live i { width: 8px; height: 8px; border-radius: 2px; } .live code { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* rows behind a number */
.evid { margin: 0 1.25rem; padding: 0.625rem 0.75rem; border-radius: var(--radius-md); background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 12px; color: var(--ink-2); }
.evid b { color: var(--ink); font-weight: 600; }
.rows { margin: 0.75rem 1.25rem 0; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--glass-line); }
.rows table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rows th { text-align: left; font-weight: 400; color: var(--ink-3); padding: 8px 10px; background: var(--raise); border-bottom: 1px solid var(--glass-line); }
.rows td { padding: 7px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent); color: var(--ink-2); }
.rows td:first-child { color: var(--ink); } .rows th:nth-child(n+3), .rows td:nth-child(n+3) { text-align: right; }
.rows tr { animation: fade-in 400ms var(--ease-out) both; }
.sql { margin: 0.75rem 1.25rem 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); line-height: 1.6; white-space: pre; overflow: hidden; }

/* definitions and requests */
.dlist { display: grid; gap: 0.5rem; padding: 0 1.25rem; }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding: 0.75rem 0.875rem; border-radius: var(--radius-md); border: 1px solid var(--glass-line); background: var(--raise); }
.drow b { font-weight: 600; } .drow p { margin: 0; grid-column: 1 / -1; color: var(--ink-2); font-size: 12px; }
.drow[data-hot] { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.drow .acts { grid-column: 1 / -1; display: flex; gap: 0.5rem; margin-top: 0.25rem; }
.mini-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 600; border: 1px solid var(--glass-line); color: var(--ink-2); background: var(--raise); }
.mini-btn[data-primary] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.mini-btn[data-pressed] { filter: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.req { margin: 0 1.25rem; padding: 1rem; border-radius: var(--radius-lg); border: 1px solid var(--glass-line); background: var(--raise); display: grid; gap: 0.75rem; }
.req q { quotes: none; font-size: 14px; font-weight: 500; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stepper span { display: grid; gap: 6px; font-size: 11px; color: var(--ink-3); }
.stepper span::before { content: ""; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.stepper span[data-done]::before { background: var(--good); } .stepper span[data-now]::before { background: var(--accent); animation: breathe var(--duration-ambient) ease-in-out infinite; }
.stepper span[data-now] { color: var(--ink); }

/* the assistant */
.asst { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--glass-line); background: color-mix(in srgb, var(--surface) 75%, transparent); }
.asst-head { display: flex; justify-content: space-between; align-items: center; padding: 0.875rem 1rem; border-bottom: 1px solid var(--glass-line); font-weight: 600; }
.asst-head span { font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.asst-thread { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.625rem; padding: 0.875rem; }
.msg-me { align-self: flex-end; max-width: 88%; padding: 0.5rem 0.75rem; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); animation: fade-in 300ms var(--ease-out); }
.msg-ai { display: grid; gap: 0.5rem; padding: 0.75rem; border-radius: var(--radius-lg); border: 1px solid var(--glass-line); background: var(--raise); animation: fade-in 400ms var(--ease-out); }
.msg-ai p { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.msg-ai .fig { font-family: var(--font-display); font-variation-settings: "wdth" 110; font-weight: 600; font-size: 30px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.msg-ai .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.work { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); animation: fade-in 300ms var(--ease-out); }
.work i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: breathe 1.2s ease-in-out infinite; }
.bars2 { display: grid; gap: 5px; }
.bars2 div { display: grid; grid-template-columns: 4.75rem 1fr 2.5rem; gap: 6px; align-items: center; font-size: 11px; color: var(--ink-2); }
.bars2 em { font-style: normal; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.bars2 em i { display: block; height: 100%; border-radius: 3px; transform-origin: 0 50%; animation: grow-x 900ms var(--ease-out) both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.bars2 b { text-align: right; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.choice2 { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.625rem; border-radius: var(--radius-md); border: 1px solid var(--glass-line); background: var(--sunk); font-size: 12px; color: var(--ink-2); }
.choice2 b { font-family: var(--font-display); font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.choice2[data-picked] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink); }
.plan2 { display: grid; gap: 4px; padding: 0.625rem; border-radius: var(--radius-md); border: 1px dashed var(--warn-line); background: var(--warn-soft); font-size: 12px; color: var(--ink-2); }
.plan2 ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 2px; }
.asst-compose { display: flex; gap: 0.5rem; align-items: center; padding: 0.75rem; border-top: 1px solid var(--glass-line); }
.asst-input { flex: 1; min-width: 0; display: flex; align-items: center; height: 2.25rem; padding: 0 0.875rem; border-radius: var(--radius-full); border: 1px solid var(--glass-line); background: var(--sunk); white-space: nowrap; overflow: hidden; font-size: 12.5px; }
.asst-input[data-focus] { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.asst-input .ph { color: var(--ink-3); }
.asst-send { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.asst-send svg { width: 16px; height: 16px; }
.app .caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--accent); margin-left: 1px; animation: blink 1s steps(1) infinite; }

.app-toast { position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: var(--radius-full);
  background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 500; opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; white-space: nowrap; }
.app-toast[data-on] { opacity: 1; }
.app-cursor { position: absolute; left: 60%; top: 40%; z-index: 5; width: 20px; height: 20px; pointer-events: none; transition: left 750ms cubic-bezier(.4,0,.2,1), top 750ms cubic-bezier(.4,0,.2,1); }
.app-cursor svg { width: 20px; height: 20px; fill: var(--ink); stroke: var(--bg); stroke-width: 1.2; filter: none; }
.app-cursor::after { content: ""; position: absolute; left: -10px; top: -10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.app-cursor[data-click]::after { animation: click-ring 500ms var(--ease-out); }
@keyframes click-ring { from { opacity: 0.9; transform: scale(0.4); } to { opacity: 0; transform: scale(1.4); } }

@media (max-width: 899px) {
  .app-body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .rail { display: none; }
  .app-main { height: 21rem; }
  .asst { height: 24rem; border-left: 0; border-top: 1px solid var(--glass-line); }
  .app-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .drawer { width: auto; left: 0.75rem; top: auto; height: 62%; }
  .sql { display: none; }
}
@media (prefers-reduced-motion: reduce) { .app { transform: none; } .app-cursor { display: none; } }
