/* SECCHI.DEV — landing page.
   Design system: black & white base, four-color functional code.
   Each color has exactly one job and never trades jobs:
     --pkg  #7CFFB2  Ecosystem / package analytics   (and nothing else)
     --cli  #FFB000  CLI usage analytics             (and nothing else)
     --cap  #C084FC  Code syntax and metadata        (and nothing else)
     --act  #22D3EE  interaction: links, buttons, focus (and nothing else)
   No rounded corners anywhere. Titles: Space Grotesk. Everything else:
   JetBrains Mono. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
/* Supplemental subsets: arrows, box drawing, block elements, geometric
   shapes (U+2190–21FF, U+2500–25FF). Only fetched when a page uses those
   glyphs (the ASCII diagrams, terminal rules, ■ markers), so the main
   Latin subsets stay small and box-drawing lines stay on the same grid
   as the text instead of falling back to a system font. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-400-symbols.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+2190-21FF, U+2500-25FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-500-symbols.woff2") format("woff2");
  font-weight: 500; font-display: swap;
  unicode-range: U+2190-21FF, U+2500-25FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-700-symbols.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+2190-21FF, U+2500-25FF;
}

:root {
  --bg: #050505;
  --panel: #161616;     /* code / command surfaces */
  --fg: #f4f4f4;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --pkg: #7CFFB2;
  --cli: #FFB000;
  --cap: #C084FC;
  --act: #22D3EE;
  --rail: 64px;          /* depth-gauge width on desktop */
  --measure: 72rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0 !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.65;
  padding-left: var(--rail);
  overflow-x: hidden;
}

h1, h2 { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.02em; }

a { color: var(--act); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--act); outline-offset: 3px; }

code, pre { font-family: inherit; }
ul { list-style: none; }

/* Product-color roles */
.c-pkg { color: var(--pkg); font-weight: 500; }
.c-cli { color: var(--cli); font-weight: 500; }
.c-cap { color: var(--cap); font-weight: 500; }

/* ---- Secchi-disk glyph: 2×2 quadrant, square. ---- */
.disk-glyph {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 18px; height: 18px;
  border: 1px solid var(--fg);
  flex: none;
}
.disk-glyph i { background: var(--bg); }
.disk-glyph i:nth-child(1), .disk-glyph i:nth-child(4) { background: var(--fg); }

/* ---- Depth gauge rail (signature) ---- */
.gauge {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail);
  border-right: 1px solid var(--line);
  /* tick marks: fine every 12px, bold every 60px */
  background:
    repeating-linear-gradient(to bottom,
      transparent 0, transparent 11px, var(--line) 11px, var(--line) 12px),
    repeating-linear-gradient(to bottom,
      transparent 0, transparent 58px, #4a4a4a 58px, #4a4a4a 60px);
  background-size: 10px 100%, 18px 100%;
  background-repeat: repeat-y;
  background-position: right top, right top;
  z-index: 10;
}
.gauge-disk {
  position: absolute;
  top: 12px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: top 120ms linear;
}
.gauge-depth {
  font-size: 10px;
  color: var(--muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
}

/* ---- Nav ---- */
.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }

/* Solutions dropdown. Click to open (keyboard and touch), hover to open
   on pointer devices; JS handles both. The panel is a square, bordered
   sheet, right-aligned to the trigger so it never overruns the viewport
   edge next to Docs / GitHub. */
