/* airglow.so marketing site. Built on the product's design tokens (packages/ui/src/tokens.css): same palette, accent,
   radii, borders and chart colors, light-first with automatic dark mode. Type is Stack Sans (Headline for headings,
   Text for body), self-hosted so no visitor request leaves airglow.so. The grainy glow behind the hero is the one
   carry-over from the original Airglow site. */

@font-face { font-family: "Stack Sans Text"; src: url("/fonts/stack-sans-text-latin.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Stack Sans Headline"; src: url("/fonts/stack-sans-headline-latin.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f5;
  --bg-emphasis: #ebebed;
  --border: #ebebed;
  --border-strong: #dcdce0;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #71717a;
  --accent: #0b7d60;
  --accent-hover: #0a6e55;
  --accent-subtle: #e8f6f0;
  --accent-text: #0a6b52;
  --accent-border: #a7dcc6;
  --on-accent: #ffffff;
  --purple: #6d4fc9;
  --purple-subtle: #f2eefc;
  --danger: #dc2626; --danger-text: #b91c1c; --danger-subtle: #fef2f2;
  --warning: #d97706; --warning-text: #b45309; --warning-subtle: #fff7e6;
  --success: #16a34a; --success-text: #15803d; --success-subtle: #ecfdf3;
  --code-bg: #f7f7f8;
  /* Direct-traffic buckets: same colors as the app's chart (apps/web/src/lib/traffic.ts). */
  --c-shared: #e0702f; --c-agents: #7c5cd6; --c-sent: #0e8a6a; --c-direct: #a1a1aa;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.06), 0 1px 3px rgba(24, 24, 27, 0.04);
  --shadow-lg: 0 24px 60px -12px rgba(24, 24, 27, 0.18), 0 2px 6px rgba(24, 24, 27, 0.06);
  --grain-opacity: 0.22;
  --glow-a: rgba(63, 214, 166, 0.42);
  --glow-b: rgba(169, 147, 240, 0.40);
  --glow-c: rgba(138, 184, 255, 0.36);
  --glow-d: rgba(244, 182, 160, 0.30);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --font-text: "Stack Sans Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Stack Sans Headline", "Stack Sans Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #151517; --bg-subtle: #1b1b1e; --bg-muted: #232327; --bg-emphasis: #2c2c31;
    --border: #2a2a2f; --border-strong: #38383e;
    --text: #ededef; --text-2: #a1a1aa; --text-3: #7c7c85;
    --accent: #3fd6a6; --accent-hover: #5fe3b7; --accent-subtle: rgba(63, 214, 166, 0.12); --accent-text: #6ee7bf; --accent-border: rgba(63, 214, 166, 0.38); --on-accent: #0b1a15;
    --purple: #a993f0; --purple-subtle: rgba(169, 147, 240, 0.14);
    --danger: #f87171; --danger-text: #fca5a5; --danger-subtle: rgba(248, 113, 113, 0.12);
    --warning: #fbbf24; --warning-text: #fcd34d; --warning-subtle: rgba(251, 191, 36, 0.12);
    --success: #22c55e; --success-text: #86efac; --success-subtle: rgba(34, 197, 94, 0.12);
    --code-bg: #1f1f23;
    --c-shared: #d9702f; --c-agents: #9078e6; --c-sent: #22a883; --c-direct: #71717a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --grain-opacity: 0.16;
    --glow-a: rgba(63, 214, 166, 0.22); --glow-b: rgba(169, 147, 240, 0.30); --glow-c: rgba(138, 184, 255, 0.22); --glow-d: rgba(240, 182, 210, 0.18);
    --nav-bg: rgba(21, 21, 23, 0.78);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
p a, li a, td a { color: var(--accent-text); text-underline-offset: 2px; }
code { font: 500 0.86em var(--font-mono); background: var(--code-bg); border: 1px solid var(--border); padding: 0.05em 0.35em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--text); }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 13px/1.2 var(--font-text); color: var(--accent-text); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--text-2); margin: 20px 0 0; max-width: 620px; }
.body { color: var(--text-2); margin: 16px 0 0; max-width: 560px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--text-3); }
.fine { color: var(--text-3); font-size: 14px; margin: 16px 0 0; }

