/* The Duelpoint dashboard: the same design system as the website (web/marketing/app/globals.css).
   Blue is your agent, orange the other side, the point between them our referee. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fafaf8;
  --bg-tint: #f3f3f0;
  --surface: #ffffff;
  --surface-2: #f6f6f4;
  --ink: #0b0c0f;
  --ink-2: #33363f;
  --muted: #676b76;
  --line: rgb(11 12 15 / 8%);
  --line-2: rgb(11 12 15 / 14%);
  --agent: #2f55d4;
  --agent-mark: #3461e9;
  --other: #b8440f;
  --other-mark: #f15a22;
  --loss: #b42318;
  --ok: #17663a;
  --warn-bg: #fff6e5;
  --warn-ink: #6b4400;
  --glow-a: rgb(52 97 233 / 14%);
  --glow-b: rgb(241 90 34 / 11%);
  --shadow-sm: 0 1px 2px rgb(11 12 15 / 5%);
  --shadow:
    0 0 0 1px rgb(11 12 15 / 6%), 0 2px 4px rgb(11 12 15 / 4%),
    0 12px 32px -8px rgb(11 12 15 / 10%), 0 40px 80px -32px rgb(11 12 15 / 16%);
  --radius: 16px;
  --radius-lg: 22px;
  --sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080a;
    --bg-tint: #0b0c0f;
    --surface: #0f1014;
    --surface-2: #14161b;
    --ink: #f2f3f5;
    --ink-2: #c3c6cf;
    --muted: #8d92a0;
    --line: rgb(255 255 255 / 7%);
    --line-2: rgb(255 255 255 / 13%);
    --agent: #8aa3ff;
    --agent-mark: #5b7cff;
    --other: #ff9461;
    --other-mark: #ff6a2b;
    --loss: #ff7b70;
    --ok: #5fd38d;
    --warn-bg: #2b2108;
    --warn-ink: #f5d58a;
    --glow-a: rgb(70 105 255 / 20%);
    --glow-b: rgb(255 106 43 / 14%);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow:
      0 0 0 1px rgb(255 255 255 / 7%), 0 2px 4px rgb(0 0 0 / 30%),
      0 16px 40px -10px rgb(0 0 0 / 55%), 0 50px 100px -40px rgb(0 0 0 / 70%);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 620;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

p {
  margin: 0;
}

p + p {
  margin-top: 10px;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--mono);
}

/* ---- frame ------------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar .in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.05em;
}

.wordmark svg {
  width: 32px;
  height: 22px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14.5px;
}

.topnav a,
.topnav form button {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
}

.topnav form {
  margin: 0;
  display: flex;
}

.topnav form button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  min-height: 0;
  margin: 0;
  line-height: inherit;
}

.topnav form button:hover,
.topnav a:hover {
  color: var(--ink);
  background: var(--line);
}

.topnav a.cta {
  margin-left: 6px;
  color: var(--bg);
  background: var(--ink);
  font-weight: 550;
}

main {
  flex: 1;
  width: 100%;
  max-width: 880px; /* was 680px: pages sat squeezed in the middle of a wide screen (founder 2026-11-21) */
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 32px) 80px;
}

main.wide {
  max-width: 1320px;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 22px clamp(16px, 4vw, 32px);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.foot a {
  white-space: nowrap;
}

/* ---- cards and forms ----------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 32px);
  margin: 18px 0;
}

section.card > h2:first-child {
  margin-top: 0;
}

label {
  display: block;
  font-weight: 550;
  font-size: 14.5px;
  margin: 18px 0 7px;
}

form > label:first-child,
.card > label:first-child {
  margin-top: 0;
}

input,
select,
textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.15s ease;
}

textarea {
  height: auto;
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1.5px var(--agent-mark),
    0 0 0 4px color-mix(in srgb, var(--agent-mark) 18%, transparent);
}

input::placeholder {
  color: var(--muted);
}

/* checkboxes: drawn to match */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px !important;
  height: 20px;
  padding: 0;
  margin: 0 10px 0 0;
  flex: none;
  vertical-align: -4px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

input[type="checkbox"]:checked {
  background: var(--ink);
  box-shadow: none;
}

input[type="checkbox"]:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: translateY(-1px) rotate(-45deg);
}

/* radio buttons: the same size as the checkboxes (they had taken the full-width text-box style) */
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px !important;
  height: 20px;
  padding: 0;
  margin: 0 10px 0 0;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  cursor: pointer;
}

input[type="radio"]:checked {
  box-shadow: inset 0 0 0 6px var(--ink);
}

label:has(> input[type="radio"]) {
  display: flex;
  align-items: flex-start;
  font-weight: 450;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}

label:has(> input[type="radio"]) input {
  margin-top: 1px;
}

label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  font-weight: 450;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}

