:root {
  --orchards-primary: #0a1f44;
  --orchards-secondary: #3a5f85;
  --orchards-accent: #6b764c;
  --orchards-dark-text: #424547;
  --orchards-light-bg: #fffaf4;
  --orchards-cream: #eddecc;
  --white: #ffffff;
  --line: rgba(66, 69, 71, 0.16);
  --shadow: 0 22px 64px rgba(10, 31, 68, 0.12);
  --red: #a8322d;
  --red-dark: #6f1e1a;
  --red-soft: #fde8e4;
  --amber: #b36b14;
  --amber-dark: #74420a;
  --amber-soft: #fff1d8;
  --green: #4f6f3a;
  --green-dark: #2f4a24;
  --green-soft: #eaf3e7;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--orchards-dark-text);
  background: var(--orchards-light-bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(237, 222, 204, 0.9), transparent 38rem),
    linear-gradient(180deg, var(--orchards-light-bg), #ffffff 42rem);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(66, 69, 71, 0.08);
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: blur(16px);
}

.brand img {
  display: block;
  width: min(220px, 52vw);
  height: auto;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.header-actions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--orchards-primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

main {
  padding-bottom: 80px;
}

.hero,
.checker-shell,
.results-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(42px, 8vw, 88px) 0 clamp(34px, 6vw, 70px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orchards-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  color: var(--orchards-primary);
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  color: var(--orchards-primary);
  font-size: 1.05rem;
}

.hero-subtitle {
  max-width: 700px;
  color: rgba(66, 69, 71, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.disclaimer-inline,
.disclaimer-box,
.section-description,
.help-text,
.lead-card p,
.result-card p,
.hero-card p {
  color: rgba(66, 69, 71, 0.78);
  line-height: 1.6;
}

.disclaimer-inline {
  max-width: 780px;
  padding: 14px 16px;
  border: 1px solid rgba(58, 95, 133, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.93rem;
}

.hero-actions,
.checker-actions,
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--orchards-primary);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  background: var(--orchards-primary);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(10, 31, 68, 0.18);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.button.urgent {
  background: var(--red-dark);
  color: var(--white);
}

.button.wide {
  width: 100%;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--orchards-secondary);
  font-weight: 900;
  cursor: pointer;
}

.hero-card,
.checker-card,
.progress-card,
.result-card,
.lead-card,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

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

.hero-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.checker-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.progress-card {
  position: sticky;
  top: 98px;
  padding: 20px;
}

.progress-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(66, 69, 71, 0.72);
}

.progress-list span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--orchards-primary);
  font-size: 0.85rem;
  font-weight: 900;
}

.progress-list li.active span {
  border-color: var(--orchards-primary);
  background: var(--orchards-primary);
  color: var(--white);
}

.progress-list li.active strong {
  color: var(--orchards-primary);
}

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

.checker-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-description {
  max-width: 780px;
}

.question {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.52);
}

legend,
.field > span,
.lead-card label > span {
  color: var(--orchards-primary);
  font-weight: 900;
}

.help-text {
  margin-bottom: 0;
  font-size: 0.92rem;
}

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

.answer-option {
  position: relative;
}

.answer-option input {
  position: absolute;
  opacity: 0;
}

.answer-option span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(66, 69, 71, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--orchards-primary);
  font-weight: 900;
  text-align: center;
}

.answer-option input:checked + span {
  border-color: var(--orchards-accent);
  background: rgba(107, 118, 76, 0.13);
  box-shadow: inset 0 0 0 1px rgba(107, 118, 76, 0.2);
}

.field,
.lead-card label {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(66, 69, 71, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #111;
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.answer-option input:focus-visible + span {
  border-color: var(--orchards-secondary);
  box-shadow: 0 0 0 4px rgba(58, 95, 133, 0.16);
}

.form-message {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
}

.form-message.error {
  border: 1px solid rgba(168, 50, 45, 0.22);
  background: var(--red-soft);
  color: var(--red-dark);
}

.form-message.notice {
  border: 1px solid rgba(179, 107, 20, 0.24);
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.form-message.success {
  border: 1px solid rgba(79, 111, 58, 0.24);
  background: var(--green-soft);
  color: var(--green-dark);
}

.results-section {
  margin-top: 34px;
}

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
}

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

.result-card.red {
  border-color: rgba(168, 50, 45, 0.34);
}

.result-card.amber {
  border-color: rgba(179, 107, 20, 0.34);
}

.result-card.green {
  border-color: rgba(79, 111, 58, 0.34);
}

.score-panel {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.score-ring {
  --score: 0%;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--orchards-accent) var(--score), rgba(66, 69, 71, 0.12) 0);
  color: var(--orchards-primary);
  font-size: 1.35rem;
  font-weight: 900;
}

.result-card.red .score-ring {
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--red) var(--score), rgba(66, 69, 71, 0.12) 0);
}

.result-card.amber .score-ring {
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--amber) var(--score), rgba(66, 69, 71, 0.12) 0);
}

.outcome-cta {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  border-radius: 8px;
}

.result-card.red .outcome-cta {
  border: 1px solid rgba(168, 50, 45, 0.28);
  background: var(--red-soft);
}

.result-card.amber .outcome-cta {
  border: 1px solid rgba(179, 107, 20, 0.28);
  background: var(--amber-soft);
}

.result-card.green .outcome-cta {
  border: 1px solid rgba(79, 111, 58, 0.28);
  background: var(--green-soft);
}

.outcome-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--orchards-primary);
  font-weight: 900;
}

.cta-kicker {
  margin: 0 0 6px;
  color: var(--orchards-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.disclaimer-box {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.72);
}

.disclaimer-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--orchards-primary);
}

.lead-card {
  position: sticky;
  top: 98px;
}

.lead-card form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-row {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--orchards-accent);
}

.detail-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.detail-panel {
  padding: 22px;
}

.detail-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  line-height: 1.45;
}

.detail-panel li.empty {
  color: rgba(66, 69, 71, 0.64);
}

.mobile-sticky-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(10, 31, 68, 0.2);
}

.mobile-sticky-cta a {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--orchards-primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .checker-shell,
  .results-grid,
  .detail-panels {
    grid-template-columns: 1fr;
  }

  .progress-card,
  .lead-card {
    position: static;
  }

  .progress-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero,
  .checker-shell,
  .results-section {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .answer-grid,
  .field-grid.two,
  .progress-list {
    grid-template-columns: 1fr;
  }

  .checker-topline,
  .score-panel,
  .outcome-cta {
    grid-template-columns: 1fr;
  }

  .checker-topline {
    display: grid;
  }

  .hero-actions,
  .checker-actions,
  .cta-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .mobile-sticky-cta:not([hidden]) {
    display: grid;
  }
}