/* ---------- Buttons (same shape as the app's, one size up) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-md); font: 500 15px/1 var(--font-text); text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background 0.14s, border-color 0.14s, color 0.14s; cursor: pointer; }
.btnPrimary { background: var(--accent); color: var(--on-accent); }
.btnPrimary:hover { background: var(--accent-hover); }
.btnSecondary { background: var(--bg); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btnSecondary:hover { background: var(--bg-muted); }
.btnGhost { color: var(--text-2); }
.btnGhost:hover { color: var(--text); background: var(--bg-muted); }
.btnSm { height: 32px; padding: 0 12px; font-size: 14px; }
.btnLg { height: 44px; padding: 0 20px; font-size: 16px; }
.wide { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); border-bottom: 1px solid var(--border); }
.navInner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand svg { height: 22px; width: auto; display: block; }
.navLinks { display: flex; gap: 4px; }
.navLinks a { padding: 6px 10px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--text-2); text-decoration: none; }
.navLinks a:hover { color: var(--text); background: var(--bg-muted); }
.navLinks a[aria-current="page"] { color: var(--text); font-weight: 500; }
.navEnd { margin-left: auto; display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .navLinks { display: none; } .navEnd .btnGhost { display: none; } }

/* ---------- Hero with grainy glow ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -120px -10% auto; height: 760px; z-index: -2; filter: blur(48px);
  background:
    radial-gradient(34% 46% at 18% 30%, var(--glow-b), transparent 70%),
    radial-gradient(30% 40% at 46% 12%, var(--glow-d), transparent 70%),
    radial-gradient(32% 44% at 74% 22%, var(--glow-c), transparent 70%),
    radial-gradient(40% 46% at 58% 54%, var(--glow-a), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.heroCenter { text-align: center; }
.heroCenter h1 { max-width: 16ch; margin-inline: auto; }
.heroCenter .lead { margin-inline: auto; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.heroCenter .ctas { justify-content: center; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-2); font-size: 14px; }
.heroCenter .trust { justify-content: center; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--accent); }
.heroShot { margin-top: 56px; }
.pageHero { padding: 80px 0 64px; }
.pageHero h1 { font-size: clamp(36px, 5vw, 56px); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--border); }
.sectionHead { max-width: 680px; }
.sectionHead.center { text-align: center; }
.sectionHead.center .body { margin-inline: auto; }
.tint { background: var(--bg-subtle); }
@media (max-width: 760px) { .section { padding: 72px 0; } }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mt { margin-top: 48px; }
@media (max-width: 980px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.card p { color: var(--text-2); margin: 8px 0 0; font-size: 15px; }
.card .iconBox { width: 32px; height: 32px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--accent-subtle); color: var(--accent-text); margin-bottom: 14px; }
.card .iconBox svg { width: 18px; height: 18px; }
a.card { display: block; text-decoration: none; transition: border-color 0.14s; }
a.card:hover { border-color: var(--border-strong); }
.more { display: inline-flex; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--accent-text); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip > :first-child { order: 0; } }
.step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--accent-subtle); color: var(--accent-text); font: 600 12px/1 var(--font-text); }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 999px; background: var(--accent-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%230b7d60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (prefers-color-scheme: dark) { .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%233fd6a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
.ticks b { font-weight: 600; }

/* ---------- Product UI: the same parts the app is made of ---------- */
.app { background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; font-size: 13px; line-height: 1.45; }
.appGrid { display: grid; grid-template-columns: 196px 1fr; min-height: 420px; }
.appSide { background: var(--bg-subtle); border-right: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.appWs { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; font-weight: 600; font-size: 13px; }
.appWs i { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); display: inline-block; }
.appNav { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: var(--r-sm); color: var(--text-2); }
.appNav svg { width: 15px; height: 15px; flex: none; }
.appNav.on { background: var(--bg-emphasis); color: var(--text); font-weight: 500; }
.appNav .count { margin-left: auto; font-size: 11px; color: var(--text-3); }
.appMain { min-width: 0; display: flex; flex-direction: column; }
.appHead { display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.appTitle { font-weight: 600; font-size: 14px; }
.appTabs { display: flex; gap: 2px; }
.appTabs span { padding: 4px 8px; border-radius: var(--r-sm); color: var(--text-3); }
.appTabs span.on { background: var(--bg-muted); color: var(--text); }
.appBody { padding: 16px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; flex: 1; }
@media (max-width: 860px) { .appGrid { grid-template-columns: 1fr; } .appSide { display: none; } .appBody { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; background: var(--bg); min-width: 0; }
.panelHead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.panelTitle { margin: 0; font-weight: 600; font-size: 13.5px; }
.panelSub { margin: 2px 0 0; color: var(--text-3); font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--bg-muted); color: var(--text-2); white-space: nowrap; }
.tag.glow { background: var(--accent-subtle); color: var(--accent-text); }
.tag.purple { background: var(--purple-subtle); color: var(--purple); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.status svg { width: 14px; height: 14px; flex: none; }
.status.good svg { color: var(--success); } .status.bad svg { color: var(--danger); } .status.warn svg { color: var(--warning); } .status.none svg { color: var(--text-3); }

/* Stacked bars (tight, solid, like the app's StackedBar) */
.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 170px; margin-top: 14px; border-bottom: 1px solid var(--border); }
.bars.tall { height: 220px; }
.bar { display: flex; flex-direction: column-reverse; height: 100%; }
.bar i { display: block; height: calc(var(--h) * 1%); transform-origin: bottom; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bar i + i { box-shadow: 0 -1px 0 var(--bg); }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.k1 { background: var(--c-direct); } .k2 { background: var(--c-sent); } .k3 { background: var(--c-agents); } .k4 { background: var(--c-shared); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend b { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.summary { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--text-2); display: grid; gap: 2px; }

/* Rows (32px like the app's tables) */
.rows { list-style: none; margin: 10px 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 10px; align-items: center; min-height: 34px; padding: 4px 0; border-top: 1px solid var(--border); }
.rows li:first-child { border-top: 0; }
.rows .name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .name small { color: var(--text-3); margin-left: 6px; }
.rows .num { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.av { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-subtle); display: grid; place-items: center; color: var(--text); }
.av svg { width: 13px; height: 13px; }

/* Larger stand-alone product views in the story sections */
.view { background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13.5px; }
.viewHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.viewHead p { margin: 0; font-weight: 600; font-size: 14px; }
.viewRows { list-style: none; margin: 0; padding: 4px 16px 8px; }
.viewRows li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 12px; align-items: center; min-height: 48px; border-top: 1px solid var(--border); }
.viewRows li:first-child { border-top: 0; }
.viewRows p { margin: 0; font-weight: 500; }
.viewRows small { display: block; color: var(--text-3); font-size: 12px; }
.viewRows .rank { color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.viewRows .when { color: var(--text-3); font-size: 12px; text-align: right; min-width: 64px; }
.replay { display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 560px) { .replay { grid-template-columns: 1fr; } }
.stage { position: relative; padding: 16px; border-right: 1px solid var(--border); background: var(--bg-subtle); display: grid; gap: 8px; align-content: start; min-height: 230px; }
.urlbar { font: 12px var(--font-mono); color: var(--text-3); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px 8px; margin-bottom: 6px; }
.ph { height: 9px; border-radius: 4px; background: var(--bg-emphasis); }
.w40 { width: 40%; } .w60 { width: 60%; height: 13px; } .w70 { width: 70%; }
.phGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.phGrid div { height: 64px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border); }
.phGrid .hl { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.path { position: absolute; inset: 40px 0 0; width: 100%; height: calc(100% - 40px); pointer-events: none; color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 6px 0; }
.steps li { display: flex; gap: 10px; padding: 9px 16px; color: var(--text-2); border-top: 1px solid var(--border); }
.steps li:first-child { border-top: 0; }
.steps .t { width: 32px; flex: none; color: var(--text-3); font-variant-numeric: tabular-nums; }
.steps .bad { color: var(--text); }
.steps .bad .t { color: var(--danger); }
.results li { grid-template-columns: 22px 1fr auto 52px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 4px 0; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 13px 18px; color: var(--text-2); border-top: 1px solid var(--border); }
.timeline li:first-child { border-top: 0; }
.timeline .t { color: var(--text-3); font-variant-numeric: tabular-nums; }
.timeline .hit { color: var(--text); background: var(--accent-subtle); }
.timeline .hit .t { color: var(--accent-text); font-weight: 600; }

/* Agents strip */
.agentStrip { padding: 56px 0 8px; }
.agentStrip p { text-align: center; color: var(--text-3); font-size: 14px; margin: 0 0 18px; }
.agentList { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.agentList li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.agentIcon { width: 18px; height: 18px; display: inline-flex; color: var(--text); }
.agentIcon svg { width: 100%; height: 100%; }

/* Tables (comparison, pricing) */
.tableWrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.table th, .table td { padding: 13px 18px; text-align: left; border-top: 1px solid var(--border); vertical-align: top; }
.table thead th { border-top: 0; background: var(--bg-subtle); color: var(--text-2); font-weight: 500; font-size: 13.5px; }
.table tbody th { font-weight: 500; }
.table .group th { background: var(--bg-subtle); font-size: 13px; color: var(--text-3); font-weight: 600; }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 6px; }
.yes svg { color: var(--success); width: 16px; height: 16px; flex: none; }
.no { color: var(--text-3); }
.no svg { color: var(--text-3); width: 16px; height: 16px; flex: none; }

/* Pricing cards */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--shadow-sm); }
.plan.pro { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-subtle), var(--shadow-sm); }
.plan h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.price { font: 600 36px/1.1 var(--font-head); letter-spacing: -0.02em; margin: 14px 0 0; }
.price small { font: 400 15px var(--font-text); color: var(--text-3); letter-spacing: 0; }
.planSub { color: var(--text-2); margin: 6px 0 0; font-size: 15px; }
.plan ul { margin: 20px 0 24px; flex: 1; }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { margin: 0 0 20px; color: var(--text-2); max-width: 680px; }

