/* WhoTalked. One stylesheet, no build step, no external requests.
   Colour tokens marked (app) are lifted verbatim from the desktop app's
   ui/styles.css so the site and the product cannot drift apart. */

:root {
  color-scheme: dark;

  --ink: #0b0d11;
  --ink-2: #10131a;
  --panel: #1a1c22;      /* app --bg */
  --panel-2: #252830;    /* app --panel */
  --panel-3: #2d3039;    /* app --panel-hi */

  --text: #e8eaf0;       /* app --text */
  --dim: #a7aebc;
  /* Lifted from #868ea0 so it clears WCAG AA (4.60:1) on --panel-2, the
     darkest surface it is ever set on. */
  --faint: #8890a2;

  --signal: #5b8cff;     /* app --accent, the "everyone else" track */
  --you: #22c55e;        /* app --ok, the "you" track */
  --warn: #f0b429;       /* app --warn */
  --danger: #ef4444;     /* app --danger */

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --maxw: 1080px;
  --gutter: 1.5rem;
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A single warm blue wash behind the fold. Kept low so the instrument panel
   reads as lit from its own inset highlight rather than from a blob. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 520px at 78% -8%, rgba(91, 140, 255, 0.07), transparent 70%),
    radial-gradient(620px 420px at 8% 4%, rgba(34, 197, 94, 0.04), transparent 70%);
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: #06070a;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 650;
  z-index: 99;
}
.skip:focus { left: 0; }

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

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.6rem);
  max-width: 19ch;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1rem; }

.lede {
  font-size: 1.0625rem;
  color: var(--dim);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.1rem;
}
.eyebrow.q { color: var(--faint); }

.sig { color: var(--signal); }
.pos { color: var(--you); }
.att { color: var(--warn); }

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 17, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
  font-size: 1.02rem;
}
.brand svg { display: block; border-radius: 6px; }

.top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.top nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.top nav a:hover { color: var(--text); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--signal);
  color: #06070a;
}
.btn-primary:hover { background: #7ba3ff; }

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--dim); background: rgba(255, 255, 255, 0.03); }

.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; border-radius: 9px; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

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

.hero {
  padding: clamp(3rem, 7vw, 5.25rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

h1 .l2 { display: block; }

.byline {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--faint);
  margin: 1.25rem 0 1.5rem;
  max-width: 46ch;
  line-height: 1.55;
}

.hero .lede { margin-bottom: 1.9rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.terms {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--faint);
  margin: 0;
}
.terms b { color: var(--dim); font-weight: 500; }

.hero-facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--dim);
  max-width: 52ch;
}
.hero-facts li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  align-items: start;
}
.hero-facts .mk { font-weight: 700; line-height: 1.5; }
.hero-facts strong { color: var(--text); font-weight: 600; }

/* ---------- the instrument ---------- */

.rig {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 60px -24px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.rig-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.rig-head .ok { margin-left: auto; color: var(--you); letter-spacing: 0.08em; }

.ledger { padding: 0.35rem 1.1rem 0.9rem; }

.ledger dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 0.75rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.ledger dt {
  color: var(--faint);
  padding: 0.42rem 0;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
/* Dotted leader, drawn rather than typed so it never wraps. */
.ledger dt::after {
  content: "";
  position: absolute;
  bottom: 0.72em;
  left: 0;
  right: 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.13);
  z-index: -1;
}
.ledger dt span {
  background: var(--panel-2);
  padding-right: 0.5rem;
}
.ledger dd {
  margin: 0;
  padding: 0.42rem 0;
  color: var(--you);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lanes { border-top: 1px solid var(--line); background: var(--panel); }

.lane {
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.lane:last-child { border-bottom: 0; }

.lane-k {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.lane-k .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  align-self: center;
}
.lane-k .d {
  color: var(--faint);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.72rem;
}
.lane-k .rd {
  margin-left: auto;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.scope { display: block; width: 100%; height: 52px; }
.scope.flat { height: 26px; }

.wv-you { fill: var(--you); }
.wv-them { fill: var(--signal); }

.flatline { stroke: var(--you); stroke-width: 2; fill: none; }

/* A 3px dot riding the flatline. Never a wide gradient block over a thin line. */
.rider { fill: var(--you); }
@media (prefers-reduced-motion: no-preference) {
  .rider { animation: ride 6.5s linear infinite; }
}
@keyframes ride {
  from { transform: translateX(0); }
  to { transform: translateX(688px); }
}

.rig-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}
.rig-foot div {
  padding: 0.7rem 0.85rem;
  border-right: 1px solid var(--line);
}
.rig-foot div:last-child { border-right: 0; }
.rig-foot dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.15rem;
}
.rig-foot dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.rig-foot .unit {
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0;
}

.rig-note {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--faint);
  margin: 0;
}

/* ---------- proof rail ---------- */

.rail {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.rail .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.rail .wrap > div {
  padding: 1.6rem 1.25rem 1.6rem 0;
}
.rail .wrap > div + div {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.rail .n {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.rail p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--faint);
  line-height: 1.5;
}

/* ---------- sections ---------- */

section { padding: var(--section-y) 0; }
section + section { border-top: 1px solid var(--line); }

.sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head .lede { margin-top: 1rem; margin-bottom: 0; }

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.6;
}
.card .k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.7rem;
}

