/* =============================================================================
   Motif — one-page marketing site.
   Theme grounded in the product's DESIGN.md: cool-neutral layered surfaces, a
   single muted-indigo accent, agent-violet for AI, Hanken Grotesk + JetBrains
   Mono, disciplined semantic colour, provenance & propose-never-apply chrome.
   A dark "immersive" register (documented in DESIGN.md) carries the dramatic
   marketing moments. Motion: transform/opacity only, quick + physical.
   ============================================================================= */

/* ---- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --primary:#4b57c7; --primary-text:#3b3fb3; --primary-hover:#3f49ad; --primary-tint:#ececff;
  --primary-soft:#eef0ff; --primary-deep:#3a45ad;
  /* Cool-neutral surface planes */
  --bg-window:#e4e4e8; --bg-rail:#f1f1f4; --bg-subnav:#f4f4f7; --bg-canvas:#fbfbfd; --bg-topbar:#f6f6f9;
  --surface:#ffffff; --surface-hover:#ededf2; --surface-hover-strong:#e8e8ee;
  --border-hairline:#e9e9ef; --border-rail:#e4e4ea; --border-button:#dcdce3;
  --divider-soft:#ededf3; --track:#e6e6ec;
  /* Ink ramp */
  --on-surface:#1c1c1a; --ink-strong:#26261f; --ink-body:#46463f; --ink-secondary:#69696f;
  --ink-muted:#86868f; --ink-faint:#96969f; --ink-label:#a4a4ad;
  /* Semantic */
  --positive:#1f9d5b; --positive-text:#1f7a4d; --positive-tint:#e7f4ec; --positive-border:#cfe9da;
  --negative:#c0392c; --negative-icon:#d6453b; --negative-tint:#fbece9; --negative-border:#f6d8d3;
  --warning:#b15c12; --warning-label:#b97e1f; --warning-tint:#fdf3e7; --warning-border:#f4e2c9;
  --ai:#9163d6; --ai-text:#6e4fb8; --ai-tint:#f2ecfb; --ai-border:#e6dbf8;
  --info:#2f5fb0; --info-tint:#e9f0fb; --info-border:#d4e1f6;
  --neutral:#69696f; --neutral-tint:#f1f1f6; --neutral-border:#e4e4ea;
  /* Data-viz categorical */
  --cat-1:#3f7be0; --cat-2:#26b3b3; --cat-3:#1f9d5b; --cat-4:#d8843a; --cat-5:#9163d6;
  /* Type */
  --font:'Hanken Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,monospace;
  /* Radii */
  --r-xs:3px; --r-sm:8px; --r-md:9px; --r-lg:13px; --r-xl:15px; --r-2xl:20px; --r-full:9999px;
  /* Spacing */
  --sp-xs:4px; --sp-sm:8px; --sp-md:14px; --sp-lg:18px; --sp-xl:24px; --sp-2xl:38px; --sp-3xl:64px;
  /* Elevation */
  --sh-card:0 1px 2px rgba(28,28,26,.04);
  --sh-raise:0 4px 16px rgba(28,28,26,.06), 0 1px 2px rgba(28,28,26,.05);
  --sh-dock:0 6px 22px rgba(28,28,26,.09), 0 1px 2px rgba(28,28,26,.06);
  --sh-pop:0 18px 48px rgba(28,28,26,.14), 0 2px 8px rgba(28,28,26,.06);
  --ring-sel:inset 0 0 0 1px var(--primary-tint);
  /* Motion */
  --dur-fast:150ms; --dur-pop:220ms; --dur-stage:340ms; --dur-reveal:560ms;
  --ease-out:cubic-bezier(.2,.7,.2,1); --ease-spring:cubic-bezier(.34,1.4,.5,1);
  --ease-cover:cubic-bezier(.72,0,.16,1);
  /* Layout */
  --content-max:1200px;
  /* Live register (defaults to light work surface) */
  --page-bg:var(--bg-window);
}

/* Dark immersive register — applied to [data-reg="dark"] blocks */
[data-reg="dark"]{
  --page-bg:#0f0f14;
  --surface:#1a1a22; --bg-canvas:#15151c; --bg-topbar:#1c1c24; --bg-subnav:#16161d; --bg-rail:#14141a;
  --surface-hover:#22222c; --surface-hover-strong:#26262f;
  --border-hairline:#2a2a34; --border-rail:#26262f; --border-button:#33333f; --divider-soft:#25252f;
  --on-surface:#f4f4f6; --ink-strong:#e7e7ec; --ink-body:#c8c8d1; --ink-secondary:#a2a2ae;
  --ink-muted:#8e8e99; --ink-faint:#70707a; --ink-label:#8a8a95;
  --primary:#7f8bf0; --primary-text:#a9b2f7; --primary-tint:#2e3358; --primary-soft:#232744;
  --ai:#b48ef0; --ai-text:#c8aef7; --ai-tint:#2b2440; --ai-border:#3a3358;
  --positive:#34c759; --positive-text:#5fd47f; --positive-tint:#193026; --positive-border:#26402f;
  --warning:#e0a34a; --warning-label:#e0b46a; --warning-tint:#332a1a; --warning-border:#463a24;
  --negative:#ef5b52; --negative-tint:#33201f; --negative-border:#4a2a28;
  --info:#6ea8ff; --info-tint:#1c2540; --info-border:#2a385c;
  --track:#26262f;
  --sh-card:0 1px 2px rgba(0,0,0,.4); --sh-raise:0 8px 30px rgba(0,0,0,.5);
  --sh-pop:0 24px 64px rgba(0,0,0,.6); --sh-dock:0 10px 34px rgba(0,0,0,.55);
  --ring-sel:inset 0 0 0 1px #3a4090;
}

/* ---- Reset / base --------------------------------------------------------- */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  font-family:var(--font); background:var(--bg-window); color:var(--ink-body);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  font-size:15px; line-height:1.5; overflow-x:hidden;
  font-feature-settings:'tnum' 0;
}
::selection{background:rgba(75,87,199,.22)}
img,svg{display:block; max-width:100%}
a{color:inherit; text-decoration:none}
button{font:inherit; color:inherit; border:none; background:none; cursor:default}
:focus-visible{outline:2px solid var(--primary); outline-offset:2px; border-radius:3px}
.tnum{font-feature-settings:'tnum' 1}
.mono{font-family:var(--mono); font-feature-settings:'tnum' 1}