/* Closing CTA */
.closing { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 112px 0; border-top: 1px solid var(--border); }
.closing::before { content: ""; position: absolute; inset: 20% -10% -40%; z-index: -1; filter: blur(60px);
  background: radial-gradient(30% 50% at 30% 60%, var(--glow-b), transparent 70%), radial-gradient(30% 50% at 70% 60%, var(--glow-a), transparent 70%); }
.closing h2 { max-width: 18ch; margin-inline: auto; }
.closing .ctas { justify-content: center; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 48px 0 56px; background: var(--bg-subtle); }
.footGrid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .footGrid { grid-template-columns: 1fr 1fr; } .footBrand { grid-column: 1 / -1; } }
.footBrand p { color: var(--text-3); font-size: 14px; margin: 12px 0 0; max-width: 260px; }
.foot h4 { font: 600 13px/1.2 var(--font-text); letter-spacing: 0; color: var(--text); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot li a, .foot li span { color: var(--text-2); text-decoration: none; font-size: 14px; }
.foot li a:hover { color: var(--text); }
.copy { color: var(--text-3); font-size: 13px; margin: 40px 0 0; }

/* ---------- Legal pages (privacy policy) ---------- */
.legal { padding: 64px 0 96px; }
.legalHead h1 { font-size: clamp(34px, 4.6vw, 48px); }
.legalMeta { color: var(--text-3); font-size: 14px; margin: 12px 0 0; }
.legalLead { color: var(--text-2); font-size: 18px; margin: 18px 0 0; }
.toc { margin: 36px 0 8px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-subtle); }
.toc h2 { font-size: 15px; letter-spacing: 0; margin: 0 0 10px; font-family: var(--font-text); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; }
.toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.legal section { margin-top: 44px; scroll-margin-top: 80px; }
.legal section h2 { font-size: 24px; }
.legal section h3 { font-size: 17px; margin-top: 22px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 12px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; }
.legal .tableWrap { margin-top: 14px; }

