:root {
  --ink: #1f2a37;
  --ink-soft: #3b4756;
  --grey: #8a94a3;
  --accent: #e2a72e;
  --accent-soft: rgba(226, 167, 46, 0.22);
  --paper: #ffffff;
  --bg: #f6f4ef;
  --bg-band: #efece4;
  --line: #ddd8cc;
  --muted: #5b6573;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 12px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f1ec;
    --ink-soft: #d5d2ca;
    --paper: #1c2430;
    --bg: #151b23;
    --bg-band: #1a212b;
    --line: #2c3644;
    --muted: #a3acb8;
    --accent-soft: rgba(226, 167, 46, 0.25);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
}

.skip:focus {
  left: 16px;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

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

@media (max-width: 560px) {
  .nav a:nth-child(n + 3) {
    display: none;
  }
}

/* type */
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 600;
}

h1 {
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.section-lede {
  max-width: 68ch;
  color: var(--ink-soft);
}

/* sections */
section {
  padding: 64px 0;
}

.band {
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* hero */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.hero-logo {
  margin: 0;
  justify-self: center;
  width: min(300px, 70vw);
  background: var(--paper);
  border-radius: 28px;
  padding: 16px;
  box-shadow:
    0 1px 0 var(--line),
    0 18px 40px -24px rgba(31, 42, 55, 0.35);
}

@media (prefers-color-scheme: dark) {
  .hero-logo {
    background: #f6f4ef;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

.button.primary:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

/* example card */
.example {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.ex-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.ex-claim,
.ex-quote {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.ex-quote {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

mark {
  background: var(--accent-soft);
  color: inherit;
  padding: 0 3px;
  border-radius: 3px;
}

.verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-size: 17px;
}

.mark {
  width: 26px;
  height: 26px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  position: relative;
  flex: none;
}

.mark-na::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 12px;
}

.steps li:last-child::before {
  background: var(--accent);
  color: #1f2a37;
}

.steps p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* results */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 16px;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:last-child {
  color: var(--muted);
}

.findings {
  padding-left: 20px;
  max-width: 72ch;
}

.findings li {
  margin-bottom: 8px;
}

.caveat {
  font-size: 15px;
  color: var(--muted);
  max-width: 72ch;
}

.sub {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
}

.progress {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.progress li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  border: 1px solid var(--accent);
  white-space: nowrap;
}

/* video */
.video-frame {
  max-width: 820px;
  margin-top: 24px;
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* pitch thumb */
.thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(31, 42, 55, 0.5);
  transition: transform 0.2s ease;
}

.thumb:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .thumb,
  .button {
    transition: none;
  }
  .thumb:hover {
    transform: none;
  }
}

/* facts */
.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.facts span {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 2px;
}

/* team */
.team {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 720px) {
  .team {
    grid-template-columns: 120px 1fr;
  }
}

.team img {
  width: 96px;
  height: 96px;
  background: #f6f4ef;
  border-radius: 20px;
  padding: 8px;
}

/* footer */
.site-footer {
  padding: 32px 0 48px;
  font-size: 14.5px;
  color: var(--muted);
}

.footer-row {
  display: grid;
  gap: 4px;
}

.footer-row p {
  margin: 0;
}

/* 404 */
.notfound {
  padding: 96px 0;
  text-align: center;
}

.notfound img {
  margin: 0 auto 24px;
  width: 120px;
}

@media (prefers-color-scheme: dark) {
  .brand img {
    background: #f6f4ef;
    border-radius: 8px;
    padding: 2px;
  }
}

.actions-center {
  justify-content: center;
}

@media (max-width: 560px) {
  table {
    min-width: 0;
    font-size: 14.5px;
  }
  th,
  td {
    padding: 10px 8px;
  }
  th {
    font-size: 11px;
  }
}

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

.model-switch {
  margin: 24px 0;
}

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

.tabs [role="tab"] {
  font: 500 15px/1.2 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
}

.tabs .tab-note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-left: 6px;
  opacity: 0.8;
}

.tabs [role="tab"]:hover {
  border-color: var(--accent);
}

.tabs [role="tab"][aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #1f2a37;
}

.tabs [role="tab"]:focus-visible,
.model-panel:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.model-panel {
  border-radius: var(--radius);
}

.model-panel > .kv {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.kv {
  min-width: 0;
}

.kv tbody th {
  font-family: var(--sans);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-weight: 400;
}

.kv tbody tr:last-child {
  color: inherit;
}

.kv tbody tr:last-child th,
.kv tbody tr:last-child td {
  border-bottom: 0;
}

.kv td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kv .ci {
  color: var(--muted);
  font-size: 13px;
}

.kv-both {
  min-width: 560px;
}

@media (max-width: 560px) {
  .model-panel > .kv tbody th,
  .model-panel > .kv tbody td {
    display: block;
    text-align: left;
    white-space: normal;
  }
  .model-panel > .kv tbody th {
    border-bottom: 0;
    padding-bottom: 2px;
  }
  .model-panel > .kv tbody td {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .kv-both {
    min-width: 0;
  }
  .kv-both thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .kv-both tbody th,
  .kv-both tbody td {
    display: block;
    text-align: left;
    white-space: normal;
    border-bottom: 0;
  }
  .kv-both tbody th {
    padding-bottom: 4px;
  }
  .kv-both tbody td {
    padding-top: 0;
    padding-bottom: 4px;
  }
  .kv-both tbody td:last-child {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .kv-both tbody tr:last-child td:last-child {
    border-bottom: 0;
  }
  .kv-both td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 3.2em;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--muted);
  }
}

/* Contact form */

.contact {
  --contact-error: #a3281d;
}

@media (prefers-color-scheme: dark) {
  .contact {
    --contact-error: #ff9d92;
  }
}

.contact-lead {
  max-width: 40em;
  margin: 0 0 20px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.contact-form[hidden] {
  display: none;
}

.contact-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid color-mix(in srgb, var(--ink) 50%, var(--bg));
  border-radius: 10px;
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}

.contact-field [aria-invalid="true"] {
  border-color: var(--contact-error);
  border-width: 2px;
}

.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button[type="submit"] {
  min-height: 46px;
  font-family: inherit;
  cursor: pointer;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}

.contact-status {
  min-height: 1.6em;
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid transparent;
  font-weight: 600;
  color: var(--ink);
}

.contact-status[data-state="error"] {
  color: var(--contact-error);
  border-left-color: var(--contact-error);
}

.contact-status[data-state="success"] {
  border-left-color: var(--accent);
}

.contact-status a {
  color: inherit;
}

.contact-nojs {
  max-width: 40em;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 50%, var(--bg));
  border-radius: 10px;
}

.contact-privacy {
  max-width: 40em;
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
