:root {
  --bg: #FFFFFF;
  --bg-raised: #F6F6F8;
  --line: rgba(17, 17, 26, 0.1);
  --hair: 1px;
  --line-soft: #E7E7EE;
  --ink: #111116;
  --dark: #111116;
  --dark-hover: #2B2B35;
  --accent: #4F46D8;
  --accent-soft: #EEEDFD;
  --muted: #5F5F6E;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --frame: 1440px;
  --pad: clamp(20px, 3.4vw, 48px);
}

/* True hairlines on high-density screens. */
@media (min-resolution: 2dppx) {
  :root { --hair: 0.5px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: 1.02; font-weight: 300; }
h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.05; font-weight: 300; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }

.muted { color: var(--muted); }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--dark-hover); }
.btn-primary[disabled] { opacity: .4; cursor: not-allowed; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { width: 16px; height: 16px; transition: transform .18s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Logo: pixel hamster mark plus the wordmark set in the headline serif */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo img { height: 30px; width: auto; }
.logo-text { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -0.02em; line-height: 1; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: var(--hair) solid var(--line); }
.nav-inner {
  max-width: var(--frame); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px;
}
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: 14px; text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

/* Frame: the page sits between two vertical rails; horizontal rules run edge to edge. */
.frame {
  max-width: calc(var(--frame) - 60px); margin: 0 auto;
  border-left: var(--hair) solid var(--line); border-right: var(--hair) solid var(--line);
}
.rule { position: relative; }
.rule::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: 100vw; transform: translateX(-50%);
  border-top: var(--hair) solid var(--line); pointer-events: none;
}
.inner { padding-inline: var(--pad); }

section { padding-block: 64px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.section-head .lead { justify-self: end; }

/* Hero: the dot field fills the section and fades out behind the text. */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(540px, 76vh, 760px); display: flex; align-items: flex-end;
  padding-block: 160px 56px;
}
.hero .dotfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { position: relative; width: 100%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.hero h1 { max-width: 780px; }
.hero-side .lead { margin-bottom: 28px; font-size: 17px; }

.dotfield { display: block; image-rendering: pixelated; }

/* What we pay: two boxed cells side by side */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); }
.proof-item { padding: 24px 24px 28px; border-left: var(--hair) solid var(--line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-figure { font-family: var(--display); font-weight: 300; letter-spacing: -0.02em; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; color: var(--ink); margin: 16px 0 12px; white-space: nowrap; }
.proof-label { font-weight: 500; font-size: 15px; }
.proof-sub { color: var(--muted); font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; border-top: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); }
.step { padding: 20px 20px 24px; border-left: var(--hair) solid var(--line); }
.step:first-child { border-left: 0; padding-left: 0; }
.step-num { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.step-num::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.step h3, .data-card h3 { margin-bottom: 6px; }
.step p, .data-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Data we buy */
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--hair) solid var(--line); }
.data-card { padding: 20px 20px 24px; border-bottom: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line); }
.data-card:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.data-icon { width: 34px; height: 34px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.data-icon svg { width: 18px; height: 18px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq-side .lead { margin: 16px 0 24px; }
.faq-list { border-top: var(--hair) solid var(--line); }
.faq-list details { border-bottom: var(--hair) solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--display); font-size: 22px; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::before { width: 11px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 11px; }
summary:hover .faq-icon { background: var(--accent-soft); border-color: var(--accent-soft); }
details[open] .faq-icon { transform: rotate(45deg); background: var(--accent-soft); border-color: var(--accent-soft); }
.faq-list details p { padding: 0 48px 20px 0; color: var(--muted); font-size: 16px; }

/* Footer */
.footer { padding-block: 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: stretch; }
.footer-inner > * { padding: 28px var(--pad); display: flex; align-items: center; }
.footer-inner > * + * { border-left: var(--hair) solid var(--line); }
.footer-meta { color: var(--muted); font-size: 13px; gap: 1ch; flex-wrap: wrap; }
.footer-meta a { color: var(--muted); }

/* ---------- Assessment ---------- */
.assess-main { padding: 48px 0 80px; min-height: calc(100vh - 73px - 94px); }

.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.intro h1 { font-size: clamp(42px, 4.6vw, 66px); margin-bottom: 20px; }
.intro .lead { margin-bottom: 28px; }
.intro-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.intro-card { border: var(--hair) solid var(--line); overflow: hidden; }
.intro-card .dotfield, .confirm-hero .dotfield { width: 100%; height: 112px; }
.intro-card-body { padding: 8px 32px 28px; }
.intro-card-label { font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 12px; }
.intro-steps { list-style: none; padding: 0; margin: 0; }
.intro-steps li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: var(--hair) solid var(--line); font-size: 15px; }
.intro-steps span { flex: none; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent); }

.checklist-label { margin: 56px 0 0; padding-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--hair) solid var(--line); }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 20px 20px 0; font-size: 15px; }
.checklist li + li { padding-left: 20px; border-left: var(--hair) solid var(--line); }
.check { flex: none; width: 22px; height: 22px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }

/* Quiz */
.quiz { max-width: 800px; margin: 0 auto; }
.quiz-top { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.back-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  padding: 8px 0; color: var(--muted); font-size: 14px;
}
.back-btn:hover { color: var(--ink); }
.progress { flex: 1; height: 4px; background: var(--line-soft); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .35s ease; }
.progress-count { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }

.q-title { font-size: clamp(32px, 3.8vw, 48px); margin-bottom: 10px; }
.q-hint { color: var(--muted); margin-bottom: 28px; }
.options { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line); }
.options.single-col { grid-template-columns: 1fr; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  min-height: 64px; padding: 18px 22px; border: 0; border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line);
  background: transparent; cursor: pointer; font-size: 16px; font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
.option:hover { background: var(--bg-raised); }
.option .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(17, 17, 26, .25);
  display: grid; place-items: center; color: transparent; transition: all .15s ease;
}
.option.multi .tick { border-radius: 0; }
.option.selected { background: var(--dark); color: #fff; }
.option.selected .tick { background: var(--accent); border-color: var(--accent); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px;
  border: var(--hair) solid var(--line); background: var(--bg-raised); cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.selected { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip-logo { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.chip-logo img { width: 14px; height: 14px; object-fit: contain; }
.chip.selected .chip-logo { box-shadow: 0 0 0 2px var(--accent); }

.platform-group { padding: 18px 0; border-top: var(--hair) solid var(--line); }
.platform-group-title { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field .optional { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #9A9AA8; }
.input:hover { border-color: rgba(17, 17, 26, .25); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 216, .15); }
.input.invalid { border-color: #B42318; }
.field-error { font-size: 13px; color: #B42318; }

.quiz-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.quiz-actions .muted { font-size: 13px; }

/* Email gate */
.gate { max-width: 580px; margin: 0 auto; }
.gate-card { border: var(--hair) solid var(--line); background: var(--bg-raised); padding: 36px; }
.gate h2 { margin-bottom: 12px; }
.gate .lead { font-size: 16px; margin-bottom: 24px; }
.gate-form { display: grid; gap: 16px; }
.gate-form .btn { width: 100%; margin-top: 8px; }
.gate-note { text-align: center; font-size: 13px; color: var(--muted); }

/* Confirmation */
.confirm { max-width: 920px; margin: 0 auto; border: var(--hair) solid var(--line); }
.confirm-body { padding: 8px 36px 36px; }
.confirm-company { font-size: 13px; font-weight: 500; color: var(--accent); }
.confirm-company strong { color: var(--ink); font-weight: 600; }
.confirm-headline { font-size: clamp(32px, 4vw, 50px); max-width: 720px; margin: 14px 0 18px; }
.confirm-text { font-size: 16px; max-width: 620px; color: var(--muted); }
.confirm-text strong { color: var(--ink); font-weight: 500; }

.next-card { border-top: var(--hair) solid var(--line); background: var(--bg-raised); padding: 28px 36px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.next-card h3 { font-size: 28px; margin-bottom: 6px; }
.next-card p { color: var(--muted); max-width: 460px; }

.fade-in { animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .intro, .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .lead { justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n + 3) { border-top: var(--hair) solid var(--line); }
  .checklist { grid-template-columns: 1fr 1fr; }
  .checklist li:nth-child(3) { border-left: 0; padding-left: 0; }
  .checklist li:nth-child(n + 3) { border-top: var(--hair) solid var(--line); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
  .logo img { height: 26px; }
  .logo-text { font-size: 26px; }
  .frame { border-left: 0; border-right: 0; }
  section { padding-block: 48px; }
  .hero { min-height: 560px; padding-block: 150px 44px; }
  .lead { font-size: 17px; }
  .faq-list summary { font-size: 19px; }
  .faq-list details p { padding-right: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > * + * { border-left: 0; border-top: var(--hair) solid var(--line); }
  .footer-inner > * { padding: 24px var(--pad); }

  .assess-main { padding: 28px 0 56px; }
  .checklist-label { margin-top: 40px; }
  .proof-figure { white-space: normal; }
  .quiz-top { margin-bottom: 28px; gap: 14px; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 58px; font-size: 15px; }
  .gate-card, .confirm-body, .next-card, .intro-card-body { padding-inline: 20px; }
  .gate-card, .next-card { padding-block: 28px; }
  .next-card { flex-direction: column; align-items: flex-start; }
  .next-card .btn, .intro .btn { width: 100%; }
}

@media (max-width: 560px) {
  .checklist { grid-template-columns: 1fr; }
  .checklist li, .checklist li + li { border-left: 0; padding: 16px 0; }
  .checklist li + li { border-top: var(--hair) solid var(--line); }
  .steps, .data-grid { grid-template-columns: 1fr; }
  .step, .step:first-child { border-left: 0; padding: 20px 0 24px; }
  .step + .step { border-top: var(--hair) solid var(--line); }
  .data-card, .data-card:nth-child(n) { border-left: 0; padding: 18px 0; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
  .data-icon { grid-row: span 2; margin-bottom: 0; }
  .data-card h3 { font-size: 20px; }
  .step-num { margin-bottom: 12px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item, .proof-item:first-child { border-left: 0; padding: 20px 0 24px; }
  .proof-item + .proof-item { border-top: var(--hair) solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