/* ---- Layout --------------------------------------------------------------- */
.wrap{max-width:var(--content-max); margin:0 auto; padding:0 clamp(20px,5vw,40px)}
.wrap-narrow{max-width:900px; margin:0 auto; padding:0 clamp(20px,5vw,40px)}
section{position:relative; padding:clamp(64px,9vw,120px) 0}
section[id],header[id]{scroll-margin-top:86px}
.band{background:var(--page-bg); color:var(--ink-body)}
[data-reg="dark"]{background:var(--page-bg); color:var(--ink-body)}
[data-reg="canvas"]{--page-bg:var(--bg-canvas); background:var(--bg-canvas)}
[data-reg="paper"]{--page-bg:#ffffff; background:#ffffff}

/* ---- Typography ----------------------------------------------------------- */
.eyebrow{
  font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:var(--primary-text); display:inline-flex; align-items:center; gap:8px;
}
[data-reg="dark"] .eyebrow{color:var(--primary-text)}
.eyebrow.ai{color:var(--ai-text)}
.eyebrow::before{content:""; width:16px; height:1.5px; background:currentColor; opacity:.55; display:inline-block}
h1,h2,h3{font-family:var(--font); color:var(--on-surface); letter-spacing:-.02em; line-height:1.06; text-wrap:balance}
.h-display{font-size:clamp(32px,5.2vw,66px); font-weight:800; letter-spacing:-.035em; line-height:1.0}
h2{font-size:clamp(28px,4.4vw,48px); font-weight:800; letter-spacing:-.03em; line-height:1.02}
h3{font-size:20px; font-weight:700; letter-spacing:-.01em}
.lede{font-size:clamp(16px,1.9vw,20px); line-height:1.5; color:var(--ink-secondary); max-width:40em; text-wrap:pretty}
.dim{color:var(--ink-muted)}
.strong{color:var(--on-surface); font-weight:600}
em{font-style:italic; color:var(--primary-text)}
[data-reg="dark"] em{color:var(--primary-text)}

.sec-head{max-width:660px; margin-bottom:clamp(32px,5vw,52px)}
.sec-head.center{margin-left:auto; margin-right:auto; text-align:center}
.sec-head h2{margin:16px 0 14px}
.sec-head .lede{margin:0}
.sec-head.center .lede{margin:0 auto}

/* ---- Buttons -------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:600;
  padding:10px 17px; border-radius:var(--r-md); transition:background var(--dur-fast) var(--ease-out),
  transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast);
  white-space:nowrap; cursor:pointer;
}
.btn:active{transform:translateY(.5px) scale(.99)}
.btn-primary{background:var(--primary); color:#fff; box-shadow:0 1px 2px rgba(75,87,199,.35), 0 4px 14px rgba(75,87,199,.22)}
.btn-primary:hover{background:var(--primary-hover); box-shadow:0 2px 4px rgba(75,87,199,.4), 0 8px 22px rgba(75,87,199,.3)}
.btn-ghost{color:var(--ink-secondary); border:1px solid var(--border-button); background:var(--surface)}
.btn-ghost:hover{background:var(--surface-hover); color:var(--on-surface)}
[data-reg="dark"] .btn-ghost{background:rgba(255,255,255,.04); border-color:var(--border-button); color:var(--ink-body)}
[data-reg="dark"] .btn-ghost:hover{background:rgba(255,255,255,.08); color:var(--on-surface)}
.btn-lg{font-size:15px; padding:13px 22px; border-radius:11px}

/* ---- Chips / pills / badges ---------------------------------------------- */
.chip{
  display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; line-height:1;
  padding:5px 9px; border-radius:var(--r-full); border:1px solid transparent; white-space:nowrap;
}
.chip svg{width:11px; height:11px}
.chip.pos{background:var(--positive-tint); color:var(--positive-text); border-color:var(--positive-border)}
.chip.neg{background:var(--negative-tint); color:var(--negative); border-color:var(--negative-border)}
.chip.warn{background:var(--warning-tint); color:var(--warning-label); border-color:var(--warning-border)}
.chip.info{background:var(--info-tint); color:var(--info); border-color:var(--info-border)}
.chip.ai{background:var(--ai-tint); color:var(--ai-text); border-color:var(--ai-border)}
.chip.neu{background:var(--neutral-tint); color:var(--neutral); border-color:var(--neutral-border)}
.chip.primary{background:var(--primary-soft); color:var(--primary-text); border-color:var(--primary-tint)}
.dot{width:6px; height:6px; border-radius:var(--r-full); background:currentColor; display:inline-block; flex:none}

/* Avatar monogram */
.avatar{
  width:22px; height:22px; border-radius:var(--r-full); display:inline-flex; align-items:center;
  justify-content:center; font-size:9.5px; font-weight:700; color:#fff; flex:none; letter-spacing:0;
}

/* Sparkle glyph for AI */
.sparkle{width:13px;height:13px;flex:none}

/* =============================================================================
   NAV
   ============================================================================= */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100; height:74px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:0 clamp(20px,4vw,40px);
  transition:background var(--dur-pop) var(--ease-out), border-color var(--dur-pop), backdrop-filter var(--dur-pop), height var(--dur-pop);
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  height:66px;
  background:rgba(251,251,253,.8); backdrop-filter:blur(20px) saturate(1.5);
  -webkit-backdrop-filter:blur(20px) saturate(1.5); border-bottom-color:var(--border-hairline);
}
.nav-logo{display:flex; align-items:center; gap:11px; font-weight:800; font-size:22px; letter-spacing:-.03em; color:var(--on-surface)}
.nav-logo .mark{width:30px; height:30px; transition:transform var(--dur-pop) var(--ease-spring)}
.nav-logo:hover .mark{transform:rotate(-8deg) scale(1.06)}
.nav-mid{display:flex; gap:4px}
.nav-link{
  font-size:14.5px; font-weight:550; color:var(--ink-secondary); padding:8px 13px; border-radius:var(--r-sm);
  transition:background var(--dur-fast), color var(--dur-fast);
}
.nav-link:hover{background:var(--surface-hover); color:var(--on-surface)}
.nav-r{display:flex; align-items:center; gap:12px}
.nav-kbd{font-family:var(--mono); font-size:10.5px; color:var(--ink-muted); letter-spacing:.02em}
/* over the dark hero (before the nav gains its light scrolled background) */
.nav:not(.scrolled) .nav-logo{color:#f4f4f6}
.nav:not(.scrolled) .nav-link{color:rgba(240,240,246,.72)}
.nav:not(.scrolled) .nav-link:hover{background:rgba(255,255,255,.08); color:#fff}
.nav:not(.scrolled) .nav-kbd{color:rgba(240,240,246,.45)}
@media (max-width:820px){.nav-mid{display:none} .nav-kbd{display:none}}

/* =============================================================================
   HERO (dark immersive)
   ============================================================================= */
.hero{
  position:relative; min-height:100svh; display:flex; align-items:center;
  padding:120px 0 60px; overflow:hidden; isolation:isolate;
}
.hero-canvas{position:absolute; inset:0; z-index:-2}
.hero-glow{
  position:absolute; z-index:-1; width:min(1100px,120vw); aspect-ratio:1; left:50%; top:38%;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle at center, rgba(90,104,220,.28), rgba(75,87,199,.08) 38%, transparent 62%);
  filter:blur(10px); pointer-events:none;
}
.hero-grid-lines{
  position:absolute; inset:0; z-index:-1; opacity:.35; pointer-events:none;
  background-image:linear-gradient(rgba(127,139,240,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,139,240,.06) 1px, transparent 1px);
  background-size:54px 54px;
  mask-image:radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 78%);
}
.hero-inner{position:relative; z-index:2; width:100%}

