/* DataBeansAI — services site
   Tokens and composition carried over from the original single-file build,
   extended for the adoption / offers / FAQ / newsletter sections. */

:root {
  --bg: #121415;
  --bg-deep: #0c0e0f;
  --surface: #191b1d;
  --surface-2: #22262a;
  --text: #f4f5f6;
  --muted: #8b9197;
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .065);
  /* Logo teal, used verbatim on dark. 8.5:1 on --bg. */
  --accent: #43c0c9;
  --accent-ink: #06201f;
  --accent-soft: rgba(67, 192, 201, .12);
  --accent-glow: rgba(67, 192, 201, .16);
  --grid: rgba(255, 255, 255, .055);
  --shadow: rgba(0, 0, 0, .3);
  --ok: #6fd6a5;
  --warn: #e2b571;
  --max: 1480px;
  --radius: 12px;

  --font-ui: Geist, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Sans", Geist, ui-sans-serif, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html[data-theme="light"] {
  --bg: #f5f7f9;
  --bg-deep: #e9edf1;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --text: #15191d;
  /* Dark enough to clear 4.5:1 on --bg-deep, the worst case (footer, alt sections). */
  --muted: #5c666f;
  --line: rgba(15, 25, 34, .14);
  --line-soft: rgba(15, 25, 34, .075);
  /* Logo teal darkened until it carries body text. 5.9:1 on white, 5.3:1 on --bg. */
  --accent: #0e6f77;
  --accent-ink: #ffffff;
  --accent-soft: rgba(14, 111, 119, .1);
  --accent-glow: rgba(14, 111, 119, .1);
  --grid: rgba(15, 25, 34, .07);
  --shadow: rgba(31, 43, 54, .13);
  --ok: #17855a;
  --warn: #9a6a17;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.mono { font-family: var(--font-mono); }
.wrap { width: min(100% - 8vw, var(--max)); margin-inline: auto; }
.blue { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 99;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- signal bar */

.signal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 34px;
  padding: 7px 4vw;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
  color: var(--muted);
  font: 600 10px/1.2 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.status { display: inline-flex; align-items: center; gap: 9px; }

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(20px);
}

/* The lockup is a background image so the wordmark can flip with the theme;
   the accessible name lives on the anchor. */
.brand { display: inline-flex; width: max-content; }
.brand-logo {
  display: block;
  width: 166px;
  height: 34px;
  background: url("../brand/logo-dark.svg") no-repeat left center / contain;
}
html[data-theme="light"] .brand-logo { background-image: url("../brand/logo-light.svg"); }

.nav { display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
.nav a { transition: color .18s ease; }
.nav a:hover { color: var(--text); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

.theme-toggle, .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
}

.theme-toggle {
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 600 10px var(--font-mono);
}

.toggle-track {
  position: relative;
  width: 28px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .18s ease;
}
html[data-theme="light"] .toggle-thumb { transform: translateX(12px); }

.header-cta {
  padding: 0 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}

.mobile-menu { display: none; }

/* ---------------------------------------------------------------- typography */

h1, h2, h3, p { margin-top: 0; }

h1, h2, blockquote {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(44px, 5.2vw, 80px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.4vw, 66px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.04;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: var(--muted);
  font: 650 10px/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section { padding-block: 120px; }
.section-alt { border-block: 1px solid var(--line); background: var(--bg-deep); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .6fr);
  align-items: end;
  gap: 6vw;
  margin-bottom: 60px;
}
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-heading > p:last-child, .section-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-ghost { border: 1px solid var(--line); background: transparent; color: var(--text); }
.button-ghost:hover { border-color: var(--accent); }
.button-quiet {
  min-height: 0;
  padding: 0;
  color: var(--accent);
  font: 600 12px var(--font-mono);
  letter-spacing: .06em;
}
.button-quiet:hover { transform: none; text-decoration: underline; }
.button[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ---------------------------------------------------------------- hero */

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 45%, transparent 96%);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* One soft wash behind the hero only — not a dashboard collage. */
.hero-wash {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 22% 30%, var(--accent-glow), transparent 70%),
    radial-gradient(45% 45% at 85% 15%, var(--accent-glow), transparent 65%);
  opacity: .9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 5vw;
  align-items: center;
  min-height: 720px;
  padding-block: 80px;
}

.hero-copy > p.hero-sub {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.62;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  color: var(--muted);
  font: 600 10px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-note a { color: var(--accent); }
.hero-note a:hover { text-decoration: underline; }
.hero-note-sep { opacity: .5; }

/* ---------------------------------------------------------------- console */

.console {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 89%, transparent);
  box-shadow: 0 38px 100px var(--shadow);
  backdrop-filter: blur(18px);
}
.console::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -15px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
}
.console-head, .console-foot, .flow-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.console-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.console-head > div { display: grid; gap: 7px; }
.console-head small, .flow-label, .console-foot {
  color: var(--muted);
  font: 9px var(--font-mono);
  letter-spacing: .08em;
}
.console-head strong { font-size: 15px; font-weight: 600; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 28px; }
.metric { padding: 0 16px; border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { padding-right: 0; border: 0; }
.metric span, .metric small { display: block; color: var(--muted); font-size: 9px; }
.metric strong {
  display: block;
  margin: 7px 0 4px;
  font: 500 clamp(24px, 2.3vw, 34px) var(--font-mono);
  letter-spacing: -.06em;
}

.flow-label { margin-bottom: 12px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.flow span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
}
.flow .active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
  color: var(--text);
}