.menu { position: relative; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--act);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.menu-toggle:hover .menu-label { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.menu-caret { font-size: 11px; transition: transform 120ms; }
.menu-toggle[aria-expanded="true"] .menu-caret { transform: rotate(180deg); }
.menu-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 360px;
  background: var(--panel);
  border: 1px solid var(--line);
  z-index: 20;
}
.menu-panel[hidden] { display: none; }
.menu-item {
  display: block;
  padding: 16px 20px;
  color: var(--fg);
}
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-item:hover { text-decoration: none; background: #1f1f1f; }
.menu-item-title {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-item-desc {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.menu-item .tag-planned { margin-left: 8px; }

/* Glitch on the wordmark only, on hover only. */
.wordmark-text { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .wordmark:hover .wordmark-text::before,
  .wordmark:hover .wordmark-text::after {
    content: attr(data-text);
    position: absolute; left: 0; top: 0;
    overflow: hidden;
  }
  .wordmark:hover .wordmark-text::before {
    color: var(--pkg); clip-path: inset(0 0 55% 0);
    animation: glitch-a 360ms steps(2, end) infinite;
  }
  .wordmark:hover .wordmark-text::after {
    color: var(--cli); clip-path: inset(55% 0 0 0);
    animation: glitch-b 360ms steps(2, end) infinite;
  }
}
@keyframes glitch-a { 50% { transform: translate(2px, -1px); } }
@keyframes glitch-b { 50% { transform: translate(-2px, 1px); } }

/* ---- 01 Hero ---- */
.hero {
  max-width: var(--measure);
  padding: 96px 32px 88px;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(44px, 8.5vw, 100px);
  line-height: 0.98;
}
.hero-tag {
  margin-top: 28px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.01em;
}
.hero-sub {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 16px;
  color: var(--muted);
}
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-tenets {
  margin-top: 28px;
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0.06em;
}
.hero-tenets span { white-space: nowrap; }
.hero-tenets .sep {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--fg);
  vertical-align: middle;
  margin: 0 12px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid var(--act);
  background: transparent;
  color: var(--act);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover { text-decoration: none; background: var(--act); color: var(--bg); }
.btn-solid { background: var(--act); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--act); }

/* ---- Shared section furniture ---- */
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-title { font-size: 30px; font-weight: 700; margin-bottom: 18px; }
.section-sub { color: var(--muted); max-width: 62ch; margin-bottom: 36px; }

/* ---- 02 Platform idea: two analytics families as depth strata ---- */
/* Read top-down like water depth: ecosystem at the surface, product
   usage below, the disk sinking through into Secchi. Bands are
   separated by the same wave that divides the product rows; no boxes,
   no straight rules. Only the label carries the family color. */
.platform {
  border-top: 1px solid var(--line);
  padding: 72px 32px 80px;
  max-width: var(--measure);
}
.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
}
.stratum { padding: 14px 0; }
.stratum + .stratum {
  position: relative;
  padding-top: 30px;
}
.stratum + .stratum::before {
  content: "";
  position: absolute;
  top: 8px; left: 0; right: 0;
  height: 8px;
  background: url(/assets/wave.svg) repeat-x left center;
}
.stratum-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stratum-items { color: var(--fg); font-size: 14px; }
.stratum-learn { color: var(--muted); font-size: 13px; margin-top: 2px; }
.stratum-learn .arrow { margin-right: 4px; }
.stratum-items .sep, .stratum-learn .sep { color: var(--muted); opacity: 0.55; margin: 0 6px; }
.flow-sink-wrap { display: flex; align-items: center; gap: 12px; align-self: stretch; }
.flow-link { display: flex; align-items: center; gap: 4px; color: var(--fg); font-size: 10px; }
.flow-link b { font-weight: 400; }
.flow-link i { display: block; width: 32px; height: 1px; background: var(--fg); }
.signal-panel {
  width: 300px;
  padding: 14px 14px 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.signals { display: block; width: 100%; height: auto; }
.signals text { font-family: inherit; }
.sg-h { fill: var(--muted); font-size: 9px; letter-spacing: 0.14em; }
.sg-s { fill: var(--muted); font-size: 9px; }
.sg-l { fill: var(--muted); font-size: 8.5px; }
.sg-v { fill: var(--fg); font-size: 8.5px; }
.sg-base { stroke: var(--line); stroke-width: 1; }
.sg-ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.sg-track { fill: var(--line); }
.signals polyline { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.sg-fill-pkg { fill: var(--pkg); }
.sg-fill-cli { fill: var(--cli); opacity: 0.8; }
.sg-dot-cap { fill: var(--cap); }
.sg-pkg { stroke: var(--pkg); }
.sg-cli { stroke: var(--cli); }
.sg-cap { stroke: var(--cap); }
.signal-caption { margin-top: 8px; font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
/* SECCHI as a vertical layer: a full-height spine between the analytics
   families and what you get out of them. */
.flow-sink {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 16px;
  padding: 22px 14px;
  border: 1px solid var(--fg);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.flow-sink-name { writing-mode: vertical-rl; }

/* ---- 03–05 Instrument rows ---- */
/* Full-bleed by design: each row's wave is a section-break accent and
   should reach the screen edge, not stop at the reading width. Each
   instrument is a full-width row (text column + visual column) rather
   than a side-by-side card, so three products don't cramp into narrow
   columns. Section divider: a muted repeating wave (water surface, per
   the Secchi name) is the only separator between rows — no straight
   rule doubling it. */
.instrument {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 64px 32px 56px;
  background: var(--bg);
}
.instrument::before {
  content: "";
  position: absolute;
  top: 14px; left: 32px; right: 32px;
  height: 8px;
  background: url(/assets/wave.svg) repeat-x left center;
}
.instrument > * { min-width: 0; }   /* let pre/terminal scroll inside, not widen the page */
.instrument-text { max-width: 62ch; }
.instrument-text .btn { margin-top: 8px; }
.instrument-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* stretch, not flex-start: command/code boxes must hold a consistent
     width regardless of which tab's content is currently shown, instead
     of shrink-wrapping to whichever line happens to be shortest. */
  align-items: stretch;
  gap: 14px;
}
.product-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.label-scope {
  margin-left: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.instrument h2 { font-size: 30px; font-weight: 700; margin-bottom: 18px; }
.instrument-text p:not(.product-label) { color: var(--muted); max-width: 52ch; }
.instrument-text p strong { color: var(--fg); }
.instrument-text p + p { margin-top: 14px; }

.tag-planned {
  margin-left: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}
.visual-caption { font-size: 12px; color: var(--muted); }
.btn-view { font-size: 13px; padding: 12px 20px; }
.instrument-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.instrument-actions .btn { margin-top: 0; }

/* Reserved for compact subareas beneath an instrument paragraph. */
.subareas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 52ch;
}
.subarea-head {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.subarea li { color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* Icon strip: real registry marks, monochrome via mask so a single-color
   SVG can be recolored with a plain background-color. Muted by default,
   brightens to the surrounding product color on hover. */
.ecosystems {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 4px;
  font-size: 12px;
  color: var(--muted);
}
.ecosystems li { display: flex; align-items: center; gap: 8px; }
.ico {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: none;
  background-color: var(--muted);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}
.ecosystems li:hover { color: var(--fg); }
.instrument-pkg .ecosystems li:hover .ico { background-color: var(--pkg); }
.ico-pypi { mask-image: url(/assets/icons/pypi.svg); -webkit-mask-image: url(/assets/icons/pypi.svg); }
.ico-npm { mask-image: url(/assets/icons/npm.svg); -webkit-mask-image: url(/assets/icons/npm.svg); }
.ico-crates { mask-image: url(/assets/icons/crates.svg); -webkit-mask-image: url(/assets/icons/crates.svg); }
.ico-homebrew { mask-image: url(/assets/icons/homebrew.svg); -webkit-mask-image: url(/assets/icons/homebrew.svg); }
.ico-go { mask-image: url(/assets/icons/go.svg); -webkit-mask-image: url(/assets/icons/go.svg); }
.ico-cran { mask-image: url(/assets/icons/cran.svg); -webkit-mask-image: url(/assets/icons/cran.svg); }

/* Command tabs + single-line command box. Only one command is ever
   visible at a time (JS toggles [data-cmd-panel]), so the box always
   stays exactly one line tall, matching the site's original tight
   command block. */
.cmd { margin: 26px 0; }
.cmd .tabs { margin-bottom: -1px; }
.cmd .install { margin: 0; }
.cmd + .cmd { margin-top: -6px; }

.install {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14px;
  overflow-x: auto;
}
.install-line {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.install-line[hidden] { display: none; }
.install-line .prompt { color: var(--muted); flex: none; }

/* Real integration code. Shares the .cmd/.tabs-sm pattern the install
   commands use, so tabbed code reads as unmistakably a code block, not
   flowing text. */
.code-block {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
}
.code-block code[hidden] { display: none; }

/* Syntax tokens, hand-marked in the HTML (no highlight library). The
   palette deliberately reuses the site's four inks rather than importing
   a foreign scheme: violet keywords/decorators, green strings, amber
   functions/types, muted defaults. Base code text dims slightly so the
   tokens carry the structure. */
.code-block { color: #c9c9c9; }
.tok-k { color: var(--cap); }
.tok-d { color: var(--cap); }
.tok-s { color: var(--pkg); }
.tok-f { color: var(--cli); }
.tok-t { color: var(--cli); font-weight: 700; }

/* Square-marked lists; marker color = product color. */
.ticks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
}
.ticks-cli li::before { background: var(--cli); }
.ticks-pkg li::before { background: var(--pkg); }
.ticks-cap li::before { background: var(--cap); }
.ticks li code { color: var(--fg); }

/* Short feature highlights following a terminal/code block in a row's
   visual column. A full breakdown lives in "Analytics coverage" further
   down the page; this is a teaser, not a duplicate. */
.mini-ticks {
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.roadmap-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.roadmap-note::before { content: "\2192  "; color: var(--cli); }

/* Tabs, shared by install/code groups. */
.tabs { display: flex; gap: 0; margin-bottom: -1px; position: relative; z-index: 1; }
.tab {
  font-family: inherit;
  font-size: 13px;
  padding: 12px 20px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-bottom-color: transparent;
  cursor: pointer;
}
.tab + .tab { margin-left: -1px; }
.tab.is-active { color: var(--fg); background: var(--panel); }
.tab-pkg.is-active { border-top: 3px solid var(--pkg); }
.tab-cli.is-active { border-top: 3px solid var(--cli); }

/* Code window: a single bar with three square "window dots" and the
   language tabs, above the code. Replaces a second stacked tab strip. */
.codewin { margin: 20px 0 26px; border: 1px solid var(--line); background: var(--panel); }
.codewin-bar {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.codewin-dots { display: flex; align-items: center; gap: 6px; }
.codewin-dots i { display: block; width: 9px; height: 9px; background: var(--muted); }
.wtabs { display: flex; gap: 4px; }
.wtab {
  font-family: inherit;
  font-size: 12px;
  padding: 10px 10px 8px;
  background: transparent;
  color: var(--fg);
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.wtab:hover { color: var(--act); }
.wtab.is-active { color: var(--fg); font-weight: 700; }
.wtab-cli.is-active { border-bottom-color: var(--cli); }
.wtab-note { font-size: 10px; color: var(--muted); margin-left: 6px; letter-spacing: 0.06em; }
.codewin-body { border: 0; background: transparent; }

/* Compact variant for the per-product install-command tabs. */
.tabs-sm .tab { padding: 8px 14px; font-size: 12px; }

/* ---- Demo terminals: one per row, playing real captured output ---- */
.terminal { border: 1px solid var(--line); background: var(--panel); }
.terminal-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.terminal-bar span { width: 10px; height: 10px; background: var(--line); }
.terminal-body {
  padding: 20px;
  min-height: 240px;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.terminal-body .prompt { color: var(--muted); }
.terminal-body .tcmd { font-weight: 700; }
[data-active="pkg"] .tcmd { color: var(--pkg); }
[data-active="cli"] .tcmd { color: var(--cli); }
.terminal-body .cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--fg);
  vertical-align: text-bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .terminal-body .cursor { animation: blink 1s steps(1, end) infinite; }
  .terminal-body .out { animation: reveal 160ms both; }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes reveal { from { opacity: 0; } }

/* ---- 06 How Secchi works: collect → store → understand ---- */
.how {
  border-top: 1px solid var(--line);
  padding: 72px 32px 72px;
  max-width: var(--measure);
}
/* Answers window: one real artifact per output surface. Neutral active
   tab (white), because this window spans all three families. */
.answers { margin-top: 8px; }
.answers .wtabs { flex-wrap: wrap; gap: 8px; }
.answers .wtab { font-size: 13px; padding: 12px 14px 10px; }
.answers .wtab.is-active { border-bottom-color: var(--fg); }
.answers .answer[hidden] { display: none; }
.answer-shot { padding: 16px 18px 18px; }
.answer-cmd { font-size: 13px; }
.answer-cmd .prompt { color: var(--muted); }
.answer-zoom {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: zoom-in;
}
.answer-zoom:hover { border-color: var(--act); }
.answer-shot img { display: block; width: 100%; height: auto; }
.answer-hint { color: var(--act); }
.answer-caption {
  padding: 10px 18px 14px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.answers .code-block .prompt { color: var(--muted); }

/* ---- 07 Analytics coverage ---- */
.caps { border-top: 1px solid var(--line); padding: 72px 32px 64px; }
.caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--measure);
  margin-top: 36px;
}
.caps-grid .ticks li { margin-bottom: 10px; }

/* ---- 08 Strip / CTA ---- */
.strip {
  border-top: 1px solid var(--line);
  padding: 72px 32px;
  text-align: center;
}
.strip-lead {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 28px);
  max-width: 50ch;
  margin: 0 auto;
}
.strip-sub {
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
  margin: 16px auto 0;
}
.strip-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
/* Divider: a diagonal hatch (////), the surface-side sibling of the wave
   that separates the product rows. Same muted stroke, same inset, and
   no straight rule doubling it. */
.footer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 56px 32px 64px;
  font-size: 13px;
}
.footer::before {
  content: "";
  position: absolute;
  top: 14px; left: 32px; right: 32px;
  height: 8px;
  background: url(/assets/hatch.svg) repeat-x left center;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head {
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 6px;
}
.footer-note { color: var(--muted); margin-top: 10px; }

/* ---- Screenshot modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  max-width: 1100px;
  max-height: 85vh;
  border: 1px solid var(--line);
  background: var(--bg);
}
.modal-box img { display: block; width: 100%; height: auto; max-height: 85vh; object-fit: contain; }
.modal-box img[hidden], .modal-pre[hidden], .modal-caption[hidden] { display: none; }
.modal-pre {
  padding: 28px 32px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre;
  overflow: auto;
  max-height: 80vh;
  background: var(--panel);
}
.modal-pre .prompt { color: var(--muted); }
.modal-pre .tcmd { font-weight: 700; color: var(--cli); }
.modal-caption { padding: 12px 32px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.modal-close {
  position: fixed;
  top: 24px;
  right: 32px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  z-index: 101;
}
.modal-close:hover { background: var(--act); border-color: var(--act); color: var(--bg); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  body { padding-left: 0; }
  .gauge { display: none; }
  .instrument, .caps-grid, .footer { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .nav { padding: 16px 20px; }
  .nav-links { gap: 20px; }
  .menu { position: static; }
  .menu-panel { left: 20px; right: 20px; width: auto; top: calc(100% + 1px); }
  .hero, .platform, .how, .caps, .strip { padding-left: 20px; padding-right: 20px; }
  .instrument { padding: 40px 20px 48px; gap: 36px; }
  .instrument-visual { min-width: 0; }
  .footer { padding: 48px 20px 56px; }
  .footer::before { left: 20px; right: 20px; }
  .modal-overlay { padding: 16px; }
  .modal-close { top: 16px; right: 16px; }
  .platform-grid { grid-template-columns: 1fr; gap: 12px; }
  .flow-sink-wrap { flex-direction: column; align-items: flex-start; gap: 8px; align-self: auto; }
  .flow-sink { flex-direction: row; align-self: auto; padding: 14px 28px; gap: 12px; }
  .flow-sink-name { writing-mode: horizontal-tb; }
  .flow-link { flex-direction: column; margin-left: 20px; }
  .flow-link i { width: 1px; height: 28px; }
  .flow-link b { display: inline-block; transform: rotate(90deg); font-weight: 400; }
  .signal-panel { width: 100%; max-width: 340px; }
  .subareas { gap: 12px; }
}