label:has(> input[type="checkbox"]) input {
  margin-top: 1px;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  margin-top: 22px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 560 15.5px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 14%),
    0 1px 2px rgb(0 0 0 / 20%),
    0 8px 20px -8px rgb(11 12 15 / 45%);
  transition: transform 0.2s var(--ease);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

form > button,
.wide-button {
  width: 100%;
}

/* "send again" and similar secondary actions stay quiet */
form[action^="/resend"] > button {
  margin-top: 12px;
  height: 42px;
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

form[action^="/resend"] + p,
form[action^="/resend"] + form {
  margin-top: 18px;
}

.meta {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.meta a {
  color: var(--ink-2);
}

.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
}

.ok {
  color: var(--ok);
  font-weight: 650;
}

.no {
  color: var(--loss);
  font-weight: 650;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

td,
th {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

details > summary {
  cursor: pointer;
  font-weight: 560;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 10px;
}

pre {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
}

ul {
  padding-left: 1.1em;
}

/* ---- sign-up and log-in: the form beside a Duelpoint panel ----------------------------------- */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-aside {
    order: 2;
  }
}

.auth h1 + .lede {
  color: var(--ink-2);
  font-size: 16.5px;
  margin-bottom: 8px;
}

.auth-form .card {
  margin-top: 22px;
}

.switch {
  margin-top: 16px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

.switch a {
  color: var(--ink);
  font-weight: 560;
}

.auth-aside {
  position: sticky;
  top: 96px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: #0b0c0f;
  color: #f2f3f5;
  padding: clamp(26px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  .auth-aside {
    background: #121318;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 8%);
  }
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 0% 0%, rgb(52 97 233 / 30%), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, rgb(241 90 34 / 22%), transparent 70%);
}

.auth-aside .big-mark {
  display: block;
  margin-bottom: 26px;
  color: #f2f3f5;
}

.auth-aside .big-mark svg {
  display: block;
  width: 64px;
  height: 46px;
}

.auth-aside h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 22px;
}

.auth-aside h2 .serif {
  color: #a4a8b4;
}

.auth-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.auth-aside li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: #c9ccd4;
  font-size: 14.5px;
}

.auth-aside li b {
  color: #fff;
  font-weight: 600;
}

.auth-aside li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #f2f3f5;
}

/* the panel ends with its last point: no extra space below it (founder 2026-11-13) */
.auth-aside li:last-child {
  padding-bottom: 0;
}

/* ---- buying -------------------------------------------------------------------------------- */
.tiers-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 8px;
}

@media (max-width: 640px) {
  .tiers-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tiers-tabs a {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--shadow-sm);
}

.tiers-tabs a b {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tiers-tabs a span {
  font-size: 13px;
  color: var(--muted);
}

.tiers-tabs a[aria-current="page"] {
  box-shadow:
    0 0 0 1.5px var(--ink),
    var(--shadow);
}

.tiers-tabs a.soon {
  opacity: 0.62;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 560px) {
  .choices {
    grid-template-columns: minmax(0, 1fr);
  }
}

.choices label,
.opts label {
  margin: 0;
  padding: 14px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.15s ease;
}

.choices label:has(input:checked),
.opts label:has(input:checked) {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
}

.opts {
  display: grid;
  gap: 10px;
}

.opts label + select {
  margin-top: 4px;
}

fieldset + fieldset {
  margin-top: 26px;
}

/* the price, as a receipt */
.receipt {
  font-family: var(--mono);
  font-size: 13.5px;
}

.receipt td {
  padding: 12px 0;
}

.receipt td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 16px;
}