/* Sticky "follow one agent visit" step bar */
.tourTabs { position: sticky; top: 60px; z-index: 40; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.tourInner { display: flex; align-items: center; gap: 4px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.tourInner::-webkit-scrollbar { display: none; }
.tourLabel { font-size: 13px; color: var(--text-3); margin-right: 10px; white-space: nowrap; }
.tourTabs a { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 10px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: 14px; }
.tourTabs a:hover { background: var(--bg-muted); color: var(--text); }
.tourTabs a[aria-current] { background: var(--accent-subtle); color: var(--accent-text); }
.tourTabs a[aria-current] .step { background: var(--accent); color: var(--on-accent); }
section[id] { scroll-margin-top: 116px; }

/* Short page heroes: fade the glow out instead of cutting it at the section edge */
.pageHero::before { height: calc(100% + 120px); -webkit-mask-image: linear-gradient(#000 45%, transparent 92%); mask-image: linear-gradient(#000 45%, transparent 92%); }
.pageHero::after { height: 100%; }
.appTabs span { white-space: nowrap; }
@media (max-width: 560px) { .appTabs span + span { display: none; } }

/* "Never" lists: a quiet cross instead of a check */
.crosses li::before { background: var(--bg-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' fill='none' stroke='%2371717a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (prefers-color-scheme: dark) { .crosses li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' fill='none' stroke='%237c7c85' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); } }

/* =====================================================================
   Layout v3: product-led sections (left-aligned hero, painted stage
   panels with live app windows, feature containers). Interactions live in
   /home.js; everything reads fine without it.
   ===================================================================== */
.heroLeft { padding: 72px 0 0; }
.heroLeft h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; letter-spacing: -0.025em; max-width: 18ch; }
.heroLeft .lead { max-width: 640px; }
.heroLeft .trust { margin-top: 18px; }
.hero.heroLeft::before, .hero.heroLeft::after { display: none; }

/* Painted stage: the grainy glow inside a rounded panel */
.stagePanel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: var(--bg-muted); }
.stagePanel::before { content: ""; position: absolute; inset: -20%; z-index: -2; filter: blur(40px);
  background:
    radial-gradient(40% 50% at var(--g1x, 20%) var(--g1y, 30%), var(--glow-b), transparent 70%),
    radial-gradient(36% 46% at var(--g2x, 55%) var(--g2y, 15%), var(--glow-d), transparent 70%),
    radial-gradient(40% 50% at var(--g3x, 82%) var(--g3y, 40%), var(--glow-c), transparent 70%),
    radial-gradient(46% 50% at var(--g4x, 50%) var(--g4y, 85%), var(--glow-a), transparent 70%); }
.stagePanel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: calc(var(--grain-opacity) * 1.4); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.p2 { --g1x: 75%; --g1y: 20%; --g2x: 30%; --g2y: 80%; --g3x: 15%; --g3y: 30%; --g4x: 70%; --g4y: 90%; }
.p3 { --g1x: 50%; --g1y: 90%; --g2x: 80%; --g2y: 30%; --g3x: 20%; --g3y: 60%; --g4x: 40%; --g4y: 10%; }
.p4 { --g1x: 85%; --g1y: 70%; --g2x: 20%; --g2y: 20%; --g3x: 55%; --g3y: 50%; --g4x: 15%; --g4y: 85%; }
.heroStage { margin-top: 44px; padding: 56px 48px 0; min-height: 560px; }
@media (max-width: 860px) { .heroStage { padding: 20px 12px 0; min-height: 0; } }
.heroStage .app { max-width: 980px; margin: 0 auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Floating secondary window */
.win { background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; }
.winBar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); font-size: 12px; color: var(--text-2); font-weight: 500; }
.winBar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 500; }
.winBar .live::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.heroLive { position: absolute; right: 40px; bottom: 32px; width: 330px; z-index: 3; }
@media (max-width: 1100px) { .heroLive { display: none; } }
.feedList { list-style: none; margin: 0; padding: 4px 12px; }
.feedList li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; min-height: 40px; border-top: 1px solid var(--border); }
.feedList li:first-child { border-top: 0; }
.feedList p { margin: 0; font-weight: 500; font-size: 12.5px; }
.feedList small { display: block; color: var(--text-3); font-size: 11.5px; }
.feedList li.enter { animation: enter 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(-8px); background: var(--accent-subtle); } to { opacity: 1; transform: none; } }

/* Segmented control (as in the app) */
.seg { display: inline-flex; padding: 2px; border-radius: var(--r-md); background: var(--bg-muted); border: 1px solid var(--border); gap: 2px; }
.seg button { font: 500 12px/1 var(--font-text); color: var(--text-2); background: transparent; border: 0; border-radius: 5px; padding: 6px 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: var(--shadow-sm); }
/* GA view: every segment collapses into one grey "Direct" bar */
.bars i { transition: background-color 0.5s ease, box-shadow 0.5s ease; }
[data-view="ga"] .bars i { background: var(--c-direct); box-shadow: none; }
.legendGa { display: none; }
[data-view="ga"] .legendAg { display: none; }
[data-view="ga"] .legendGa { display: flex; }
[data-view="ga"] .viewNote { visibility: hidden; }

/* Agent tiles (like a logo wall) */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tiles li { list-style: none; display: flex; align-items: center; justify-content: center; gap: 10px; height: 64px; border-radius: var(--r-md); background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: 15px; }
.tiles .agentIcon { width: 20px; height: 20px; }
.tiles ul { padding: 0; margin: 0; }
.tilesWrap { padding: 64px 0 24px; }
.tilesWrap > .wrap > p { text-align: center; color: var(--text-2); margin: 0; font-size: 15px; }

/* Statement */
.statement { padding: 96px 0 40px; }
.statement h2 { font-weight: 500; font-size: clamp(26px, 3vw, 36px); max-width: 24ch; }
.statementCols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.statementCols h3 { font-size: 16px; }
.statementCols p { color: var(--text-2); margin: 6px 0 0; font-size: 15px; }
@media (max-width: 860px) { .statementCols { grid-template-columns: 1fr; gap: 20px; } }

/* Feature containers */
.feat { padding: 24px 0; }
.featBox { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0; align-items: stretch; border-radius: var(--r-xl); background: var(--bg-subtle); border: 1px solid var(--border); overflow: hidden; }
.featBox.flip { grid-template-columns: 1.2fr 0.8fr; }
.featBox.flip .featText { order: 2; }
.featText { padding: 48px 40px; align-self: center; }
.featTitle { font: 500 clamp(21px, 2.1vw, 25px)/1.3 var(--font-head); letter-spacing: -0.015em; margin: 0; color: var(--text); }
.featTitle span { color: var(--text-3); }
.featLink { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--accent-text); font-weight: 500; text-decoration: none; font-size: 15px; }
.featLink:hover { text-decoration: underline; text-underline-offset: 3px; }
.featStage { margin: 12px; min-height: 420px; display: grid; place-items: center; padding: 36px 28px; }
.featStage > .win, .featStage > .view { width: 100%; max-width: 560px; }
@media (max-width: 920px) {
  .featBox, .featBox.flip { grid-template-columns: 1fr; }
  .featBox.flip .featText { order: 0; }
  .featText { padding: 32px 24px 8px; }
  .featStage { min-height: 0; padding: 20px 12px; }
}
.featNum { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; margin-bottom: 14px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.chip { font: 500 12px/1 var(--font-text); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.feedList li[hidden] { display: none; }

/* Replay player */
.player { display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 560px) { .player { grid-template-columns: 1fr; } }
.player .stage { min-height: 240px; }
.cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; pointer-events: none; color: var(--text); filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25)); transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.player .steps li { cursor: pointer; transition: background 0.2s, color 0.2s; }
.player .steps li:hover { background: var(--bg-subtle); }
.player .steps li.on { background: var(--accent-subtle); color: var(--text); }
.player .steps li.bad.on { background: var(--danger-subtle); }
.controls { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); }
.iconBtn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); cursor: pointer; padding: 0; }
.iconBtn svg { width: 14px; height: 14px; }
.scrub { flex: 1; height: 4px; border-radius: 999px; background: var(--bg-emphasis); position: relative; overflow: hidden; }
.scrub i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width 0.9s linear; }
.time { font: 12px var(--font-mono); color: var(--text-3); min-width: 72px; text-align: right; }