/* The glass-panes brand mark — the crisp centerpiece (right region on desktop) */
.hero-mark{position:absolute; z-index:1; right:clamp(-40px,2vw,60px); top:50%; width:clamp(320px,34vw,480px);
  transform:translateY(-50%); pointer-events:none; will-change:transform; filter:drop-shadow(0 30px 60px rgba(40,44,110,.5))}
.hero-mark svg{width:100%; height:auto; overflow:visible}
.mark-assembly{transform-box:fill-box; transform-origin:center;
  animation:markIn 1s var(--ease-spring) both, markFloat 7s ease-in-out 1s infinite}
@keyframes markIn{from{opacity:0; transform:scale(.86) rotate(-4deg)}to{opacity:1; transform:scale(1) rotate(0)}}
@keyframes markFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.mark-glow{filter:blur(2px)}
@media (max-width:1024px){
  /* the mark is a desktop delight; below this the two-line headline uses the full width */
  .hero-mark{display:none}
}
@media (prefers-reduced-motion:reduce){ .mark-assembly{animation:none; opacity:1} }
body.no-webgl .hero-canvas{display:none}
.hero h1{margin:20px 0 22px}
.hero h1 .ln{display:block; white-space:nowrap}
@media (max-width:640px){ .hero h1 .ln{white-space:normal} }
.hero .lede{color:var(--ink-body); max-width:40em; font-size:clamp(17px,2vw,21px)}
.aud-switch{position:relative; display:inline-flex; gap:3px; padding:3px; border-radius:var(--r-full);
  background:rgba(255,255,255,.05); border:1px solid var(--border-hairline); margin:6px 0 4px}
.aud-switch button{position:relative; z-index:1; font-size:12.5px; font-weight:600; padding:6px 13px; border-radius:var(--r-full);
  color:var(--ink-secondary); transition:color var(--dur-pop) var(--ease-out); cursor:pointer}
.aud-switch button[aria-pressed="true"]{color:#fff}
.aud-thumb{position:absolute; top:3px; bottom:3px; left:0; z-index:0; border-radius:var(--r-full);
  background:var(--primary); box-shadow:0 2px 12px rgba(75,87,199,.5);
  transition:transform var(--dur-stage) var(--ease-spring), width var(--dur-stage) var(--ease-spring)}
@media (prefers-reduced-motion:reduce){.aud-thumb{transition:none}}
.hero-cta{display:flex; align-items:center; gap:14px; margin-top:30px; flex-wrap:wrap}
.pairline{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:26px;
  font-size:13px; color:var(--ink-secondary); font-weight:550;
}
.pairline b{color:var(--on-surface); font-weight:700}
.pairline .sep{width:5px; height:5px; border-radius:50%; background:var(--primary); opacity:.7}
.hero-stats{display:flex; gap:clamp(20px,4vw,44px); margin-top:44px; flex-wrap:wrap}
.hero-stat .n{font-family:var(--font); font-weight:800; font-size:clamp(26px,3vw,34px); color:var(--on-surface);
  letter-spacing:-.03em; font-feature-settings:'tnum' 1}
.hero-stat .l{font-size:12px; color:var(--ink-muted); margin-top:3px; font-weight:550}
.scroll-cue{position:absolute; bottom:26px; left:50%; transform:translateX(-50%); z-index:3;
  font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-muted); font-weight:700;
  display:flex; flex-direction:column; align-items:center; gap:8px}
