/* ---------------------------------------------------------------------------
   Digby marketing site -- the night bridge.

   One committed aesthetic rather than a light theme with a dark fallback.
   Digby is a raccoon with a headlamp working a queue at 2am; the console he
   ships with is a dark instrument panel; the site should be the same room.
   A site that flips to cream in daylight is two products.

   The rules the whole thing follows:
     - true greys, no blue or brown cast, elevation by lightness not shadow
     - exactly one saturated colour, amber, and it always means "live"
     - type does the work: a grotesque display face against a plain text face
     - small radii. Soft corners were most of what read as cozy.
   --------------------------------------------------------------------------- */
:root {
  --bg: #0B0C0E;
  --bg-soft: #101216;
  --bg-tint: #16130C;
  --card: #131519;
  --ink: #F2F3F5;
  --ink-2: #B9BEC7;
  --muted: #7D838F;
  --line: #1E2126;
  --line-strong: #2E333B;

  /* The headlamp. Nothing else in the palette is saturated. */
  --brand: #FFB020;
  --brand-dark: #FFC457;
  --brand-soft: #2A1E08;

  --ok: #3ECF8E;
  --ok-soft: #0F2A20;
  --warn: #FFB020;
  --warn-soft: #2A1E08;
  --bad: #FF6B5B;
  --bad-soft: #2E1613;
  --info: #7C9CFF;
  --info-soft: #171D2F;

  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 90px rgba(0,0,0,.65);
  --radius: 10px;
  --radius-sm: 6px;

  --panel-bg: #08090B;
  --panel-fg: #F2F3F5;
  --panel-muted: #7D838F;
  --panel-line: #1E2126;
  --panel-bubble: #131519;
  --panel-bubble-you: #1B1F25;

  --grid-line: rgba(255,255,255,.035);
  --mesh-a: rgba(255,176,32,.16);
  --mesh-b: rgba(124,156,255,.07);
  --mesh-c: rgba(62,207,142,.05);

  --font-display: "Archivo", "Instrument Sans", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; font-family: var(--font-display); }
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; line-height: 0.98; letter-spacing: -0.042em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 3px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow.plain { background: transparent; padding: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.eyebrow .num { font-family: var(--font-mono); font-weight: 500; opacity: .7; }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; line-height: 1.55; }
.center .lede { margin: 0 auto; }
.head { display: grid; gap: 16px; justify-items: start; margin-bottom: 48px; max-width: 760px; }
.head.center { justify-items: center; margin-left: auto; margin-right: auto; text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; font-family: inherit; transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #0B0C0E; font-weight: 800; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, #fff); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: var(--radius-sm); }
.btn .arr { transition: transform 140ms ease; }
.btn:hover .arr { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.link { color: var(--brand); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link:hover .arr { transform: translateX(3px); }
.link .arr { transition: transform 140ms ease; }
.pill { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill.brand { background: var(--brand-soft); color: var(--brand-dark); border-color: transparent; }
.pill.dim { border-style: dashed; }
kbd.key { font-family: var(--font-mono); font-size: 12px; padding: 2px 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--bg-soft); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 80ms; } .rv.d2 { transition-delay: 160ms; } .rv.d3 { transition-delay: 240ms; } .rv.d4 { transition-delay: 320ms; } .rv.d5 { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- nav ---------- */
nav.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -0.03em; font-family: var(--font-display); }
.brand svg { width: 30px; height: 30px; }
nav.top ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; font-size: 14.5px; font-weight: 600; }
nav.top ul a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; display: inline-block; transition: background 120ms ease, color 120ms ease; }
nav.top ul a:hover { color: var(--ink); background: var(--bg-soft); }
nav.top ul a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .soon { font-size: 13px; color: var(--muted); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
@media (max-width: 900px) {
  nav.top ul, .nav-actions .soon, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  nav.top.open ul { display: grid; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 18px; gap: 2px; box-shadow: var(--shadow); }
  nav.top.open ul a { padding: 12px 10px; font-size: 16px; }
}

/* ---------- hero ---------- */
.hero { padding: 96px 0 56px; position: relative; overflow: hidden; isolation: isolate; }
.hero .bgfx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .bgfx::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 18% 10%, var(--mesh-a), transparent 70%),
  radial-gradient(45% 45% at 85% 5%, var(--mesh-b), transparent 70%),
  radial-gradient(35% 35% at 60% 70%, var(--mesh-c), transparent 70%); }