/* Test run */
.prompt { margin: 12px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--bg); min-height: 42px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.prompt .caret { width: 1.5px; height: 16px; background: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.spin { width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--bg-emphasis); border-top-color: var(--accent); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.status.run { color: var(--text-3); }

/* Issues */
.issueList { list-style: none; margin: 0; padding: 4px 0 8px; }
.issueList > li { border-top: 1px solid var(--border); }
.issueList > li:first-child { border-top: 0; }
.issueRow { width: 100%; display: grid; grid-template-columns: 22px 1fr auto 16px; gap: 12px; align-items: center; padding: 11px 16px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.issueRow:hover { background: var(--bg-subtle); }
.issueRow p { margin: 0; font-weight: 500; }
.issueRow small { display: block; color: var(--text-3); font-size: 12px; }
.issueRow .chev { width: 8px; height: 8px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(-45deg); transition: transform 0.15s; justify-self: center; }
.issueRow[aria-expanded="true"] .chev { transform: rotate(45deg); }
.issueMore { padding: 0 16px 14px 50px; color: var(--text-2); font-size: 13px; }
.issueMore p { margin: 0 0 10px; }
.issueMore[hidden] { display: none; }

/* Timeline play-through */
.timeline.play li { opacity: 0.25; transition: opacity 0.4s, background 0.4s; }
.timeline.play li.shown { opacity: 1; }

/* Small cards with mini illustrations */
.miniCards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 920px) { .miniCards { grid-template-columns: 1fr; } }
.mini { border-radius: var(--r-xl); background: var(--bg-subtle); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; }
.miniText { padding: 24px 24px 8px; }
.miniText h3 { font-size: 17px; font-weight: 500; }
.miniText p { color: var(--text-3); margin: 4px 0 0; font-size: 15px; }
.miniText a { display: inline-block; margin-top: 12px; color: var(--accent-text); font-weight: 500; text-decoration: none; font-size: 14px; }
.miniStage { margin: 12px; margin-top: auto; padding: 20px; min-height: 220px; display: grid; place-items: center; }
.miniStage .win { width: 100%; }
.hbars { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 8px; font-size: 12px; }
.hbars li { display: grid; grid-template-columns: 70px 1fr 32px; gap: 8px; align-items: center; }
.hbars b { height: 8px; border-radius: 2px; background: var(--c-shared); display: block; width: var(--w); }
.hbars span:last-child { text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }
.codeBox { margin: 0; padding: 12px; font: 11.5px/1.6 var(--font-mono); color: var(--text-2); white-space: pre; overflow: hidden; }
.codeBox .hl { background: var(--accent-subtle); color: var(--accent-text); }
.wsList { list-style: none; margin: 0; padding: 6px; }
.wsList li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--r-sm); font-size: 12.5px; }
.wsList li.on { background: var(--bg-muted); font-weight: 500; }
.wsList i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.wsList span { margin-left: auto; color: var(--text-3); font-size: 11.5px; }

