/* ============================================================
   factory.css — ONE shared stylesheet for the squidbay/factory
   public pages (index.html + managed.html).

   TWO SHELLS, ONE CONTENT SYSTEM (mobile-first):
     base rules      = the ≤700px APP SHELL — sticky blurred app bar,
                       segmented tier switch, fixed bottom dock with
                       section tabs, floating CTA pill, snap rails,
                       one full-width primary CTA per view.
     >=701px overrides = the EDITORIAL desktop — top nav, two-column
                       heroes, multi-column grids, full copy.
   Same content modules feed both. No build step. Tokens up top.
   Design source: build-docs PWA App Shell Redesign (Designer 🤖🎨).
   ============================================================ */

/* ---------- 1 · Design tokens ---------- */
:root {
  /* identity — not up for grabs */
  /* ONE accent. It is the only saturated colour in the marketing chrome; that is the
     whole reason it reads as deliberate rather than as decoration. */
  --primary: #00D9FF;
  --primary-light: #33E5FF;
  --primary-dark: #00B8D9;
  --primary-glow: rgba(0, 217, 255, 0.15);

  /* NEUTRALS ARE NEAR-HUELESS (S 3–7%), measured against a competitor whose neutrals run
     S 0–5%. Ours previously ran S 22–33% — every "grey" was a saturated blue sitting only
     27° from the accent's own hue, so the accent had nothing to pop against. Desaturating
     the field, not re-tinting the accent, is what fixes that. Lightness is unchanged from
     the saturated ramp, so every contrast ratio that was checked before still holds
     (white/black 16.8, muted/black 7.6, muted/gray 5.9 — all clear 4.5:1). */
  --black: #0D0D0E;
  --dark: #161718;
  --darker: #101011;
  --gray: #242628;
  --gray-light: #333538;
  --white: #EFEFF0;
  /* secondary text held at L64 to clear 4.5:1 on --black AND --gray */
  --muted: #9FA2A8;

  /* SEMANTIC / DIEGETIC ONLY — never marketing chrome. These may appear inside a product
     mock (the GitHub merge card, the phone chat, the factory illustration) where they mean
     something concrete: green = a passing check, purple = merged. Reaching for one of these
     to decorate a heading, an eyebrow or a callout puts a third accent on the page and
     stops the primary from signalling anything. */
  --green: #00D26A;
  --yellow: #FFBD2E;
  --orange: #F7931A;
  --ember: #FF6B35;
  --purple: #B794F6;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-squid: linear-gradient(135deg, var(--ember) 0%, var(--orange) 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Mono is DIEGETIC ONLY — it means "a machine is talking", so it belongs inside the phone
     chat and the pull-request card and nowhere else. Labels, eyebrows, chips, nav, prices
     and captions use --font-label (the text face). Mono was 13.1% of this page's copy
     against a competitor's 1.2%, and it read as a developer-tool costume on a page whose
     whole argument is "you don't need to be technical". */
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font-label: var(--font-sans);

  /* 8px spacing rhythm */
  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 40px; --s-7: 48px; --s-8: 64px;
  /* radii */
  --r-1: 8px;  --r-2: 12px; --r-3: 16px; --r-pill: 100px;

  /* type — 16px base (kills iOS input zoom); app-shell heroes 33px, editorial 52px */
  --t-mono: 0.8125rem;
  --t-small: 0.875rem;
  --t-body: 1rem;
  --t-lead: 1.0625rem;
  --t-h3: 1.1875rem;
  --t-h2: 1.5rem;
  --t-h1: 2.0625rem; /* 33px app-shell hero */

  --wrap-max: 72rem;
  --appbar-h: 116px;         /* logo row + tier-switch row (mobile) */
  --dock-h: 64px;
  --pad-x: 20px;
  /* Section rhythm. Measured 2026-07-25: our ink-to-area was 52.8% on a phone against a
     competitor's 30.5% — a 1.7x denser page — and the entire difference was padding, not
     content width (theirs 1120px, ours 1152px). So: padding up, --wrap-max untouched. */
  --pad-section: 64px;
  --gap-grid: 16px;
  --block-top: 22px;
}

/* ---------- 2 · Base + app-feel ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overscroll-behavior-y: none;
  /* app shell: reserve room so the fixed dock never hides the last content */
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 14px);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 217, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(30, 58, 95, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
main, .appbar, footer, .dock { position: relative; z-index: 1; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-light); }
a:focus-visible, .btn:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px;
}
::selection { background: rgba(0, 217, 255, 0.25); }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }
strong { color: var(--white); font-weight: 600; }
/* responsive copy: whole canon sentences the app shell trims (sentence-cut, not
   rewritten). Hidden <=700; the editorial shell shows the full canon copy. */
.wide-only { display: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 30;
  background: var(--primary); color: var(--black); font-weight: 600;
  padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- 3 · Layout: .wrap + section rhythm ---------- */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
}
section .wrap, .section-pad { padding-top: var(--pad-section); padding-bottom: var(--pad-section); }

/* why-it-works + God-View, side by side: the argument on the left, its proof on the right.
   Stacks with the argument first on a phone. */
.why-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: start; }


