/* Checkpoint F — visual/commercial polish.
   Deliberately restrained: stronger hierarchy, rhythm and finish without decorative clutter. */

:root {
  --polish-shadow: 0 18px 46px rgba(32, 37, 34, 0.08);
  --polish-shadow-small: 0 8px 24px rgba(32, 37, 34, 0.06);
}

body {
  font-size: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  /* Avoid backdrop-filter here: some Android Chrome/GPU combinations can fail to paint the page while the DOM remains present. */
  background: var(--colour-canvas);
}

.site-header__inner {
  min-height: 4.75rem;
}

.site-nav a:not(.button) {
  text-underline-offset: 0.35rem;
}

.button {
  box-shadow: 0 2px 0 rgba(25, 60, 46, 0.2);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(25, 60, 46, 0.18);
}

.text-link {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.25em;
}

.hero {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.hero__grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  gap: clamp(3rem, 8vw, 7.5rem);
}

.hero__content h1 {
  max-width: 11.5ch;
}

.hero__content .lead {
  max-width: 37rem;
}

.hero-placeholder {
  position: relative;
  min-height: 30rem;
  place-content: end start;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--colour-stone);
  border-radius: var(--radius-panel);
  background: var(--colour-surface);
  box-shadow: var(--polish-shadow);
  color: var(--colour-muted);
  text-align: left;
}

.hero-placeholder::before {
  position: absolute;
  top: clamp(2rem, 5vw, 3rem);
  left: clamp(1.75rem, 4vw, 2.75rem);
  width: 4.75rem;
  height: 0.45rem;
  background: var(--colour-clay);
  content: "";
}

.hero-placeholder__label {
  max-width: 9ch;
  margin-bottom: var(--space-3);
  color: var(--colour-green);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero-placeholder p:last-child {
  max-width: 24rem;
  margin-bottom: 0;
  padding-top: var(--space-4);
  border-top: var(--border);
}

.section {
  padding-block: clamp(4.75rem, 8vw, 7.5rem);
}

.section-heading {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section--problem .narrow-copy {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 4px solid var(--colour-clay);
}

.steps {
  gap: var(--space-5);
  border-top: 0;
}

.steps li,
.steps li:nth-child(odd),
.steps li:nth-child(even) {
  padding: var(--space-6);
  border: var(--border);
  border-radius: var(--radius-panel);
  background: var(--colour-surface);
  box-shadow: var(--polish-shadow-small);
}

.plan-demo {
  align-items: start;
}

.plan-demo__intro {
  position: sticky;
  top: 7rem;
}

.plan-demo__data {
  border-color: #c9c0b3;
  box-shadow: var(--polish-shadow-small);
}

.allocation__track {
  border-radius: 999px;
}

.allocation__fill {
  border-radius: inherit;
}

.choice {
  min-height: 18rem;
  box-shadow: 0 12px 28px rgba(17, 42, 32, 0.2);
}

.choice--best {
  transform: translateY(-0.75rem);
  box-shadow: 0 18px 38px rgba(17, 42, 32, 0.28);
}

.choice__price {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
}

.closing-cta {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}

/* Questionnaire */
body .questionnaire-main {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(5rem, 8vw, 7rem);
}

body .questionnaire-intro {
  margin-bottom: var(--space-7);
}

body .wizard-progress {
  margin-top: var(--space-7);
  margin-bottom: var(--space-6);
}

body .wizard-progress progress {
  height: 0.7rem;
  border-radius: 999px;
}

body .wizard-step {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: var(--border);
  border-radius: var(--radius-panel);
  background: var(--colour-surface);
  box-shadow: var(--polish-shadow-small);
}

body .wizard-step--wide {
  max-width: 62rem;
}

body .choice-row label,
body .stacked-choices label,
body .priority-option {
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

body .choice-row label:hover,
body .stacked-choices label:hover,
body .priority-option:hover {
  border-color: var(--colour-green);
}

body .inventory-group summary {
  padding-inline: var(--space-4) 2.5rem;
}

body .inventory-group[open] {
  background: #fbf8f1;
}

body .wizard-actions {
  margin-top: var(--space-7);
}

/* Results */
body .plan-heading {
  background: var(--colour-surface);
}

body .budget-section {
  border-bottom: var(--border);
}

body .budget-bar {
  min-height: 1.45rem;
}

body .timing-group {
  border-top-width: 3px;
}

body .allocation-row {
  margin-inline: calc(var(--space-4) * -1);
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-control);
}

body .allocation-row:hover {
  background: var(--colour-surface);
}

body .allocation-row__amount {
  color: var(--colour-green);
  font-size: 1.3rem;
}

body .route-label {
  background: rgba(36, 81, 63, 0.06);
}

body .washing-handoff {
  border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
  box-shadow: var(--polish-shadow-small);
}

/* Washing-machine comparison */
body .category-heading {
  background: var(--colour-surface);
}

body .plan-budget {
  padding: var(--space-5);
  border: var(--border);
  border-left: 4px solid var(--colour-clay);
  border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
  background: var(--colour-canvas);
}

body .known-answer,
body .data-notice {
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
}

body .recommendation-card {
  margin-bottom: var(--space-5);
  padding: var(--space-6);
  border: var(--border);
  border-radius: var(--radius-panel);
  background: var(--colour-surface);
  box-shadow: var(--polish-shadow-small);
}

body .recommendation-card--best_fit {
  position: relative;
  margin-inline: 0;
  border: 3px solid var(--colour-green);
  box-shadow: var(--polish-shadow);
}

body .recommendation-card--best_fit::before {
  position: absolute;
  top: -0.9rem;
  right: var(--space-5);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--colour-green);
  color: var(--colour-white);
  content: "Best match";
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body .recommendation-trust {
  border-radius: var(--radius-panel);
  background: var(--colour-stone-soft);
}

@media (max-width: 52rem) {
  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero-placeholder {
    min-height: 20rem;
  }

  .plan-demo__intro {
    position: static;
  }

  .choice--best {
    transform: none;
  }
}

@media (max-width: 34rem) {
  .hero {
    padding-top: var(--space-7);
  }

  .hero-placeholder,
  body .wizard-step,
  body .recommendation-card {
    padding: var(--space-5);
  }

  .steps {
    gap: var(--space-3);
  }

  body .allocation-row {
    margin-inline: 0;
    padding-inline: 0;
  }

  body .allocation-row:hover {
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  body .choice-row label,
  body .stacked-choices label,
  body .priority-option {
    transition: none;
  }
}