/* ---------- participant roster ---------- */

.roster {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}

.roster-head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  gap: 0.75rem;
}
.roster-head b { color: var(--text); font-weight: 500; }
.roster-head .n { margin-left: auto; }

.who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.who:last-child { border-bottom: 0; }

.pip {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--panel-3);
  color: var(--dim);
  flex: none;
}

.who.me { background: rgba(34, 197, 94, 0.07); }
.who.me .pip { background: rgba(34, 197, 94, 0.16); color: var(--you); }
.who .tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.who.me .tag { color: var(--you); }

.empty-slot {
  margin: 0.75rem 1rem 1rem;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 1.1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- product window ---------- */

.win {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.win-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--panel-3);
  display: block;
}
.win-bar span {
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--faint);
  transform: translateX(-16px);
}

.win-body { padding: 1rem; }

.meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.meter {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.meter-h {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}
.meter-h .sw {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.meter-h .src {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--panel-3);
  overflow: hidden;
}
.bar i { display: block; height: 100%; border-radius: 3px; }

.spk {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.55rem;
  background: var(--panel-2);
}
.spk.is-you {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.25);
}
.spk-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.chip {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  font-weight: 500;
}
.chip.you { background: rgba(34, 197, 94, 0.18); color: var(--you); }
.chip.guess { background: rgba(240, 180, 41, 0.16); color: var(--warn); }
.spk-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--faint);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.spk-meta .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.share { height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.share i { display: block; height: 100%; }

.hint-bar {
  border: 1px solid rgba(240, 180, 41, 0.28);
  background: rgba(240, 180, 41, 0.07);
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.5;
  margin: 0.9rem 0 0.75rem;
}

.tr { font-size: 0.85rem; }
.tr .ln {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}
.tr .ts {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  padding-top: 0.15rem;
}
.tr .nm { font-weight: 600; font-size: 0.8rem; margin-bottom: 0.1rem; }
.tr p { margin: 0; color: var(--dim); line-height: 1.55; }

/* ---------- datasheet ---------- */

.sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  vertical-align: top;
}
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { font-weight: 600; width: 30%; }
.sheet td.v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  width: 22%;
  color: var(--you);
  white-space: nowrap;
}
.sheet td.c { color: var(--faint); font-size: 0.8125rem; }
.sheet tr.unmeasured td.v { color: var(--warn); }
.sheet tr.unmeasured { background: rgba(240, 180, 41, 0.05); }

/* ---------- limits ---------- */

.limits { display: grid; gap: 0; }
.limit {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 20ch) minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.limit:first-child { border-top: 1px solid var(--line); }
.limit .mk { font-weight: 700; line-height: 1.5; }
.limit b { font-weight: 600; line-height: 1.5; }
.limit p { margin: 0; color: var(--dim); font-size: 0.9rem; }

/* ---------- price ---------- */

.price-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }

.price {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
}
.price .amt {
  font-size: 3.15rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.price .amt sup { font-size: 1.5rem; top: -0.85rem; position: relative; font-weight: 600; margin-right: 0.04em; }
.price .per { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); margin: 0.6rem 0 1.25rem; }
.price ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.55rem; font-size: 0.875rem; }
.price li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; color: var(--dim); }
.price li .mk { color: var(--you); font-weight: 700; }
.price .btn { width: 100%; }
.price .after { font-size: 0.78rem; color: var(--faint); margin: 0.85rem 0 0; text-align: center; line-height: 1.5; }

.notice {
  border: 1px solid rgba(240, 180, 41, 0.3);
  background: rgba(240, 180, 41, 0.06);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.notice b { color: var(--warn); font-weight: 600; }

/* ---------- signup ---------- */

.signup { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 0.85rem; }
/* The UA's [hidden] rule is display:none, which a display:flex declaration beats.
   Without this the form stays on screen after a successful signup. */
.signup[hidden] { display: none; }
.signup input {
  flex: 1 1 15rem;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus-visible { border-color: var(--signal); }

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

.faq { max-width: 68ch; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-weight: 400;
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  margin: 0.75rem 0 0;
  color: var(--dim);
  font-size: 0.9375rem;
  max-width: 62ch;
}

/* ---------- closing ---------- */

.close-cta { text-align: center; }
.close-cta h2 { margin: 0 auto 1rem; max-width: 18ch; }
.close-cta .lede { margin: 0 auto 2rem; }
.close-cta .signup { max-width: 30rem; margin-inline: auto; justify-content: center; }
.close-cta .terms { text-align: center; }

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

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.85rem;
  color: var(--faint);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
}
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
footer .fine { margin: 1.75rem 0 0; max-width: 70ch; line-height: 1.6; }

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

@media (max-width: 900px) {
  .hero-grid, .two, .price-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2.5rem; }
  .rail .wrap { grid-template-columns: 1fr 1fr; }
  .rail .wrap > div { padding: 1.25rem 1rem 1.25rem 0; }
  .rail .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .rail .wrap > div:nth-child(4) { border-top: 1px solid var(--line); }
  .top nav { gap: 1.1rem; }
  .top nav a.hide-sm { display: none; }
}