.scroll-cue .line{width:1px; height:34px; background:linear-gradient(var(--ink-muted),transparent); animation:cueSlide 2.2s var(--ease-out) infinite}
@keyframes cueSlide{0%{transform:scaleY(0);transform-origin:top}40%{transform:scaleY(1);transform-origin:top}60%{transform:scaleY(1);transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

/* =============================================================================
   ENEMY strip
   ============================================================================= */
.enemy-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(28px,5vw,64px); align-items:center}
.enemy-big{font-size:clamp(24px,3.2vw,36px); font-weight:700; letter-spacing:-.025em; line-height:1.15; color:var(--on-surface)}
.striplist{list-style:none; display:flex; flex-direction:column; gap:12px}
.striplist li{display:flex; gap:12px; align-items:flex-start; font-size:15px; color:var(--ink-secondary)}
.striplist .x{width:20px; height:20px; border-radius:6px; background:var(--negative-tint); color:var(--negative);
  display:inline-flex; align-items:center; justify-content:center; flex:none; font-size:12px; font-weight:700; margin-top:1px}
@media (max-width:760px){.enemy-grid{grid-template-columns:1fr}}

/* =============================================================================
   PRODUCT WINDOW (macwin) — the interactive mocks
   ============================================================================= */
.macwin{
  border-radius:var(--r-xl); overflow:hidden; background:var(--bg-canvas);
  border:1px solid var(--border-rail); box-shadow:var(--sh-pop);
  --page-bg:var(--bg-canvas);
}
[data-reg="dark"] .macwin{border-color:#2c2c38}
.mac-titlebar{
  display:flex; align-items:center; gap:12px; height:44px; padding:0 14px;
  background:var(--bg-topbar); border-bottom:1px solid var(--border-hairline); position:relative;
}
.lights{display:flex; gap:7px}
.tl{width:11px; height:11px; border-radius:50%; display:inline-block}
.tl.r{background:#ff5f57} .tl.y{background:#febc2e} .tl.g{background:#28c840}
.mac-wm{font-weight:800; font-size:13.5px; letter-spacing:-.02em; color:var(--on-surface);
  display:flex; align-items:center; gap:6px}
.mac-wm .mark{width:15px; height:15px}
.seg{display:inline-flex; gap:2px; padding:2px; background:var(--divider-soft); border-radius:var(--r-sm); margin:0 auto}
.seg [role=tab]{font-size:12px; font-weight:600; padding:5px 12px; border-radius:6px; color:var(--ink-secondary);
  cursor:pointer; transition:all var(--dur-fast) var(--ease-out); white-space:nowrap}
.seg [role=tab].on{background:var(--surface); color:var(--on-surface); box-shadow:var(--sh-card)}
.seg.dark-active [role=tab].on{background:var(--on-surface); color:var(--surface)}
.mac-toolr{display:flex; align-items:center; gap:10px; color:var(--ink-muted)}
.mac-toolr .ico{width:16px; height:16px; cursor:pointer; transition:color var(--dur-fast)}
.mac-toolr .ico:hover{color:var(--on-surface)}
.mac-body{display:flex; min-height:380px}
.mac-side{
  width:210px; flex:none; background:var(--bg-subnav); border-right:1px solid var(--border-rail);
  padding:12px 10px; display:flex; flex-direction:column; gap:2px; font-size:13px;
}
.side-title{font-size:14px; font-weight:700; color:var(--ink-strong); padding:6px 8px 8px; letter-spacing:-.01em;
  display:flex; align-items:center; justify-content:space-between}
.side-title .add{width:20px;height:20px;border-radius:6px;display:grid;place-items:center;color:var(--ink-muted);cursor:pointer}
.side-title .add:hover{background:var(--surface-hover); color:var(--primary-text)}
.side-group{font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-label);
  padding:11px 8px 4px; display:flex; align-items:center; justify-content:space-between}
.side-group span{cursor:pointer; color:var(--ink-muted); font-size:13px; line-height:1}
.side-row{
  display:flex; align-items:center; gap:9px; padding:7px 9px; border-radius:var(--r-sm); color:var(--ink-body);
  cursor:pointer; transition:background var(--dur-fast), color var(--dur-fast); font-weight:550; position:relative;
}
.side-row:hover{background:var(--surface-hover-strong); color:var(--on-surface)}
.side-row.sel{background:var(--surface); color:var(--primary-text); box-shadow:var(--ring-sel), var(--sh-card); font-weight:600}
.side-row .gi{width:15px; height:15px; flex:none; color:currentColor; display:inline-flex}
.side-row.child{margin-left:16px; font-size:12.5px}
.side-row .cnt{margin-left:auto; font-size:11px; color:var(--ink-faint); font-family:var(--mono)}
.side-foot{margin-top:auto; padding:9px 8px 2px; display:flex; align-items:center; gap:8px; font-size:12px;
  color:var(--ink-secondary); border-top:1px solid var(--border-rail)}
.mac-surface{flex:1; background:var(--bg-canvas); padding:18px 20px; overflow:hidden; position:relative}
.panel{display:none; animation:panelIn var(--dur-stage) var(--ease-out)}
.panel.active{display:block}
@keyframes panelIn{from{opacity:0; transform:translateY(6px)}to{opacity:1; transform:none}}

/* cards inside surface */
.card{background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-xl);
  padding:16px; box-shadow:var(--sh-card)}
.row-line{display:flex; align-items:center; gap:9px; padding:8px 2px; font-size:13px; color:var(--ink-body);
  border-bottom:1px solid var(--divider-soft)}
.row-line:last-child{border-bottom:none}
.row-line .grow{flex:1; min-width:0}
.row-line .num{font-family:var(--mono); font-size:12.5px; font-weight:600; font-feature-settings:'tnum' 1; color:var(--on-surface)}
.swatch{width:22px; height:22px; border-radius:6px; flex:none; border:1px solid rgba(0,0,0,.08)}

/* KPI tiles */
.kpis{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:14px}
.tile{background:var(--bg-topbar); border:1px solid var(--border-hairline); border-radius:var(--r-lg); padding:13px 14px}
.tile .k{font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-label)}
.tile .v{font-size:24px; font-weight:800; letter-spacing:-.02em; color:var(--on-surface); margin-top:7px; font-feature-settings:'tnum' 1}
.tile .v small{font-size:14px; font-weight:600; color:var(--ink-muted)}
.tile .sub{font-size:11.5px; color:var(--ink-muted); margin-top:5px; display:flex; align-items:center; gap:5px}
.delta{font-size:11px; font-weight:700; padding:1px 6px; border-radius:6px; font-feature-settings:'tnum' 1}
.delta.up{background:var(--positive-tint); color:var(--positive-text)}
.delta.down{background:var(--positive-tint); color:var(--positive-text)}
.delta.bad{background:var(--negative-tint); color:var(--negative)}
@media (max-width:560px){.kpis{grid-template-columns:repeat(2,1fr)}}

/* Provenance chip (tiny) */
.prov{display:inline-flex; align-items:center; gap:4px; font-size:9.5px; font-weight:700; padding:2px 6px;
  border-radius:var(--r-full); letter-spacing:.02em}
.prov.live{background:var(--positive-tint); color:var(--positive-text)}
.prov.src{background:var(--neutral-tint); color:var(--neutral)}
.prov.ai{background:var(--ai-tint); color:var(--ai-text)}
.prov.manual{background:var(--warning-tint); color:var(--warning-label)}

/* the "it already knows" flow */
.knows{display:flex; gap:10px; align-items:flex-start; margin-top:12px; padding:12px 14px;
  background:var(--ai-tint); border:1px solid var(--ai-border); border-radius:var(--r-lg); font-size:12.5px; color:var(--ai-text)}
.knows svg{width:16px; height:16px; flex:none; margin-top:1px}
.knows b{color:var(--ai-text)}
.flow-line{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:4px}
.flow-node{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; color:var(--ink-body);
  background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-sm); padding:6px 10px;
  opacity:0; transform:translateY(4px); transition:opacity .4s var(--ease-out), transform .4s var(--ease-out)}
