:root {
  --bg: #fafaf9;
  --surface: #f5f5f4;
  --ink: #1c1917;
  --muted: #57534e;
  --faint: #a8a29e;
  --line: #e7e5e4;
  --accent: #0284c7;
  --accent-ink: #fafaf9;
  --accent-soft: #e0f2fe;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0d;
    --surface: #1a1816;
    --ink: #e7e5e4;
    --muted: #a8a29e;
    --faint: #57534e;
    --line: #292524;
    --accent: #7dd3fc;
    --accent-ink: #0f0e0d;
    --accent-soft: #075985;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ---------- top nav banner ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
nav.top .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 18px; }
nav.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
nav.top .brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
nav.top .links { display: flex; align-items: center; gap: 22px; overflow-x: auto; }
nav.top .links a { font-size: 14.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
nav.top .links a:hover { color: var(--ink); }
nav.top .links a.active { color: var(--accent); font-weight: 650; }
nav.top .links a.nav-cta {
  background: var(--accent); color: var(--accent-ink); font-weight: 650;
  padding: 8px 14px; border-radius: 8px;
}
nav.top .links a.nav-cta:hover { opacity: 0.92; color: var(--accent-ink); }
.nav-toggle { display: none; }

/* ---------- click-path flow ---------- */
.flow { position: relative; }
.screen { display: none; height: calc(100dvh - 112px); overflow: auto; padding: 16px 0; }
/* "safe" keeps screens centered when they fit, but top-aligns (never clips the top)
   when content is taller than the viewport — e.g. the home hero + bullet list */
.screen.active { display: flex; flex-direction: column; justify-content: safe center; }
@media (prefers-reduced-motion: no-preference) {
  .screen.active .screen-inner { animation: screenIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes screenIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}
.screen-kicker { font-size: 15px; font-weight: 650; color: var(--accent); margin-bottom: 12px; }
#s2 .screen-kicker { font-size: clamp(1.15rem, 2.4vw, 1.6rem); margin-bottom: 16px; }
.screen-title { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.12; max-width: 24ch; }
.screen-sub { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.flow-nav { margin-top: 18px; display: flex; align-items: center; gap: 22px; }
.hero .flow-nav { justify-content: flex-end; }
.flow-nav .cta { margin-top: 0; }
.flow-back { font-size: 14.5px; color: var(--faint); text-decoration: none; cursor: pointer; background: none; border: 0; font-family: inherit; }
.flow-back:hover { color: var(--ink); }
.qa { margin-top: 26px; }
.qa-label { font-size: 16.5px; font-weight: 650; max-width: 46ch; }
.qa-opts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; }
.qa-opt {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.qa-opt:hover { border-color: var(--accent); }
.qa-opt:active { transform: scale(0.98); }

.flow-dots {
  display: flex; gap: 8px; justify-content: center;
  position: fixed; bottom: 48px; left: 50%; transform: translateX(-50%); z-index: 40;
}
@media (max-width: 860px) {
  .flow-dots { position: static; transform: none; padding: 14px 0; }
}
.flow-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: var(--line); cursor: pointer; transition: background 0.15s ease, width 0.15s ease;
}
.flow-dots button.on { background: var(--accent); width: 22px; }
.screen .stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; padding: 20px 0; }
.screen .review-steps { margin-top: 26px; }
.screen .proof-grid { margin-top: 24px; }
.screen .straight { margin-top: 22px; }
.screen footer.site { margin-top: 48px; padding-bottom: 0; }

/* ---------- home: two-column top ---------- */
.home-top { display: grid; grid-template-columns: 1fr 300px; gap: 64px; padding: 0; align-items: center; }
.home-top .rail { order: 2; }
.rail .photo { width: 88px; height: auto; border-radius: 10px; display: block; }
.rail .who { margin-top: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.rail .loc { color: var(--muted); font-size: 13px; }
.rail .linkedin { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.rail .linkedin:hover { text-decoration: underline; }
.rail p { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 8px; }
.rail p strong { color: var(--ink); font-weight: 650; }

.hero h1 {
  font-size: clamp(1.35rem, 2.9vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 750;
  max-width: none;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { margin-top: 12px; font-size: 16px; color: var(--muted); max-width: none; }
.hero .sub-list { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-width: none; }
.hero .sub-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.35; color: var(--ink); font-weight: 550; }
.hero .sub-list li::before { top: 0.5em; }
.hero .sub-list li::before { content: ''; position: absolute; left: 3px; top: 0.55em; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.hero .sub-list li.li-pending { display: none; }
.cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 10px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.cta:hover { opacity: 0.92; }
.cta:active { transform: translateY(1px) scale(0.99); }
.cta-note { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }
/* right arrow on blue buttons to signal they're clickable, nudges on hover */
.cta::after, .nav-cta::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform 0.15s ease; }
.cta:hover::after, .nav-cta:hover::after { transform: translateX(3px); }

/* ---------- stats ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  padding: 36px 0;
  gap: 24px;
}
.hero .stats { margin-top: 14px; padding: 14px 0; }
.hero .stats .num { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.hero .stat .label { margin-top: 6px; font-size: 13px; }
.hero .stats-foot { padding-top: 12px; font-size: 15.5px; font-weight: 550; color: var(--ink); }
.stat .num { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat .num span.unit { font-size: 0.45em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat .label { margin-top: 8px; color: var(--muted); font-size: 15px; }
.stats-foot { padding: 14px 0 0; font-size: 14px; color: var(--faint); }

/* ---------- sections ---------- */
section { padding: 64px 0 0; }
section h2 { font-size: 15px; font-weight: 650; color: var(--accent); margin-bottom: 18px; }
section .lede {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
  max-width: 32ch;
}
.page-head { padding: 56px 0 0; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 750; letter-spacing: -0.025em; max-width: 24ch; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 56ch; }

/* ---------- review steps ---------- */
.review-steps { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.step { padding: 22px 0 0; border-top: 2px solid var(--line); }
.step .k { font-weight: 700; font-size: 15px; color: var(--faint); }
.step h3 { font-size: 17px; font-weight: 650; margin-top: 8px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* ---------- proof grid ---------- */
.proof-grid { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.proof { padding: 16px 22px 16px 0; border-bottom: 1px solid var(--line); }
.proof:nth-child(odd) { border-right: 1px solid var(--line); }
.proof:nth-child(even) { padding-left: 28px; padding-right: 0; }
.proof .n { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.proof p { font-size: 15px; color: var(--muted); margin-top: 6px; max-width: 34ch; }
.proof a { font-size: 12.5px; color: var(--faint); text-decoration-color: var(--line); text-underline-offset: 3px; }
.proof a:hover { color: var(--muted); }

/* ---------- straight answers ---------- */
.straight { margin-top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 28px; }
.straight .row { padding: 20px 0; border-top: 1px solid var(--line); }
.straight .row:first-child { border-top: none; }
.straight .row h3 { font-size: 16px; font-weight: 650; }
.straight .row p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.straight .row .price { color: var(--ink); font-weight: 650; }

/* ---------- animation showcase ---------- */
.ek-motion .ek-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 30px; }
.ek-motion .ek-grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ek-label { margin: 40px 0 16px; font-size: 15px; font-weight: 650; color: var(--muted); }
.ek-clip {
  position: relative; display: flex; flex-direction: column; padding: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  cursor: pointer; background: var(--surface); text-align: left; font: inherit; color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ek-clip:hover { border-color: var(--accent); transform: translateY(-2px); }
.ek-media { position: relative; display: block; width: 100%; overflow: hidden; background: #0f0e0d; }
.ek-media img, .ek-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ek-media img { object-fit: cover; }
.ek-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 999px;
  background: rgba(15, 14, 13, 0.55); border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.ek-play svg { fill: var(--accent); margin-left: 3px; transition: fill 0.15s ease; }
.ek-clip:hover .ek-play { background: var(--accent); }
.ek-clip:hover .ek-play svg { fill: var(--accent-ink); }
.ek-cap { display: block; padding: 12px 14px; order: -1; border-bottom: 1px solid var(--line); }
.ek-cap b { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.ek-cap i { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- close + footer ---------- */
.close { padding: 72px 0 0; }
.close .big { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 720; letter-spacing: -0.025em; line-height: 1.15; max-width: 22ch; }
.close .alt { margin-top: 18px; font-size: 15px; color: var(--muted); }
.close .alt a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }

footer.site {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  padding: 26px 0 44px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 14.5px; color: var(--faint);
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* ---------- claim dialog ---------- */
dialog.claim {
  margin: auto;
  border: 1px solid var(--line); border-radius: 16px; padding: 0;
  background: var(--bg); color: var(--ink); width: min(440px, calc(100vw - 40px));
}
dialog.claim::backdrop { background: rgba(15, 14, 13, 0.55); }
.claim-inner { padding: 28px; }
.claim-inner h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.claim-inner .claim-sub { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.claim-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: transparent; color: var(--faint);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.claim-close:hover { background: var(--surface); color: var(--ink); }
.field { margin-top: 16px; display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 650; }
.field input, .field textarea {
  font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { resize: vertical; min-height: 72px; }
.field .hint { font-size: 12.5px; color: var(--faint); }
.claim-error { display: none; margin-top: 14px; font-size: 14px; color: #b91c1c; }
@media (prefers-color-scheme: dark) { .claim-error { color: #fca5a5; } }
.claim-error a { color: inherit; }
.claim-submit { width: 100%; margin-top: 20px; border: 0; cursor: pointer; }
.claim-submit[disabled] { opacity: 0.6; cursor: wait; }
.claim-done { display: none; text-align: left; }
.claim-done h3 { font-size: 20px; font-weight: 750; }
.claim-done p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .home-top { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 48px; }
  .rail { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
  .rail .photo { width: 120px; }
  .rail .bio { grid-column: 1 / -1; }
  .review-steps { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .straight { padding: 4px 20px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof, .proof:nth-child(odd), .proof:nth-child(even) { padding-left: 0; padding-right: 0; border-right: none; }
  .ek-motion .ek-grid { grid-template-columns: 1fr; }
  .ek-motion .ek-grid5 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 52px 0 0; }

  /* mobile nav: collapse links behind a hamburger */
  nav.top .bar { position: relative; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav.top .links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; overflow: visible;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 4px 24px 16px; box-shadow: 0 12px 24px -12px rgba(0,0,0,0.35);
  }
  nav.top .links.open { display: flex; }
  nav.top .links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  nav.top .links a.nav-cta { margin-top: 14px; padding: 14px 16px; text-align: center; border-bottom: 0; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .co { opacity: 0; transform: translateY(14px); transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .co.show { opacity: 1; transform: translateY(0); }
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal.in { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}

/* ---------- questionnaire ---------- */
.q-shell { max-width: 640px; margin: 0 auto; padding: 48px 0 0; }
.q-intro { margin-bottom: 8px; }
.q-h1 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.14; max-width: 22ch; margin-top: 8px; }
.q-lede { margin-top: 14px; color: var(--muted); font-size: 16.5px; max-width: 52ch; }

.q-card { margin-top: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .q-card { animation: qIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes qIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
.q-top { margin-bottom: 22px; }
.q-num { font-size: 13px; font-weight: 650; color: var(--faint); letter-spacing: 0.01em; }
.q-track { margin-top: 8px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.q-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.q-title { font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; max-width: 30ch; }
.q-hint { margin-top: 8px; color: var(--muted); font-size: 14.5px; max-width: 46ch; }
.q-body { margin-top: 20px; }

.q-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.q-opt {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, color 0.15s ease;
}
.q-opt:hover { border-color: var(--accent); }
.q-opt:active { transform: scale(0.98); }
.q-opt.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

.q-nav { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.q-nav .cta { margin-top: 0; }
.q-continue.nudge { animation: qNudge 0.4s ease; }
@keyframes qNudge { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.q-review { margin-top: 20px; border-top: 1px solid var(--line); }
.q-review-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-review-q { font-size: 13.5px; color: var(--muted); }
.q-review-a { font-size: 16px; font-weight: 600; margin-top: 3px; }

@media (max-width: 720px) {
  .q-shell { padding: 32px 0 0; }
  .q-card { margin-top: 26px; }
}

.screen .ek-motion { max-width: 650px; }
.screen .ek-motion .ek-grid { gap: 12px; margin-top: 16px; }
.screen .ek-motion .ek-grid5 { gap: 10px; }
.screen .ek-label { margin: 10px 0 8px; font-size: 13.5px; }
.screen .ek-cap { padding: 8px 12px; }
.screen .ek-cap b { font-size: 12.5px; }
.screen .ek-cap i { display: none; }
.screen footer.site { margin-top: 28px; padding: 18px 0 0; }
@media (max-width: 860px) {
  .screen { height: auto; min-height: calc(100dvh - 64px); overflow: visible; padding: 24px 0 32px; }
  /* top-align on mobile: content flows from under the nav instead of floating
     centered in a tall box (which left a wall of empty space on phones) */
  .screen.active { justify-content: flex-start; }
  /* lead with the hero hook; photo + bio follow below it (fallback if the JS
     relocation to the last screen doesn't run) */
  .home-top .rail { order: 2; }
  /* bio/photo relocated (by app.js) to the end of the last screen on mobile */
  .rail-end { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
}