@media (max-width: 820px) {
  /* The lane descriptor IS the core claim. Never let it truncate mid-word. */
  .lane-k { flex-wrap: wrap; }
  .lane-k .d { flex-basis: 100%; margin-left: 1.15rem; }
  .lane-k .rd { margin-left: auto; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .rig-foot { grid-template-columns: 1fr 1fr; }
  .rig-foot div:nth-child(2) { border-right: 0; }
  .rig-foot div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .meters { grid-template-columns: 1fr; }
  .limit { grid-template-columns: 1.4rem 1fr; }
  .limit p { grid-column: 2; }
  .sheet th { width: auto; border-bottom: 0; padding-bottom: 0.2rem; }
  .sheet tr { display: grid; grid-template-columns: 1fr auto; }
  .sheet td.v { width: auto; text-align: right; border-bottom: 0; padding-bottom: 0.2rem; }
  .sheet td.c { grid-column: 1 / -1; padding-top: 0.15rem; }
  .tr .ln { grid-template-columns: 2.9rem 1fr; gap: 0.6rem; }
}

@media (max-width: 560px) {
  .hide-xs { display: none; }
  .cta-row .btn { width: 100%; }
  /* Below this the wordmark plus four links plus a button cannot fit; the
     button is the only one worth keeping. */
  .top nav a:not(.btn) { display: none; }
  .top .wrap { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- how-it-works steps ---------- */

.steps .card { position: relative; }
.steps .card h3 { margin-bottom: 0.55rem; }

/* ---------- the AI summary panel ---------- */

.flow { align-items: start; }

.flow-steps {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.flow-steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.9rem;
  align-items: start;
}
.flow-steps li::before {
  content: counter(s);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(91, 140, 255, 0.14);
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.flow-steps b { display: block; font-weight: 600; line-height: 1.45; }
/* b and span are separate grid children, so the span would otherwise wrap onto a
   new row inside the 1.9rem counter column. */
.flow-steps span { grid-column: 2; display: block; color: var(--dim); font-size: 0.9rem; margin-top: 0.15rem; }

.ai {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
}
.ai-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
}
.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}
.ai-body { padding: 1.1rem; font-size: 0.9rem; }
.ai-body p { margin: 0 0 0.5rem; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-family: var(--mono); color: var(--faint); }
.ai-body p + ul { margin-top: 0; }
.ai-body ul { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.ai-body ul:last-child { margin-bottom: 0; }
.ai-body li { color: var(--dim); line-height: 1.55; padding-left: 1rem; position: relative; }
.ai-body li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }
.ai-actions li { padding-left: 0; }
.ai-actions li::before { content: none; }

.who-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.42rem;
  border-radius: 5px;
  margin-right: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
}
.who-tag.pos { background: rgba(34, 197, 94, 0.16); }
.who-tag.sig { background: rgba(91, 140, 255, 0.16); }
.who-tag.att { background: rgba(240, 180, 41, 0.16); }

.ai-note {
  margin: 0;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--faint);
}

#closing .lede { margin-left: auto; margin-right: auto; }

/* ---------- the prompt page ---------- */

.prompt-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.prompt-head h3 { margin: 0; }
.prompt-head .btn { margin-left: auto; }

.prompt {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--dim);
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 30rem;
  overflow-y: auto;
  tab-size: 2;
}

.due {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  margin-left: 0.35rem;
  white-space: nowrap;
}

.who-bar {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) 1fr;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: var(--dim);
}
.who-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-bar i { display: block; height: 6px; border-radius: 3px; background: var(--panel-3); }
.who-bar b { display: block; height: 100%; border-radius: 3px; background: var(--signal); }

@media (max-width: 560px) {
  .prompt { font-size: 0.75rem; padding: 1rem; max-height: 24rem; }
  .prompt-head .btn { margin-left: 0; width: 100%; }
}

/* ---------- pre-launch state ---------- */

.chip-soon {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(240, 180, 41, 0.4);
  background: rgba(240, 180, 41, 0.08);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

/* Deliberately not a <button>: there is nothing to press yet, and a disabled
   button invites people to keep clicking it. */
.btn-soon {
  border-color: rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.08);
  color: var(--warn);
  cursor: default;
}
/* Full width only inside the price card, where it replaces the buy button. */
.price .btn-soon { width: 100%; }
