/* V0.2: preserve the original layout, strengthen actions and brand colour. */
:root {
  --brand-gradient: linear-gradient(115deg, #3779ff 0%, #7048ee 55%, #b029ff 100%);
  --header-height: 77px;
}

html { scroll-padding-top: calc(var(--header-height) + 20px); }
main > section, .reprise-panel { scroll-margin-top: 0; }

/* An opaque, isolated layer prevents the content showing through on scroll. */
.site-header {
  background: #fff;
  z-index: 100;
  isolation: isolate;
  box-shadow: 0 2px 12px #0c133006;
}
.main-nav { background: #fff; }
.header-inner { gap: 0 24px; }
main { position: relative; z-index: 0; }
html:not(.js-enabled) .site-header { position: static; }
html:not(.js-enabled) { scroll-padding-top: 20px; }

.hero {
  padding-bottom: 46px;
  background: radial-gradient(ellipse at 95% 10%, #b029ff07, transparent 50%),
    linear-gradient(150deg, #fff 20%, #f7f9ff 100%);
}
.how-section {
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
  border-top: 1px solid #e8edfa;
}
.steps > li:nth-child(even) .step-icon { color: #8531ba; background: #f5ebff; }
.steps > li:nth-child(odd) .step-number { color: var(--action); }
.steps > li:nth-child(even) .step-number { color: #8531ba; }
.steps-conclusion {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  max-width: 970px;
  margin: 32px auto 0;
  padding: 24px;
  background: linear-gradient(115deg, #edf3ff, #f8f0ff);
  border: 1px solid #dfe4f6;
  border-radius: 14px;
}
.steps-conclusion p { font-size: 16px; font-weight: 600; line-height: 1.6; }
.steps-conclusion .button { min-height: 54px; font-size: 12px; padding: 15px 16px; }

.lines-section { background: #eef4ff; border-color: #e2eafb; }
.future-action { gap: 8px; max-width: 100%; }
.future-action .button-secondary { border-color: #a9bce2; color: var(--action); }
.line-card .line-cta { margin-top: 22px; width: 100%; min-height: 52px; font-size: 12px; }
.line-card { border-color: #d6e1f4; box-shadow: 0 8px 24px #234b8f05; }

.proof-section { background: #fff; color: var(--night); }
.proof-intro .eyebrow { color: var(--action); }
.proof-intro > p:not(.eyebrow) { color: var(--action); }
.proof-intro > span { color: var(--muted); }
.stats > div { border-top-color: #dce5f7; }
.stats dt { color: #526079; }
.stats dd { color: var(--blue); }
.stats > div:nth-child(even) dd { color: var(--purple); }

/* The subtle navy overlay keeps small white text above 4.5:1 across the gradient. */
.propose-section {
  background: linear-gradient(#0c133024, #0c133024), var(--brand-gradient);
  color: #fff;
}
.propose-copy .eyebrow,
.propose-copy > p:not(.eyebrow):not(.availability-note),
.propose-copy .availability-note { color: #fff; }
.propose-copy h2 { color: #fff; }
.propose-copy .availability-note { font-size: 11px; line-height: 1.8; }
.button-light { background: #fff; color: var(--action); border-color: #fff; }
.button-light:hover { background: #edf3ff; border-color: #edf3ff; transform: translateY(-1px); }
.propose-section .contribution-map {
  color: var(--night);
  border-color: #ffffffa6;
  box-shadow: 0 18px 45px #0c133024;
}

.partners-section { background: #fff; }
.partner-card { border-color: #e0e6f1; }
.partner-card:nth-child(2) .partner-icon { color: #8531ba; background: #f8efff; }

.vision-section {
  background: radial-gradient(ellipse at 8% 15%, #3779ff14, transparent 50%),
    radial-gradient(ellipse at 90% 90%, #b029ff12, transparent 50%), var(--night);
  color: #fff;
}
.vision-section .eyebrow { color: #a8c6ff; }
.vision-section .section-heading .vision-lead { color: #c5d1e8; }
.vision-stage { background: #141d39; border-color: #344264; }
.vision-stage.first { background: #14264a; border-color: #3779ff; }
.vision-stage.future { border-style: dashed; }
.vision-stage h3 { color: #fff; }
.vision-stage > p { color: #c9d5ec; }
.stage-number { color: #b8c8e5; }
.stage-status { background: #282c4b; color: #d9ddf5; }
.first .stage-status { background: #244580; color: #e3edff; }
.vision-icon, .future .vision-icon { color: #8ab5ff; }
.vision-stage:nth-child(2) .vision-icon { color: #d09cff; }
.stage-detail { color: #bccde9; border-top-color: #354366; }
.vision-stage:not(:last-child)::after { color: #b39aff; background: #0c1330; }
.vision-note { color: #b8c6e0; }

.faq-section { background: var(--paper); border-top-color: #e2e8f5; }
.faq-list details { border-color: #d9e1f0; }

@media (min-width: 540px) {
  .hero { padding-bottom: 55px; }
}
@media (min-width: 800px) {
  .hero { padding-bottom: 70px; }
  .steps-conclusion { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 28px; margin-top: 38px; }
  .steps-conclusion p { flex: 1; }
  .steps-conclusion .button { flex-shrink: 0; }
}
@media (min-width: 1080px) {
  :root { --header-height: 89px; }
  .hero { padding-bottom: 76px; }
  .line-card .line-cta { width: auto; padding-inline: 20px; }
}
@media (max-width: 1079px) {
  .main-nav {
    max-height: calc(100vh - var(--header-height) - 16px);
    max-height: calc(100dvh - var(--header-height) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-inline: 6px;
    padding-top: 4px;
  }
}
@media (max-width: 359px) {
  .steps-conclusion { padding: 20px 16px; }
  .steps-conclusion p { font-size: 15px; }
  .steps-conclusion .button { font-size: 11px; gap: 8px; }
  .line-card .line-cta { padding-inline: 12px; font-size: 11px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .button-light:hover { transform: none; }
}
@media (forced-colors: active) {
  .steps-conclusion, .button-light { border: 1px solid CanvasText; }
  .propose-section, .vision-section { background: Canvas; color: CanvasText; }
  .propose-copy h2, .propose-copy .eyebrow,
  .propose-copy > p:not(.eyebrow):not(.availability-note),
  .propose-copy .availability-note { color: CanvasText; }
}