.mono-label {
  display: inline-block;
  font-family: var(--font-label);
  font-size: var(--t-mono);
  color: var(--primary);
  letter-spacing: 2px;
}
h2.section-title {
  margin-top: var(--s-2);
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- 4 · App bar (mobile shell) + tier switch ---------- */
.appbar {
  position: sticky; top: 0; z-index: 12;
  background: rgba(10, 14, 20, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top);
}
.appbar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "logo gh" "switch switch";
  align-items: center; gap: 6px 10px;
  max-width: var(--wrap-max); margin-inline: auto;
  padding: 8px max(var(--pad-x), env(safe-area-inset-right)) 8px max(var(--pad-x), env(safe-area-inset-left));
}
.wordmark { grid-area: logo; }
.nav-gh { grid-area: gh; }
.tierswitch { grid-area: switch; }
.wordmark { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; }
.wordmark img { width: 30px; height: 30px; object-fit: contain; }
.wordmark .wm-text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark .wm-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }
.wordmark .wm-sub { font-family: var(--font-label); font-size: 0.5625rem; letter-spacing: 0.01em; color: var(--muted); }
.wordmark .wm-full { display: none; font-family: var(--font-label); font-size: 0.9rem; color: var(--white); }
.wordmark .slash { color: var(--muted); }
.wordmark .repo { color: var(--primary); }

.nav-gh {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 1px solid var(--gray-light); border-radius: var(--r-2);
  color: var(--white); font-size: var(--t-small); font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-gh:hover { border-color: var(--primary); color: var(--primary); }
.nav-gh .lab { display: none; }

.tierswitch {
  display: flex; align-items: center; gap: 2px; width: 100%;
  margin-top: 2px;
  padding: 4px; background: var(--darker);
  border: 1px solid var(--gray); border-radius: var(--r-pill);
}
.tierswitch a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 1.2px;
 font-weight: 700; color: var(--muted); white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.tierswitch a:hover { color: var(--white); }
.tierswitch a[aria-current="page"] { background: rgba(0, 217, 255, 0.12); color: var(--primary); }

/* ---------- 5 · Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 22px; min-height: 52px;
  background: var(--gradient-primary);
  color: var(--black); font-family: var(--font-sans); font-size: 1rem; font-weight: 700; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--r-2);
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn:hover { color: var(--black); transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0, 217, 255, 0.3); }
.btn svg { flex: none; }

/* ghost / secondary — mobile: a cyan text link (44px tap target);
   desktop: an outline button beside the primary (see editorial overrides) */
.btn.ghost {
  width: auto; min-height: 44px; padding: 8px 12px;
  background: transparent; color: var(--primary);
  border: none; box-shadow: none; font-weight: 600;
  transition: color 0.2s ease;
}
.btn.ghost:hover { color: var(--primary-light); transform: none; box-shadow: none; }

/* ---------- 6 · Dock (mobile shell only) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; pointer-events: none; }
.dock-cta {
  padding: 0 max(var(--pad-x), env(safe-area-inset-right)) 8px max(var(--pad-x), env(safe-area-inset-left));
  transform: translateY(140%); opacity: 0;
  transition: transform 0.28s var(--r-1, ease), opacity 0.28s ease;
}
.dock[data-show="true"] .dock-cta { transform: none; opacity: 1; }
.dock-cta .btn { pointer-events: auto; box-shadow: 0 6px 30px rgba(0, 217, 255, 0.3); }
.dock-bar {
  pointer-events: auto;
  display: flex;
  background: rgba(10, 14, 20, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 6px calc(6px + env(safe-area-inset-bottom));
  padding-left: max(6px, env(safe-area-inset-left));
  padding-right: max(6px, env(safe-area-inset-right));
}
.dock-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px; padding: 4px 2px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: var(--font-sans); font-size: 0.625rem; font-weight: 600;
  transition: color 0.2s ease;
}
.dock-tab svg { width: 21px; height: 21px; }
.dock-tab .dt-lab { letter-spacing: 0.2px; }
.dock-tab[aria-current="true"] { color: var(--primary); }
.dock-tab:hover { color: var(--white); }

/* ---------- 7 · Hero (app-shell budget) ---------- */
.hero { position: relative; overflow: hidden; }
.hero .glow {
  position: absolute; top: -120px; right: -80px; width: 420px; height: 300px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.09) 0%, transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 26px; padding-bottom: var(--pad-section); }
.hero h1 {
  margin-top: var(--s-2);
  max-width: 18ch;
  font-size: var(--t-h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--primary); }
.hero .sub { margin-top: 14px; max-width: 60ch; font-size: 1rem; line-height: 1.6; color: var(--muted); }

