/* Self-hosted fonts (Poppins and IBM Plex Sans, both free under the SIL Open Font License).
   Served from our own domain so the first visit needs no extra connections to Google. */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/ibm-plex-sans-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/ibm-plex-sans.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-500-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/poppins-800-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/poppins-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #000;
  --paper: #fff;
  --blue: #1f4bff;          /* placeholder: replace with the exact brand blue */
  --blue-dark: #1236cc;
  --grey: #5a5a5a;
  --line: #d9d9d9;
  --wash: #f3f3f3;
  --danger: #b00020;
  --display: 'Poppins', Arial, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ---------- Header and progress ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  padding-top: env(safe-area-inset-top, 0);
}
.wordmark {
  display: block;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0.75rem;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.progress { height: 4px; background: var(--wash); }
.progress-fill { height: 100%; width: 0; background: var(--blue); transition: width 0.25s ease; }

/* ---------- Layout ---------- */
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem calc(6.5rem + env(safe-area-inset-bottom, 0));
}
.step h1, .step h2 { outline: none; }

.kicker {
  margin: 0 0 0.75rem;
  color: var(--grey);
  font-size: 0.9375rem;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 8.5vw, 3.25rem);
}
h2 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.45rem, 5.6vw, 2rem);
  margin-bottom: 1.5rem;
}
h3 {
  font-stretch: 100%;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.lede { margin: 1.25rem 0 2rem; max-width: 34rem; }
.small { font-size: 0.9375rem; color: var(--grey); }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 0.95rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-link {
  appearance: none; background: none; border: 0; padding: 0.75rem 1rem; min-height: 44px;
  font: inherit; color: var(--grey); text-decoration: underline; cursor: pointer;
}
.btn-link:hover { color: var(--ink); }

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

/* ---------- Answer options ---------- */
.options { display: grid; gap: 0.625rem; margin-bottom: 1.5rem; }
.option {
  appearance: none;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  text-align: left;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.option:active { border-color: var(--blue); }
@media (hover: hover) { .option:hover { border-color: var(--blue); } }
.option[aria-pressed="true"] {
  background: #eaf0ff;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
label.lbl { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus { border-color: var(--ink); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.9rem; font-size: 0.9375rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex: none; accent-color: var(--blue); }
.check a { color: inherit; }
.error { color: var(--danger); font-weight: 500; min-height: 1.5rem; margin: 0.25rem 0 0.75rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav:not(.nav-center) .btn-link { margin-left: -1rem; }

/* ---------- Results ---------- */
.result-hero h1 { margin-bottom: 1rem; }
.bars { margin: 2rem 0 2.5rem; }
.bars h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 1.75rem 0 0.75rem; }
.bars h3 span { font-family: var(--body); font-size: 1rem; font-weight: 500; color: var(--grey); letter-spacing: 0; }
.row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10.5rem) 1fr 2.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
}
.track { height: 14px; background: var(--wash); border-radius: 2px; overflow: hidden; }
.fill { height: 100%; background: var(--ink); }
.row.is-bottleneck { font-weight: 600; }
.row.is-bottleneck .fill { background: var(--blue); }
.row .val { text-align: right; color: var(--grey); }
.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.4rem;
  background: var(--blue);
  color: #fff;
  border-radius: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.fix-first { border-left: 6px solid var(--blue); padding: 0.25rem 0 0.25rem 1.25rem; margin: 0 0 2rem; }
.fix-next { margin: 0 0 2rem; }
.fix-next h3 { margin-top: 1.25rem; font-size: 1.1rem; }
.fix-next p, .fix-first p { margin: 0; max-width: 36rem; }
/* CTA: centered, under the headline */
.cta { text-align: center; }
.cta-top { margin: 1.5rem 0 1.75rem; }
.cta-q { margin: 0 0 0.75rem; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.25rem; }
.btn-cta {
  min-width: 18rem;
  padding: 1.2rem 2.5rem;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(31, 75, 255, 0.28);
}
.cta-sub { margin: 0.6rem 0 0; font-size: 0.875rem; color: var(--grey); }

/* Compact details so the results page stays short */
.results .result-hero { text-align: center; }
.results .result-hero h1 { margin-bottom: 0; container-type: inline-size; }
.bn-lead { display: block; font-size: clamp(1.7rem, 7vw, 2.6rem); }
.bn-name {
  display: block;
  white-space: nowrap;
  margin-top: 0.35rem;
  font-size: min(3.4rem, 100cqw / (var(--len, 20) * 0.72));
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--blue);
  text-shadow: 0 4px 18px rgba(31, 75, 255, 0.3);
}
.step.vsl { text-align: center; }
.results .bars { margin: 0 0 1.75rem; }
.results .bars h3 { font-size: 1.05rem; margin: 1rem 0 0.4rem; }
.results .bars h3 span { font-size: 0.875rem; }
.results .row { padding: 0.15rem 0; font-size: 0.875rem; }
.results .track { height: 10px; }
.results .fix-first, .results .fix-next { font-size: 0.9375rem; line-height: 1.5; }
.results .fix-first { margin-bottom: 1.25rem; }
.results .fix-first h3 { font-size: 1.1rem; }
.results .fix-next { margin-bottom: 0; }
.results .fix-next > h3:first-child { font-size: 1.1rem; margin: 0 0 0.25rem; }
.results .fix-next h3 { font-size: 1rem; margin: 0.75rem 0 0.15rem; }
@media (max-width: 639px) {
  /* Phones: give the labels room so they stay on one line; the bar gets narrower */
  .results .row { grid-template-columns: 1fr 5.5rem 2rem; gap: 0.6rem; }
  .cal-frame { height: 820px; }
}
@media (min-width: 640px) {
  .results .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .results .row { grid-template-columns: 8.5rem 1fr 2rem; gap: 0.5rem; }
}
@media (max-width: 420px) {
  .btn-cta { min-width: 0; width: 100%; }
}

/* ---------- VSL page ---------- */
.vsl-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.75rem;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
}
.vsl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  color: #bbb; font-size: 0.9375rem; font-weight: 500;
}
.vsl-play {
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--blue); position: relative;
}
.vsl-play::after {
  content: ''; position: absolute; left: 1.6rem; top: 1.25rem;
  border-style: solid; border-width: 0.75rem 0 0.75rem 1.2rem;
  border-color: transparent transparent transparent #fff;
}