.sectionTitle { font-weight: 500; font-size: clamp(26px, 3vw, 34px); }
.leftHead { padding-top: 96px; }
.heroApp { max-width: 800px !important; margin: 0 !important; }
.heroApp .appBody { grid-template-columns: 1fr; }
.heroApp .bars { height: 230px; }
.heroLive { right: 48px; bottom: 48px; width: 340px; }
.winFoot { padding: 9px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); background: var(--bg-subtle); }
.winFoot span { color: var(--accent-text); font-weight: 600; }
.featTitle { font-size: clamp(20px, 1.9vw, 23px); }
@media (max-width: 1100px) { .heroApp { margin: 0 auto !important; } }
.heroStage { min-height: 0; padding: 56px 48px 0; display: flex; align-items: flex-end; }
.heroApp { max-width: 740px !important; width: 100%; }
.heroApp .appGrid { min-height: 380px; }
.heroApp .bars { height: 250px; }
.heroLive { top: 96px; bottom: auto; right: 48px; }
@media (max-width: 1100px) { .heroStage { padding: 28px 16px 0; justify-content: center; } }
.heroApp { max-width: 690px !important; }
.heroLive { top: 120px; right: 40px; width: 330px; }
@media (max-width: 1180px) { .heroLive { display: none; } }

/* =====================================================================
   Header v2 (layout after x.ai): fixed full-width bar, translucent with
   blur, hairline that appears on scroll, small left nav with dropdowns,
   soft pill + split primary pill on the right.
   ===================================================================== */
