/* ═══════════════════════════════════════════════════════════════════
   Headroom — headroom.day
   Brand: charcoal #1B1C21 · ink #E7E8EC · amber #FAB219 · track #5A5A5E
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Bricolage';
  src: url('/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --amber: #fab219;
  --amber-hi: #ffc133;
  --crit: #d03b3b;
  --good: #3fbf6f;
  --accent: #4cc2ff;
  --mono: 'Cascadia Mono', Consolas, ui-monospace, 'SF Mono', monospace;
  --display: 'Bricolage', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --body: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease-spring: cubic-bezier(.22, 1.4, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Theme tokens are attribute-scoped (not html-only) so the bloom porthole
   can render a subtree in the incoming theme during the spread. */
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f1014;
  --bg2: #15161b;
  --surface: #1b1c22;
  --surface2: #23242c;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --ink: #e8e9ed;
  --ink2: #aeb2bb;
  --muted: #8f939c;
  --amber-text: #fab219;
  --accent-text: #4cc2ff;
  --prov-grok: #e8e9ed;
  --shadow: 0 18px 60px rgba(0, 0, 0, .5);
  --shadow-sm: 0 6px 24px rgba(0, 0, 0, .35);
  --head-bg: rgba(15, 16, 20, .78);
  --glow-op: 1;
  --scene-bg:
    radial-gradient(120% 90% at 78% 8%, #2c2620 0%, transparent 52%),
    radial-gradient(100% 80% at 12% 30%, #1d2734 0%, transparent 55%),
    linear-gradient(160deg, #191b22, #101116 70%);
  --tb-bg: rgba(22, 23, 28, .87);
  --tb-line: rgba(255, 255, 255, .06);
  --tb-solid: rgba(22, 23, 28, .95);
  --tb-ink: #e8e9ed;
  --tb-ink2: #9aa0aa;
  --tb-track: rgba(255, 255, 255, .22);
  --tb-cell: rgba(255, 255, 255, .05);
  --tb-hov: rgba(255, 255, 255, .09);
  --sun-t: translateY(0) rotate(0);
  --sun-o: 1;
  --moon-t: translateY(26px) rotate(-40deg);
  --moon-o: 0;
  --tb-warn: #fab219;
  --tb-crit: #f0716f;
  --apg-claude: #d95926;
  --apg-codex: #199e70;
  --apg-openai: #85b8ff;
  --apg-deepseek: #6c8cff;
}

[data-theme='light'] {
  color-scheme: light;
  --bg: #f7f7f4;
  --bg2: #f0f0ec;
  --surface: #ffffff;
  --surface2: #f4f4f1;
  --line: rgba(20, 24, 33, .1);
  --line2: rgba(20, 24, 33, .18);
  --ink: #1f2328;
  --ink2: #4f5661;
  --muted: #69717c;
  --amber-text: #9a5b00;
  --accent-text: #0067c0;
  --prov-grok: #1f2328;
  --shadow: 0 18px 50px rgba(31, 35, 40, .13);
  --shadow-sm: 0 6px 20px rgba(31, 35, 40, .09);
  --head-bg: rgba(247, 247, 244, .8);
  --glow-op: .5;
  --scene-bg:
    radial-gradient(120% 90% at 78% 8%, #ffe9c0 0%, transparent 55%),
    radial-gradient(100% 80% at 12% 30%, #dbeafe 0%, transparent 55%),
    linear-gradient(160deg, #eef1f6, #dfe4ec 70%);
  --tb-bg: rgba(243, 243, 243, .88);
  --tb-line: rgba(0, 0, 0, .07);
  --tb-solid: #f3f3f3;
  --tb-ink: #202124;
  --tb-ink2: #5c6169;
  --tb-track: rgba(0, 0, 0, .19);
  --tb-cell: rgba(0, 0, 0, .045);
  --tb-hov: rgba(0, 0, 0, .08);
  --sun-t: translateY(-26px) rotate(40deg);
  --sun-o: 0;
  --moon-t: translateY(0) rotate(0);
  --moon-o: 1;
  --tb-warn: #9a6000;
  --tb-crit: #b02a37;
  --apg-claude: #b74318;
  --apg-codex: #087b55;
  --apg-openai: #245f9e;
  --apg-deepseek: #3857c8;
}

/* ── base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* author display rules (e.g. .ti-num { display:flex }) must not defeat [hidden] */
[hidden] { display: none !important; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
::selection { background: rgba(250, 178, 25, .32); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* The native scrollbar can flip ahead of the theme: site.js sets
   data-scrollbar to the incoming scheme at ~30% of the bloom (harmless now —
   with no view transition in play, a root color-scheme change only repaints
   the scrollbar). Declared after the token blocks to win at equal specificity. */
html[data-scrollbar='dark'] { color-scheme: dark; }
html[data-scrollbar='light'] { color-scheme: light; }

/* ── theme "ink bloom" (site.js) ──
   A solid disc of the incoming theme's background scales up from the toggle
   (transform + opacity only — reliably GPU-composited in every browser),
   the theme swaps while fully covered, then the disc fades out. */
.theme-bloom {
  position: fixed;
  border-radius: 50%;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
  transform: scale(0);
  will-change: transform, opacity;
}
/* the porthole: a viewport-aligned copy of the page in the incoming theme,
   counter-scaled so content stays pixel-locked while the window grows.
   TRANSFORMS ONLY in this whole effect — animated clip-path (element or
   view-transition pseudo alike) renders from the wrong origin on some
   GPU/driver/profile combos, observed live on this machine's Chrome. */
.bloom-view {
  position: absolute;
  will-change: transform;
}

/* ── reveal on scroll ──
   Hidden state only applies once JS has stamped html.js — with scripts off
   or failed, every .reveal stays visible. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--rd, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ═══ header ═══ */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 640; font-size: 19px; letter-spacing: -.01em; }
.brand-mark, .foot-brand .brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: #1b1c21;
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.bm-bar { display: block; height: 4px; border-radius: 2px; background: #5a5a5e; overflow: hidden; }
.bm-bar b { display: block; height: 100%; width: 64%; border-radius: 2px; background: #e7e8ec; transition: width 1s var(--ease-out); }
.bm-bar b.amber { width: 30%; background: var(--amber); }
.brand:hover .bm-bar b { width: 92%; }
.brand:hover .bm-bar b.amber { width: 55%; }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 13px; border-radius: 8px; color: var(--ink2); font-size: 14.5px; font-weight: 500; transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--ink); background: var(--surface2); }
.head-actions { display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink2); position: relative; overflow: hidden;
  transition: color .2s, border-color .2s, transform .2s;
}
.theme-btn:hover { color: var(--ink); border-color: var(--line2); }
.theme-btn:active { transform: scale(.92); }
.theme-btn svg { width: 19px; height: 19px; position: absolute; transition: transform .5s var(--ease-spring), opacity .3s; }
.tb-sun { transform: var(--sun-t); opacity: var(--sun-o); }
.tb-moon { transform: var(--moon-t); opacity: var(--moon-o); }

/* ═══ buttons ═══ */
.btn { display: inline-flex; align-items: center; gap: 12px; border-radius: 12px; font-weight: 600; transition: transform .25s var(--ease-spring), box-shadow .3s, background .2s, border-color .2s; will-change: transform; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.16; }
.btn small { font-size: 11.5px; font-weight: 500; opacity: .72; }
.btn-primary { background: var(--amber); color: #1b1c21; box-shadow: 0 4px 18px rgba(250, 178, 25, .25); }
.btn-primary:hover { background: var(--amber-hi); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(250, 178, 25, .4); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { border: 1px solid var(--line2); color: var(--ink2); }
.btn-ghost:not(:disabled):hover { color: var(--ink); border-color: var(--muted); transform: translateY(-2px); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.btn-big { padding: 13px 22px; font-size: 16px; }
.btn-small { padding: 8px 16px; font-size: 14px; border-radius: 9px; }
.btn-wide { width: 100%; justify-content: center; padding: 13px; }
.btn-wide span { align-items: center; }

/* ═══ hero ═══ */
.hero { position: relative; padding: 72px 0 40px; overflow: clip; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 130%; z-index: -1; opacity: var(--glow-op);
  background:
    radial-gradient(42% 55% at 72% 42%, rgba(250, 178, 25, .13), transparent 70%),
    radial-gradient(38% 48% at 24% 18%, rgba(76, 194, 255, .1), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(63, 191, 111, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 60% { box-shadow: 0 0 0 9px rgba(63, 191, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 111, 0); } }
.hero h1 {
  font-family: var(--display); font-size: clamp(3.1rem, 6.4vw, 5rem); font-weight: 720;
  letter-spacing: -.035em; line-height: .98; margin: 18px 0 20px;
}
.hero h1 em { font-style: normal; color: var(--amber-text); position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; left: 2%; bottom: .04em; height: .1em; width: 0; border-radius: 99px;
  background: var(--amber); opacity: .9; animation: underfill 1.1s .9s var(--ease-out) forwards;
}
@keyframes underfill { to { width: 96%; } }
.lede { font-size: 19px; color: var(--ink2); max-width: 46ch; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.hero-fine { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ═══ the scene (simulated desktop) ═══ */
.scene { position: relative; }
.scene-desktop {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 11.7;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: background .5s;
}
.scene-desktop { background: var(--scene-bg); }
.scene-hint { text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* taskbar */
.taskbar {
  position: relative; z-index: 3; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .5s;
}
.taskbar { background: var(--tb-bg); border-top: 1px solid var(--tb-line); }
.tb-left, .tb-right { display: flex; align-items: center; gap: 7px; }
.tb-btn { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; color: var(--tb-ink); transition: background .2s; }
.tb-btn:hover { background: var(--tb-hov); }
.tb-winlogo svg { width: 17px; height: 17px; color: #57a8f4; }
.tb-search { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--tb-cell); color: var(--tb-ink2); font-size: 12px; }
.tb-search svg { width: 13px; height: 13px; }
.tb-search i { font-style: normal; }
.tb-app { position: relative; }
.tb-app::before { content: ''; width: 17px; height: 17px; border-radius: 5px; }
.tb-app::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 7px; height: 3px; border-radius: 2px; background: var(--tb-ink2); opacity: .7; }
.tb-app.a1::before { background: linear-gradient(135deg, #4cc2ff, #2563eb); }
.tb-app.a2::before { background: linear-gradient(135deg, #34d399, #0f766e); }
.tb-app.a3::before { background: linear-gradient(135deg, #f472b6, #9333ea); }
.tb-clock { font-size: 11.5px; color: var(--tb-ink); padding: 0 6px; }

/* deck — faithful port of the app's deck.html (sizes 1:1) */
.deck { display: flex; align-items: center; }
.deck-cell {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 30px; padding: 2px 8px; border-radius: 7px;
  background: var(--tb-cell); border: 1px solid var(--tb-line);
  white-space: nowrap; transition: background .25s;
}
.deck-cell:hover { background: var(--tb-hov); }
.apg {
  display: inline-flex; width: 13px; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; line-height: 1; flex: none;
}
.apg.claude { color: var(--apg-claude); }
.apg.claude svg { display: inline; }
.apg.codex { color: var(--apg-codex); font-size: 11px; letter-spacing: -1px; }
.apg.openai { color: var(--apg-openai); font-size: 12px; }
.apg.deepseek { color: var(--apg-deepseek); }
.meter-group { display: inline-flex; align-items: center; gap: 6px; }
.rows {
  display: grid; grid-template-rows: repeat(3, auto);
  grid-auto-flow: column; grid-auto-columns: max-content;
  row-gap: 0; column-gap: 10px;
}
.brow { display: flex; align-items: center; gap: 5px; height: 10px; line-height: 1; }
.brow .lbl { font-family: var(--mono); font-size: 9px; color: var(--tb-ink2); width: 17px; }
.blocks { display: flex; gap: 2px; }
.blocks i { width: 5px; height: 6px; border-radius: 1.5px; background: var(--tb-track); }
.blocks i.f { background: var(--tb-ink); }
.blocks.warn i.f { background: var(--tb-warn); }
.blocks.crit i.f { background: var(--crit); }
.brow .val { font-family: var(--mono); font-size: 9.5px; color: var(--tb-ink); min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.brow .val.warn { color: var(--tb-warn); }
.brow .val.crit { color: var(--tb-crit); }
.mbar { width: 40px; height: 3.5px; border-radius: 2px; background: var(--tb-track); position: relative; overflow: hidden; }
.mbar i { position: absolute; inset: 0; right: auto; border-radius: 2px; background: var(--tb-ink); }
.mbar.warn i { background: var(--tb-warn); }
.mbar.crit i { background: var(--crit); }
.cptxt { font-family: var(--mono); font-size: 11px; color: var(--tb-ink); }
.cptxt.warn { color: var(--tb-warn); }
.cptxt.crit { color: var(--tb-crit); }
.deck-demo-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: background .5s;
}
.deck-demo-bar { background: var(--tb-solid); }

/* tray icon */
.tray-icon { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; transition: background .2s; position: relative; }
.tray-icon:hover { background: var(--tb-hov); }
.ti-bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.ti-bar { display: block; height: 5px; border-radius: 3px; background: var(--tb-track, rgba(255,255,255,.22)); overflow: hidden; }
.ti-bar i { display: block; height: 100%; width: 70%; border-radius: 3px; background: var(--tb-ink, #e8e9ed); transition: width .9s var(--ease-out), background .4s; }
.ti-bar i.warn { background: var(--amber); }
.ti-bar i.crit { background: var(--crit); }
.ti-num { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ti-num b { font-family: var(--mono); font-size: 12px; line-height: 1; color: var(--tb-ink); font-weight: 700; }
.ti-mini { width: 18px; height: 3px; border-radius: 2px; background: var(--tb-track); overflow: hidden; display: block; }
.ti-mini i { display: block; height: 100%; width: 62%; background: var(--amber); border-radius: 2px; }

/* tray tooltip */
.tray-tip {
  position: absolute; right: 10px; bottom: 56px; z-index: 5; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-sm); padding: 10px 12px; font-size: 12px; color: var(--ink2);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease-out);
}
.tray-tip.show { opacity: 1; transform: none; }
.tray-tip b { color: var(--ink); font-weight: 600; }
.tray-tip .tt-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 4px; }
.tray-tip .tt-row:first-child { margin-top: 0; }

/* ═══ flyout ═══ */
.flyout {
  position: absolute; right: 10px; bottom: 56px; z-index: 4; width: 302px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px;
  transform-origin: 92% 100%;
  transition: transform .45s var(--ease-spring), opacity .3s;
}
.flyout.hidden { opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none; }
.flyout-static { position: static; width: 100%; max-width: 340px; margin: 0 auto; transform: none; }
.fly-rows { display: flex; flex-direction: column; gap: 8px; }
.fly-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px 2px; font-size: 11px; color: var(--muted); }
.fly-gear svg { width: 14px; height: 14px; }
.fly-tail { position: absolute; right: 26px; bottom: -6px; width: 12px; height: 12px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); border-radius: 0 0 3px 0; }

.acct { background: var(--surface2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; }
.acct-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pg { width: 9px; height: 9px; border-radius: 50%; background: var(--pg, #999); box-shadow: 0 0 8px color-mix(in srgb, var(--pg, #999) 60%, transparent); flex: none; }
.acct-name { font-size: 12.5px; font-weight: 600; }
.acct-plan { font-size: 10.5px; color: var(--muted); margin-left: auto; }

.q { margin-top: 7px; }
.q:first-of-type { margin-top: 0; }
.q-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; color: var(--ink2); }
.q-top b, .q-val { font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.q-bar { position: relative; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); margin: 4px 0 3px; overflow: visible; }
.q-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 60%); border-radius: 4px; background: var(--ink); transition: width .9s var(--ease-out), background .4s; display: block; }
.q-fill.warn { background: var(--amber); }
.q-fill.crit { background: var(--crit); }
.q-tick { position: absolute; top: -2px; bottom: -2px; left: var(--pp, 50%); width: 2px; border-radius: 1px; background: var(--muted); opacity: .8; display: block; }
.q-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.q-meta em { font-style: normal; }
.q-meta em.fast { color: var(--amber-text); }
.q.ghost { opacity: .5; }
.q.ghost .q-fill { background: repeating-linear-gradient(-45deg, var(--muted) 0 4px, transparent 4px 8px); }

.chip { display: inline-block; font-size: 9.5px; font-weight: 600; padding: 1.5px 7px; border-radius: 99px; vertical-align: 1px; }
.chip.new { background: rgba(76, 194, 255, .16); color: var(--accent-text); }
.chip.stale { background: rgba(250, 178, 25, .16); color: var(--amber-text); }
.chip.ghosted { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
.acct-extra { margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 10.5px; color: var(--muted); display: flex; justify-content: space-between; }
.acct-extra b { font-family: var(--mono); color: var(--ink2); font-weight: 500; }

/* update banner inside flyout */
.fly-update { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 10px; padding: 8px 10px; font-size: 11.5px; }
.fly-update b { font-weight: 600; }
.fly-update button { background: var(--accent); color: #0d2231; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }

/* ═══ why band ═══ */
.why { padding: 84px 0 30px; }
.why-line { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 450; letter-spacing: -.015em; line-height: 1.4; color: var(--ink2); max-width: 30em; }
.why-line strong { color: var(--ink); font-weight: 640; }

/* ═══ sections ═══ */
section { position: relative; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 14px; }
.sec-head p { color: var(--ink2); font-size: 17px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-text); margin-bottom: 10px; }

.surfaces { padding: 70px 0 30px; }
.surface-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 52px; align-items: center; padding: 44px 0; }
.surface-row.flip { direction: rtl; }
.surface-row.flip > * { direction: ltr; }
.surface-row h3 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 660; letter-spacing: -.02em; margin-bottom: 12px; }
.surface-row p { color: var(--ink2); font-size: 16px; max-width: 46ch; }
.ticks { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink2); font-size: 14.5px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .48em; width: 14px; height: 5px; border-radius: 3px; background: var(--amber); }
.ticks li:nth-child(2)::before { width: 10px; opacity: .75; }
.ticks li:nth-child(3)::before { width: 6px; opacity: .5; }

/* tray states strip */
.tray-states { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tray-states figure { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .4s var(--ease-spring), opacity .4s; opacity: .55; }
.tray-states figure.on { transform: translateY(-6px) scale(1.08); opacity: 1; }
.ts-icon {
  position: relative; width: 58px; height: 58px; border-radius: 14px; background: #1b1c21;
  display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow-sm);
}
.ts-icon .ti-bar { height: 7px; background: rgba(255, 255, 255, .2); }
.ts-icon .ti-bar i { background: #e7e8ec; transition: none; }
.ts-icon .ti-bar i.warn { background: var(--amber); }
.ts-icon .ti-bar i.crit { background: var(--crit); }
/* featured readout: big "% left" digits of the meter being burned right now,
   over a mini bar — the icon's face while you're actively using a model */
.ts-icon.num-icon { align-items: center; gap: 5px; padding: 0; }
.ts-icon.num-icon b { font-family: var(--mono); font-size: 21px; font-weight: 700; line-height: 1; color: #e7e8ec; }
.ts-icon.num-icon b.warn { color: var(--amber); }
.ts-icon.num-icon b.crit { color: var(--crit); }
.ts-mini { width: 30px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.ts-mini i { display: block; height: 100%; border-radius: 3px; background: #e7e8ec; }
.ts-mini i.warn { background: var(--amber); }
.ts-mini i.crit { background: var(--crit); }
.ts-icon.stale .ti-bar i { opacity: .38; background: repeating-linear-gradient(-45deg, #e7e8ec 0 4px, transparent 4px 8px); }
.ts-icon.attn::after {
  content: '!'; position: absolute; top: -6px; right: -6px; width: 19px; height: 19px; border-radius: 6px;
  background: var(--crit); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center;
  font-family: var(--mono); box-shadow: 0 3px 10px rgba(208, 59, 59, .45);
}
.tray-states figcaption { font-size: 12px; color: var(--muted); }

/* deck modes switch */
.deck-modes { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.mode-btn { padding: 7px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .2s, background .25s, transform .2s; }
.mode-btn:hover { color: var(--ink); }
.mode-btn.on { background: var(--amber); color: #1b1c21; }
.mode-btn:active { transform: scale(.95); }

/* ═══ features grid ═══ */
.features { padding: 90px 0 40px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .3s;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--line2); }
.feat h3 { font-family: var(--display); font-size: 17.5px; font-weight: 650; letter-spacing: -.015em; margin: 18px 0 7px; }
.feat p { font-size: 14px; color: var(--ink2); }
.feat-demo { height: 118px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); display: grid; place-items: center; padding: 14px; overflow: hidden; position: relative; }

/* windows toast */
.win-toast {
  display: flex; gap: 11px; align-items: center; background: var(--surface); border: 1px solid var(--line2);
  border-radius: 10px; padding: 11px 14px; box-shadow: var(--shadow-sm);
  transform: translateX(120%); opacity: 0; transition: transform .6s var(--ease-spring), opacity .4s;
}
.win-toast.in { transform: none; opacity: 1; }
.wt-icon { width: 30px; height: 30px; border-radius: 8px; background: #1b1c21; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 6px; flex: none; }
.wt-icon .ti-bar { height: 4px; background: rgba(255, 255, 255, .2); }
.wt-icon .ti-bar i { background: #e7e8ec; }
.wt-icon .ti-bar i.warn { background: var(--amber); }
.wt-body { display: flex; flex-direction: column; }
.wt-body b { font-size: 12.5px; }
.wt-body span { font-size: 11px; color: var(--muted); font-family: var(--mono); }

/* update card */
.upd-card { width: 100%; max-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.upd-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; gap: 10px; }
.upd-btn { background: var(--accent); color: #0d2231; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 6px; }
.upd-track { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 12%, transparent); margin-top: 10px; overflow: hidden; }
.upd-track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.upd-card.done .upd-btn { background: var(--good); color: #06230f; }

/* pace demo */
.pace-card, .budget-demo .q { width: 100%; max-width: 250px; }
.pace-card .q-bar, .budget-demo .q-bar { height: 8px; }
.pace-word { color: var(--good); font-style: normal; }
.pace-word.fast { color: var(--amber-text); }

/* multi account demo */
.multi-demo { flex-direction: column; display: flex; gap: 7px; justify-content: center; }
.acct-mini {
  display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 11px; font-size: 12.5px; width: 200px;
  transition: transform .5s var(--ease-spring);
}
.acct-mini b { font-weight: 600; }
.acct-mini .drag { margin-left: auto; color: var(--muted); letter-spacing: -2px; cursor: grab; }
.multi-demo.shuffle .acct-mini:nth-child(1) { transform: translateY(37px); }
.multi-demo.shuffle .acct-mini:nth-child(2) { transform: translateY(-37px); }

/* privacy demo: your PC as a sealed boundary, wired straight to the providers */
.priv-map { display: flex; align-items: center; justify-content: center; }
.pm-pc {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 11px 15px 8px; border: 1px dashed var(--line2); border-radius: 12px; background: var(--surface);
}
.pm-mark {
  width: 26px; height: 26px; border-radius: 7px; background: #1b1c21;
  display: flex; flex-direction: column; justify-content: center; gap: 3.5px; padding: 0 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.pm-mark i { display: block; height: 3.5px; border-radius: 2px; background: #5a5a5e; position: relative; overflow: hidden; }
.pm-mark i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: 2px; background: #e7e8ec; }
.pm-mark i.amber::after { width: 34%; background: var(--amber); }
.pm-lock {
  /* top-LEFT: the right edge is where the wires leave the boundary */
  position: absolute; top: -8px; left: -8px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--amber-text);
  background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 40%, transparent);
}
.pm-lock svg { width: 11px; height: 11px; }
.pm-label { font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
/* one row per provider: the wire and its glyph share a line, so they can
   never drift out of alignment */
.pm-links { display: flex; flex-direction: column; gap: 14px; }
.pm-link { display: flex; align-items: center; gap: 9px; }
.pm-wire { width: 52px; height: 1.5px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 13%, transparent); position: relative; flex: none; }
.pm-wire i {
  position: absolute; top: -2px; left: 0; width: 5.5px; height: 5.5px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 7px color-mix(in srgb, var(--amber) 65%, transparent);
  animation: pm-flow 2.4s cubic-bezier(.5, 0, .5, 1) infinite;
}
.pm-link:nth-child(2) .pm-wire i { animation-delay: .8s; }
.pm-link:nth-child(3) .pm-wire i { animation-delay: 1.6s; }
@keyframes pm-flow {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateX(46px); opacity: 0; }
}

/* ═══ providers ═══ */
.providers { padding: 90px 0 50px; }
.prov-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.prov-grid li {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 15px 14px; overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.prov-grid li::before {
  content: ''; position: absolute; top: 0; left: 15px; right: auto; width: 26px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--pg); opacity: .9;
  transition: width .35s var(--ease-out);
}
.prov-grid li:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: var(--shadow-sm); }
.prov-grid li:hover::before { width: 52px; }
.prov-grid b { display: block; font-size: 14.5px; font-weight: 650; margin-bottom: 3px; padding-right: 30px; }
.prov-grid span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.prov-logo {
  position: absolute; top: 14px; right: 14px; width: 21px; height: 21px;
  color: var(--ink); opacity: .9;
  transition: transform .35s var(--ease-out), opacity .3s;
}
.prov-grid li:hover .prov-logo { transform: scale(1.12); opacity: 1; }
.prov-note { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ═══ pricing ═══ */
.pricing { padding: 90px 0 50px; }
.price-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; max-width: 780px; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 0; }
.price-card.featured { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 25%, transparent), var(--shadow-sm); }
.pc-flag { position: absolute; top: -11px; left: 26px; background: var(--amber); color: #1b1c21; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 11px; border-radius: 99px; }
.price-card h3 { font-family: var(--display); font-size: 16px; font-weight: 650; color: var(--ink2); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 18px; }
.price .num { font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-family: var(--display); }
.price em { font-style: normal; color: var(--muted); font-size: 14px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; flex: 1; }
.price-card li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink2); }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.pc-fine { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }

/* ═══ FAQ ═══ */
.faq { padding: 80px 0 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 19px 4px; font-family: var(--display); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .35s var(--ease-spring); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--amber-text); }
.faq summary:hover { color: var(--amber-text); }
.faq details p { padding: 0 4px 20px; color: var(--ink2); font-size: 15px; max-width: 62ch; }

/* ═══ outro ═══ */
.outro { padding: 110px 0 120px; text-align: center; }
.outro-mark { width: 74px; height: 74px; border-radius: 18px; background: #1b1c21; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--shadow-sm); display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 0 14px; margin: 0 auto 26px; }
.outro-mark .ti-bar { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .2); }
.outro-mark .ti-bar i { background: #e7e8ec; }
.outro-mark .ti-bar i.warn { background: var(--amber); }
.outro h2 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 720; letter-spacing: -.03em; line-height: 1.02; margin-bottom: 30px; }

/* ═══ footer ═══ */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0; }
.foot-in { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand b { display: block; font-family: var(--display); font-size: 15px; font-weight: 650; line-height: 1.2; }
.foot-brand span { font-size: 12px; color: var(--muted); }
.foot-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.foot-nav a { font-size: 13.5px; color: var(--ink2); transition: color .2s; }
.foot-nav a:hover { color: var(--ink); }
.foot-fine { width: 100%; font-size: 12px; color: var(--muted); }

/* ═══ responsive ═══ */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 44px; }
  .lede { max-width: none; }
  /* the nav (display:none here) carried the auto margin — without this the
     theme toggle + Download collapse to the LEFT beside the logo */
  .head-actions { margin-left: auto; }
  .surface-row, .surface-row.flip { grid-template-columns: 1fr; gap: 26px; direction: ltr; padding: 30px 0; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-cards { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 700px) {
  .tb-search i { display: none; }
  .tb-search { padding: 0 10px; }
  .tb-app.a3, .tb-app.a2 { display: none; }
  .flyout { width: 272px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .feat-grid { grid-template-columns: 1fr; }
  .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row .btn-big { width: 100%; justify-content: center; }
  .head-in { gap: 12px; }
  .flyout { width: 260px; }
  .foot-nav { margin-left: 0; }
  /* the 3-cell demo deck is wider than small phones — scroll it inside its bar */
  .deck-demo-bar { overflow-x: auto; justify-content: flex-start; }
  .tray-states { gap: 10px; }
}

/* ═══ reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══ provider landing pages (/claude, /codex, /gemini, /grok, /cursor) ═══
   Static pages: no site.js, no .reveal — everything visible without scripts. */
.pv-hero { position: relative; padding: 64px 0 36px; overflow: clip; }
.pv-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.pv-hero h1 { font-family: var(--display); font-size: clamp(2.4rem, 5.2vw, 3.7rem); font-weight: 720; letter-spacing: -.032em; line-height: 1.04; margin: 16px 0 18px; }
.pv-hero h1 em { font-style: normal; color: var(--amber-text); }
.pv-visual .flyout-static { margin: 0 auto; }
.pv-band { padding: 56px 0 18px; }
.pv-band .sec-head { margin-bottom: 34px; }
.pv-prose { color: var(--ink2); font-size: 16px; max-width: 66ch; }
.pv-prose p + p { margin-top: 14px; }
.pv-prose strong { color: var(--ink); font-weight: 640; }
.pv-prose a { color: var(--accent-text); }
.limits { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.limit { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 17px 20px; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 20px; align-items: start; }
.limit .win { font-family: var(--mono); font-size: 12px; line-height: 1.4; color: var(--amber-text); background: color-mix(in srgb, var(--amber) 12%, transparent); border-radius: 8px; padding: 6px 10px; text-align: center; margin-top: 2px; }
.limit h3 { font-family: var(--display); font-size: 16.5px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 5px; }
.limit p { font-size: 14.5px; color: var(--ink2); max-width: 62ch; }
.pv-note { margin-top: 22px; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 7%, transparent); border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: 14.5px; color: var(--ink2); max-width: 68ch; }
.pv-note b { color: var(--ink); }
.pv-shows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.pv-show { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.pv-show .demo { min-height: 96px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line); display: grid; place-items: center; padding: 12px; margin-bottom: 14px; overflow: hidden; }
.pv-show h3 { font-family: var(--display); font-size: 16px; font-weight: 650; margin-bottom: 5px; letter-spacing: -.015em; }
.pv-show p { font-size: 13.5px; color: var(--ink2); }
.also { padding: 46px 0 10px; }
.also p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.also-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.also-links a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; color: var(--ink2); transition: color .2s, border-color .2s, transform .2s; }
.also-links a:hover { color: var(--ink); border-color: var(--line2); transform: translateY(-1px); }
.also-links .pg { width: 8px; height: 8px; }
/* homepage provider cards double as links to these pages: real anchor text on
   the name, stretched to the whole card (li is already position:relative) */
.prov-grid b a::after { content: ''; position: absolute; inset: 0; }
@media (max-width: 960px) {
  .pv-hero-in { grid-template-columns: 1fr; gap: 36px; }
  .pv-shows { grid-template-columns: 1fr; }
  .limit { grid-template-columns: 1fr; gap: 8px; }
  .limit .win { justify-self: start; }
}
