:root {
  color-scheme: light;
  --bg: #fafafa;
  --paper: #ffffff;
  --ink: #333333;
  --heading: #000000;
  --muted: #666666;
  --line: #f0f0f0;
  --accent: #53a179;
  --accent-dark: #367253;
  --button-border: #d89c19;
  --button-gradient: linear-gradient(360deg, #ffd164 4.46%, #ffdf92 100%);
  --button-gradient-hover: linear-gradient(360deg, #ffb300 4.46%, #ffc741 100%);
  --button-text: #333333;
  --gold: #d1a748;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);

  /* Sparta Guide editorial accents */
  --sparta-accent: #8a6d3b;
  --sparta-ink: #1a1a1a;

  /* Motion tokens */
  --ease-quiet: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-screen: 260ms;
  --dur-screen-out: 180ms;
  --dur-tap: 160ms;
  --dur-bar: 400ms;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 14px 18px calc(24px + var(--safe-bottom));
}

.topbar {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  min-height: 48px;
}

.counter {
  justify-self: end;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.back {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--heading);
  font-size: 32px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease;
}

.back:hover:not(:disabled) { background: rgba(0,0,0,0.04); }
.back:disabled { opacity: 0.25; pointer-events: none; }

.progress {
  overflow: hidden;
  height: 6px;
  margin: 2px 0 20px;
  border-radius: 999px;
  background: var(--line);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--button-gradient);
  transition: width var(--dur-bar) var(--ease-quiet);
}

.stage {
  display: grid;
  flex: 1;
  align-items: start;
  padding-top: clamp(12px, 4vh, 48px);
  transition:
    opacity var(--dur-screen) var(--ease-quiet),
    transform var(--dur-screen) var(--ease-quiet);
  will-change: opacity, transform;
}

.stage.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition-duration: var(--dur-screen-out);
}

.stage.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.hero-card,
.info-card,
.question-card,
.analyzing-card,
.result-card {
  width: min(100%, 520px);
  margin: 0 auto;
}

.hero-card,
.info-card,
.analyzing-card {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid #e9e9e9;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.badge::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

h1, h2 {
  margin: 0;
  color: var(--heading);
  letter-spacing: -0.02em;
}

h1:focus { outline: none; }

h1 {
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 900;
  line-height: 1.05;
}

.question-card h1,
.info-card h1 {
  font-size: clamp(28px, 5vw, 42px);
}

.hero-card h1 {
  position: relative;
  letter-spacing: -0.01em;
  padding-bottom: 18px;
}

.hero-card h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--sparta-accent);
}

p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
  margin: 0;
}

.hero-card > p,
.info-card > p,
.analyzing-card > p {
  margin: 18px auto 0;
  max-width: 460px;
}

.info-figure {
  margin: 22px auto 0;
  max-width: 460px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.info-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.discretion-line {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.question-subtitle {
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.option-grid {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  color: var(--ink);
  padding: 18px 20px;
  text-align: left;
  position: relative;
  transition:
    transform var(--dur-tap) var(--ease-quiet),
    border-color var(--dur-tap) var(--ease-quiet),
    box-shadow var(--dur-tap) var(--ease-quiet),
    background-color var(--dur-tap) var(--ease-quiet);
}

.option:hover,
.option:focus-visible {
  border-color: var(--button-border);
  box-shadow: 0 12px 34px rgba(216, 156, 25, 0.15);
  transform: translateY(-1px);
  outline: none;
}

.option:active {
  transform: scale(0.985);
  transition-duration: 90ms;
}

.option span {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.option i {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 2px solid #e8e8e8;
  border-radius: 999px;
  background: #fff;
  position: relative;
  transition: border-color var(--dur-tap) ease, background-color var(--dur-tap) ease;
}

.option.is-selected {
  border-color: var(--button-border);
  background: #fff8e4;
}

.option.is-selected i {
  border-color: var(--button-border);
  background: var(--button-border);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  width: 100%;
  border: 1px solid var(--button-border);
  border-radius: 14px;
  background: var(--button-gradient);
  box-shadow: none;
  color: var(--button-text);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background var(--dur-tap) ease,
    opacity var(--dur-tap) ease,
    transform var(--dur-tap) ease;
}

.primary:hover,
.primary:focus-visible {
  background: var(--button-gradient-hover);
  transform: translateY(-1px);
  outline: 2px solid rgba(216, 156, 25, 0.28);
  outline-offset: 2px;
}

.primary:active {
  transform: scale(0.985);
  transition-duration: 90ms;
}

.primary:disabled {
  opacity: 0.45;
  transform: none;
}

.floating { margin-top: 22px; }

.fine, .terms {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.terms {
  max-width: 420px;
  margin: 18px auto 0;
}

.privacy-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trust-pill strong { color: var(--ink); font-weight: 900; }

/* Founder note */
.founder-note {
  margin: 22px auto;
  max-width: 460px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  box-shadow: var(--shadow);
}

.founder-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 900;
}

.founder-note p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.founder-sign {
  margin-top: 10px !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  font-style: italic;
}

/* Testimonial */
.testimonial {
  margin: 20px auto;
  max-width: 460px;
  padding: 16px 18px 12px;
  border-left: 3px solid var(--button-border);
  background: #fffaef;
  border-radius: 0 12px 12px 0;
  text-align: left;
}

.testimonial blockquote {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}

.testimonial figcaption {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.testimonial figcaption strong { color: var(--ink); font-weight: 900; }

/* Analyzing */
.analyzing-card .meter {
  position: relative;
  display: block;
  width: min(100%, 360px);
  height: 6px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.analyzing-card .meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--button-gradient);
  transition: width 480ms var(--ease-quiet);
}

.analyzing-card .checklist {
  display: grid;
  gap: 12px;
  margin: 24px auto;
  padding: 0;
  list-style: none;
  text-align: left;
  max-width: 460px;
}

.analyzing-card .checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.45;
  transition:
    opacity 320ms var(--ease-quiet),
    background-color 320ms var(--ease-quiet),
    border-color 320ms var(--ease-quiet);
}

.analyzing-card .checklist li::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1.5px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  content: "";
  transition:
    background-color 220ms var(--ease-quiet),
    border-color 220ms var(--ease-quiet),
    color 220ms var(--ease-quiet);
}

.analyzing-card .checklist li.is-active {
  opacity: 1;
  border-color: var(--button-border);
  background: #fff8e4;
}

.analyzing-card .checklist li.is-active::before {
  border-color: var(--button-border);
  background: #fff8e4;
}

.analyzing-card .checklist li.is-done {
  opacity: 1;
  border-color: var(--line);
  background: #ffffff;
}

.analyzing-card .checklist li.is-done::before {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  content: "✓";
}

.analyzing-note {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  margin-top: 8px;
}

/* Result */
.result-card { max-width: 610px; text-align: left; }

.result-hero { text-align: center; margin-bottom: 28px; }

.result-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.result-hero h1 { margin-bottom: 12px; }

.kicker {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 auto 12px;
  max-width: 460px;
}

.result-summary {
  max-width: 520px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
}

.section-label {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-block,
.intro-block,
.next-step-block,
.trust-block {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.trust-block { background: #fafaf7; }

.plan-line {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.plan-bullets,
.next-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan-bullets li,
.next-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.plan-bullets li strong,
.next-step-list li strong {
  color: var(--heading);
  font-weight: 800;
}

.tick {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: #e7f6ec;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.intro-block h2 {
  margin: 4px 0 10px;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 28px;
  font-weight: 900;
}

.intro-copy {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.intro-figure { margin: 0; }

.intro-figure img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 280px;
  margin: 0 auto 8px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
}

.intro-figure figcaption {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trust-cell {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
}

.trust-cell strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.trust-cell span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.trust-lede {
  margin: 24px 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* CTA blocks */
.cta-block {
  margin: 26px 0 20px;
  text-align: center;
}

.cta-block--secondary { margin-top: 24px; }

.cta-main {
  margin-bottom: 12px;
  font-size: 17px;
}

.cta-reassure {
  margin: 0 auto 8px;
  max-width: 440px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.cta-reassure-tight {
  margin: 0 auto;
  max-width: 420px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.risk-reversal {
  margin: 6px auto 0;
  max-width: 460px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f5faf6;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.urgency-block {
  margin: 14px 0;
  padding: 18px 20px;
  border: 1px solid #ecdfba;
  border-radius: 16px;
  background: #fffaec;
}

.urgency-block .section-label { color: #8a6a17; }

.urgency-copy {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.urgency-copy strong { color: var(--heading); }

.result-card > .fine {
  margin-top: 22px;
  text-align: center;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

/* Mobile */
@media (max-width: 640px) {
  .shell { padding: 14px 14px calc(24px + var(--safe-bottom)); }
  .topbar { grid-template-columns: 56px 1fr 56px; }

  .question-card {
    padding-bottom: calc(96px + var(--safe-bottom));
  }

  .question-card .floating {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + var(--safe-bottom));
    margin-top: 0;
    z-index: 50;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.10),
                0 12px 28px rgba(216, 156, 25, 0.18);
  }

  .option { min-height: 64px; padding: 16px 18px; }
  .option span { font-size: 16px; }

  .trust-grid { gap: 10px; }
  .trust-cell { padding: 12px 10px; }
  .trust-cell strong { font-size: 19px; }

  .plan-block,
  .intro-block,
  .trust-block,
  .next-step-block { padding: 18px; }

  .intro-figure img { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0ms !important;
  }
  .stage.is-leaving, .stage.is-entering { transform: none; }
}
