:root {
  --bg: oklch(1 0 0);
  --ink: oklch(0.16 0.015 205);
  --muted: oklch(0.42 0.018 205);
  --line: oklch(0.88 0.012 205);
  --surface: oklch(0.965 0.006 205);
  --primary: oklch(0.39 0.086 200);
  --primary-deep: oklch(0.23 0.062 204);
  --accent: oklch(0.68 0.15 42);
  --accent-soft: oklch(0.94 0.052 55);
  --white: oklch(1 0 0);
  --shadow: 0 8px 24px oklch(0.18 0.03 205 / 0.14);
  --radius: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  mix-blend-mode: normal;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 0.95;
}

.brand-mark {
  width: 20px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent) 0 46%, var(--white) 46% 54%, var(--primary) 54%);
  clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.92rem;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-deep);
  text-decoration: none;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 128px clamp(18px, 5vw, 72px) 150px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, oklch(0.08 0 0 / 0.38), oklch(0.08 0 0 / 0.18) 42%, oklch(0.08 0 0 / 0.72)),
    linear-gradient(90deg, oklch(0.08 0 0 / 0.58), transparent 62%);
}

.hero-content {
  max-width: 980px;
  color: var(--white);
  text-shadow: 0 2px 18px oklch(0.08 0 0 / 0.5);
  animation: hero-in 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-kicker,
.section-label,
.card-topline,
.result-label {
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--accent);
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: oklch(0.96 0 0);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: var(--white);
}

.button-secondary {
  background: oklch(1 0 0 / 0.9);
  color: var(--primary-deep);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  display: grid;
  grid-template-columns: auto minmax(160px, 260px);
  gap: 8px 18px;
  max-width: min(560px, calc(100% - 36px));
  padding: 16px 18px;
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.9);
  color: var(--ink);
}

.hero-panel span {
  color: var(--muted);
  font-size: 0.9rem;
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--primary-deep);
  color: var(--white);
}

.intro-band p {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.intro-band a {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.section,
.quiz-section,
.contact-band {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.section-heading,
.quiz-copy {
  max-width: 760px;
  margin-bottom: 42px;
}

h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.compare-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius);
  color: var(--white);
}

.compare-card.prefab {
  background: linear-gradient(145deg, var(--primary), var(--primary-deep));
}

.compare-card.solid {
  background: linear-gradient(145deg, oklch(0.35 0.055 55), oklch(0.22 0.032 55));
}

.compare-card p,
.compare-card li {
  color: oklch(0.94 0.01 80);
}

.compare-card ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.quiz-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(34px, 7vw, 92px);
  background: var(--surface);
}

.quiz-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.quiz-copy p:not(.section-label) {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.quiz-shell {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 42px);
}

.quiz-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
  margin-bottom: 34px;
}

.quiz-progress span {
  display: block;
  width: 16.66%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 260ms ease;
}

.quiz-error {
  margin: -12px 0 22px;
  color: oklch(0.36 0.13 32);
  font-weight: 800;
}

.quiz-error[hidden] {
  display: none;
}

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

.quiz-step.is-active {
  display: grid;
  gap: 12px;
  animation: step-in 260ms ease both;
}

.quiz-step legend {
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.quiz-step label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 64px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.quiz-step label:has(input:checked) {
  border-color: var(--primary);
  background: oklch(0.96 0.022 200);
}

.quiz-step.needs-answer label {
  border-color: oklch(0.58 0.16 35);
}

.quiz-step input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.quiz-result[hidden] {
  display: none;
}

.quiz-result {
  display: grid;
  gap: 18px;
}

.quiz-result p {
  margin: 0;
  color: var(--muted);
}

.result-bars {
  display: grid;
  grid-template-columns: var(--prefab, 1fr) var(--solid, 1fr);
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.bar-prefab {
  background: var(--primary);
}

.bar-solid {
  background: var(--accent);
}

.text-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 850;
  cursor: pointer;
  padding: 4px 0;
}

.insight {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(34px, 7vw, 92px);
}

.insight-list {
  display: grid;
  gap: 16px;
}

.insight-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.insight-list span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-weight: 900;
}

.insight-list p {
  margin: 0;
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 6vw, 76px);
  background: var(--primary-deep);
  color: var(--white);
}

.contact-band p:not(.section-label) {
  max-width: 62ch;
  color: oklch(0.9 0.012 205);
}

.lead-form {
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-weight: 780;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: oklch(0.1 0 0);
  color: var(--white);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92vh;
    align-items: start;
    padding-top: 120px;
    padding-bottom: 170px;
  }

  .hero h1 {
    font-size: clamp(2.95rem, 14vw, 4.8rem);
  }

  .hero-copy {
    max-width: 32ch;
    font-size: 1.02rem;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    grid-template-columns: 1fr;
  }

  .intro-band,
  .quiz-section,
  .insight,
  .contact-band {
    grid-template-columns: 1fr;
  }

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

  .quiz-copy {
    position: static;
    margin-bottom: 0;
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }

  .hero-actions,
  .quiz-controls,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .quiz-step label {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

.site-footer nav { display: flex; gap: 1.25rem; }
.legal { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { margin: 2rem 0 0.5rem; font-size: 1.15rem; }
.legal p { margin-bottom: 0.9rem; line-height: 1.6; }