.cta-row { margin-top: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.cta-row .btn.ghost { align-self: center; }
.cta-note { font-family: var(--font-label); font-size: 0.625rem; letter-spacing: 0.01em; color: var(--muted); text-align: center; line-height: 1.5; }
.cta-note a { color: var(--primary); }
.nb { white-space: nowrap; }

/* stat strip → a wrapping chip set at every width.
   It was a horizontal drag-rail: 579px of chips inside a 350px phone window (1.65x), so
   the last chip — the accented one carrying the whole promise — sat off-screen behind a
   drag nobody signposted. Wrapping costs one line of height and hides nothing. */
.stat-strip {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 2px;
}
.stat-strip .chip {
  flex: none;
  padding: 8px 14px; border: 1px solid var(--gray-light); border-radius: var(--r-pill);
  font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 0.5px; color: var(--muted);
  white-space: nowrap;
}
.stat-strip .chip.accent { border-color: rgba(0, 217, 255, 0.4); color: var(--primary); }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.hero-lead, .hero-aside { min-width: 0; }
.hero-echo { display: none; }


/* ---------- 8 · Cards + grids ---------- */
.grid { display: grid; gap: var(--gap-grid); margin-top: var(--block-top); }
.grid.min260 { grid-template-columns: 1fr; }
.grid.min280 { grid-template-columns: 1fr; }
.card {
  padding: 14px; background: var(--gray);
  border: 1px solid transparent; border-radius: var(--r-3);
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center;
}
.card:hover { border-color: var(--primary); }
.card h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.card .role { margin: 2px 0 0; font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 0.01em; color: var(--primary); }
.card .line { grid-column: 2; margin-top: 6px; font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
.card-ico { grid-row: 1 / 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 217, 255, 0.1); color: var(--primary); }
.card-head { grid-column: 2; display: flex; flex-direction: column; }

.equation {
  margin-top: var(--block-top); padding: 14px 16px;
  background: var(--darker); border: 1px solid var(--gray); border-radius: var(--r-2);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
}
.equation .eq { font-family: var(--font-label); font-size: 0.875rem; }
.equation .eq b { color: var(--primary); font-weight: 400; }
.equation .eq .op { color: var(--muted); }
.equation .max { font-size: var(--t-mono); color: var(--muted); }

/* ---------- 9 · Seats: poster cards + snap rail ---------- */
.seats-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
/* The seats are a GRID, never a drag-rail.
   Measured 2026-07-25 on the live page: as a snap carousel this element held 1,953px of
   seat cards inside a 358px phone window — 5.46x, i.e. 5.5 screens of sideways drag with
   no visible affordance — and 2,200px inside 1,096px on a 1280 desktop. Page-level
   overflow stayed clean at every width, so the anti-slop gate could not see any of it and
   the page shipped green. The seats section is this page's most important explainer and
   most visitors were seeing one and a half cards of it.
   A grid has no hidden axis: every card is on the page at every width. */
.carousel { margin-top: var(--block-top); }
.car-track { display: grid; grid-template-columns: 1fr; gap: var(--gap-grid); }

.poster-card { background: var(--gray); border: 1px solid transparent; border-radius: var(--r-3); overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.poster-card:hover { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.35), 0 8px 32px rgba(0, 217, 255, 0.14); }
.poster-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; }
.poster-card .body { padding: 14px 16px; }
.poster-card .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.poster-card h3 { font-size: 1.0625rem; }
.poster-card .tag { font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 0.01em; color: var(--primary); }
.poster-card .tag.oncall { color: var(--muted); }
.poster-card .line { margin-top: 6px; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }


