/* Bottleneck — shared styles for the product site.
   One stylesheet, no build step, no framework. Every page links this. */

:root {
  --bg: #ffffff;
  --bg-sunk: #f4f5f7;
  --card: #ffffff;
  --line: #e2e5ea;
  --line-soft: #eef0f4;
  --ink: #14171c;
  --ink-soft: #5a616d;
  --ink-faint: #878e9a;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --good: #1a7f4b;
  --warn: #9a6700;
  --bad: #d1242f;
  --shadow: 0 1px 2px rgba(16, 20, 28, .06), 0 8px 24px rgba(16, 20, 28, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-sunk: #111721;
    --card: #151b24;
    --line: #262d38;
    --line-soft: #1c232d;
    --ink: #e8ebf0;
    --ink-soft: #a4acba;
    --ink-faint: #757e8c;
    --accent: #4d8ef7;
    --accent-ink: #0d1117;
    --good: #43c07d;
    --warn: #d4a72c;
    --bad: #ff7b72;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

a { color: var(--accent); }

/* ---- navigation ---- */

.nav {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
}
.nav .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 60px;
}
.mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 650; letter-spacing: -.01em; font-size: 15px;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
/* The application's own mark, lifted from its sidebar rather than invented for the website — a
   funnel on the same blue-to-purple gradient. The colours are baked into the SVG because they
   are brand, not theme: the mark looks identical in light and dark, exactly as it does in the
   app itself. */
.mark .logo { width: 20px; height: 20px; display: block; flex: none; }
.nav a.link {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px;
}
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .nav .wrap { gap: 16px; overflow-x: auto; }
  .nav a.link { white-space: nowrap; }
}

/* ---- type ---- */

h1 {
  font-size: clamp(32px, 5.2vw, 50px);
  line-height: 1.1; letter-spacing: -.025em;
  margin: 0 0 20px; font-weight: 680;
}
h1.tight { max-width: 17ch; }

h2 {
  font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em;
  margin: 0 0 16px; font-weight: 660; line-height: 1.2;
}
h2.eyebrow {
  font-size: 13px; text-transform: uppercase; letter-spacing: .085em;
  color: var(--ink-faint); font-weight: 620; margin: 0 0 20px;
}
h3 { font-size: 17px; margin: 0 0 8px; font-weight: 650; letter-spacing: -.01em; }

.lede {
  font-size: clamp(17px, 2.1vw, 20px); line-height: 1.55;
  color: var(--ink-soft); max-width: 62ch; margin: 0 0 32px;
}

section { padding: 64px 0; }
section.sunk { background: var(--bg-sunk); border-block: 1px solid var(--line); }
section.tight { padding: 40px 0; }

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

.btn, button.buy {
  display: inline-block; text-align: center;
  padding: 11px 20px; border-radius: 8px; font-size: 15px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  text-decoration: none; transition: opacity .12s ease;
}
.btn.secondary, button.buy.secondary {
  background: transparent; color: var(--accent);
}
.btn.quiet {
  background: transparent; color: var(--ink-soft); border-color: var(--line);
}
.btn:hover, button.buy:hover { opacity: .87; }
button.buy:disabled { opacity: .45; cursor: progress; }
button.buy { display: block; width: 100%; }
.btn.wide { display: block; width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- assurance pills ---- */

.assurances {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  list-style: none; padding: 0; margin: 0;
}
.assurances li {
  font-size: 13.5px; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; background: var(--bg-sunk);
}
section.sunk .assurances li { background: var(--card); }

/* ---- scan figure (the hero chart) ----
   Two colours only: the accent for components that are keeping up, and one reserved amber for
   the one that is not. Both pairs validated for colour-vision separation against their own
   surface — light ΔE 31.9, dark ΔE 29.9. The constrained bar is also directly labelled, so the
   reading never depends on colour alone. */

:root {
  --chart-ok: var(--accent);
  --chart-constraint: #9a6700;
  --chart-grid: #eef0f4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --chart-constraint: #bf8a24;
    --chart-grid: #222a35;
  }
}

.figure {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); padding: 22px 24px 18px;
  box-shadow: var(--shadow);
}
.figure figcaption {
  font-size: 12.5px; color: var(--ink-faint); margin-top: 14px;
  border-top: 1px solid var(--line-soft); padding-top: 12px; line-height: 1.5;
}
.figure svg { display: block; width: 100%; height: auto; }
.figure .bar-ok { fill: var(--chart-ok); }
.figure .bar-constraint { fill: var(--chart-constraint); }
.figure .track { fill: var(--chart-grid); }
.figure .lab { fill: var(--ink-soft); font-size: 12.5px; }
.figure .val { fill: var(--ink-faint); font-size: 12px; }
.figure .flag { fill: var(--chart-constraint); font-size: 11.5px; font-weight: 620; }
.figure .head { fill: var(--ink); font-size: 13.5px; font-weight: 620; }

/* Estate figure — a unit chart, one square per machine. Countable units beat a percentage here
   because the number a technician acts on is "seventeen machines", not "21%". */
.estate { margin-top: 32px; }
.estate-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.estate-head strong { font-size: 13.5px; font-weight: 620; color: var(--ink); }
.estate-head span { font-size: 12.5px; color: var(--ink-faint); }
.estate .ok { fill: var(--line); }
.estate .flagged { fill: var(--chart-constraint); }
.estate-finding {
  margin: 16px 0 0; font-size: 13.5px; font-weight: 600;
  color: var(--chart-constraint);
}

