:root {
  --mint: #A8E6CF;
  --orange: #FFAB40;
  --gold: #FFEA00;
  --ink: #22313A;
  --dark: #17252C;
  --muted: #5E6F78;
  --line: #D8EDE6;
  --soft: #F3FCF8;
  --paper: #FFFFFF;
  --danger: #9E2F1F;
  --success: #1F6B4D;
  --shadow: 0 22px 60px rgba(58, 71, 80, .13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background:
    radial-gradient(circle at 10% 14%, rgba(168, 230, 207, .42), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(255, 171, 64, .2), transparent 30%),
    linear-gradient(135deg, #F3FCF8 0%, #FFF6E6 54%, #F6FAFF 100%);
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 6vw, 4.9rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 900;
}

h3 {
  font-size: 1.1rem;
}

.app-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(58, 71, 80, .14);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 850;
}

.screen {
  display: none;
  animation: fadeSlide 220ms ease;
}

.screen.is-active {
  display: block;
}

.screen-start {
  min-height: calc(100vh - 130px);
  display: none;
  align-items: center;
}

.screen-start.is-active {
  display: flex;
}

.hero-grid,
.quiz-layout,
.result-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: #427061;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lead {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.lead.small {
  font-size: 1.05rem;
}

.microcopy,
.status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 750;
}

.button-row,
.quiz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius);
  padding: 15px 24px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--orange);
  color: var(--dark);
  box-shadow: 0 16px 34px rgba(58, 71, 80, .16);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #FFB85C;
  box-shadow: 0 20px 40px rgba(58, 71, 80, .2);
}

.button.ghost {
  border: 1px solid rgba(58, 71, 80, .16);
  background: rgba(255, 255, 255, .68);
  color: var(--ink);
}

.button.text-button {
  min-height: auto;
  margin-top: 12px;
  padding: 8px 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.hero-panel,
.center-card,
.quiz-card,
.side-panel,
.result-card {
  border: 1px solid rgba(58, 71, 80, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-panel {
  padding: clamp(22px, 4vw, 34px);
}

.hero-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.ladder {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ladder;
}

.ladder li {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 48px;
  counter-increment: ladder;
}

.ladder li::before {
  content: counter(ladder);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-weight: 900;
}

.ladder strong,
.signal-grid strong,
.offer-steps strong {
  color: var(--ink);
}

.ladder span,
.signal-grid span,
.offer-steps span {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
}

.center-card {
  width: min(780px, 100%);
  margin: 8vh auto 0;
  padding: clamp(24px, 5vw, 44px);
}

.signal-grid,
.offer-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.signal-grid div,
.offer-steps div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--soft);
}

.quiz-layout,
.result-layout {
  align-items: start;
}

.quiz-card,
.result-card {
  padding: clamp(22px, 4vw, 36px);
}

.side-panel {
  padding: 24px;
}

.side-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 850;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #E7F3EF;
  margin-bottom: 28px;
}

.progress-fill {
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--orange));
  transition: width 180ms ease;
}

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

.option-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(58, 71, 80, .14);
  border-radius: var(--radius);
  padding: 15px 16px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  transition: border 160ms ease, background 160ms ease, transform 160ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: rgba(255, 171, 64, .75);
  transform: translateY(-1px);
}

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

.quiz-controls {
  justify-content: space-between;
}

.form-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: .92rem;
  font-weight: 800;
}

.result-layout {
  grid-template-columns: minmax(0, 1fr);
}

.result-card {
  width: min(860px, 100%);
  margin: 0 auto;
}

.result-card h1 {
  margin-top: 8px;
  color: var(--success);
  font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.result-section {
  margin-top: 26px;
}

.result-section ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.result-section li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 750;
}

.action-box {
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px;
  background: #FFF8E8;
}

.action-box p {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.bridge-copy {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.email-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.email-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.email-benefits div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: var(--soft);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 850;
}

.email-form label {
  color: var(--ink);
  font-weight: 900;
}

.email-form input {
  min-height: 56px;
  border: 1px solid rgba(58, 71, 80, .18);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
}

.email-form input:focus {
  outline: 3px solid rgba(255, 171, 64, .24);
  border-color: var(--orange);
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.offer-card {
  text-align: center;
}

.offer-card .lead {
  margin-left: auto;
  margin-right: auto;
}

.offer-card .button {
  margin-top: 26px;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 30px, 1120px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .quiz-layout {
    grid-template-columns: 1fr;
  }

  .screen-start {
    min-height: auto;
    padding-top: 16px;
  }

  .hero-panel {
    order: -1;
  }

  .hero-logo {
    width: 54px;
    height: 54px;
  }

  .signal-grid,
  .offer-steps,
  .email-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding-top: 18px;
  }

  .brand span {
    font-size: .9rem;
  }

  .button,
  .button-row,
  .quiz-controls,
  .topbar-pill {
    width: 100%;
  }

  .quiz-controls {
    flex-direction: column-reverse;
  }

  .center-card {
    margin-top: 0;
  }
}