/* ---------- Video page as a landing page ---------- */
.vsl-page .nav-center { margin: 0 0 0.5rem; }
.lp-block { margin: 2.75rem 0 0; }
.lp-block h3 { font-size: 1.5rem; text-align: center; margin-bottom: 1rem; }
.lp-block > .small { text-align: center; margin: -0.5rem 0 1rem; }
.lp-problems { list-style: none; padding: 0; margin: 0 auto; max-width: 30rem; }
.lp-problems li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--line); }
.lp-problems li::before { content: '\2715'; position: absolute; left: 0.25rem; color: var(--danger); font-weight: 700; }
.lp-grid { display: grid; gap: 0.75rem; }
@media (min-width: 560px) { .lp-grid { grid-template-columns: 1fr 1fr; } }
.lp-card { border: 2px solid var(--line); border-radius: 4px; padding: 1rem; }
.lp-card h4 { margin: 0 0 0.25rem; font-family: var(--display); font-size: 1.05rem; color: var(--blue); }
.lp-card p { margin: 0; font-size: 0.9375rem; color: var(--grey); }
.cal-box { scroll-margin-top: 5rem; }
.cal-box { position: relative; }
.cal-box::before { content: 'Loading calendar'; position: absolute; top: 8rem; left: 0; right: 0; text-align: center; color: var(--grey); }
.cal-frame { position: relative; display: block; width: 100%; height: 700px; border: 2px solid var(--line); border-radius: 4px; background: transparent; }
.cal-placeholder {
  display: flex; align-items: center; justify-content: center;
  position: relative; background: var(--paper);
  height: 22rem; border: 2px dashed var(--line); border-radius: 4px; color: var(--grey); font-weight: 500;
}
.lp-faq details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.lp-faq summary { cursor: pointer; font-weight: 600; }
.lp-faq details p { margin: 0.75rem 0 0; color: var(--grey); line-height: 1.6; }
.vsl-page > .nav-center:last-child { margin-top: 2.5rem; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0));
  z-index: 10;
}
.cookie[hidden] { display: none; }
.cookie p { max-width: 40rem; margin: 0 auto 0.75rem; font-size: 0.9375rem; }
.cookie-actions { max-width: 40rem; margin: 0 auto; display: flex; gap: 0.75rem; }
.cookie-actions .btn { padding: 0.65rem 1.1rem; }