/* Product shot. The frame is deliberately quiet — a thin border and a soft shadow — because the
   screenshot is already a dark panel and a heavy chrome around it just muddies the edge. */
.shot { padding: 0; overflow: hidden; }
.shot img {
  display: block; width: 100%; height: auto;
  border-bottom: 1px solid var(--line);
}
.shot figcaption { margin: 0; padding: 14px 20px; border-top: none; }

.hero-split {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- feature grid ---- */

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Line icons, not filled badges — at this size a filled shape becomes a blob and stops
   reading as anything. Stroke inherits the accent; nothing depends on the icon to be
   understood, they are pace-setting rather than load-bearing. */
.feature .icon, .tier .icon {
  width: 22px; height: 22px; display: block; margin-bottom: 12px;
  color: var(--accent); stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.tier .icon { margin-bottom: 14px; }

/* ---- steps ---- */

.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-top: 36px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 660;
  display: grid; place-items: center;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---- tier cards ---- */

.tiers {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  align-items: start;
}
.tier {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px 24px; background: var(--card);
  display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier h3 { margin: 0; }
.badge {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); font-weight: 640;
}
.price { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-size: 34px; font-weight: 660; letter-spacing: -.03em; }
.price .unit { font-size: 13.5px; color: var(--ink-faint); }
.price-note { font-size: 13px; color: var(--ink-faint); margin: 0 0 20px; min-height: 20px; }

.tier ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  font-size: 14.5px; color: var(--ink-soft); flex: 1;
}
.tier li { padding: 5px 0 5px 22px; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 3px; top: 12px;
  width: 9px; height: 5px; border-left: 1.8px solid var(--good);
  border-bottom: 1.8px solid var(--good); transform: rotate(-45deg);
}
.tier li.muted { color: var(--ink-faint); }
.tier li.muted::before {
  border: none; background: var(--line);
  width: 9px; height: 1.8px; top: 15px; transform: none;
}

/* ---- comparison table ---- */

.table-scroll { overflow-x: auto; }
table.compare {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  min-width: 620px;
}
table.compare th, table.compare td {
  text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}
table.compare thead th {
  font-size: 13px; letter-spacing: .02em; color: var(--ink-faint);
  border-bottom: 1px solid var(--line); font-weight: 620;
}
table.compare td:not(:first-child), table.compare th:not(:first-child) {
  text-align: center; width: 15%;
}
table.compare td:first-child { color: var(--ink-soft); }
table.compare .yes { color: var(--good); font-weight: 620; }
table.compare .no { color: var(--ink-faint); }

/* A column of the word "Yes" repeated eleven times is harder to scan than a column of ticks —
   the eye is looking for the *shape* of which tier has what, not reading each cell. The text is
   kept for screen readers, so nothing is lost. */
table.compare .tick, table.compare .dash {
  width: 15px; height: 15px; display: inline-block; vertical-align: -2px;
  fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
table.compare .tick { stroke: var(--good); }
table.compare .dash { stroke: var(--line); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- FAQ ---- */

details.faq {
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; color: var(--ink-faint); font-weight: 400; font-size: 19px; line-height: 1;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: var(--ink-soft); font-size: 15px; margin: 12px 0 0; max-width: 68ch; }

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

.form {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; background: var(--card); max-width: 560px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 14px; font-weight: 600;
  margin-bottom: 7px; color: var(--ink);
}
.field select, .field textarea, .field input[type="text"], .field input[type="email"] {
  width: 100%; font-family: inherit; font-size: 15px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px;
}
.field textarea {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.5; word-break: break-all;
}
.field select:focus, .field textarea:focus, .field input:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
}
.field .hint {
  font-size: 13px; color: var(--ink-faint); margin: 8px 0 0; line-height: 1.5;
}
.form button[type="submit"] { width: 100%; }
.form button[type="submit"]:disabled { opacity: .45; cursor: progress; }
.form .status { margin-top: 12px; }

/* ---- key display ---- */

.keybox {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-sunk); padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; word-break: break-all; color: var(--ink-soft);
  margin: 16px 0;
}

/* ---- status line ---- */

.status { font-size: 13.5px; min-height: 22px; color: var(--ink-faint); margin: 0; }
.status[data-tone="error"] { color: var(--bad); }

/* ---- prose (legal pages) ---- */

.prose { font-size: 15.5px; color: var(--ink-soft); }
.prose h2 { color: var(--ink); font-size: 20px; margin: 36px 0 12px; }
.prose h3 { color: var(--ink); margin: 24px 0 8px; }
.prose p, .prose li { max-width: 72ch; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.updated { font-size: 13.5px; color: var(--ink-faint); margin: 0 0 8px; }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--warn);
  background: var(--bg-sunk); border-radius: 6px;
  padding: 14px 18px; font-size: 14.5px; color: var(--ink-soft);
  margin: 24px 0;
}
.callout strong { color: var(--ink); }

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

footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 64px; font-size: 14px; color: var(--ink-faint);
}
footer.site .cols {
  display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 32px;
}
footer.site h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-faint); margin: 0 0 12px; font-weight: 620;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 7px; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
footer.site .legal { border-top: 1px solid var(--line-soft); padding-top: 20px; line-height: 1.7; }
footer.site .legal p { margin: 0 0 6px; max-width: 78ch; }