.flow-node svg{width:13px; height:13px}
.flow-node .d{width:7px; height:7px; border-radius:50%; display:inline-block}
.flow-node.lit{opacity:1; transform:none}
.flow-arr{color:var(--ink-faint); opacity:0; transition:opacity .4s var(--ease-out)}
.flow-arr.lit{opacity:1}
.no-motion .flow-node,.no-motion .flow-arr{opacity:1; transform:none}

/* =============================================================================
   MAKE pipeline (Studio build loop)
   ============================================================================= */
.pipeline{display:flex; align-items:center; gap:8px; margin-bottom:14px; font-size:12px; font-weight:700}
.stg{padding:5px 12px; border-radius:var(--r-full); background:var(--surface); border:1px solid var(--border-hairline);
  color:var(--ink-muted); cursor:pointer}
.stg.done{color:var(--positive-text); background:var(--positive-tint); border-color:var(--positive-border)}
.stg.on{color:#fff; background:var(--primary); border-color:var(--primary)}
.stg-arr{color:var(--ink-faint)}
.feat-card{background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-lg);
  padding:13px 15px; margin-bottom:14px}
.feat-top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.feat-top .ft{font-weight:700; font-size:14px; color:var(--on-surface)}
.state-pill{font-size:11px; font-weight:700; padding:4px 10px; border-radius:var(--r-full)}
.state-pill.appr{background:var(--warning-tint); color:var(--warning-label); border:1px solid var(--warning-border)}
.state-pill.merged{background:var(--positive-tint); color:var(--positive-text); border:1px solid var(--positive-border)}
.checklist{display:flex; flex-direction:column; gap:3px; margin-bottom:14px}
.cstep{display:flex; align-items:center; gap:11px; padding:8px 11px; border-radius:var(--r-sm); font-size:13px;
  transition:background var(--dur-fast), opacity var(--dur-fast); color:var(--ink-body)}
.cstep .box{width:19px; height:19px; border-radius:6px; flex:none; display:grid; place-items:center; font-size:12px;
  font-weight:700; border:1.5px solid var(--border-button); color:var(--positive-text); background:var(--surface)}
.cstep .lbl{font-weight:600; color:var(--ink-strong)}
.cstep .meta{margin-left:auto; font-size:11px; font-family:var(--mono); color:var(--ink-muted)}
.cstep.queued{opacity:.4}
.cstep.on{background:var(--ai-tint)}
.cstep.on .box{border-color:var(--ai); color:var(--ai)}
.cstep.on .lbl{color:var(--ai-text)}
.cstep.done .box{background:var(--positive); border-color:var(--positive); color:#fff}
.spin{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.approve-bar{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 15px;
  background:var(--bg-topbar); border:1px solid var(--border-hairline); border-radius:var(--r-lg);
  transition:opacity var(--dur-stage), transform var(--dur-stage)}
.approve-bar.pre{opacity:.4; transform:translateY(4px)}
.approve-bar .txt{font-size:12.5px; color:var(--ink-secondary)}
.approve-bar .txt b{color:var(--on-surface)}
.mini-approve{background:var(--primary); color:#fff; font-size:12.5px; font-weight:700; padding:8px 15px;
  border-radius:var(--r-md); cursor:pointer; transition:background var(--dur-fast); white-space:nowrap;
  box-shadow:0 1px 2px rgba(75,87,199,.3)}
.mini-approve:hover{background:var(--primary-hover)}
.mini-approve:disabled{opacity:.7; cursor:default}

/* prototype frame */
.proto-frame{border:1px solid var(--border-rail); border-radius:var(--r-lg); overflow:hidden; background:var(--surface)}
.proto-bar{display:flex; align-items:center; gap:5px; padding:7px 11px; background:var(--bg-topbar); border-bottom:1px solid var(--border-hairline)}
.proto-bar .tl{width:8px;height:8px}
.proto-page{padding:26px 22px; min-height:130px; display:flex; flex-direction:column; align-items:flex-start; gap:4px}
.proto-cta{display:inline-block; background:var(--primary); color:#fff; font-size:12px; font-weight:600;
  padding:8px 16px; border-radius:var(--r-md); margin-top:10px}

/* paper (plan doc) */
.paper{background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-lg); padding:18px 20px}
.paper-title{font-weight:700; font-size:15px; color:var(--on-surface); margin-bottom:9px; letter-spacing:-.01em}
.paper-p{font-size:13px; line-height:1.6; color:var(--ink-secondary); margin-bottom:10px}
.tokchip{display:inline-flex; padding:2px 7px; border-radius:6px; font-size:11px; font-weight:600; font-family:var(--mono);
  background:var(--primary-soft); color:var(--primary-text); margin:0 1px}

/* =============================================================================
   Cash line-area chart
   ============================================================================= */
.chartcard{background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-xl); padding:16px 18px}
.chart-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:12px}
.chart-val{font-size:26px; font-weight:800; letter-spacing:-.02em; color:var(--on-surface); font-feature-settings:'tnum' 1}
.chart-svg{width:100%; height:120px; display:block}
.chart-path{fill:none; stroke:var(--primary); stroke-width:2.4; stroke-linecap:round;
  stroke-dasharray:1400; stroke-dashoffset:1400}