.nav { position: sticky; top: 0; z-index: 60; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); opacity: 0; transition: opacity 0.2s; }
.nav.scrolled::after { opacity: 1; }
.navWrap { position: relative; display: flex; align-items: center; gap: 16px; height: 64px; max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .navWrap { padding-inline: 16px; } }
.nav .brand svg { height: 18px; }
.navMenu { margin-left: 18px; flex: 1; }
.navList { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.navList > li { position: relative; }
.navLink { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; font: 500 13.5px/1 var(--font-text); color: var(--text); background: none; border: 0; cursor: pointer; text-decoration: none; opacity: 0.78; transition: opacity 0.15s, background 0.15s; }
.navLink:hover, .navLink[aria-expanded="true"], .navLink[data-current] { opacity: 1; }
.navLink[aria-expanded="true"] { background: var(--bg-muted); }
.chev { width: 12px; height: 12px; transition: transform 0.15s; }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.navEnd { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 999px; font: 500 14px/1 var(--font-text); text-decoration: none; border: 0; cursor: pointer; color: var(--text); }
.pillSoft { background: color-mix(in srgb, var(--text) 5%, var(--bg)); }
.pillSoft:hover { background: color-mix(in srgb, var(--text) 9%, var(--bg)); }
.navCta { position: relative; display: inline-flex; align-items: stretch; height: 36px; border-radius: 999px; background: var(--text); }
.splitMain { display: inline-flex; align-items: center; padding: 0 12px 0 16px; border-radius: 999px 0 0 999px; color: var(--bg); font: 500 14px/1 var(--font-text); text-decoration: none; }
.splitDiv { width: 1px; background: color-mix(in srgb, var(--bg) 22%, transparent); }
.splitMore { display: inline-flex; align-items: center; padding: 0 12px 0 8px; border-radius: 0 999px 999px 0; background: none; border: 0; color: var(--bg); cursor: pointer; }
.splitMain:hover, .splitMore:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.menuBtn { width: 36px; padding: 0; display: none; }
.menuBtn svg { width: 18px; height: 18px; }

/* Dropdown panels */
.dd { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; display: flex; gap: 4px; padding: 8px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 7%, transparent); border-radius: 12px; box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.22); opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden; transition: opacity 0.12s ease, transform 0.12s ease, visibility 0s 0.12s; white-space: nowrap; }
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.hasDd.open > .dd { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.12s ease, transform 0.12s ease; }
.ddRight { left: auto; right: 0; }
.ddCol { display: flex; flex-direction: column; min-width: 210px; }
.ddLabel { margin: 4px 8px 4px; font: 500 10.5px/1.4 var(--font-text); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.ddItem { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 8px; border-radius: 6px; color: var(--text); text-decoration: none; }
.ddItem span { font-size: 14px; font-weight: 500; }
.ddItem small { font-size: 12.5px; color: var(--text-3); }
.ddItem:hover, .ddItem:focus-visible { background: var(--bg-muted); }
.ddSep { border: 0; border-top: 1px solid var(--border); margin: 6px 8px; }

/* Mobile */
.mobileMenu { padding: 8px 24px 24px; border-top: 1px solid var(--border); background: var(--bg); max-height: calc(100vh - 64px); overflow-y: auto; }
.mobileMenu a { display: block; padding: 12px 0; font-size: 17px; font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobileMenu .ddLabel { margin: 18px 0 4px; }
.mobileCtas { display: grid; gap: 8px; margin-top: 20px; }
.mobileCtas a { border-bottom: 0; padding: 0; display: inline-flex; font-size: 16px; }
@media (max-width: 860px) {
  .navMenu, .navSignin { display: none; }
  .navCta .splitDiv, .navCta .splitMore, .navCta .dd { display: none; }
  .navCta .splitMain { border-radius: 999px; padding: 0 16px; }
  .menuBtn { display: inline-flex; }
}
@media (min-width: 861px) { .mobileMenu { display: none !important; } }
.tourTabs { top: 64px; }
section[id] { scroll-margin-top: 120px; }

.mobileCtas .btnPrimary { color: var(--on-accent); }
.mobileCtas .btnSecondary { color: var(--text); }

/* Floating live window: visible at every width (overlaps the app's corner on mid widths, stacks on phones) */
@media (max-width: 1180px) {
  .heroLive { display: block; top: auto; bottom: 24px; right: 24px; width: 290px; }
  .heroStage { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .heroStage { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 12px 0; }
  .heroLive { position: relative; inset: auto; width: auto; order: -1; }
  .heroLive .feedList li:nth-child(n+4) { display: none; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .heroLive { width: 250px; bottom: 16px; right: 16px; }
  .heroLive .feedList li:nth-child(n+3) { display: none; }
}
.seg button { white-space: nowrap; }
@media (max-width: 480px) { .heroApp .panelHead { flex-direction: column; } }

/* "How it got there": answer vs. path */
.why { grid-template-columns: 0.9fr 1.1fr; }
.whySeg { margin-top: 22px; }
.whySeg button { font-size: 13px; padding: 8px 12px; }
.whyWin { font-size: 13.5px; }
.ask { padding: 14px 16px 0; display: flex; justify-content: flex-end; }
.askQ { background: var(--bg-muted); border-radius: 12px 12px 4px 12px; padding: 8px 12px; max-width: 85%; }
.answer { margin: 10px 16px 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px 12px 12px 4px; background: var(--bg); }
.answer p { margin: 0 0 8px; }
.trace { list-style: none; margin: 0; padding: 4px 16px 12px; border-top: 1px solid var(--border); display: none; }
.trace li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); position: relative; }
.trace li:first-child { border-top: 0; }
.trace p { margin: 0; font-weight: 500; }
.trace small { color: var(--text-3); font-size: 12px; }
.tIcon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--bg-muted); color: var(--text-2); }
.tIcon svg { width: 14px; height: 14px; }
.trace .fix { background: var(--accent-subtle); margin: 4px -16px -12px; padding: 10px 16px; border-top: 1px solid var(--accent-border); }
.trace .fix .tIcon { background: var(--accent); color: var(--on-accent); }
[data-mode="path"] .trace { display: block; }
[data-mode="path"] .answer { opacity: 0.55; }
.trace.play li { opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s; }
.trace.play li.shown { opacity: 1; transform: none; }
@media (max-width: 920px) { .why { grid-template-columns: 1fr; } }