@media (max-width: 420px) {
  .row { grid-template-columns: 6.5rem 1fr 2.25rem; gap: 0.5rem; font-size: 0.875rem; }
}

/* Quick slide-in when a new screen appears */
@keyframes step-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}
main > * { animation: step-in 0.18s ease-out; }
.option { transition: background-color 0.1s, border-color 0.1s; }

@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
  main > * { animation: none; }
}

/* ---------- Print: results only, as a clean page for "Save as PDF" ---------- */
@media print {
  .top .progress, .cookie, .nav, .no-print, .cta .btn { display: none !important; }
  .top { position: static; }
  main { padding: 0; max-width: none; }
  .fill, .tag, .fix-first { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* ---------- First screen: centered, vertically centered, brand font ---------- */
main.is-intro {
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0));
}
.step.intro { text-align: center; font-family: var(--display); }
main.is-intro { max-width: 64rem; }
.step.intro h1 { font-size: clamp(1.5rem, 8.8vw, 3.4rem); }
.step.intro .line { display: block; white-space: nowrap; }
.step.intro .caps { text-transform: uppercase; color: var(--blue); font-size: min(1em, 7.7vw); }
.step.intro .lede {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5;
}
.btn-xl {
  margin-top: 2.75rem;
  min-width: 17rem;
  padding: 1.2rem 2.5rem;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- Contact screen: tighter, centered button ---------- */
main.is-details, main.is-profile { padding-top: 1rem; }
.compact h2 + form { margin-top: 1.1rem; }
.compact h2 { font-size: clamp(1.3rem, 5vw, 1.6rem); margin-bottom: 0.4rem; }
.compact .small { font-size: 0.8125rem; margin: 0 0 0.9rem; }
.compact .field { margin-bottom: 0.7rem; }
.compact label.lbl { font-size: 0.875rem; margin-bottom: 0.2rem; }
.compact input[type="text"], .compact input[type="email"], .compact input[type="tel"], .compact select { padding: 0.6rem 0.75rem; }
.compact .check { font-size: 0.72rem; line-height: 1.35; gap: 0.6rem; margin-bottom: 0.5rem; color: var(--grey); }
.compact .check input { width: 1.1rem; height: 1.1rem; margin-top: 0.05rem; }
.agree { font-size: 0.8125rem; line-height: 1.4; color: var(--grey); margin: 0.25rem 0 0.5rem; }
.agree a { color: inherit; }
.compact .error { min-height: 1.1rem; margin: 0 0 0.4rem; font-size: 0.875rem; }
.nav-center { flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; text-align: center; }
.nav-center .btn { min-width: 15rem; }

/* ---------- Privacy policy page ---------- */
.policy h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: 0.5rem; }
.policy h2 { font-stretch: 100%; font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.policy p, .policy li { max-width: 38rem; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin-bottom: 0.4rem; }
.policy .updated { color: var(--grey); font-size: 0.9375rem; margin: 0 0 1.5rem; }

/* "See my results" sits under the booking button on the video page */
.btn-results { font-size: 0.875rem; margin-top: 0.25rem; }

/* ---------- Phone number with country code ---------- */
.phone-row { display: flex; gap: 0.5rem; }
.phone-row input { flex: 1; min-width: 0; }
.dial {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font-weight: 500;
}
.dial::after {
  content: '';
  width: 0.4rem; height: 0.4rem;
  border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey);
  transform: rotate(45deg) translateY(-2px);
}
.dial:focus-within { border-color: var(--ink); outline: 3px solid var(--blue); outline-offset: 2px; }
/* The real select sits on top, invisible, so tapping opens the phone's own country picker */
.dial select {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
  border: 0; padding: 0;
}

/* "8 questions · under 2 minutes" under the first question */
.time-note { margin: -0.25rem 0 1.25rem; font-size: 1.125rem; font-weight: 600; color: var(--blue); }