.chart-path.draw{animation:drawLine 1.6s var(--ease-out) forwards}
@keyframes drawLine{to{stroke-dashoffset:0}}
.chart-area{fill:url(#areaGrad); opacity:0; transition:opacity .8s ease .6s}
.chart-area.draw{opacity:1}
.chart-grid{stroke:var(--divider-soft); stroke-width:1}
.chart-tick{font-family:var(--mono); font-size:9px; fill:var(--ink-faint); font-feature-settings:'tnum' 1}
.chart-dot{fill:var(--primary); opacity:0; transition:opacity .3s ease 1.4s}
.chart-dot.draw{opacity:1}

/* =============================================================================
   AGENT control-plane mock — immutable audit + drift + kill switch
   ============================================================================= */
.audit{display:flex; flex-direction:column; gap:0; font-size:12.5px}
.audit-row{display:flex; align-items:center; gap:11px; padding:11px 5px; border-bottom:1px solid var(--divider-soft)}
.audit-row:last-child{border-bottom:none}
.audit-kind{display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:700; padding:3px 7px;
  border-radius:6px; flex:none; width:96px; justify-content:center}
.audit-kind svg{width:11px;height:11px}
.k-input{background:var(--neutral-tint); color:var(--neutral)}
.k-scan{background:var(--info-tint); color:var(--info)}
.k-decision{background:var(--primary-soft); color:var(--primary-text)}
.k-tool{background:var(--neutral-tint); color:var(--neutral)}
.k-cred{background:var(--warning-tint); color:var(--warning-label)}
.k-gate{background:var(--warning-tint); color:var(--warning-label)}
.k-drift{background:var(--negative-tint); color:var(--negative)}
.audit-detail{flex:1; min-width:0; color:var(--ink-body); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.audit-hash{font-family:var(--mono); font-size:10.5px; color:var(--ink-faint); flex:none}
.drift-pill{display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; padding:4px 10px; border-radius:var(--r-full)}
.drift-ok{background:var(--positive-tint); color:var(--positive-text)}
.drift-watch{background:var(--warning-tint); color:var(--warning-label)}
.drift-paused{background:var(--negative-tint); color:var(--negative)}
.gate-badge{display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:700; padding:3px 8px; border-radius:6px}
.gate-approve{background:var(--warning-tint); color:var(--warning-label)}
.gate-review{background:var(--info-tint); color:var(--info)}
.gate-internal{background:var(--neutral-tint); color:var(--neutral)}
.killswitch{display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:var(--r-lg);
  background:var(--negative-tint); border:1px solid var(--negative-border); margin-top:12px}
.killswitch .ks-btn{margin-left:auto; background:var(--negative); color:#fff; font-size:12px; font-weight:700;
  padding:7px 13px; border-radius:var(--r-md); cursor:pointer}

/* proposal card (propose-never-apply) */
.proposal{background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-lg); padding:14px 16px}
.proposal.applied{background:var(--positive-tint); border-color:var(--positive-border)}
.prop-head{display:flex; align-items:center; gap:8px; margin-bottom:8px}
.prop-actions{display:flex; gap:8px; margin-top:12px}
.prop-btn{font-size:12px; font-weight:700; padding:7px 14px; border-radius:var(--r-md); cursor:pointer}
.prop-btn.approve{background:var(--primary); color:#fff}
.prop-btn.approve:hover{background:var(--primary-hover)}
.prop-btn.dismiss{background:var(--surface); border:1px solid var(--border-button); color:var(--ink-secondary)}
.prop-caption{font-size:11px; color:var(--ink-muted); margin-top:9px; display:flex; align-items:center; gap:6px}

/* =============================================================================
   MESH graph
   ============================================================================= */
.mesh-svg{width:100%; height:300px; display:block}
.mesh-edge{stroke:var(--border-button); stroke-width:1.5; opacity:0; transition:opacity .6s ease}
.mesh-edge.lit{opacity:.7}
.mesh-node circle{transition:transform .3s var(--ease-spring)}
.mesh-node text{font-size:10px; font-weight:600; fill:var(--ink-body); font-family:var(--font)}
.mesh-node .ring{fill:none; stroke-width:1.5}

/* =============================================================================
   FEATURE breadth — the big grid
   ============================================================================= */
.area-nav{display:flex; gap:6px; flex-wrap:wrap; justify-content:center; margin-bottom:32px}
.area-tab{font-size:13px; font-weight:600; padding:9px 16px; border-radius:var(--r-full); cursor:pointer;
  color:var(--ink-secondary); border:1px solid var(--border-button); background:var(--surface);
  transition:all var(--dur-fast) var(--ease-out); display:inline-flex; align-items:center; gap:7px}
.area-tab .gi{width:15px; height:15px}
.area-tab:hover{background:var(--surface-hover); color:var(--on-surface)}
.area-tab.on{background:var(--on-surface); color:var(--bg-canvas); border-color:var(--on-surface)}
.feat-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(232px,1fr)); gap:14px}
.feat-tile{background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-lg);
  padding:16px; box-shadow:var(--sh-card); transition:transform var(--dur-pop) var(--ease-out), box-shadow var(--dur-pop);
  position:relative; overflow:hidden}
.feat-tile:hover{transform:translateY(-3px); box-shadow:var(--sh-raise)}
.feat-tile .ic{width:32px; height:32px; border-radius:9px; display:grid; place-items:center; margin-bottom:11px;
  background:var(--primary-soft); color:var(--primary-text)}
.feat-tile.ai .ic{background:var(--ai-tint); color:var(--ai-text)}
.feat-tile .ic svg{width:17px; height:17px}
.feat-tile h4{font-size:14.5px; font-weight:700; color:var(--on-surface); letter-spacing:-.01em; margin-bottom:5px;
  display:flex; align-items:center; gap:7px}
.feat-tile p{font-size:12.5px; color:var(--ink-secondary); line-height:1.45}
.feat-tile .newbadge{font-size:8.5px; font-weight:800; letter-spacing:.05em; padding:2px 5px; border-radius:4px;
  background:var(--ai-tint); color:var(--ai-text); text-transform:uppercase}
.area-count{text-align:center; font-size:12.5px; color:var(--ink-muted); margin-top:22px; font-weight:550}
.area-count b{color:var(--on-surface); font-family:var(--mono)}

/* =============================================================================
   AI SPOTLIGHT cards
   ============================================================================= */
.spotlight-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px}
.spot{background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-xl); padding:22px 24px;
  box-shadow:var(--sh-card); position:relative; overflow:hidden}
.spot.wide{grid-column:span 2}
.spot .spot-ic{width:36px; height:36px; border-radius:10px; background:var(--ai-tint); color:var(--ai-text);
  display:grid; place-items:center; margin-bottom:14px}
.spot .spot-ic svg{width:19px;height:19px}
.spot h3{font-size:18px; margin-bottom:8px}
.spot p{font-size:13.5px; color:var(--ink-secondary); line-height:1.5}
.spot .hook{font-size:11px; font-weight:700; color:var(--ai-text); text-transform:uppercase; letter-spacing:.05em; margin-top:12px}
@media (max-width:760px){.spotlight-grid{grid-template-columns:1fr}.spot.wide{grid-column:auto}}

/* =============================================================================
   SEAM — one brain
   ============================================================================= */
.seam{display:grid; grid-template-columns:1fr auto 1fr; gap:clamp(20px,5vw,60px); align-items:center; text-align:center}
.seam .half h3{font-size:26px; margin-bottom:8px}
.seam .lbl{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-muted); margin-bottom:10px}
.brain{width:76px; height:76px; border-radius:50%; display:grid; place-items:center;
  background:radial-gradient(circle at 40% 35%, rgba(127,139,240,.4), rgba(75,87,199,.1));
  border:1px solid var(--border-hairline); color:var(--primary); position:relative}