/* Hero composition (wide screens): app shifted right, live card layered over its empty lower-left sidebar */
@media (min-width: 1181px) {
  .heroStage { justify-content: center; padding: 64px 48px 0; }
  .heroApp { max-width: 780px !important; width: 780px; transform: translateX(110px); }
  .heroApp .appGrid { min-height: 420px; }
  .heroLive { top: auto; right: auto; bottom: 32px; left: calc(50% - 500px); width: 330px; box-shadow: 0 30px 60px -18px rgba(24, 24, 27, 0.35), 0 0 0 1px rgba(24, 24, 27, 0.04); }
  .heroLive .feedList li:nth-child(n+4) { display: none; }
}
@media (min-width: 1181px) {
  .heroLive { width: 372px; left: calc(50% - 430px); bottom: 52px; font-size: 13.5px; }
  .heroLive .feedList li:nth-child(4) { display: grid; }
  .heroLive .feedList li { min-height: 46px; }
  .heroLive .feedList p { font-size: 13.5px; }
  .heroLive .feedList small { font-size: 12px; }
  .heroLive .winBar { height: 36px; font-size: 12.5px; }
}

/* Platform: what you can see at each connection level */
.levels th small, .levels td small { display: block; font-weight: 400; color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.levels thead th { vertical-align: bottom; color: var(--text); font-weight: 600; font-size: 14px; }
.levels td { color: var(--text-2); font-size: 14px; }
.levels .yes, .levels .no, .levels .part { align-items: flex-start; }
.levels .yes svg, .levels .no svg, .levels .part svg { margin-top: 3px; }
.part { color: var(--text-2); }
.part svg { color: var(--warning); width: 16px; height: 16px; flex: none; }
.table.levels { min-width: 820px; }
@media (max-width: 760px) {
  .tableWrap:has(.levels) { overflow: visible; border: 0; background: none; box-shadow: none; }
  .table.levels { min-width: 0; }
  .levels thead { display: none; }
  .levels, .levels tbody, .levels tr, .levels th, .levels td { display: block; width: 100% !important; }
  .levels tr { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); margin-bottom: 12px; overflow: hidden; }
  .levels th, .levels td { border-top: 0; padding: 10px 14px; }
  .levels tbody th { background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
  .levels td[data-level]::before { content: attr(data-level); display: block; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 2px; }
}
