/* Desktop keeps the compact tool beside the app; smaller screens lead with the app. */
.marketing-hero {
  min-height: 0;
  padding-block: clamp(32px, 4vw, 56px);
}

.hero-content {
  min-width: 0;
}

.hero-content h1 {
  max-width: none;
  font-size: clamp(2.8rem, 4vw, 3.7rem);
}

.hero-content .hero-copy {
  margin-block: 18px 22px;
}

.hero-content .hero-trust {
  margin-block: 12px 0;
}

.hero-content .spending-calculator {
  margin-top: 24px;
  padding: 20px;
  scroll-margin-top: 92px;
}

.hero-content .spending-calculator .calculator-title {
  margin-bottom: 14px;
}

.hero-content .calculator-result {
  margin-top: 16px;
  padding-top: 16px;
}

.hero-content .calculator-annual output {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.hero-content .calculator-five-year {
  margin-top: 6px;
}

.hero-content .calculator-assumptions {
  margin-top: 10px;
}

.feature-heading {
  margin-bottom: 24px;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .marketing-hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
  }

  .hero-content {
    display: contents;
  }

  .hero-content > .eyebrow {
    order: 0;
    margin: 0;
    text-align: center;
  }

  .hero-content h1 {
    order: 1;
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3rem);
    text-align: center;
  }

  .current-hero-visual {
    order: 2;
    width: 100%;
    margin: 0;
  }

  .current-app-stage {
    max-width: 420px;
    margin-inline: auto;
    padding-top: 12px;
  }

  .current-preview-label {
    display: none;
  }

  .hero-content .hero-copy {
    order: 3;
    margin: 0 auto;
    text-align: center;
  }

  .hero-content .hero-actions {
    order: 4;
    justify-content: center;
    margin: 0;
  }

  .hero-content .hero-trust {
    order: 5;
    margin: 0 auto;
    text-align: center;
  }

  .hero-content .spending-calculator {
    order: 6;
    width: min(100%, 560px);
    justify-self: center;
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .marketing-hero {
    padding: 24px 16px 16px;
    row-gap: 12px;
  }

  .hero-content > .eyebrow {
    margin: 0 0 12px;
    line-height: 1.6;
  }

  .hero-content h1 {
    margin-inline: auto;
    font-size: clamp(1.85rem, 8.6vw, 2.3rem);
    line-height: 1.06;
  }

  html[lang^="fr"] .hero-content h1 {
    font-size: clamp(1.65rem, 7.5vw, 2rem);
  }

  .hero-content .hero-copy {
    margin: 14px auto 18px;
    max-width: 30ch;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .hero-content .hero-actions {
    justify-content: center;
    margin: 0;
  }

  .hero-content .hero-trust {
    max-width: 34ch;
    margin: 10px auto 0;
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .hero-content .spending-calculator {
    margin-top: 24px;
    text-align: left;
    scroll-margin-top: 76px;
  }

  .current-app-stage {
    padding-block: 8px;
  }
}