.chart {
  position: relative;
  height: 140px;
  margin-top: 24px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 46px);
}
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart path { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--accent-soft); stroke: none; }
.console-foot { padding-top: 14px; }

/* ---------------------------------------------------------------- trust strip */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.trust-strip span {
  padding: 20px 2.5vw;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font: 600 9px var(--font-mono);
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
}
.trust-strip span:last-child { border-right: 0; }

/* ---------------------------------------------------------------- adoption */

.adoption-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.path-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.path-card.is-platform {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--surface);
}
.path-tag {
  display: inline-flex;
  width: max-content;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 600 9px var(--font-mono);
  letter-spacing: .12em;
}
.path-card h3 {
  margin: 20px 0 10px;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 560;
  letter-spacing: -.05em;
}
.path-lede { margin-bottom: 14px; font-size: 16px; line-height: 1.5; }
.path-card > p.path-body { color: var(--muted); font-size: 14px; line-height: 1.65; }

.path-points { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.path-points li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.path-points li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }

.path-fit {
  margin: 20px 0 22px;
  color: var(--muted);
  font: 600 10px var(--font-mono);
  letter-spacing: .06em;
  line-height: 1.6;
}
.path-card .button { margin-top: auto; align-self: flex-start; }

.adoption-footnote {
  margin: 24px 0 0;
  padding: 20px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ------------------------------------------------------- hosting / deployment */

.deployment { margin-top: 46px; padding-top: 36px; border-top: 1px solid var(--line); }
.deployment-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: baseline; margin-bottom: 26px; }
.deployment-head .column-label { margin-bottom: 0; }
.deployment-head > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.deployment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.deployment-option {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.deployment-option h3 { margin: 18px 0 10px; font-size: 17px; font-weight: 580; letter-spacing: -.025em; }
.deployment-option > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.deployment-option .path-fit { margin: 18px 0 0; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.deployment .honesty-note { margin-top: 20px; }

/* ---------------------------------------------------------------- lifecycle */

.lifecycle-block { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--line); }
.lifecycle { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.stage {
  position: relative;
  min-height: 200px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stage.accent {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--accent-soft);
}
.stage small { color: var(--muted); font: 8px var(--font-mono); letter-spacing: .1em; }
.stage strong { display: block; margin: 46px 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.stage span { display: block; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* ---------------------------------------------------------------- architecture */

.architecture {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 80px var(--shadow);
}
.architecture-top, .architecture-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: var(--muted);
  font: 9px var(--font-mono);
  letter-spacing: .08em;
}
.architecture-top { border-bottom: 1px solid var(--line); }
.architecture-body { display: grid; gap: 12px; padding: 26px; }

.layer {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.layer.accent {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}
.layer.choice { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.layer-label { color: var(--muted); font: 9px var(--font-mono); letter-spacing: .1em; }
.layer-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.layer-items span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
  text-align: center;
}
.layer.choice .layer-items span:first-child {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: var(--accent-soft);
  font-weight: 600;
}
.architecture-rail { justify-content: center; gap: 6vw; flex-wrap: wrap; border-top: 1px solid var(--line); }
.architecture-note {
  margin: 18px 0 0;
  color: var(--muted);
  font: 600 10px var(--font-mono);
  letter-spacing: .08em;
  text-align: center;
}

/* ---------------------------------------------------------------- service packs */

.pack-grid,
.lane-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pack,
.lane {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  background: var(--surface);
  transition: background .2s ease;
}
.pack:hover, .lane:hover { background: var(--accent-soft); }
.pack .number, .lane .number { color: var(--muted); font: 10px var(--font-mono); }
.pack h3, .lane h3 { margin: 34px 0 10px; font-size: 21px; font-weight: 560; letter-spacing: -.035em; }
.pack p, .lane p { margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
/* The lane titles are the load-bearing nouns of the whole pitch. */
.lane h3 { color: var(--text); }
.lane:hover h3 { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 8px var(--font-mono);
  letter-spacing: .05em;
}

/* ------------------------------------------------- measures + focus areas */

.focus-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }

.column-label {
  margin-bottom: 16px;
  color: var(--muted);
  font: 600 9px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kpi { min-height: 118px; padding: 18px; background: var(--surface); }
.kpi span, .kpi strong, .kpi small { display: block; }
.kpi span { color: var(--muted); font: 8px var(--font-mono); letter-spacing: .09em; }
.kpi strong { margin: 26px 0 6px; font-size: 16px; font-weight: 600; }
.kpi small { color: var(--muted); font-size: 10px; line-height: 1.5; }

.sector-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sector-list li {
  display: grid;
  gap: 5px;
  padding: 14px 0 14px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-color .18s ease, padding-left .18s ease;
}
.sector-list li:hover { border-left-color: var(--accent); padding-left: 18px; }
.sector-list strong { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.sector-list span { color: var(--muted); font-size: 12px; line-height: 1.55; }

/* ---------------------------------------------------------------- offers */

.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.offer {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.offer.featured {
  border-color: var(--accent);
  box-shadow: 0 24px 60px var(--shadow);
}
.offer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.offer-step { color: var(--muted); font: 10px var(--font-mono); letter-spacing: .1em; }
.offer-price {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font: 600 10px var(--font-mono);
  white-space: nowrap;
}
.offer.featured .offer-price { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.offer h3 { margin: 22px 0 12px; font-size: 20px; font-weight: 580; letter-spacing: -.035em; }
.offer > p { color: var(--muted); font-size: 13px; line-height: 1.62; }
.offer ul { margin: 16px 0 22px; padding: 0; list-style: none; display: grid; gap: 9px; }
.offer li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.offer li::before { content: "·"; color: var(--accent); font-weight: 700; }
.offer .button { margin-top: auto; }

/* ---------------------------------------------------------------- products */

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.product h3 { margin: 0; font-size: 24px; font-weight: 580; letter-spacing: -.045em; }
.badge {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 9px var(--font-mono);
  letter-spacing: .1em;
}
.badge.live { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); color: var(--ok); }
.badge.roadmap { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.product p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.product .button-quiet { margin-top: auto; }

/* ---------------------------------------------------------------- company */

.company { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.company-quote, .company-copy { min-height: 560px; padding: 7vw 5vw; }
.company-quote { display: flex; align-items: flex-end; background: var(--bg-deep); }
blockquote { margin: 0; font: 400 clamp(26px, 2.7vw, 44px)/1.14 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.company-copy { display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.company-copy h2 { margin-bottom: 24px; font-size: clamp(30px, 3.4vw, 50px); }
.company-copy > p { color: var(--muted); font-size: 15px; line-height: 1.68; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border-top: 1px solid var(--line); }
.credentials span { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font: 9px var(--font-mono); letter-spacing: .05em; }
.honesty-note {
  margin: 26px 0 0;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
/* The accent tint shifts the backdrop enough that plain --muted misses AA here,
   in both directions: too dark on light, too dim on the company panel. Typed
   selector so it also outranks `.company-copy p`. */
p.honesty-note { color: #9ba2a9; }
html[data-theme="light"] p.honesty-note { color: #4a545c; }

/* ---------------------------------------------------------------- faq */

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 520;
  letter-spacing: -.03em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font: 400 22px var(--font-mono);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { max-width: 860px; margin: 0; padding-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.72; }

/* ---------------------------------------------------------------- forms */

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label {
  color: var(--muted);
  font: 600 9px var(--font-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font: 14px/1.5 inherit;
  transition: border-color .18s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-status {
  min-height: 20px;
  margin: 0;
  font: 600 12px var(--font-mono);
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--warn); }

.form-legal { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* ---------------------------------------------------------------- newsletter */

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: start;
}
.newsletter-copy h2 { margin-bottom: 18px; font-size: clamp(30px, 3.2vw, 46px); }
.newsletter-copy > p { color: var(--muted); font-size: 15px; line-height: 1.68; }

.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.topic-chips span {
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font: 500 11px var(--font-mono);
  letter-spacing: .02em;
}
.newsletter-audience { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.newsletter-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.newsletter-samples-note { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.newsletter-samples { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 11px; }
.newsletter-samples li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.5;
}
.newsletter-samples li::before { content: "—"; color: var(--accent); font-family: var(--font-mono); }
.newsletter-samples li:last-child { border-bottom: 0; padding-bottom: 0; }

.newsletter-form { display: grid; gap: 12px; }
.newsletter-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-line input { min-height: 52px; }

/* ---------------------------------------------------------------- book */

.book { position: relative; isolation: isolate; overflow: hidden; padding-block: 120px; }
.book-inner { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 6vw; align-items: start; }
.book-inner h2 { margin-bottom: 22px; }
.book-inner > div > p.book-copy { color: var(--muted); font-size: 16px; line-height: 1.68; }
/* Cal is the intended route out of this section, so it outweighs the form's submit. */
.book-direct { margin-top: 26px; min-height: 58px; padding: 0 30px; font-size: 15px; }
.book-direct-note { margin: 12px 0 0; max-width: 44ch; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-lines { display: grid; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-line { display: grid; gap: 5px; }
.contact-line small { color: var(--muted); font: 9px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.contact-line a, .contact-line span { font-size: 16px; font-weight: 500; }
.contact-line a:hover { color: var(--accent); }
.book-form-shell { padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 30px 80px var(--shadow); }

/* ---------------------------------------------------------------- footer */

footer { padding: 60px 4vw 22px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; padding-bottom: 60px; }
.footer-main p { margin: 13px 0 0; max-width: 380px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.footer-newsletter { display: grid; gap: 10px; max-width: 380px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-newsletter label { color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-newsletter input { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 13px; }
.footer-newsletter input:focus { border-color: var(--accent); outline: none; }
.footer-newsletter .button { min-height: 44px; padding: 0 18px; font-size: 12px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-links div { display: flex; flex-direction: column; gap: 11px; }
.footer-links strong { margin-bottom: 6px; color: var(--muted); font: 9px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.footer-links a { width: max-content; font-size: 12px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 8px var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- simple pages */

.simple { display: grid; place-items: center; min-height: 70vh; padding: 90px 4vw; text-align: center; }
.simple h1 { margin-inline: auto; font-size: clamp(38px, 5vw, 66px); }
.simple p { max-width: 620px; margin-inline: auto; color: var(--muted); font-size: 16px; line-height: 1.7; }
.simple .button { margin-top: 30px; }

.doc { width: min(100% - 8vw, 760px); margin-inline: auto; padding-block: 90px; }
.doc h1 { font-size: clamp(36px, 4.5vw, 58px); }
.doc h2 { margin: 40px 0 14px; font-size: 22px; letter-spacing: -.03em; }
.doc p, .doc li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.doc a { color: var(--accent); }

/* ---------------------------------------------------------------- admin */

.admin { width: min(100% - 6vw, 1200px); margin-inline: auto; padding-block: 60px; }
.admin h1 { font-size: 36px; margin-bottom: 24px; }
.admin h2 { margin: 8px 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.admin-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.admin-counts div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-counts strong { display: block; font: 500 30px var(--font-mono); }
.admin-counts span { color: var(--muted); font: 9px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.admin table { width: 100%; margin-bottom: 40px; border-collapse: collapse; font-size: 12px; }
.admin th, .admin td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin th { color: var(--muted); font: 600 9px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.admin td { color: var(--muted); }
.admin td.strong { color: var(--text); }
.admin-actions { display: flex; gap: 12px; margin-bottom: 20px; }

/* ---------------------------------------------------------------- motion
   Three quiet movements only: console metrics settle in, lifecycle stages
   stagger as they enter, and the chart line draws once. All of it is opt-in
   via .motion-ready (set by JS) so nothing flashes before CSS is applied,
   and all of it is switched off under prefers-reduced-motion below. */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes draw {
  from { stroke-dashoffset: var(--len); }
  to { stroke-dashoffset: 0; }
}

.motion-ready .console .metric,
.motion-ready .console .flow span {
  animation: rise .5s cubic-bezier(.22, .68, .36, 1) both;
  animation-delay: calc(140ms + var(--i) * 70ms);
}

.motion-ready .chart .line {
  stroke-dasharray: var(--len);
  animation: draw 1.1s cubic-bezier(.4, 0, .2, 1) 260ms both;
}

.motion-ready .stage[data-inview] {
  animation: rise .5s cubic-bezier(.22, .68, .36, 1) both;
  animation-delay: calc(var(--i) * 60ms);
}

.motion-ready .stage:not([data-inview]) { opacity: 0; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .lifecycle { grid-template-columns: repeat(3, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .console { max-width: 760px; }
  .pack-grid, .lane-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-split { grid-template-columns: 1fr; gap: 44px; }
  .book-inner { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 10px; }
  .nav, .header-cta { display: none; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary {
    list-style: none;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav {
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 220px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 20px 60px var(--shadow);
    font-size: 13px;
  }
  .section-heading { grid-template-columns: 1fr; }
  .adoption-grid, .product-grid { grid-template-columns: 1fr; }
  .deployment-grid { grid-template-columns: 1fr; }
  .deployment-head { grid-template-columns: 1fr; gap: 12px; }
  .deployment-option .path-fit { margin-top: 18px; }
  .layer { grid-template-columns: 1fr; }
  .company { grid-template-columns: 1fr; }
  .company-quote { min-height: 380px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip span:nth-child(2) { border-right: 0; }
  .trust-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 650px) {
  .wrap { width: min(100% - 36px, var(--max)); }
  .signal-bar { justify-content: center; text-align: center; }
  .signal-bar > span:first-child { display: none; }
  .site-header { min-height: 68px; padding-inline: 18px; }
  .theme-label { display: none; }
  .brand-logo { width: 136px; height: 28px; }

  .hero-inner { padding-block: 60px 68px; }
  h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-actions .button-quiet { justify-content: center; padding: 10px 0; }

  .console { padding: 20px; }
  .metrics { gap: 8px; }
  .metric { padding-inline: 8px; }
  .flow { grid-template-columns: 1fr 1fr; }

  .section { padding-block: 76px; }
  .section-heading { margin-bottom: 40px; }
  h2 { font-size: clamp(32px, 8.5vw, 42px); }

  .path-card { padding: 24px; }
  .lifecycle, .pack-grid, .lane-grid, .kpi-grid, .offer-grid, .credentials { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
  .stage strong { margin-top: 26px; }
  .layer-items { grid-template-columns: 1fr 1fr; }
  .architecture-body { padding: 14px; }
  .architecture-rail { gap: 14px 24px; }
  .architecture-top { flex-direction: column; align-items: flex-start; gap: 8px; }

  .company-quote, .company-copy { min-height: 0; padding: 64px 20px; }
  .newsletter-panel { padding: 24px 20px; }
  .newsletter-line { grid-template-columns: 1fr; }
  .newsletter-line .button { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .book { padding-block: 76px; }
  .book-form-shell { padding: 24px 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; }
  .admin-counts { grid-template-columns: 1fr; }
  .admin table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .button:hover { transform: none; }
  /* Entrance animations must not leave anything permanently invisible. */
  .motion-ready .stage:not([data-inview]) { opacity: 1; }
  .motion-ready .chart .line { stroke-dasharray: none; }
}