.you-card {
  position: relative;
  margin-top: var(--block-top); padding: 16px 18px;
  background: linear-gradient(135deg, var(--dark), var(--darker));
  border: 1px solid rgba(0, 217, 255, 0.3); border-radius: var(--r-3);
  display: flex; align-items: center; gap: 14px;
}
.you-card .avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 2px solid var(--primary); color: var(--primary); flex-shrink: 0;
}
.you-card .body { flex: 1; min-width: 0; }
.you-card h3 { font-size: 1.0625rem; }
.you-card p { margin-top: 4px; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* ---------- 10 · Loop / features ---------- */
.loop { list-style: none; margin: var(--block-top) 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.loop li { padding: 14px 16px; background: var(--gray); border: 1px solid transparent; border-radius: var(--r-3); display: flex; gap: 14px; align-items: flex-start; }
.loop li:hover { border-color: var(--primary); }
.loop li.gate { background: rgba(0, 217, 255, 0.06); border-color: var(--primary); }
.loop .num { flex: none; font-family: var(--font-label); font-size: 0.8125rem; font-weight: 700; color: var(--primary); }
.loop h3 { font-size: 0.9375rem; }
.loop p { margin-top: 4px; font-size: var(--t-small); color: var(--muted); line-height: 1.55; }

.feature-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: var(--block-top); }
.feature-row .feature { padding: 14px 16px; background: var(--darker); border: 1px solid var(--gray); border-radius: var(--r-2); }
.feature-row .feature h3 { font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.01em; color: var(--primary); font-weight: 400; }
.feature-row .feature p { margin-top: 6px; font-size: var(--t-small); color: var(--muted); line-height: 1.55; }

/* ---------- 11 · Assembly line ---------- */
.wrap > .line { margin-top: var(--block-top); display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.station { padding: 11px 16px; background: var(--gray); border: 1px solid var(--gray-light); border-radius: var(--r-pill); font-family: var(--font-label); font-size: var(--t-mono); letter-spacing: 0.5px; text-align: center; }
.station.gate { background: rgba(0, 217, 255, 0.08); border-color: var(--primary); color: var(--primary); }
.station.done { background: rgba(0, 217, 255, 0.05); border-color: rgba(0, 217, 255, 0.35); color: var(--muted); }
.wrap > .line .arrow { color: var(--muted); font-family: var(--font-label); align-self: center; transform: rotate(90deg); line-height: 1; }
.line-note { margin-top: 16px; max-width: 62ch; font-size: 0.9375rem; color: var(--muted); }
.line.run > .arrow { animation: arrow-run 3.6s linear infinite; }
.line.run > .arrow:nth-child(2) { animation-delay: 0s; }
.line.run > .arrow:nth-child(4) { animation-delay: 0.6s; }
.line.run > .arrow:nth-child(6) { animation-delay: 1.2s; }
.line.run > .arrow:nth-child(8) { animation-delay: 1.8s; }
.line.run > .arrow:nth-child(10) { animation-delay: 2.4s; }
.line.run > .arrow:nth-child(12) { animation-delay: 3s; }
.line.run > .arrow:nth-child(14) { animation-delay: 3.6s; }
@keyframes arrow-run { 0% { color: var(--muted); text-shadow: none; } 6% { color: var(--primary); text-shadow: 0 0 12px rgba(0, 217, 255, 0.75); } 16% { color: var(--muted); text-shadow: none; } 100% { color: var(--muted); text-shadow: none; } }

/* ---------- 12 · Merge-gate demo (GitHub card) ---------- */
.gate-block { margin-top: var(--block-top); padding: 16px; background: var(--gray); border-radius: var(--r-3); display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.gate-block h3 { font-size: 1.1875rem; }
.gate-p { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.devices { margin-top: 16px; display: flex; align-items: center; gap: 14px; color: var(--primary); }
.devices .arrow { color: var(--muted); font-family: var(--font-label); }

.gh-card { position: relative; width: 100%; max-width: 560px; background: #ffffff; border: 1px solid #d0d7de; border-radius: var(--r-2); color: #1f2328; overflow: hidden; font-family: var(--font-sans); line-height: 1.4; }
.gh-check { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #d8dee4; align-items: flex-start; }
.gh-dot { width: 24px; height: 24px; border-radius: var(--r-pill); background: #1a7f37; display: inline-flex; align-items: center; justify-content: center; color: #ffffff; flex-shrink: 0; }
.gh-check strong { display: block; font-size: var(--t-small); color: #1f2328; }
.gh-check .d { font-size: var(--t-mono); color: #59636e; }
.gh-foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.gh-btn { display: inline-block; padding: 9px 16px; background: #1f883d; color: #ffffff; font-weight: 600; font-size: var(--t-small); border-radius: 6px; animation: gh-press 9s infinite; }
.gh-hint { font-size: var(--t-mono); color: #59636e; }
.gh-cursor { position: absolute; bottom: 16px; left: 120px; opacity: 0; animation: gh-cursor 9s infinite; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.gh-cursor svg { display: block; animation: gh-click 9s infinite; }
.gh-merged { position: absolute; inset: 0; background: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; animation: gh-merged 9s infinite; }
.gh-badge { display: inline-flex; align-items: center; gap: 8px; background: #8250df; color: #ffffff; padding: 8px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-small); }
.gh-merged p { font-size: var(--t-small); color: #1f2328; }
.demo-cap { font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.01em; color: var(--muted); }
@keyframes gh-cursor { 0%, 10% { transform: translate(200px, -120px); opacity: 0; } 16% { opacity: 1; } 40%, 58% { transform: translate(0, 0); opacity: 1; } 64%, 100% { transform: translate(0, 0); opacity: 0; } }
@keyframes gh-click { 0%, 41%, 46%, 100% { transform: scale(1); } 43.5% { transform: scale(0.78); } }
@keyframes gh-press { 0%, 42% { background-color: #1f883d; } 44%, 50% { background-color: #135d26; } 54%, 100% { background-color: #1f883d; } }
@keyframes gh-merged { 0%, 48% { opacity: 0; } 54%, 86% { opacity: 1; } 93%, 100% { opacity: 0; } }

/* ---------- 13 · Day timeline ---------- */
.day { margin-top: var(--block-top); max-width: 760px; }
.day .row { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--gray); }
.day .when { display: flex; align-items: baseline; gap: 12px; flex: none; }
.day .when .t { font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.01em; color: var(--primary); }
.day .when .m { font-family: var(--font-label); font-size: 0.75rem; color: var(--muted); }
.day .row p.story { font-size: 0.9375rem; line-height: 1.55; }
.day .total { margin-top: var(--s-4); font-size: 1.0625rem; font-weight: 600; }


/* ---------- 15 · Skeptic / claims ---------- */
.skeptic { background: var(--darker); border-top: 1px solid var(--gray); border-bottom: 1px solid var(--gray); }
.claim { display: flex; gap: 14px; }
.claim .check { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.claim h3 { font-size: 1rem; }
.claim p { margin-top: 6px; font-size: var(--t-small); color: var(--muted); line-height: 1.55; }

/* ---------- 16 · FAQ (tap-to-open on the app shell) ---------- */
.faq { margin-top: var(--s-5); max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--gray); border: 1px solid var(--gray-light); border-radius: var(--r-3); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.faq summary .chev { flex: none; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details > p { margin: 0 18px 16px; color: var(--muted); line-height: 1.6; }

/* ---------- 17 · Close / manifesto / steps ---------- */
.close { position: relative; overflow: hidden; }
.close .glow { display: none; }  /* second 560px blur — one ambient blur per page is the budget */
.close .wrap { position: relative; text-align: center; padding-bottom: var(--s-7); }
.steps { list-style: none; margin: var(--block-top) auto 0; padding: 0; max-width: 960px; display: grid; grid-template-columns: 1fr; gap: 10px; text-align: left; }
.steps li { padding: 14px 16px; background: var(--gray); border-radius: var(--r-3); display: flex; gap: 14px; align-items: flex-start; }
.steps .num { flex: none; font-family: var(--font-label); font-size: var(--t-mono); font-weight: 700; color: var(--primary); }
.steps p { font-size: 0.9375rem; line-height: 1.5; }
.close .cta-stack { margin-top: var(--s-5); display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.close .cta-stack .btn { max-width: 360px; }
.manifesto {
  margin: 0 auto; max-width: 20ch;
  font-size: clamp(1.75rem, 7vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance;
}
.manifesto span { color: var(--primary); }

/* ---------- 18 · Factory floor scene ---------- */
.floor { margin: var(--s-5) 0 0; }
.floor figcaption { margin-top: 12px; text-align: center; font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 0.01em; color: var(--muted); }
.factory-scene { max-width: 880px; margin: 0 auto; }
@keyframes f-smoke { 0% { transform: translate(0, 0) scale(0.55); opacity: 0; } 12% { opacity: 0.4; } 70% { opacity: 0.22; } 100% { transform: translate(28px, -150px) scale(1.7); opacity: 0; } }
@keyframes f-spark { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translate(18px, -180px); opacity: 0; } }
@keyframes f-cube { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(206px); opacity: 0; } }
@keyframes f-window { 0%, 90%, 100% { opacity: 0.95; } 95% { opacity: 0.7; } }

/* ---------- 19 · Footer ---------- */
footer { border-top: 1px solid var(--gray); background: var(--darker); }
footer .wrap { padding-top: var(--s-6); padding-bottom: var(--s-6); display: flex; flex-direction: column; gap: 18px; }
footer .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
footer .wordmark img { width: 24px; height: 24px; }
footer .wordmark .wm-full { display: inline; font-size: var(--t-mono); color: var(--muted); }
footer nav { display: flex; gap: 18px; font-size: var(--t-small); flex-wrap: wrap; }
footer nav a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
footer nav a:hover { color: var(--primary); }
footer .legal { font-size: var(--t-mono); color: var(--muted); max-width: 72ch; line-height: 1.6; }


/* ---------- 21 · Runners (traveling border light) ---------- */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes runner { to { --angle: 360deg; } }
.runner {
  position: absolute; inset: -1px; border-radius: var(--r-3); padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0turn, transparent 0.7turn, rgba(0, 217, 255, 0.55) 0.82turn, #33E5FF 0.9turn, rgba(0, 217, 255, 0.55) 0.96turn, transparent 1turn);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: runner 5s linear infinite;
  pointer-events: none;
}

/* ---------- 22 · E12 topology (run from anywhere) ---------- */
.e12-grid { margin-top: var(--s-5); display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.e12-lead { font-size: var(--t-lead); line-height: 1.6; }
.e12-points { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 14px; }
.e12-points li { position: relative; padding-left: 26px; font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.e12-points li::before { content: ""; position: absolute; left: 6px; top: 0.55em; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--primary); }
.e12-flag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: var(--r-pill); font-family: var(--font-label); font-size: 0.625rem; letter-spacing: 0.01em; color: var(--primary); border: 1px solid rgba(0, 217, 255, 0.45); vertical-align: middle; }
.e12-topo { margin: 0; padding: 20px; background: var(--gray); border: 1px solid var(--gray-light); border-radius: var(--r-3); display: flex; flex-direction: column; align-items: center; }
.e12-node { width: 100%; max-width: 340px; display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--darker); border: 1px solid var(--gray-light); border-radius: var(--r-2); }
.e12-node .ico { position: relative; flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(0, 217, 255, 0.1); color: var(--primary); }
.e12-node .lab { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.e12-node .lab .n { font-weight: 600; font-size: 0.9375rem; }
.e12-node .lab .r { font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 0.5px; color: var(--muted); }
.e12-node.gate { border-color: rgba(0, 217, 255, 0.55); }
.e12-node.gate .ico { background: rgba(0, 217, 255, 0.12); color: var(--primary); }
.e12-node.gate .ico::after { content: ""; position: absolute; inset: -4px; border-radius: 13px; border: 2px solid var(--primary); opacity: 0; animation: e12-gate 6s ease-in-out infinite; }
@keyframes e12-gate { 0%, 70%, 100% { opacity: 0; transform: scale(0.88); } 78% { opacity: 0.9; transform: scale(1); } 90% { opacity: 0; transform: scale(1.18); } }
.e12-wire { position: relative; width: 2px; height: 40px; background: var(--gray-light); }
.e12-wire .dot { position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: var(--r-pill); }
.e12-wire .dot.out { background: var(--primary); box-shadow: 0 0 8px var(--primary); animation: e12-down 6s linear infinite; }
.e12-wire .dot.back { background: var(--white); box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); animation: e12-up 6s linear infinite; }
@keyframes e12-down { 0% { top: -6px; opacity: 0; } 8% { opacity: 1; } 42% { top: 38px; opacity: 1; } 50%, 100% { top: 38px; opacity: 0; } }
@keyframes e12-up { 0%, 50% { bottom: -6px; opacity: 0; } 58% { opacity: 1; } 92% { bottom: 38px; opacity: 1; } 100% { bottom: 38px; opacity: 0; } }
.e12-seats { width: 100%; max-width: 340px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.e12-seat { padding: 6px 12px; background: var(--darker); border: 1px solid var(--gray-light); border-radius: var(--r-pill); font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 0.5px; }
.e12-legend { margin-top: var(--s-3); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-family: var(--font-label); font-size: 0.625rem; letter-spacing: 0.5px; color: var(--muted); }
.e12-legend .k { display: inline-flex; align-items: center; gap: 6px; }
.e12-legend .sw { width: 10px; height: 10px; border-radius: var(--r-pill); }
.e12-legend .sw.out { background: var(--primary); }
.e12-legend .sw.back { background: var(--white); }

/* ---------- 23 · Dispatch chat (phone demo) ---------- */
.dispatch-grid { margin-top: var(--s-5); display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.dispatch-points { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 14px; }
.dispatch-points li { position: relative; padding-left: 26px; font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.dispatch-points li::before { content: ""; position: absolute; left: 6px; top: 0.55em; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--primary); }
.phone { justify-self: center; width: 100%; max-width: 400px; background: var(--darker); border: 1px solid var(--gray-light); border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.phone-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--gray); background: linear-gradient(180deg, rgba(247, 147, 26, 0.06), transparent); }
.phone-ava { width: 38px; height: 38px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; background: var(--gradient-squid); color: #1a1206; flex-shrink: 0; }
.phone-id { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.phone-id .n { font-weight: 600; font-size: 0.9375rem; }
.phone-id .s { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.5px; color: var(--green); display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }
.phone-id .s::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--green); box-shadow: 0 0 6px var(--green); }
.phone-tag { margin-left: auto; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border: 1px solid var(--gray-light); border-radius: var(--r-pill); padding: 3px 10px; flex-shrink: 0; }
.phone-body { padding: 16px; height: clamp(340px, 46svh, 430px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
.phone-body::-webkit-scrollbar { width: 6px; }
.phone-body::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: var(--r-pill); }
.msg { display: flex; gap: 8px; max-width: 90%; animation: msg-in 0.35s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg .m-ava { width: 26px; height: 26px; border-radius: var(--r-pill); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.msg .b { padding: 10px 14px; border-radius: 14px; font-size: var(--t-small); line-height: 1.5; }
.msg.dispatch .m-ava { background: var(--gradient-squid); color: #1a1206; }
.msg.dispatch .b { background: var(--gray); color: var(--white); border-top-left-radius: 4px; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .m-ava { background: rgba(0, 217, 255, 0.14); color: var(--primary); }
.msg.user .b { background: var(--primary); color: var(--black); border-top-right-radius: 4px; }
.msg-sys { align-self: center; max-width: 92%; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 1px; color: var(--muted); text-align: center; text-transform: uppercase; text-wrap: balance; animation: msg-in 0.35s ease both; }
.msg-merged { align-self: center; display: inline-flex; align-items: center; gap: 8px; background: rgba(130, 80, 223, 0.16); color: #c9b0f5; border: 1px solid rgba(130, 80, 223, 0.45); border-radius: var(--r-pill); padding: 7px 16px; font-size: var(--t-mono); font-weight: 600; animation: msg-in 0.35s ease both; }
.typing { display: inline-flex !important; gap: 4px; padding: 13px 14px !important; align-items: center; }
.typing span { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--muted); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.pr-card { margin-top: 10px; background: var(--darker); border: 1px solid var(--gray-light); border-radius: 10px; padding: 12px 13px; }
.pr-card .h { display: flex; align-items: center; gap: 8px; font-size: 0.6875rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.pr-card .pt { margin-top: 6px; font-size: var(--t-small); font-weight: 600; color: var(--white); }
.pr-card .chk { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pr-card .chk span { display: flex; align-items: flex-start; gap: 8px; font-size: 0.75rem; color: var(--muted); }
.pr-card .chk svg { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.phone-foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--gray); }
.phone-foot .fake-input { flex: 1; background: var(--gray); border-radius: var(--r-pill); padding: 10px 16px; font-size: var(--t-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-foot .fake-send { width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--primary); color: var(--black); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- 24 · Compare (managed) — stacked cards on the app shell ---------- */
.compare { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: var(--block-top); }
.compare .col { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--gray); border: 1px solid var(--gray-light); border-radius: var(--r-3); }
.compare .col.feature { border-color: var(--primary); background: linear-gradient(135deg, rgba(0, 217, 255, 0.07), var(--gray)); box-shadow: 0 4px 24px rgba(0, 217, 255, 0.1); }
.compare .col .k { font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 0.01em; color: var(--muted); }
.compare .col.feature .k { color: var(--primary); }
.compare .col h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.compare .col .sep { height: 1px; background: var(--gray-light); margin: 2px 0; }
.crow { display: flex; gap: 10px; align-items: center; font-size: 0.9375rem; }
.crow .m { flex-shrink: 0; display: inline-flex; }
.crow .m.ok { color: var(--primary); }
.crow .m.bad { color: var(--muted); }
.crow.no { color: var(--muted); }

/* ---------- 25 · Guardrail + install lead (managed) ---------- */
.guardrail { margin-top: var(--block-top); padding: 18px 20px; background: var(--darker); border: 1px solid var(--gray); border-left: 3px solid var(--gray-light); border-radius: 0 var(--r-2) var(--r-2) 0; }
.guardrail .k { font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.01em; color: var(--muted); }
.guardrail p { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); max-width: 66ch; line-height: 1.6; }
.install-lead { margin-top: var(--s-3); max-width: 66ch; font-size: var(--t-lead); color: var(--muted); line-height: 1.6; }

/* ---------- 26 · Tiers (managed pricing) ---------- */
.tiers { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: var(--block-top); }
/* app shell: lead the pricing stack with the featured paid tier */
.tiers .tier.feature { order: -1; }
.tier { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; background: var(--gray); border: 1px solid var(--gray-light); border-radius: var(--r-3); }
.tier.feature { border-color: var(--primary); background: linear-gradient(135deg, rgba(0, 217, 255, 0.06), var(--gray)); box-shadow: 0 4px 24px rgba(0, 217, 255, 0.1); }
.tier .badge { display: inline-flex; align-items: center; margin-bottom: 12px; background: var(--primary); color: var(--black); font-family: var(--font-label); font-size: 0.6875rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-pill); }
.tier .k { font-family: var(--font-label); font-size: var(--t-mono); letter-spacing: 0.01em; color: var(--muted); }
.tier.feature .k { color: var(--primary); }
.tier .price { margin-top: 12px; font-family: var(--font-label); font-size: 1.875rem; font-weight: 700; color: var(--white); line-height: 1.05; }
.tier .price span { font-size: var(--t-small); font-weight: 400; color: var(--muted); }
.tier.feature .price { color: var(--primary); }
.tier .price2 { margin-top: 4px; font-family: var(--font-label); font-size: 1.0625rem; font-weight: 700; color: var(--primary); }
.tier .price2 span { font-size: var(--t-mono); font-weight: 400; color: var(--muted); }
.tier .tsub { margin-top: 8px; font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.5px; color: var(--muted); }
.tier .tdesc { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.tiers-note { margin-top: 16px; font-size: var(--t-small); color: var(--muted); }

/* ============================================================
   >=701px — EDITORIAL DESKTOP SHELL
   The app bar becomes a single-row top nav; the dock disappears;
   heroes go two-column; peer sets become multi-column grids;
   full copy; the CTA pair sits side by side.
   ============================================================ */
@media (min-width: 701px) {
  :root {
    --pad-x: 40px;
    --pad-section: 80px;
    --appbar-h: 64px;
    --block-top: 24px;
    --t-h2: 2.25rem;
    --t-h1: 3.25rem;
    --t-body: 1.0625rem;
  }
  body { padding-bottom: 0; overscroll-behavior-y: auto; }
  .wide-only { display: inline; }

  /* --- app bar → editorial top nav (single row, tier switch centered) --- */
  .appbar-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo switch gh";
    padding-top: 12px; padding-bottom: 12px; gap: 24px;
  }
  .wordmark .wm-text { display: none; }
  .wordmark .wm-full { display: inline; }
  .wordmark img { width: 32px; height: 32px; }
  .tierswitch {
    width: auto; justify-self: center; margin-top: 0; padding: 3px;
    background: var(--darker); border: 1px solid var(--gray-light);
  }
  .tierswitch a { flex: 0 0 auto; min-height: 44px; font-size: 0.75rem; }
  .nav-gh .lab { display: inline; }
  .nav-gh { padding: 0 16px; }

  /* --- dock off --- */
  .dock { display: none; }

  /* --- hero: two-column editorial --- */
  .hero .wrap { padding-top: 56px; padding-bottom: var(--pad-section); }
  .hero h1 { max-width: 20ch; line-height: 1.06; letter-spacing: -0.03em; }
  .hero .sub { margin-top: 20px; max-width: 56ch; font-size: 1.0625rem; line-height: 1.7; }
  /* One column until Designer supplies the hero's right-rail product mock. The box that
     used to sit here held 48 words of philosophy, which is what pushed the hero to 169
     words against a competitor's 73. An empty rail is not better than no rail. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); }

  /* CTA pair side by side; ghost becomes an outline button */
  .cta-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
  .cta-row .btn { width: auto; flex: 0 0 auto; }
  .cta-row .btn.ghost {
    align-self: auto; padding: 14px 22px; min-height: 52px;
    border: 1px solid var(--primary); border-radius: var(--r-2); font-weight: 700;
  }
  .cta-row .btn.ghost:hover { border-color: var(--primary-light); background: rgba(0, 217, 255, 0.1); transform: translateY(-2px); }
  .cta-note { width: 100%; text-align: left; }
  .stat-strip { margin-top: 24px; }
  .stat-strip .chip { flex: 0 0 auto; }

  /* --- grids expand --- */
  .grid.min260 { grid-template-columns: repeat(3, 1fr); }
  .grid.min280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .card { display: block; padding: 18px; }
  .card-ico { display: none; }
  .card-head { display: contents; }
  .card h3 { font-size: 1.25rem; }
  .card .role { margin: 4px 0 12px; font-size: var(--t-mono); }
  .card .line { display: block; margin-top: 0; font-size: 0.9375rem; }

  .feature-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .loop { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .loop li { flex-direction: column; gap: 8px; }

  /* assembly line horizontal */
  .wrap > .line { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .station { text-align: left; }
  .wrap > .line .arrow { align-self: auto; transform: none; }

  /* merge-gate two column */
  .gate-block { grid-template-columns: 1fr 1fr; padding: 28px; gap: 24px; }

  /* day two-up */
  .day .row { flex-direction: row; gap: 20px; }
  .day .when { display: block; flex: 0 0 132px; }
  .day .when .m { margin-top: 2px; }

  /* seats grid instead of rail on wide desktop handled below; rail stays to 920 */
  .car-track { grid-template-columns: repeat(2, 1fr); }
  .poster-card img { aspect-ratio: 1 / 1; }
  .you-card { padding: 20px 24px; gap: 20px; }
  .you-card h3 { font-size: 1.125rem; }

  .why-grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 4vw, 56px); }

  /* topology + dispatch two column */
  .e12-grid { grid-template-columns: 1.05fr 0.95fr; }
  .dispatch-grid { grid-template-columns: 0.92fr 1.08fr; }

  /* compare + tiers 3-col */
  .compare { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .compare .col { padding: var(--s-4); }
  .compare .col h3 { font-size: 1.1875rem; }
  .tiers { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .tiers .tier.feature { order: 0; }
  .tier { padding: var(--s-4); }
  .tier .price { font-size: 2rem; }
  .tier .price2 { font-size: 1.125rem; }

  /* faq two column */
  .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }


  .manifesto { max-width: 24ch; font-size: clamp(2rem, 3.5vw, 2.75rem); }
  .steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .steps li { flex-direction: column; }
}

/* ---------- 27 · Desktop refinement (>=900px) ---------- */
@media (min-width: 900px) {
  .hero-echo { display: block; }
  .car-track { grid-template-columns: repeat(3, 1fr); }
  /* managed hero echo card visible beside lead */
  .hero.managed .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.9fr); }
}

@media (min-width: 1200px) {
  :root { --pad-section: 96px; }
  .hero .wrap { padding-top: 88px; }
  .wrap { padding-left: max(64px, env(safe-area-inset-left)); padding-right: max(64px, env(safe-area-inset-right)); }
}

/* ---------- 28 · Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .runner { display: none !important; }
  .gh-cursor, .gh-merged { display: none !important; }
  .gh-btn { animation: none !important; }
  [data-fx] { animation: none !important; }
  .e12-wire .dot { display: none !important; }
  .e12-node.gate .ico::after { display: none !important; }
  .you-card { border-color: var(--primary); }
  .dock-cta { transition: none; }
}

/* the 24/7 Agent seat reuses the .you-card shell; it is a seat, not a person */
.agent-card { align-items: flex-start; }
.agent-card .avatar { border-color: var(--gray-light); color: var(--muted); }

/* ---- God-View section (job c, 07-25) — read-only omniscience card ---- */
.godview {
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: var(--r-3);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0, 217, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #0b1a2c, var(--black));
  padding: var(--s-6) var(--s-5);
  overflow: hidden;
}
.gv-heavens { text-align: center; max-width: 62ch; margin: 0 auto; }
.gv-title { margin-top: var(--s-2); }
.gv-kicker {
  font-family: var(--font-label); color: var(--primary);
  letter-spacing: 0.01em; font-size: var(--t-small);
  margin-top: var(--s-2);
}
.gv-sub { margin-top: var(--s-3); max-width: 60ch; margin-inline: auto; }
.gv-realm {
  margin-top: var(--s-6); padding: var(--s-5);
  background: var(--darker); border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: var(--r-3);
}
.gv-realm-label {
  font-family: var(--font-label); color: var(--muted); text-align: center;
  letter-spacing: 0.01em; font-size: var(--t-mono);
  margin-bottom: var(--s-4);
}
.gv-altars { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
.altar {
  background: var(--gray); border: 1px solid var(--gray-light);
  border-radius: var(--r-2); padding: var(--s-4);
}
.altar .ac { font-family: var(--font-label); color: var(--primary-light); font-size: var(--t-mono); }
.altar .an { font-weight: 700; margin-top: var(--s-1); }
.altar .ad { margin-top: var(--s-2); font-size: var(--t-small); }
.altar .ro {
  display: inline-block; margin-top: var(--s-3);
  font-family: var(--font-label); font-size: var(--t-mono); color: var(--muted);
  border: 1px solid var(--gray-light); background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-pill); padding: 2px 10px;
}
.gv-laws { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.gv-law {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-3); align-items: start;
  background: rgba(0, 217, 255, 0.04); border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: var(--r-2); padding: var(--s-3) var(--s-4);
}
.gv-law .rn { font-family: var(--font-label); font-weight: 700; color: var(--primary); font-size: var(--t-h3); }
.gv-caption { display: block; text-align: center; color: var(--primary); margin-top: var(--s-5); }
@media (max-width: 700px) {
  .godview { padding: var(--s-5) var(--s-4); }
  .gv-law { grid-template-columns: 1.8rem 1fr; }
}
