@font-face {
  font-family: Gotham;
  src: url("/assets/fonts/Gotham-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-300-normal-BVlfKGgI.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-400-normal-C38fXH4l.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-500-normal-Cerq10X2.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-600-normal-LgqL8muc.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0C1220;
  --card: #111927;
  --card-2: #1A2438;
  --blue: #6699CC;
  --gold: #F5B956;
  --green: #66CC99;
  --steel: #8A9BB5;
  --white: #FFFFFF;
  --line: rgba(102, 153, 204, 0.22);
  --font-head: Gotham, Inter, sans-serif;
  --font-body: Inter, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body.quiz-open { overflow: hidden; }

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

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

button { touch-action: manipulation; }

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

:focus { outline: none; }

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

::selection {
  background: var(--gold);
  color: var(--navy);
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

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

.site-header {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding-top: env(safe-area-inset-top);
}

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0 32px;
}

h1, h2, .thanks-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 16em;
  font-size: clamp(34px, 6vw, 60px);
}

.sub {
  max-width: 28em;
  margin: 18px 0 0;
  color: var(--steel);
  font-size: 18px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: #f7c56f; }

.btn:active { background: #e0a43d; }

.hint, .noscript {
  margin: 12px 0 0;
  color: var(--steel);
  font-size: 14px;
}

.site-foot {
  padding: 20px 0 calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 14px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-foot p { margin: 0; }

.site-foot a:hover { color: var(--white); }

.foot-note { margin-top: 10px; }

.chooser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.chooser a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.chooser a span {
  display: block;
  color: var(--steel);
  font-weight: 400;
}

.chooser a:hover { color: var(--gold); }

.quiz {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  overflow: auto;
  background: var(--navy);
  overscroll-behavior: contain;
}

.quiz.open { display: block; }

.quiz-panel {
  width: min(680px, calc(100% - 40px));
  min-height: 100%;
  margin: 0 auto;
  padding: 0 0 calc(48px + env(safe-area-inset-bottom));
}

.quiz-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding-top: env(safe-area-inset-top);
  background: var(--navy);
}

.back {
  justify-self: start;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--steel);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.back:hover { color: var(--white); }

.quiz-logo { height: 32px; width: auto; }

.step-count {
  justify-self: end;
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.progress {
  height: 3px;
  overflow: hidden;
  background: var(--card-2);
  border-radius: 99px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.2s linear;
}

.step-title, .thanks-title {
  margin-top: 36px;
  font-size: clamp(28px, 4vw, 40px);
}

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

.step-note {
  margin: 12px 0 0;
  color: var(--steel);
  font-size: 16px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.option:hover {
  background: var(--card-2);
  border-color: rgba(102, 153, 204, 0.7);
}

.option.is-chosen {
  background: var(--card-2);
  border-color: var(--gold);
}

.kbd {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(138, 155, 181, 0.45);
  border-radius: 6px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 500;
}

.option.is-chosen .kbd {
  border-color: var(--gold);
  color: var(--gold);
}

.key-hint, .field-note, .count {
  margin: 12px 0 0;
  color: var(--steel);
  font-size: 14px;
}

@media (max-width: 700px) {
  .key-hint { display: none; }
}

.field-block { margin-top: 22px; }

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 14px;
  border: 1px solid rgba(102, 153, 204, 0.28);
  border-radius: 6px;
  background: var(--card-2);
  color: var(--white);
  font-size: 16px;
}

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

.field::placeholder { color: rgba(138, 155, 181, 0.8); }

.field:focus {
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.field.invalid { border-color: var(--gold); }

.field:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  box-shadow: 0 0 0 1000px var(--card-2) inset;
}

.field-error {
  display: none;
  margin: 10px 0 0;
  color: var(--gold);
  font-size: 14px;
}

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

.field-block:has(.field-error.show) .field-note { display: none; }

.continue { min-width: 200px; }

@media (max-width: 640px) {
  .continue, .landing .btn { width: 100%; }
}

.loading-note {
  margin-top: 14px;
  color: var(--steel);
  font-size: 17px;
}

.eyebrow {
  margin: 36px 0 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.thanks-title { margin-top: 14px; }

.thanks-copy, .thanks-next {
  max-width: 36em;
  margin: 16px 0 0;
  color: var(--steel);
  font-size: 18px;
  line-height: 1.55;
}

.thanks-next { color: var(--white); }

.thanks-copy .email {
  color: var(--white);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.quiet {
  max-width: 36em;
  margin: 28px 0 0;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.5;
}

.quiet-link {
  color: var(--steel);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiet-link:hover { color: var(--white); }

.calendly-frame {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.calendly-embed {
  width: 100%;
  height: 740px;
}

.calendly-embed .calendly-inline-widget,
.calendly-embed iframe {
  width: 100%;
  min-width: 0;
  height: 740px;
  border: 0;
}

@media (max-width: 640px) {
  .calendly-embed,
  .calendly-embed .calendly-inline-widget,
  .calendly-embed iframe {
    height: 780px;
  }
}

.quiet-fallback {
  margin: 12px 0 0;
  font-size: 14px;
}

.other-box {
  margin-top: 16px;
}

.other-box .field-block {
  margin-top: 0;
}

.text-btn {
  display: inline-flex;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--steel);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.text-btn:hover { color: var(--white); }

.thanks-foot {
  margin-top: 28px;
  color: var(--steel);
  font-size: 14px;
}

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


.spinner {
  width: 34px;
  height: 34px;
  margin: 26px 0 0;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  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: var(--steel);
  font-size: 13px;
  text-align: center;
  text-decoration: underline;
}

.skip-link:hover { color: var(--gold); }

.thanks-copy { color: var(--white); font-size: 16px; line-height: 1.5; }

@media (max-width: 839px) {
  .quiz-shell.thanks-mode { overflow: auto; }
}
