:root {
  --navy: #1c213e;
  --blue: #0583f2;
  --blue-deep: #046fcc;
  --cyan: #56e4ee;
  --ink: #ffffff;
  --muted: #c9cedd;
  --quiet: #9ea5bd;
  --line: rgba(255, 255, 255, 0.16);
  --danger: #8d2a2a;
  --danger-bg: #fdecec;
  --card: #ffffff;
  --body: #3a3737;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --display: "Montserrat", Arial, sans-serif;
  color-scheme: dark;
}

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

html, body { margin: 0; padding: 0; }

body.funnel {
  min-height: 100dvh;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

body.quiz-open { overflow: hidden; }

body.quiz-open .page,
body.quiz-open .accent-bar { visibility: hidden; }

img { max-width: 100%; }

button, input { font: inherit; color: inherit; }

button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

a { color: var(--cyan); }

::selection { background: var(--blue); color: #fff; }

.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.page {
  min-height: calc(100dvh - 4px);
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 18px 24px 0;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.logo-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
}

.logo { height: 30px; width: auto; }

.landing {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  padding: 20px 24px 12px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.hero {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing h1,
.choice strong,
.step-title,
.thanks-title,
.continue,
.start,
.field-label,
.icon-btn,
.checks li,
.kicker {
  font-family: var(--display);
}

.landing h1 {
  margin: 0;
  max-width: 14em;
  font-size: clamp(36px, 9vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.sub {
  margin: 16px 0 0;
  max-width: 24ch;
  color: var(--muted);
  font-size: clamp(18px, 4.4vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  text-wrap: balance;
}

.start,
.continue {
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.start {
  margin-top: 32px;
  min-width: min(100%, 240px);
  height: 60px;
  padding: 0 40px;
}

.start:active,
.continue:active { transform: scale(0.985); }

.hint {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 14px;
}

.choices {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 32px;
  text-align: left;
}

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 118px;
  padding: 22px 22px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
}

.choice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.choice strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.choice span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.site-foot {
  padding: 8px 24px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.site-foot p { margin: 0; }

.legal { margin-top: 6px !important; }

.legal a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  margin: 0 10px;
  display: inline-block;
  padding: 6px 2px;
}

.legal a:hover { text-decoration: underline; }

.quiz-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.quiz-shell.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quiz-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  background: var(--navy);
  transform: translateY(16px);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.quiz-shell.open .quiz-card { transform: none; }

.quiz-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
}

.quiz-top picture {
  justify-self: center;
  line-height: 0;
}

.quiz-logo {
  height: 26px;
  width: auto;
  display: block;
}

.icon-btn {
  justify-self: start;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.step-count {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: right;
}

.progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.35s ease;
}

.stage {
  flex: 1;
  overflow: auto;
  padding: 8px 22px max(28px, env(safe-area-inset-bottom));
}

.step-panel { animation: step-in 0.34s cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes step-in {
  from { transform: translateY(10px); }
  to { transform: none; }
}

.kicker {
  margin: 22px 0 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.step-title,
.thanks-title {
  color: #fff;
}

.step-title {
  margin: 22px 0 22px;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.step-title:focus,
.thanks-title:focus { outline: none; }

.kicker + .step-title { margin-top: 0; }

.help {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.field-block { margin-bottom: 16px; }

.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.field-note {
  margin: 10px 0 0;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.45;
}

.field {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  color-scheme: light;
  font-size: 17px;
  font-weight: 500;
}

.field::placeholder { color: #8b93a7; font-weight: 400; }

.field:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(5, 131, 242, 0.28);
}

.field.invalid,
.field.invalid:focus {
  border-color: #e07a6a;
  box-shadow: 0 0 0 4px rgba(224, 122, 106, 0.28);
  animation: shake 0.35s ease;
}

@keyframes shake {
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.field-error {
  display: none;
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.field-error.show { display: block; }

.continue {
  width: 100%;
  height: 56px;
  margin-top: 8px;
}

.continue:disabled { opacity: 0.4; cursor: default; }

a.continue {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.option .label { flex: 1; }

.option.selected,
.option.is-chosen {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.mark {
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.option.selected .mark {
  position: relative;
  border-color: #fff;
  background: #fff;
}

.option.selected .mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.kbd {
  display: none;
  width: 1.25rem;
  flex: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.option.selected .kbd,
.option.is-chosen .kbd { color: rgba(255, 255, 255, 0.8); }

.key-hint {
  display: none;
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 13px;
}

.loading .step-title { margin-top: 28px; }

.checks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--quiet);
  font-size: 18px;
  font-weight: 700;
}

.checks li.active,
.checks li.done { color: #fff; }

.check {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.checks li.active .check {
  border-color: var(--cyan);
  background: radial-gradient(circle, var(--cyan) 0 4px, transparent 5px);
}

.checks li.done .check {
  border-color: var(--blue);
  background: var(--blue);
}

.checks li.done .check::after {
  content: "";
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.thanks-title {
  margin: 28px 0 14px;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.thanks-copy {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.thanks-copy .email {
  color: #fff;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.team {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 26px 0 2px;
}

.person {
  margin: 0;
  width: 124px;
  text-align: center;
}

.person-photo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  object-fit: cover;
}

.person-name {
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.calendly-frame {
  margin-top: 22px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.calendly-embed,
.calendly-inline-widget {
  width: 100%;
  min-width: 0 !important;
  height: 720px;
}

.book { margin-top: 22px; }

.text-btn {
  margin: 18px 0 4px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
}

.thanks-foot {
  margin: 4px 0 16px;
  color: var(--quiet);
  font-size: 13px;
}

.legal-back {
  margin: 8px 0 0;
  padding: 0 24px;
}

.legal-back a {
  color: var(--cyan);
  font-weight: 500;
  text-decoration: none;
}

.legal-back a:hover { text-decoration: underline; }

.legal-card {
  width: min(720px, calc(100% - 32px));
  margin: 18px auto 28px;
  padding: 32px 22px 28px;
  border-radius: 18px;
  background: #fff;
  color: var(--body);
  color-scheme: light;
}

.legal-card h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.legal-card h2 {
  margin: 28px 0 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.legal-card ul { margin: 0 0 12px; padding-left: 20px; }

.legal-card a { color: var(--blue); }

.updated {
  margin: 0 0 20px;
  color: #666666;
  font-size: 14px;
}

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

.field:focus-visible { outline: none; }

@media (hover: hover) and (pointer: fine) {
  .start:hover,
  .continue:hover { background: var(--blue-deep); }
  .choice:hover {
    border-color: var(--blue);
    background: rgba(5, 131, 242, 0.12);
  }
  .option:hover { border-color: rgba(86, 228, 238, 0.7); }
  .option.selected:hover,
  .option.is-chosen:hover { border-color: var(--blue); }
}

@media (min-width: 840px) {
  .logo { height: 36px; }
  .landing { padding-top: 8px; padding-bottom: 20px; }
  .start { width: auto; }
  .choices {
    grid-template-columns: 1fr 1fr;
    width: min(760px, 100%);
  }
  .quiz-shell {
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: rgba(8, 10, 22, 0.72);
  }
  .quiz-card {
    flex: none;
    width: min(600px, 100%);
    min-height: min(700px, calc(100dvh - 64px));
    max-height: calc(100dvh - 64px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .stage { padding: 8px 36px 32px; }
  .kbd { display: block; }
  .key-hint { display: block; }
  .legal-card { padding: 48px 52px 40px; }
  .quiz-shell.thanks-mode {
    align-items: flex-start;
    overflow: auto;
    padding: 32px 16px 48px;
  }
  .quiz-shell.thanks-mode .quiz-card {
    width: min(680px, 100%);
    min-height: 0;
    max-height: none;
    margin: 0 auto;
    overflow: visible;
  }
  .quiz-shell.thanks-mode .stage { overflow: visible; }
}

@media (max-width: 839px) {
  .quiz-shell.thanks-mode { overflow: auto; display: block; }
  .quiz-shell.thanks-mode .quiz-card { min-height: 100%; max-height: none; }
  .quiz-shell.thanks-mode .stage { overflow: visible; }
}

@media (max-width: 380px) {
  .top,
  .landing,
  .site-foot { padding-left: 18px; padding-right: 18px; }
  .stage { padding-left: 18px; padding-right: 18px; }
  .choice { padding-right: 16px; }
  .landing h1 { font-size: 34px; }
}

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

.spinner {
  width: 34px;
  height: 34px;
  margin: 26px 0 0;
  border: 3px solid #e1e4eb;
  border-top-color: #0583f2;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.skip-link {
  display: block;
  margin: 18px 0 6px;
  color: #5c677c;
  font-size: 13px;
  text-align: center;
  text-decoration: underline;
}
.skip-link:hover { color: #0583f2; }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%230b1b3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}
.field.other { margin-top: 12px; }
.field[hidden] { display: none; }
.sub.wide { max-width: 30ch; }

.section-track { margin: 18px 0 20px; }
.section-track .kicker { margin: 0 0 8px; }
.section-segments { display: flex; gap: 6px; }
.seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.seg.done { background: var(--blue); }
.seg.now { background: var(--cyan); }
.section-track + .step-title { margin-top: 0; }