.brain svg{width:36px; height:36px}
.brain::before,.brain::after{content:""; position:absolute; border-radius:50%; border:1px solid var(--primary);
  opacity:.3; inset:-10px; animation:brainPulse 3s var(--ease-out) infinite}
.brain::after{animation-delay:1.5s}
@keyframes brainPulse{0%{transform:scale(.8);opacity:.4}100%{transform:scale(1.5);opacity:0}}
@media (max-width:760px){.seam{grid-template-columns:1fr; gap:24px}.brain{margin:0 auto}}

/* =============================================================================
   HONESTY
   ============================================================================= */
.honest{background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-xl); padding:26px 28px; box-shadow:var(--sh-card)}
.honest-cols{display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:20px}
.honest-col h4{font-size:13px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px}
.honest-col ul{list-style:none; display:flex; flex-direction:column; gap:10px}
.honest-col li{display:flex; gap:10px; font-size:13.5px; color:var(--ink-secondary); align-items:flex-start}
.honest-col li .m{flex:none; margin-top:2px; font-weight:700}
.dot-g{color:var(--positive-text)} .dot-b{color:var(--info)}
@media (max-width:640px){.honest-cols{grid-template-columns:1fr}}

/* =============================================================================
   WAITLIST
   ============================================================================= */
.waitlist{max-width:560px; margin:0 auto; text-align:center}
.wl-form{display:flex; gap:10px; margin:24px 0 0; max-width:440px; margin-left:auto; margin-right:auto}
.wl-input{flex:1; background:var(--surface); border:1px solid var(--border-button); border-radius:var(--r-md);
  padding:13px 16px; font-size:14px; color:var(--on-surface); transition:border-color var(--dur-fast), box-shadow var(--dur-fast)}
.wl-input:focus{outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(75,87,199,.15)}
.wl-input.invalid{border-color:var(--negative); box-shadow:0 0 0 3px rgba(192,57,44,.13)}
.wl-input.shake{animation:shake .4s}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.wl-err{color:var(--negative); font-size:12.5px; margin-top:10px; min-height:16px}
.wl-roles{display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:18px}
.role-pill{font-size:12.5px; font-weight:600; padding:7px 14px; border-radius:var(--r-full); cursor:pointer;
  border:1px solid var(--border-button); color:var(--ink-secondary); background:var(--surface); transition:all var(--dur-fast)}
.role-pill:hover{background:var(--surface-hover); color:var(--on-surface)}
.role-pill[aria-pressed="true"]{background:var(--primary); color:#fff; border-color:var(--primary)}
.btn.loading{position:relative; color:transparent}
.btn.loading::after{content:""; position:absolute; inset:0; margin:auto; width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(255,255,255,.4); border-top-color:#fff; animation:spin .7s linear infinite}
.wl-success{max-width:440px; margin:8px auto 0; text-align:center}
.wl-check{width:52px; height:52px; border-radius:50%; background:var(--positive-tint); color:var(--positive-text);
  display:grid; place-items:center; margin:0 auto 16px; animation:pop .4s var(--ease-spring)}
@keyframes pop{from{transform:scale(0)}to{transform:scale(1)}}
.hidden{display:none !important}

/* =============================================================================
   FOOTER
   ============================================================================= */
footer{padding:56px 0 40px; background:var(--bg-subnav); border-top:1px solid var(--border-hairline)}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:28px}
.foot-tagline{font-size:13.5px; color:var(--ink-secondary); margin-top:12px; max-width:26em; line-height:1.5}
.foot-col h5{font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-label); margin-bottom:12px}
.foot-col a{display:block; font-size:13px; color:var(--ink-secondary); padding:4px 0; transition:color var(--dur-fast)}
.foot-col a:hover{color:var(--primary-text)}
.foot-base{display:flex; align-items:center; justify-content:space-between; margin-top:38px; padding-top:22px;
  border-top:1px solid var(--border-hairline); font-size:12px; color:var(--ink-muted); flex-wrap:wrap; gap:10px}
@media (max-width:760px){.foot-grid{grid-template-columns:1fr 1fr}}

/* =============================================================================
   REVEAL animation (scroll)
   ============================================================================= */
.reveal{opacity:0; transform:translateY(22px); transition:opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out)}
.reveal.in{opacity:1; transform:none}
.reveal.d1{transition-delay:.08s} .reveal.d2{transition-delay:.16s} .reveal.d3{transition-delay:.24s}
.stagger>*{opacity:0; transform:translateY(16px); transition:opacity .5s var(--ease-out), transform .5s var(--ease-out)}
.stagger.in>*{opacity:1; transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal,.stagger>*{opacity:1 !important; transform:none !important; transition:none !important}
  .chart-path{stroke-dashoffset:0} .chart-area,.chart-dot{opacity:1}
  .flow-node,.flow-arr{opacity:1 !important; transform:none !important}
  .scroll-cue{display:none}
  .brain::before,.brain::after{animation:none; display:none}
}

/* two-column mock layouts */
.mock-split{display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(24px,4vw,48px); align-items:center}
.mock-split.rev{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
@media (max-width:900px){.mock-split,.mock-split.rev{grid-template-columns:minmax(0,1fr); gap:32px}}
.mock-copy h2{margin-bottom:16px}
.mock-copy .lede{margin-bottom:20px}
.mini-bento{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:22px}
.mini-card{padding:14px 16px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border-hairline)}
.mini-card .mc-ic{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary-text);margin-bottom:9px}
.mini-card .mc-ic svg{width:14px;height:14px}
.mini-card h4{font-size:13.5px;font-weight:700;color:var(--on-surface);margin-bottom:4px}
.mini-card p{font-size:12px;color:var(--ink-secondary);line-height:1.4}
@media (max-width:520px){.mini-bento{grid-template-columns:1fr}}

/* =============================================================================
   REVISION 2 — replaces line · principle tiles · command dock · BYOAI · height anim
   ============================================================================= */

/* feature "replaces {competitor}" line */
.feat-replaces{margin-top:10px; font-size:10.5px; font-weight:600; color:var(--ink-muted); letter-spacing:.01em; display:flex; align-items:center; gap:7px}
.feat-replaces::before{content:""; display:inline-block; width:14px; height:1px; background:var(--border-button); flex:none}