.receipt tr.total td {
  border-bottom: 0;
  border-top: 1px dashed var(--line-2);
  padding-top: 16px;
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.receipt tr.total td:first-child {
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0;
  vertical-align: middle;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}

.facts span {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.standin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed var(--line-2);
  font: 12px/1.4 var(--mono);
  color: var(--muted);
}

.amount-big {
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 10px 0 6px;
  font-variant-numeric: tabular-nums;
}

/* Help pages: a note the reader must not miss (the test-agent rule). */
aside.note {
  border-left: 3px solid var(--other-mark);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  padding: 2px 16px;
  margin: 18px 0;
}

.card ol,
.card ul {
  padding-left: 1.25em;
}

.card li + li {
  margin-top: 6px;
}

.crumb {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.crumb a {
  color: var(--muted);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
}

.prose h3 + p,
.prose h3 + ul,
.prose h3 + ol {
  margin-top: 0;
}

.prose p,
.prose li {
  max-width: 68ch;
}

/* ---- engagement, run and account pages (2026-10-31) ------------------------------------------- */

.eng-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.eng-head h1 {
  margin-bottom: 0;
}

.eng-meta {
  margin: 8px 0 10px;
  color: var(--ink-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chip {
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill.done {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

.pill.go {
  color: var(--agent);
  background: color-mix(in srgb, var(--agent-mark) 12%, transparent);
}

.pill.wait {
  color: var(--muted);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* the five steps of an engagement */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 22px 0 6px;
  counter-reset: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 3px solid var(--line-2);
  min-width: 0;
}

.steps li span {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.steps li.done {
  color: var(--ink-2);
  border-top-color: var(--ok);
}

.steps li.done span {
  background: var(--ok);
  color: var(--surface);
  box-shadow: none;
}

.steps li.now {
  color: var(--ink);
  font-weight: 600;
  border-top-color: var(--agent-mark);
}

.steps li.now span {
  background: var(--agent-mark);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li {
    border-top: 0;
    border-left: 3px solid var(--line-2);
    padding: 4px 0 4px 10px;
  }
  .steps li.done {
    border-left-color: var(--ok);
  }
  .steps li.now {
    border-left-color: var(--agent-mark);
  }
}

/* a finished section folded away, one click to open */
details.fold {
  padding-top: 18px;
  padding-bottom: 18px;
}

details.fold > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

details.fold > summary::-webkit-details-marker {
  display: none;
}

details.fold[open] > summary {
  margin-bottom: 8px;
}

.todo {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 4px 16px;
  margin: 14px 0;
}

/* the test setup form: related fields side by side */
.grid2,
fieldset.group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  align-items: end;
}

fieldset.group {
  border: 0;
  border-top: 1px solid var(--line-2);
  border-radius: var(--radius);
  margin: 18px 0 0;
  padding: 6px 0 0;
}

fieldset.group > legend {
  font-weight: 650;
  font-size: 14px;
  color: var(--ink-2);
  padding: 0 8px 0 0;
}

.setup h3 {
  margin: 34px 0 0;
}

@media (max-width: 560px) {
  .grid2,
  fieldset.group {
    grid-template-columns: 1fr;
  }
}

/* results and runs */
ul.results,
ul.months,
ul.buyable,
ul.engagements,
ul.fails {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

ul.results > li + li {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}

.actions .button {
  margin-top: 0;
  height: 42px;
}

.button.quiet,
button.quiet {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

details.danger-zone {
  margin-top: 12px;
}

details.danger-zone > summary {
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

details.danger-zone form {
  margin-top: 8px;
}

button.danger {
  color: var(--loss);
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loss) 45%, transparent);
  height: 42px;
}

ul.months li,
ul.buyable li,
ul.engagements li,
ul.fails li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

ul.months li > :first-child,
ul.engagements li > :first-child {
  flex: 1;
}

ul.months li:last-child,
ul.buyable li:last-child,
ul.engagements li:last-child,
ul.fails li:last-child {
  border-bottom: 0;
}

ul.buyable .meta,
ul.engagements .meta {
  display: block;
  margin: 0;
}

/* the result at a glance */
.score {
  display: flex;
  align-items: center;
  gap: 18px;
}

.score .big {
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.working {
  height: 4px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: linear-gradient(
    90deg,
    var(--agent-mark),
    var(--other-mark),
    var(--agent-mark)
  );
  background-size: 200% 100%;
  animation: working 1.6s linear infinite;
}

@keyframes working {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .working {
    animation: none;
  }
}

.next {
  margin: 10px 0 0;
  color: var(--ink-2);
}

/* phones: the menu scrolls sideways inside the header instead of widening the page */
@media (max-width: 560px) {
  .topbar .wordmark {
    flex: none;
  }
  .topnav {
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    font-size: 14px;
    gap: 0;
  }
  .topnav::-webkit-scrollbar {
    display: none;
  }
  .topnav a {
    padding: 7px 9px;
  }
  .score {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.score + h3 {
  margin-top: 26px;
}

.reading {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 14.5px;
}

/* Step 16: comparing two runs */
.duo-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0 6px;
}

.duo-compare b {
  font-size: 30px;
  letter-spacing: -0.03em;
}

table.compare td,
table.compare th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pill.loss {
  color: var(--loss);
  background: color-mix(in srgb, var(--loss) 12%, transparent);
}

/* Step 14: the invoice and receipt (printable) */
.invoice-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.invoice-head h1 {
  font-family: var(--mono);
  letter-spacing: -0.02em;
  margin: 2px 0 4px;
}

.invoice .eyebrow {
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.invoice .seller {
  text-align: right;
  color: var(--ink-2);
}

.invoice .billto {
  margin: 22px 0 6px;
}

.invoice .billto p:last-child {
  margin-top: 4px;
}

.receipt th {
  text-align: left;
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}

.receipt th:last-child {
  text-align: right;
}

.receipt tr.sub td {
  color: var(--muted);
}

@media (max-width: 520px) {
  .invoice .seller {
    text-align: left;
  }
}

@media print {
  header,
  footer,
  nav,
  .crumb,
  .switch {
    display: none !important;
  }

  .invoice {
    box-shadow: none;
    border: 0;
  }
}

/* sign-up: the business name is asked only when "A business" is chosen (no script; founder 2026-11-13) */
.signup .business-only {
  display: none;
}

.signup:has(input[name="account_type"][value="business"]:checked)
  .business-only {
  display: block;
}

.signup fieldset {
  margin-bottom: 18px;
}

/* the account line under "Your account": name · company · account number (founder 2026-11-13) */
.account-id {
  color: var(--ink-2);
  font-size: 15.5px;
  margin: -6px 0 22px;
}

/* sign-up bot check: a field people never see (off screen, skipped by the keyboard and screen readers) */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- start a test: steps on the left, "Your test" on the right (founder 2026-11-13) ---------------- */
.st-head h1 {
  margin-bottom: 8px;
}

.st-head p {
  color: var(--ink-2);
  font-size: 16.5px;
  margin: 0 0 6px;
}

.st-head .acct {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}

.st-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

@media (max-width: 900px) {
  .st-grid {
    grid-template-columns: 1fr;
  }
}

.st-step {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px var(--line);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.st-step .lab {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font: 600 12.5px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.st-step .lab .req,
.st-step .lab .done,
.st-step .lab .opt {
  font: 500 12.5px/1.2 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.st-step .lab .req {
  color: var(--agent);
}

.st-step .lab .req.met,
.st-step .lab .done {
  color: var(--ok);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tiles.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .tiles,
  .tiles.two {
    grid-template-columns: 1fr;
  }
}

.tile {
  position: relative;
  display: block;
  margin: 0;
  border-radius: 14px;
  padding: 15px 34px 14px 16px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.tile b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.tile span {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}

.tile .tag {
  position: absolute;
  top: 15px;
  right: 14px;
  font: 600 12px/1 var(--mono);
  color: var(--ink-2);
}

.tile .note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--other);
}

.tile .note a {
  color: inherit;
}

/* the box itself stays for the keyboard and screen readers, drawn as the tile */
.tile input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px;
}

.tile:has(input:focus-visible) {
  outline: 2px solid var(--agent);
  outline-offset: 2px;
}

.tile.on,
.tile:has(input:checked) {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.tile.on::after,
.tile:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 13px;
  right: 14px;
  font-size: 14px;
  font-weight: 700;
}

.tile:has(.tag):has(input:checked)::after {
  content: none;
}

.tile.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.tile-select {
  grid-column: 1 / -1;
  display: block;
  margin: 0;
}

.tile-select b {
  display: block;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

label.chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  font-weight: 450;
  color: var(--ink-2);
  cursor: pointer;
}

label.chip input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px;
}

label.chip:has(input:checked) {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  font-weight: 550;
}

label.chip:has(input:focus-visible) {
  outline: 2px solid var(--agent);
  outline-offset: 2px;
}

.st-step .hint {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.sum {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px var(--line);
  padding: 24px;
}

.sum h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.sum .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.sum .row span {
  color: var(--muted);
}

.sum .row b {
  font-weight: 550;
  text-align: right;
}

.sum .lines:not(:empty) {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

.sum .line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 13px/1.9 var(--mono);
  color: var(--ink-2);
}

.sum .total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0 16px;
}

.sum .total span {
  color: var(--muted);
  font-size: 14px;
}

.sum .total b {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.sum button {
  width: 100%;
}

.sum button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sum .need {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--other);
  text-align: center;
}

.sum .need:empty {
  display: none;
}

.sum .fine {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.st-one {
  max-width: 760px;
}

/* ==========================================================================================
   Design E, "Signal": the website's own layer (web/marketing/app/globals.css), applied to the
   dashboard so a customer never leaves the website's look after paying (founder 2026-11-13: "they
   should be feeling happy before even the test runs"; 2026-11-21: nothing may look like a
   competitor's site). Cool white in light mode, deep navy in dark mode; serif headlines, mono labels,
   hairline rules, rounded surfaces, indigo for the one action colour, orange only where something is
   wrong. Comes last, so it restyles every dashboard page.
   ========================================================================================== */
:root {
  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #e8e8ed;
  --line-2: rgb(0 0 0 / 16%);
  --rule: #e8e8ed;
  --agent: #2a55e5;
  --agent-mark: #3461e9;
  --other: #b5440f;
  --other-mark: #f15a22;
  --loss: #c2410c;
  --ok: #12794a;
  --accent: #2a55e5;
  --green: #12794a;
  --warn-bg: #fdeee6;
  --warn-ink: #8f2e08;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 6%);
  --shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 12px 32px -12px rgb(0 0 0 / 14%);
  --hard-shadow: 0 2px 6px rgb(0 0 0 / 5%), 0 44px 90px -34px rgb(0 0 0 / 24%);
  --on-accent: #ffffff;
  --radius: 12px;
  --radius-lg: 24px;
  --serif: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-tint: #0b0b0d;
    --surface: #17171a;
    --surface-2: #1f1f23;
    --ink: #f5f5f7;
    --ink-2: #c7c7cc;
    --muted: #9a9aa2;
    --line: #2a2a2e;
    --line-2: #3a3a40;
    --rule: rgb(255 255 255 / 12%);
    --agent: #7ea0ff;
    --agent-mark: #7b97ff;
    --other: #ff9a68;
    --other-mark: #ff7a3d;
    --loss: #ff8a5c;
    --ok: #3ddc97;
    --accent: #7ea0ff;
    --green: #3ddc97;
    --warn-bg: rgb(255 122 61 / 12%);
    --warn-ink: #ffc3a5;
    --shadow-sm: none;
    --shadow: 0 0 0 1px var(--line);
    --hard-shadow: 0 40px 110px -30px #000;
    --on-accent: #0b0b0d;
  }
}

h1 {
  font: 400 clamp(40px, 5.4vw, 72px) / 0.98 var(--serif);
  letter-spacing: -0.035em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font: 400 clamp(26px, 2.6vw, 34px) / 1.08 var(--serif);
  letter-spacing: -0.02em;
}

h3 {
  font: 400 22px / 1.15 var(--serif);
  letter-spacing: -0.01em;
}

.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
  backdrop-filter: none;
}

.wordmark {
  font: 400 26px var(--serif);
  letter-spacing: -0.01em;
}

.card,
details.card {
  border-radius: var(--radius);
  box-shadow: none;
  border: 1px solid var(--line);
  background: var(--surface);
}

button,
.button {
  border-radius: var(--radius);
  height: 50px;
  border: 1px solid var(--ink);
  box-shadow: none;
  font-weight: 600;
}

button:hover,
.button:hover {
  transform: none;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.quiet,
button.quiet {
  background: transparent;
  color: var(--ink);
}

input,
select,
textarea {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.pill {
  border-radius: var(--radius);
  font: 500 11.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.warn {
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-left: 3px solid var(--accent);
}

/* sign-up: everything still missing, listed at once, and those boxes marked (api/static/signup.js) */
.signup-missing {
  margin: 0 0 20px;
  padding: 12px 16px;
}

.signup-missing p {
  margin: 0 0 6px;
  font-weight: 600;
}

.signup-missing ul {
  margin: 0;
  padding-left: 20px;
}

.signup .missing input:not([type="checkbox"]):not([type="radio"]),
.signup select.missing {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.signup label.missing,
.signup fieldset.missing legend {
  color: var(--accent);
}

/* the mobile number: the country's calling code sits in front of the box (never typed) */
.phone-row {
  display: flex;
  align-items: stretch;
}

.phone-row .dial {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line, #c9c6bd);
  border-right: 0;
  background: var(--surface-2, #f4f4f1);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.phone-row .dial[hidden] {
  display: none;
}

.phone-row input {
  flex: 1;
  min-width: 0;
}

.signup label.missing input[type="checkbox"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* labels in the ledger voice: small spaced capitals */
.kick {
  font: 500 12px var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.kick::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--accent);
}

.lede-serif {
  font: 400 21px / 1.42 var(--serif);
  color: var(--ink);
  max-width: 720px;
}

/* the buy page's tiles: name above its description, whatever the general checkbox rule says */
.tiles label.tile,
.tiles a.tile {
  display: block;
}

.tiles label.tile b,
.tiles a.tile b {
  margin-bottom: 4px;
}

/* "Your test" total: a number is big; a hint ("—") stays calm */
.sum .total b:not(:empty) {
  font: 400 34px var(--serif);
  letter-spacing: -0.02em;
}

/* ---- the test plan (founder 2026-11-13): one exhibit per area bought ---------------------------------- */
.plan-wrap {
  margin: 34px 0 10px;
}

.plan-h {
  font: 400 clamp(36px, 4.6vw, 60px) / 1 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.plan-h em {
  font-style: italic;
  color: var(--accent);
}

.plan-wrap .lede-serif {
  margin-bottom: 28px;
}

.plan-biz {
  max-width: 460px;
  margin: 0 0 30px;
}

.plan .ex {
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--hard-shadow);
  margin: 0 10px 44px 0;
}

.plan .ex-h {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rule);
  font: 500 11.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan .ex-h .c {
  color: var(--accent);
}

.plan .ex-h .c.ok {
  color: var(--ok);
}

.plan .ex-t {
  padding: 22px 24px 4px;
}

.plan .ex-t h2 {
  font: 400 clamp(32px, 3.6vw, 46px) / 1 var(--serif);
  letter-spacing: -0.025em;
  margin: 0;
}

.plan .ex-t p {
  font-size: 16px;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 680px;
}

.plan .ex-b {
  padding: 18px 24px 24px;
}

.plan .pf {
  display: block;
  margin: 0 0 16px;
  font-weight: 400;
}

.plan .pl {
  display: block;
  font: 500 10.5px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.plan .pi {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--ink);
}

.plan .pi input {
  border: 0;
  box-shadow: none;
  background: transparent;
  height: 46px;
  font: 400 19px var(--serif);
  padding: 0 12px;
  width: 100%;
}

.plan .pi.m input {
  padding-left: 4px;
}

.plan .cur {
  padding-left: 12px;
  font: 400 19px var(--serif);
  color: var(--ink);
}

.plan .ph {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.plan .prods {
  display: grid;
  gap: 0;
  margin-bottom: 8px;
}

.plan .prow {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  align-items: start; /* a hint under one box must not push its neighbours out of line */
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.plan .prow:first-child {
  border-top: 0;
  padding-top: 0;
}

.plan .prow .pn {
  grid-column: 1 / -1;
  font: 500 10.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.plan .prow .pf {
  margin: 0;
}

/* the lowest price is what the test is about: it stands out */
.plan .pi:has(input[data-floor]) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.plan .grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
}

@media (max-width: 760px) {
  .plan .prow,
  .plan .grid3 {
    grid-template-columns: 1fr;
  }
}

.plan .why {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 16px;
}

.plan .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.plan label.chip {
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: none;
}

.plan label.chip:has(input:checked) {
  background: var(--ink);
  color: var(--bg);
}

.plan .tick {
  margin-top: 4px;
  font-size: 15px;
}

.plan .made-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font: 500 13.5px/2 var(--mono);
  color: var(--ink-2);
}

.plan .made-list b {
  color: var(--ink);
}

.plan details summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: underline;
  margin-bottom: 12px;
}

.plan .ex.made {
  box-shadow: none;
  border-color: var(--line);
  background: var(--surface-2);
}

.plan .asks {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.plan .asks li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.plan .asks q {
  font: 400 19px / 1.35 var(--serif);
}

.plan .ans {
  font: 500 12px var(--mono);
  letter-spacing: 0.03em;
}

.plan .ans.related {
  color: var(--ok);
}

.plan .ans.outside {
  color: var(--muted);
}

.plan textarea {
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  font: 400 17px / 1.4 var(--serif);
}

.plan-save {
  width: auto;
  min-width: 260px;
  height: 56px;
  font-size: 16px;
}

/* square corners everywhere in the website's look */
.tile,
label.chip,
.sum,
.st-step {
  border-radius: var(--radius);
}

/* the agreed plan, as a ledger */
.plan.agreed .ex {
  margin-top: 30px;
}

.plan .ledger {
  width: 100%;
  border-collapse: collapse;
}

.plan .ledger th {
  text-align: left;
  font: 500 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--line);
  width: 34%;
  vertical-align: top;
}

.plan .ledger td {
  font: 400 19px / 1.35 var(--serif);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.plan .asks-h {
  margin: 24px 0 6px;
}

/* the five steps, as a ruled rail (the agreed test-plan design) */
.steps {
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 26px 0 10px;
}

.steps li {
  display: block;
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: 12px 16px 14px;
  font: 400 22px / 1.2 var(--serif);
  color: var(--muted);
}

.steps li:first-child {
  border-left: 0;
  padding-left: 0;
}

.steps li span,
.steps li.done span,
.steps li.now span {
  display: block;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
  font: 500 11px var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}

.steps li span::before {
  content: "0";
}

.steps li.done {
  color: var(--ink);
}

.steps li.done::after {
  content: " ✓";
  color: var(--ok);
  font: 600 16px var(--sans);
}

.steps li.now {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.steps li.now span {
  color: var(--accent);
}

.chips .chip {
  border-radius: var(--radius);
  font: 500 11.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next {
  font-size: 15px;
}

.steps {
  align-items: start;
}

.steps li {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
}

.steps li span {
  line-height: 1.4;
}

.steps li {
  align-items: flex-start;
  margin: 0 !important;
  padding-top: 12px !important;
}

/* ---- where the plan comes from, and values we found (founder 2026-11-15) ------------------------------ */
.sources .src-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .sources .src-grid {
    grid-template-columns: 1fr;
  }
}

.sources .src {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}

.sources .src h3 {
  font: 400 24px var(--serif);
  margin: 0 0 8px;
}

.sources .src-form button {
  margin-top: 10px;
}

.sources .done-line {
  color: var(--ok);
  font-size: 14px;
  margin: 0 0 10px;
}

.sources .qa li {
  margin-bottom: 8px;
  font-size: 14px;
}

.plan .picks {
  border: 1px solid var(--line);
  padding: 12px 14px 4px;
  margin: 0 0 16px;
}

.plan .pick {
  display: block;
  font: 400 17px / 1.4 var(--serif);
  margin: 0 0 10px;
}

.plan .src,
.plan .src-line {
  display: block;
  font: 400 13px / 1.45 var(--sans, inherit);
  color: var(--muted);
  margin: 2px 0 0 26px;
}

.plan .src q,
.plan .differ-box q {
  font-style: italic;
}

.plan .differ,
.plan .differ-box h3 {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}

.plan .differ-box {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 22px 0;
}

/* a box to fix after saving: marked, and named in the list at the top */
.plan .err .pi,
.plan .err textarea,
.plan .ex-b.err textarea,
.plan .picks.err {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan .err .pl,
.plan fieldset.err legend {
  color: var(--accent);
}

.plan .accept {
  margin-top: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.plan .accept button {
  width: auto;
  min-width: 240px;
}

/* long words and names wrap instead of pushing the page sideways */
main h1,
main h2,
.account-id,
.acct,
.ledger td,
td,
code,
q,
.pick,
.done-line,
.eng-meta,
main li,
main p {
  overflow-wrap: anywhere;
}

code.wrap {
  word-break: break-all;
}

/* policies: in a box on the sign-up page, or in a tab that offers to close itself (founder 2026-11-15) */
dialog.policy {
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 86vh;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0 28px 24px;
  background: var(--surface);
  color: var(--ink);
}

dialog.policy::backdrop {
  background: rgba(10, 12, 16, 0.55);
}

dialog.policy .dlg-top {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  background: var(--surface);
  padding: 14px 0 6px;
}

dialog.policy .dlg-top button {
  width: auto;
}

.from-signup {
  border: 1px solid var(--ink);
  background: var(--surface);
  padding: 14px 18px;
  margin: 0 0 22px;
}

.from-signup button {
  width: auto;
}

.doc h2,
.doc h3,
.doc h4 {
  margin: 30px 0 10px;
}

.doc h1 + h2,
.doc > h2:first-child,
.doc > h3:first-child {
  margin-top: 6px;
}

.doc p,
.doc li {
  line-height: 1.6;
}

.plan .ans.unmatched {
  color: var(--muted);
  font-style: italic;
}

/* ---- Design E controls: indigo for the one main action, ink on hover; quiet and danger keep their look ---- */
button,
.button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

button:hover,
.button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.button.quiet,
button.quiet,
button.danger {
  background: transparent;
  border-color: var(--line-2);
}

.button.quiet,
button.quiet {
  color: var(--ink);
}

.button.quiet:hover,
button.quiet:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

button.danger {
  color: var(--loss);
}

button.danger:hover {
  background: var(--loss);
  border-color: var(--loss);
  color: var(--on-accent);
}

.topnav a.cta {
  border-radius: var(--radius);
}

.topnav a.cta {
  background: var(--accent);
  color: var(--on-accent);
}

.topnav a.cta:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---- the website's type, in the dashboard (founder 2026-11-21: one scale everywhere): sans headlines,
   weight 540-560, 40px at most (an app page, not a marketing page) ---- */
:root {
  --serif: var(--sans);
}

h1 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.026em;
}

h3 {
  font-size: 20px;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--accent);
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* One step at a time on the order page (founder 2026-11-21). The bar stays; /assets/steps.js shows one step.
   Without the script (or with it blocked) every step shows, in order. */
.wizard.on > .stepbox {
  display: none;
}

.wizard.on > .stepbox.show {
  display: block;
}

.steps li.go {
  cursor: pointer;
}

.steps li.go:hover,
.steps li.viewing {
  color: var(--ink);
}

.steps li.viewing {
  border-top-color: var(--ink);
}

.stepnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stepnav button {
  min-width: 140px;
}

/* Slides inside "Your plan" (founder 2026-11-21): one at a time, with Back, where you are, and Next. */
.stepbox.slides .slide {
  display: none;
}

.stepbox.slides .slide.show {
  display: block;
}

.slidenav {
  margin-top: 24px;
}

.slidewhere {
  flex: 1;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.slidenav button[disabled] {
  visibility: hidden;
}

.plan-review .rv-group {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.plan-review .rv-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.plan-review .rv-row {
  display: flex;
  gap: 16px;
  padding: 6px 0;
  font-size: 14.5px;
}

.plan-review .rv-row > span:first-child {
  flex: 0 0 38%;
  color: var(--muted);
}

.plan-review .rv-missing > span:last-child {
  color: var(--no, #b42318);
  font-weight: 600;
}

/* Scrolling to a step or slide must not hide its heading under the fixed menu bar. */
.steps,
.wizard .stepbox {
  scroll-margin-top: 84px;
}

.plan-review .rv-gaps {
  margin: 14px 0 0;
  color: var(--no, #b42318);
  font-weight: 600;
}

.plan-review .rv-ok {
  margin: 14px 0 0;
  color: var(--ok);
  font-weight: 600;
}

/* The nine-step order flow (founder 2026-11-22): Agent Check, Assessment and Expert Assessment alike.
   Steps 1 to 3 are the Buy page and the price page; 4 (in four parts) to 9 are the order's own page. */
.steps.nine {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
}

.steps.nine li {
  font-size: 12.5px;
  line-height: 1.25;
  align-items: flex-start;
}

.steps.nine li a {
  color: inherit;
  text-decoration: none;
}

.steps.nine li a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.steps.nine li:nth-child(7) {
  border-top-style: solid;
  position: relative;
}

.bar-note {
  margin: 4px 0 18px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .steps.nine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 10px;
  }
}

/* step 1: the three tests as cards, each with its price */
.tiles.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile .price {
  display: block;
  margin: 8px 0 4px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tile.fixed {
  cursor: default;
  background: var(--surface-2);
}

.st-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.st-h .req,
.st-h .opt {
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.st-h .req {
  color: var(--other);
}

.st-h .req.met {
  color: var(--ok);
}

.st-h .opt {
  color: var(--muted);
}

.company-only {
  margin-top: 14px;
}

.stepbox .go-on {
  display: none; /* moved into Back and Next by /assets/steps.js; without the script it shows below */
}

.wizard:not(.on) .stepbox .go-on,
.stepnav .go-on {
  display: inline-flex;
}

/* step 3: the price, and what happens next */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
}

.next-list {
  margin: 8px 0 18px;
  padding-left: 20px;
  color: var(--ink-2);
}

.next-list li {
  margin: 8px 0;
}

/* step 4: its four parts, and what to have at hand for each */
.parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 18px;
}

.parts a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-top: 9px;
  border-top: 3px solid var(--line-2);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.parts a span {
  font: 600 11px var(--mono);
}

.parts a.now {
  border-top-color: var(--agent-mark);
  color: var(--ink);
  font-weight: 600;
}

.parts a:hover {
  color: var(--ink);
}

@media (max-width: 700px) {
  .parts {
    grid-template-columns: 1fr 1fr;
  }
}

.need-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.need-h {
  margin: 0;
  font: 500 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.need-box ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.need-box li {
  margin: 3px 0;
}

.need-why {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.need-time {
  flex: none;
  font: 12px var(--mono);
  color: var(--muted);
}

.dev-box {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13.5px;
}

.dev-box summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--agent);
}

.dev-box summary::before {
  content: "</> ";
  font: 600 12px var(--mono);
}

.dev-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

.dev-box pre {
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-tint);
  font: 12px/1.5 var(--mono);
}

@media (max-width: 700px) {
  .dev-grid {
    grid-template-columns: 1fr;
  }
}

/* the test plan's draft, kept in this browser as it is typed */
.draft-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.draft-note:empty {
  display: none;
}

.draft-note button {
  min-width: 0;
  padding: 6px 12px;
  font-size: 13px;
}

.steps.nine li {
  font-size: 15px;
  padding: 10px 10px 12px;
}

.steps.nine li.done::after {
  font-size: 13px;
}

.stepnav button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stepbox .need {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--other);
  text-align: right;
}

.stepbox .need:empty {
  display: none;
}

.sum .total.scope b {
  font-size: 17px;
  line-height: 1.3;
  text-align: right;
}

/* who is signed in, on the top line of every dashboard page (founder 2026-11-22) */
.topbar .acctbar {
  margin-right: auto;
  margin-left: 14px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink, inherit);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40ch;
}

/* "Keep this result current" (founder 2026-11-22): the honest answer shows once "how often" is chosen */
.keep ul {
  margin: 0 0 14px;
  padding-left: 18px;
}
.keep .often {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.keep .often legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.keep .often label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 450;
}
.keep .often input {
  width: auto;
}
.keep .rec {
  display: none;
  border-left: 3px solid var(--line);
  padding-left: 12px;
}
.keep:has(input[value="often"]:checked) .often-yes,
.keep:has(input[value="rarely"]:checked) .often-no {
  display: block;
}

/* the rules form (founder 2026-11-22): the lowest-price boxes only when the agent may go below list price, the
   refund amount only when the agent may refund on its own */
form.plan:has(input[name="floor"][value="list"]:checked) .lowest,
form.plan:has(input[name="never_refunds"][value="on"]:checked) .limitbox {
  display: none;
}
