/* Shared styles for generated and static pages (top, pairs, method). */

html, body { margin: 0; }
[hidden] { display: none !important; }
/* Layout: one narrow reading column; the hero is the finding itself, drawn as a strip plot
   of 30 bots on a percentage-point axis, then a sample report, then the waitlist. */
:root {
  --bg: #eef1f3;          /* cool ledger grey */
  --surface: #f9fafb;
  --ink: #15202a;
  --muted: #5b6875;
  --rule: #cfd6dd;
  --accent: #2647c4;      /* cobalt: the "grid line" colour */
  --loss: #b4372f;
  --gain: #1d7a4f;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10161c; --surface: #172029; --ink: #e6ebf0; --muted: #93a1ae; --rule: #2a3643;
    --accent: #8fa6ff; --loss: #f08a80; --gain: #6fcf9c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10161c; --surface: #172029; --ink: #e6ebf0; --muted: #93a1ae; --rule: #2a3643;
  --accent: #8fa6ff; --loss: #f08a80; --gain: #6fcf9c; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  padding-inline: 20px; padding-block: 0 64px;
}
.wrap { max-width: 46rem; margin-inline: auto; display: grid; gap: 72px; }

header.top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-block: 24px; border-bottom: 1px solid var(--rule); flex-wrap: wrap;
}
.mark { font: 800 1.25rem/1 var(--font-display); font-stretch: 80%; letter-spacing: .01em; }
.mark span { color: var(--accent); }
.toplinks { display: flex; gap: 20px; }
.top a { color: var(--ink); font-weight: 500; text-decoration-color: var(--accent); text-underline-offset: 4px; }

h1, h2 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.02; font-weight: 800; font-stretch: 75%; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: 1.6rem; line-height: 1.15; font-weight: 700; font-stretch: 85%; }
p { margin: 0; max-width: 65ch; }
.eyebrow { font: 500 .75rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); }
.stack { display: grid; gap: 16px; }
.hero { display: grid; gap: 24px; padding-top: 24px; }

/* strip plot */
figure { margin: 0; display: grid; gap: 12px; }
.plot { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 12px 8px; overflow-x: auto; }
.plot svg { display: block; width: 100%; min-width: 520px; height: auto; }
.plot text { font-family: var(--font-data); font-size: 11px; fill: var(--muted); }
.plot .zero { stroke: var(--ink); stroke-width: 1; }
.plot .tick { stroke: var(--rule); stroke-width: 1; }
.plot .dot { fill: var(--ink); fill-opacity: .55; }
.plot .dot.pos { fill: var(--gain); fill-opacity: 1; }
.plot .dot.neg { fill: var(--loss); fill-opacity: .85; }
.plot .fee { fill: var(--accent); fill-opacity: .12; }
.plot .feelabel { fill: var(--accent); }
.plot .lbl { fill: var(--ink); font-size: 11px; }
figcaption { font-size: .9rem; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.fact { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.fact b { font: 700 1.9rem/1 var(--font-display); font-stretch: 80%; font-variant-numeric: tabular-nums; }
.fact span { font-size: .9rem; color: var(--muted); }

/* the three checks are a real sequence, so they're numbered */
ol.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: c; }
ol.checks li { counter-increment: c; display: grid; grid-template-columns: 2.25rem 1fr; gap: 12px; }
ol.checks li::before { content: counter(c); font: 700 1.5rem/1.1 var(--font-display); color: var(--accent); }
ol.checks h3 { margin: 0 0 4px; font-size: 1.05rem; }

/* sample report */
.report { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; display: grid; gap: 16px; }
.report-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.pair { font: 700 1.3rem/1 var(--font-display); font-stretch: 85%; }
.cfg { font: 400 .85rem/1.4 var(--font-data); color: var(--muted); }
.verdict { font: 600 .8rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--loss); color: var(--loss); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
td { padding: 8px 0; border-top: 1px solid var(--rule); vertical-align: top; }
td:last-child { text-align: right; font-family: var(--font-data); white-space: nowrap; padding-left: 12px; }
.note { font-size: .9rem; color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--rule); border-radius: 6px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.plan.pro { border-color: var(--accent); }
.price { font: 700 1.8rem/1 var(--font-display); font-stretch: 80%; }
.price small { font: 400 .9rem var(--font-body); color: var(--muted); }
.plan-name { font: 600 .8rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { font: 600 .7rem/1 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 8px; }
.promise { font-weight: 600; }
ul.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; align-content: start; }
ul.ticks li { position: relative; padding-left: 1.5rem; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.btn { display: inline-block; justify-self: start; text-decoration: none; font: 600 .95rem/1 var(--font-body); padding: 12px 16px; border-radius: 4px; background: var(--accent); color: var(--surface); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.plan { align-content: stretch; grid-template-rows: auto auto auto 1fr auto; }

/* waitlist */
form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; }
label { font-weight: 500; display: grid; gap: 6px; }
input[type=email], select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule);
  border-radius: 4px; padding: 10px 12px; width: 100%;
}
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
legend { font-weight: 500; margin-bottom: 4px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radios label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
button {
  font: 600 1rem/1 var(--font-body); color: var(--surface); background: var(--accent);
  border: 0; border-radius: 4px; padding: 14px 18px; cursor: pointer; justify-self: start;
}
:root:not([data-theme="light"]) button { color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.status { font-size: .95rem; }
.tablewrap { overflow-x: auto; }
table.fw { min-width: 560px; font-size: .92rem; }
table.fw th { text-align: right; font: 500 .72rem/1.2 var(--font-data); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 0 8px 12px; }
table.fw th:first-child, table.fw td:first-child { text-align: left; padding-left: 0; }
table.fw td { text-align: right; font-family: var(--font-data); padding-left: 12px; white-space: nowrap; }
table.fw td:first-child { font-family: var(--font-body); white-space: normal; }
table.fw small { display: block; color: var(--muted); font-family: var(--font-data); font-size: .75rem; }
.up { color: var(--gain); } .down { color: var(--loss); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

footer { border-top: 1px solid var(--rule); padding-top: 20px; font-size: .85rem; color: var(--muted); display: grid; gap: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .plot .dot { transition: r .15s; }
}
form.checkform { gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 14px; }
input[type=text], input[type=number] {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule);
  border-radius: 4px; padding: 10px 12px; width: 100%;
}
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.progress { font-size: .95rem; color: var(--muted); min-height: 1.5em; }
.pill { display: inline-block; font: 600 .8rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .06em; padding: 7px 12px; border-radius: 999px; border: 1px solid currentColor; }
.pill.good { color: var(--gain); } .pill.bad { color: var(--loss); } .pill.neutral { color: var(--accent); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; width: 100%; resize: vertical; }
.example-tag { font: 600 .72rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.data { overflow-x: auto; }
.data table { min-width: 640px; font-size: .92rem; }
.data th { text-align: right; font: 500 .72rem/1.2 var(--font-data); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 0 8px 12px; }
.data th:first-child, .data td:first-child { text-align: left; padding-left: 0; }
.data td { text-align: right; font-family: var(--font-data); padding-left: 12px; white-space: nowrap; }
.data td:first-child { font-family: var(--font-body); white-space: normal; }
.data small { display: block; color: var(--muted); font-family: var(--font-data); font-size: .75rem; }
.data .pill { font-size: .66rem; padding: 4px 8px; }
.prose p, .prose li { max-width: 65ch; }
.prose h2 { margin-top: 8px; }