/* principle tiles (AI section) */
.principles{display:grid; grid-template-columns:repeat(4,1fr); gap:14px}
.principle{background:var(--surface); border:1px solid var(--border-hairline); border-radius:var(--r-xl); padding:20px 20px 22px; box-shadow:var(--sh-card);
  transition:transform var(--dur-pop) var(--ease-out), box-shadow var(--dur-pop)}
.principle:hover{transform:translateY(-3px); box-shadow:var(--sh-raise)}
.p-ic{width:38px; height:38px; border-radius:10px; background:var(--ai-tint); color:var(--ai-text); display:grid; place-items:center; margin-bottom:15px}
.principle h4{font-size:15px; font-weight:700; color:var(--on-surface); letter-spacing:-.01em; margin-bottom:7px}
.principle p{font-size:12.5px; color:var(--ink-secondary); line-height:1.45}
@media (max-width:860px){.principles{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.principles{grid-template-columns:1fr}}

/* macwin height + panel crossfade animation (auto-advancing tabs) */
.mac-body{transition:height var(--dur-stage) var(--ease-out)}
@media (prefers-reduced-motion:reduce){.mac-body{transition:none}}

/* command dock inside a product-window titlebar (dashboard) */
.mac-cmd{margin:0 auto; display:inline-flex; align-items:center; gap:8px; font-size:11.5px; color:var(--ink-muted);
  background:var(--surface); border:1px solid var(--border-rail); border-radius:12px; padding:7px 12px 7px 13px; box-shadow:var(--sh-card); max-width:360px}
.mac-cmd .spk{color:var(--ai-text); display:inline-flex}
.mac-cmd .spk svg{width:13px;height:13px}
.mac-cmd .kbd{font-family:var(--mono); font-size:10px; color:var(--ink-faint); background:var(--neutral-tint); border-radius:5px; padding:2px 5px}
.seg-toggle{display:inline-flex; gap:2px; background:var(--divider-soft); border-radius:7px; padding:2px; margin-left:2px}
.seg-toggle span{font-size:10.5px; font-weight:600; padding:3px 9px; border-radius:5px; color:var(--ink-muted); cursor:pointer; transition:all var(--dur-fast)}
.seg-toggle span.on{background:var(--on-surface); color:#fff}

/* integration chip row (dashboard) */
.intg-row{display:flex; gap:6px; flex-wrap:wrap}
.intg{display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:600; color:var(--ink-secondary);
  background:var(--bg-topbar); border:1px solid var(--border-hairline); border-radius:var(--r-full); padding:4px 9px}
.intg .d{width:6px; height:6px; border-radius:50%; display:inline-block; flex:none}
/* keeper proposal (dashboard) */
.mini-approve.sm{padding:6px 12px; font-size:11.5px}

/* auto-advance progress hint on the active seg tab */
.seg [role=tab]{position:relative; overflow:hidden}
.seg [role=tab].on::after{content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--primary); opacity:.6}
.seg [role=tab].on.timing::after{width:100%; transition:width var(--cycle,3200ms) linear}

/* =============================================================================
   BYOAI section
   ============================================================================= */
.byo{overflow:hidden}
.byo-bg{position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(ellipse 58% 52% at 50% 42%, rgba(127,139,240,.22), transparent 70%)}
/* 3-column layout: BYOAI stays centered, the eyebrow floats to its left */
.byo-hero{display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:clamp(10px,2vw,22px); margin:16px 0 4px}
.byo-eyebrow{justify-self:end; white-space:nowrap}
.byo-spacer{display:block}
@media (max-width:700px){ .byo-hero{display:block; text-align:center} .byo-eyebrow{justify-content:center; margin-bottom:8px} .byo-spacer{display:none} }
.byo-word{font-weight:800; font-size:clamp(56px,13vw,150px); letter-spacing:-.05em; line-height:1; position:relative; white-space:nowrap; justify-self:center}
.byo-byo{color:var(--ink-strong); opacity:.92}
.byo-ai{position:relative; display:inline-block;
  background:linear-gradient(100deg, #8b97ff, #b48ef0 30%, #6ea8ff 55%, #8b97ff 80%, #b48ef0);
  background-size:250% 100%; -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:aiFlow 5s linear infinite; filter:drop-shadow(0 6px 34px rgba(140,120,240,.55))}
@keyframes aiFlow{to{background-position:250% 0}}
/* glow sits behind the whole centered word */
.byo-halo{position:absolute; inset:-44% -8%; z-index:-1; border-radius:50%;
  background:conic-gradient(from 0deg, rgba(127,139,240,.5), rgba(180,142,240,.12), rgba(110,168,255,.5), rgba(127,139,240,.5));
  filter:blur(34px); opacity:.6; animation:haloSpin 9s linear infinite}
@keyframes haloSpin{to{transform:rotate(360deg)}}
.byo-providers{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:26px}
.byo-chip{font-size:13.5px; font-weight:600; color:var(--ink-muted);
  background:rgba(255,255,255,.04); border:1px solid var(--border-hairline); border-radius:var(--r-full); padding:9px 18px;
  animation:byoPulse 5s ease-in-out infinite; animation-delay:calc(var(--i) * -1s)}
@keyframes byoPulse{0%,100%{color:var(--ink-muted); border-color:var(--border-hairline); box-shadow:none}
  50%{color:#eef0ff; border-color:rgba(140,150,255,.55); box-shadow:0 0 22px rgba(127,139,240,.4)}}
@media (prefers-reduced-motion:reduce){.byo-ai,.byo-halo,.byo-chip{animation:none} .byo-ai{background-position:0 0}}

/* hero audience switch — smooth lede height + bold-word bulge */
.hero-lede-wrap{transition:height var(--dur-stage) var(--ease-out); overflow:visible}
.hero-lede-wrap .lede{margin:0}
.hero .lede strong{display:inline-block; transform-origin:left center; will-change:transform}
@keyframes bulge{0%{transform:scale(1)}45%{transform:scale(1.045)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.hero-lede-wrap{transition:none} .hero .lede strong{animation:none !important}}

/* library token groups — one visible at a time (keeps the panel compact) */
.tokgroup{display:none}
.tokgroup.active{display:block}

/* Control Plane mock gets extra width so it doesn't read as skinny */
.mock-split.cp-split{grid-template-columns:minmax(0,.82fr) minmax(0,1.35fr)}
@media (max-width:900px){ .mock-split.cp-split{grid-template-columns:minmax(0,1fr)} }