.hero .bgfx::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 100%); }
.hero .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); max-width: 56ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero .sub { font-size: 13.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero .sub span::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.hero.sub-hero { padding: 80px 0 48px; }
.hero.sub-hero .wrap { justify-items: start; text-align: left; }
.hero.sub-hero h1 { font-size: clamp(36px, 5vw, 60px); max-width: 18ch; }
.hero.sub-hero .actions { justify-content: flex-start; }

/* ---------- product mock ---------- */
.mock { width: 100%; max-width: 1080px; margin-top: 36px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; position: relative; }
.mock::before { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 60%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--brand) 30%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar .url { margin-left: 10px; flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.mock-body { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 440px; }
@media (max-width: 800px) { .mock-body { grid-template-columns: 1fr; } .mock-psa { display: none; } }
.mock-psa { padding: 22px; background: var(--bg-soft); display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); }
.mock-psa .ticket-title { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.mock-psa .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-psa .row { height: 10px; border-radius: 5px; background: var(--line); }
.mock-psa .note { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; line-height: 1.5; display: grid; gap: 4px; }
.mock-psa .note .k { color: var(--muted); }
.panel { background: var(--panel-bg); color: var(--panel-fg); display: grid; grid-template-rows: auto auto 1fr auto; }
.panel-head { padding: 14px 16px; border-bottom: 1px solid var(--panel-line); display: flex; align-items: center; gap: 10px; }
.panel-head svg { width: 30px; height: 30px; }
.panel-head b { display: block; font-size: 14px; }
.panel-head span { font-size: 12px; color: var(--panel-muted); }
.panel-head .lamp { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(255,176,32,.16), 0 0 12px var(--brand); animation: lamp 1.6s ease-in-out infinite; }
@keyframes lamp { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .panel-head .lamp { animation: none; } }
.tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--panel-line); font-size: 12px; }
.tabs span { padding: 5px 10px; border-radius: 6px; color: var(--panel-muted); }
.tabs span.on { background: #1B1F25; color: var(--panel-fg); }
.chat { padding: 12px 14px; display: grid; gap: 10px; align-content: start; font-size: 13px; line-height: 1.5; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 10px; background: var(--panel-bubble); }
.msg.you { background: var(--panel-bubble-you); justify-self: end; }
.toolrow { font-family: var(--font-mono); font-size: 11.5px; color: var(--panel-muted); }
.toolrow b { color: var(--ok); font-weight: 500; }
.pcard { border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent); background: rgba(255,176,32,.07); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 8px; }
.pcard .t { font-weight: 700; color: var(--brand); font-size: 13px; }
.pcard ul { margin: 0; padding-left: 16px; display: grid; gap: 2px; font-size: 12.5px; }
.pcard .acts { display: flex; gap: 8px; }
.pcard button { font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 7px; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-fg); cursor: pointer; }
.pcard button.ok { background: var(--brand); color: #0B0C0E; border-color: var(--brand); }
.pcard button:disabled { opacity: .5; cursor: default; }
.pcard .done { font-size: 12px; color: var(--panel-muted); }
.composer { border-top: 1px solid var(--panel-line); padding: 10px 12px; font-size: 12.5px; color: var(--panel-muted); }

/* ---------- strip / logos ---------- */
.strip { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip .wrap { display: flex; gap: 10px 32px; flex-wrap: wrap; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; color: var(--ink-2); font-size: 14px; }
.strip .lbl { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.strip .next { font-weight: 500; opacity: .7; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards, .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }
.card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: grid; gap: 12px; align-content: start; position: relative; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 15px; }
.card p b { color: var(--ink-2); font-weight: 700; }
.card .num { font-family: var(--font-mono); font-size: 11px; color: var(--brand); letter-spacing: .06em; text-transform: uppercase; }
.card.hl { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: linear-gradient(180deg, var(--bg-tint), var(--card) 60%); }

/* ---------- band (dark feature) ---------- */
.band { border-radius: var(--radius); background: var(--panel-bg); border: 1px solid var(--line); color: var(--panel-fg); padding: 56px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 100% 0%, rgba(255,176,32,.16), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(124,156,255,.06), transparent 70%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(60% 80% at 80% 50%, #000, transparent); -webkit-mask-image: radial-gradient(60% 80% at 80% 50%, #000, transparent); }
.band h2 { color: #fff; }
.band .lede, .band p { color: var(--panel-muted); }
.band .eyebrow { background: rgba(255,176,32,.14); color: var(--brand); }
.band .btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.band .btn.primary { background: var(--brand); color: #0B0C0E; border-color: var(--brand); }
.band .txt { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: 36px 26px; } }

/* ---------- metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.metric { padding: 28px 26px; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric b { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.metric b em { font-style: normal; color: var(--brand-dark); }
.metric span { color: var(--ink-2); font-size: 14px; }
.metric small { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .metrics { grid-template-columns: 1fr 1fr; } .metric:nth-child(2) { border-right: 0; } .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr; } .metric { border-right: 0; border-bottom: 1px solid var(--line); } .metric:last-child { border-bottom: 0; } }

/* ---------- feature rows ---------- */
.rows { display: grid; gap: 96px; }
.row2 { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.row2.flip .txt { order: 2; }
.row2 .txt { display: grid; gap: 16px; justify-items: start; }
.row2 .txt p { color: var(--muted); font-size: 16.5px; }
.row2 ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.row2 li { display: flex; gap: 10px; align-items: flex-start; }
.row2 li::before { content: "✓"; color: var(--ok); font-weight: 800; flex: none; }
@media (max-width: 860px) { .row2 { grid-template-columns: 1fr; gap: 28px; } .row2.flip .txt { order: 0; } .rows { gap: 64px; } }
.shot { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot .hd { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; background: var(--bg-soft); }
.shot .bd { padding: 16px; display: grid; gap: 6px; font-size: 13.5px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); font-size: 13px; }
.kv .src { font-size: 11.5px; color: var(--muted); }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.bar i { display: block; height: 100%; background: var(--brand); width: var(--w); border-radius: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; height: 1px; background: var(--line-strong); z-index: 0; }
.step { display: grid; gap: 8px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); position: relative; z-index: 1; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; display: grid; place-items: center; font-family: var(--font-mono); }
.step h4 { font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; }
.step.gate { border-color: color-mix(in srgb, var(--brand) 60%, transparent); background: var(--bg-tint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.step.gate .n { background: var(--brand); color: #0B0C0E; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- integrations ---------- */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.logo { position: relative; padding: 18px 16px; border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line)); border-radius: var(--radius); background: var(--card); font-family: var(--font-display); font-weight: 600; display: grid; gap: 3px; overflow: hidden; }
/* Lit means shipping today: the same filament and lamp the console draws on a
   working connection. Someone who signs up meets this grid again on their own
   Connections page, lit with their own stack. */
.logo::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), transparent); }
.logo::after { content: ""; position: absolute; right: 14px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.logo small { font-family: var(--font-mono); font-weight: 400; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; }
/* Three states, the same three the console shows, and for the same reason:
   "we built the adapter" is not "it is running against a live tenant", and a
   lit tile that means the first one is a lie a buyer will catch. */
.logo.pending { border-color: var(--line); }
.logo.pending::before { background: none; }
.logo.pending::after { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 70%, transparent); }
.logo.next { border-color: var(--line); border-style: dashed; color: var(--muted); background: transparent; }
.logo.next::before { background: none; }
.logo.next::after { background: var(--line-strong); box-shadow: none; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logos { grid-template-columns: 1fr 1fr; } }

/* ---------- catalog counts ---------- */
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.count { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: grid; gap: 4px; }
.count b { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.count span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.count small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .counts { grid-template-columns: 1fr 1fr; } }

/* ---------- learning: ladder ---------- */
.ladder { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow-lg); }
.rung { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); position: relative; }
.rung:last-child { border-bottom: 0; }
.rung .lv { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
.rung .lv b { font-family: var(--font-display); font-size: 30px; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.rung h4 { font-size: 16px; }
.rung p { font-size: 14px; color: var(--muted); }
.rung .who { justify-self: end; }
.rung.now { background: linear-gradient(90deg, var(--bg-tint), transparent 70%); }
.rung.now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
@media (max-width: 600px) { .rung { grid-template-columns: 52px 1fr; } .rung .who { grid-column: 2; justify-self: start; } }

/* ---------- learning: flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: flow; }
.flow > div { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: grid; gap: 8px; align-content: start; position: relative; }
.flow > div::before { counter-increment: flow; content: "0" counter(flow); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--brand); }
.flow h4 { font-size: 16px; }
.flow p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------- learning: outcomes + ledger ---------- */
.outcomes { display: grid; gap: 0; }
.outcome { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.outcome:last-child { border-bottom: 0; }
.outcome .id { font-family: var(--font-mono); color: var(--muted); font-size: 12px; }
.ledger { display: grid; gap: 0; }
.ledger > div { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: start; }
.ledger > div:last-child { border-bottom: 0; }
.ledger .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--brand); }
.ledger .dot.ok { background: var(--ok); } .ledger .dot.info { background: var(--info); } .ledger .dot.bad { background: var(--bad); }
.ledger .src { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.scopes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .scopes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .scopes { grid-template-columns: 1fr; } }

/* ---------- compare ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 900px; }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--bg-soft); }
.cmp thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; margin-top: 3px; }
.cmp tbody th { font-weight: 700; color: var(--ink); width: 190px; background: var(--card); position: sticky; left: 0; z-index: 1; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td { color: var(--ink-2); }
.cmp .digby { background: var(--bg-tint); border-left: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); border-right: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.cmp thead .digby { background: var(--brand-soft); color: var(--brand); }
.cmp .y::before { content: "●"; color: var(--ok); margin-right: 7px; }
.cmp .p::before { content: "◐"; color: var(--warn); margin-right: 7px; }
.cmp .n::before { content: "○"; color: var(--muted); margin-right: 7px; }
.cmp-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; max-width: 80ch; }

/* ---------- roadmap ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { font-family: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .lanes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lanes { grid-template-columns: 1fr; } }
.lane { display: grid; gap: 10px; }
.lane-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); font-weight: 800; font-size: 14px; position: sticky; top: 78px; z-index: 3; }
.lane-hd .cnt { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--muted); }
.lane-hd i { width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; display: inline-block; background: var(--muted); }
.lane.shipped .lane-hd i { background: var(--ok); } .lane.now .lane-hd i { background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); } .lane.next .lane-hd i { background: var(--info); } .lane.later .lane-hd i { background: var(--muted); }
.item { padding: 16px 16px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: grid; gap: 8px; transition: transform 140ms ease, box-shadow 140ms ease; }
.item:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.item h4 { font-size: 14.5px; line-height: 1.3; }
.item p { font-size: 13px; color: var(--muted); }
.item .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.item .tags .pill { font-size: 11px; padding: 2px 8px; }
.item.hidden { display: none; }
.lane.collapsed .item.extra:not(.hidden) { display: none; }
.lane.collapsed .item.extra { display: none; }
.showall { font-family: inherit; font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); background: transparent; color: var(--ink-2); cursor: pointer; }
.showall:hover { background: var(--bg-soft); }
.lane.now .item { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.lane.later .item { border-style: dashed; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 22px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 0 18px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 16px; color: var(--muted); font-size: 15px; }

/* ---------- cta + footer ---------- */
.cta { border-radius: var(--radius); background: var(--panel-bg); border: 1px solid var(--line); color: var(--ink); padding: 72px 40px; display: grid; gap: 16px; justify-items: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 50% 120%, rgba(255,176,32,.20), transparent 70%); }
.cta h2 { color: var(--ink); }
.cta p { color: var(--muted); max-width: 56ch; }
.cta .eyebrow { background: rgba(255,176,32,.14); color: var(--brand); }
.cta .btn.primary { border-color: var(--brand); }
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.fcols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .fcols { grid-template-columns: 1fr 1fr; } }
.fcols h4 { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.fcols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fcols a { text-decoration: none; }
.fcols a:hover { color: var(--ink); }
.fbottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* ---------- misc ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.quote { border-left: 3px solid var(--brand); padding: 6px 0 6px 18px; font-size: 18px; color: var(--ink-2); font-style: italic; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.checklist li { position: relative; padding-left: 24px; }
.checklist li::before { content: "✓"; color: var(--ok); font-weight: 800; position: absolute; left: 0; top: 0; }
.checklist.x li::before { content: "✕"; color: var(--bad); }
.sep { height: 1px; background: var(--line); margin: 48px 0; }
/* ---------------------------------------------------------------------------
   Signal, not decoration.

   The hero already draws its own grid and mesh. A second global grid would
   moire against it in exactly the place they overlap, so this is only a
   fixed low light -- the same one the console uses -- plus the details that
   a page this dark gets wrong by default.
   --------------------------------------------------------------------------- */
html { background: var(--bg); }
/* isolation, not position: a negative-z pseudo would otherwise escape to the
   root stacking context and be painted over by body's own background. */
body { isolation: isolate; }
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 520px at 8% -10%, rgba(255, 176, 32, .045), transparent 70%);
}

/* Any figure set in the display face gets tabular numerals: a number that
   changes width as it counts is the cheapest-looking thing on a page. */
h1, h2, h3, h4, .metric b, .count b, .rung .lv b, .mono { font-variant-numeric: tabular-nums; }

/* On a page this dark the browser default is the only blue on screen, and it
   reads as a rendering fault rather than a selection. */
::selection { background: var(--brand); color: #0B0C0E; }

/* Dark scrollbars, so the gutter is not the one light edge in the window. */
* { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 4px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }
