:root {
  color-scheme: light;
  --ink: #14202b;
  --muted: #64717c;
  --line: #dfe7eb;
  --paper: #f3f7f5;
  --white: #ffffff;
  --green: #11845f;
  --green-dark: #0b6246;
  --navy: #18314f;
  --teal: #2d9a9a;
  --amber: #f2b84b;
  --shadow: 0 24px 70px rgba(20, 32, 43, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(17, 132, 95, 0.13), rgba(45, 154, 154, 0.08) 42%, rgba(242, 184, 75, 0.13)),
    var(--paper);
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.86fr);
  align-items: stretch;
  gap: 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(223, 231, 235, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 18px 6px 18px 14px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 10px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  background: rgba(17, 132, 95, 0.12);
  border: 1px solid rgba(17, 132, 95, 0.22);
  border-radius: 999px;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 0.97;
  letter-spacing: 0;
}

.intro {
  max-width: 610px;
  margin: 18px 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.52;
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.value-row span {
  padding: 8px 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  background: #eef5f7;
  border: 1px solid rgba(223, 231, 235, 0.94);
  border-radius: 8px;
}

.quiz-card {
  display: grid;
  gap: 18px;
  max-width: 610px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(223, 231, 235, 0.96);
  border-radius: 8px;
}

.quiz-top {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.progress {
  height: 8px;
  overflow: hidden;
  background: #e8eff1;
  border-radius: 999px;
}

.progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--teal));
  border-radius: inherit;
  transition: width 220ms ease;
}

.quiz-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-step.is-active {
  display: grid;
  gap: 14px;
}

legend {
  margin: 0 0 14px;
  padding: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 950;
  line-height: 1.16;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

button {
  min-height: 54px;
  border-radius: 8px;
  font: inherit;
}

.option-button {
  min-width: 0;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.option-button:hover,
.option-button.is-selected {
  color: var(--green-dark);
  background: rgba(17, 132, 95, 0.1);
  border-color: rgba(17, 132, 95, 0.36);
  transform: translateY(-1px);
}

.quiz-actions {
  display: flex;
  gap: 10px;
}

.quiz-actions button {
  min-width: 170px;
  padding: 0 20px;
}

#submitButton {
  flex: 1;
  color: var(--white);
  font-weight: 950;
  background: var(--green);
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

#submitButton:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

#submitButton:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.back-button {
  min-width: 108px;
  color: var(--ink);
  font-weight: 900;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}

.back-button[hidden] {
  display: none;
}

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hero-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  background: #dce7e6;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  object-fit: cover;
}

.result-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(280px, calc(100% - 36px));
  display: grid;
  gap: 5px;
  padding: 18px;
  color: var(--white);
  background: rgba(20, 32, 43, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.result-card span,
.result-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.result-card strong {
  font-size: 30px;
  line-height: 1.05;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.trust-strip span {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(223, 231, 235, 0.9);
  border-radius: 8px;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.info-band div {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(223, 231, 235, 0.92);
  border-radius: 8px;
}

.info-band strong {
  color: var(--navy);
  font-size: 15px;
}

.info-band span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding: 0 2px 4px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 0;
}

.legal-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(223, 231, 235, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(32px, 7vw, 52px);
}

.legal-card h2 {
  margin: 12px 0 0;
  font-size: 18px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.58;
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 20px, 600px);
    align-content: start;
    padding-top: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .hero-copy {
    padding: 0;
  }

  h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .intro {
    font-size: 16px;
  }

  .hero-media {
    order: -1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1;
  }

  .hero-media img {
    height: 100%;
    min-height: 0;
    object-position: center;
  }

  .result-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .quiz-card {
    padding: 16px;
  }

  .option-grid,
  .info-band {
    grid-template-columns: 1fr;
  }

  .quiz-actions {
    display: grid;
  }

  .quiz-actions button {
    width: 100%;
    min-width: 0;
  }
}
