:root {
  --midnight-950: #030814;
  --midnight-900: #061125;
  --midnight-850: #0a1b36;
  --midnight-800: #102643;
  --midnight-700: #173152;
  --sand-50: #fdf8f1;
  --sand-100: #f7f0e3;
  --sand-150: #efe4d1;
  --stone-500: #566178;
  --stone-600: #3c475e;
  --stone-700: #1e2a40;
  --stone-800: #152135;
  --teal-400: #43c8ac;
  --teal-500: #1ea48d;
  --teal-600: #198c77;
  --amber-400: #f6c77b;
  --amber-500: #efac43;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 45px rgba(14, 29, 55, 0.14);
  --shadow-strong: 0 26px 72px rgba(5, 11, 24, 0.22);
  --transition: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(160deg, var(--midnight-950) 0%, rgba(3, 8, 20, 0.96) 40%, #091b3a 100%);
  color: var(--stone-700);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.body--nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--teal-500);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal-500), #34c1a4);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  transform: translateY(-1px);
}

.btn--outline {
  border-color: rgba(30, 164, 141, 0.32);
  color: var(--teal-500);
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(30, 164, 141, 0.08);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.btn--full {
  width: 100%;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber-400);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}

.subtitle {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 108px 0;
}

.fold {
  position: relative;
}

.fold + .fold {
  margin-top: -12px;
}

.fold::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(14, 29, 55, 0) 0%, rgba(14, 29, 55, 0.16) 20%, rgba(14, 29, 55, 0.16) 80%, rgba(14, 29, 55, 0) 100%);
}

.fold--hero::after,
.fold--cta::after {
  display: none;
}

.section--light {
  background: linear-gradient(135deg, rgba(10, 31, 59, 0.94) 0%, rgba(15, 45, 82, 0.92) 52%, rgba(24, 70, 120, 0.9) 100%);
  color: rgba(255, 255, 255, 0.86);
}

.section--dark {
  background: var(--midnight-900);
  color: var(--white);
}

.section--lead {
  background: linear-gradient(140deg, rgba(6, 17, 37, 0.94) 0%, rgba(10, 31, 59, 0.92) 55%, rgba(19, 47, 84, 0.9) 100%);
}

.section--lead .lead__card {
  max-width: 760px;
  margin: 0 auto;
}

.section--cta {
  background: linear-gradient(135deg, var(--midnight-900) 0%, var(--midnight-800) 50%, #0f2645 100%);
  color: var(--white);
}

.section__header {
  max-width: 640px;
}

.section__header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 16px;
  color: var(--stone-700);
}

.section__header p {
  margin: 0;
  color: var(--stone-500);
}

.section--light .section__header h2,
.section--light .section__header p {
  color: rgba(255, 255, 255, 0.9);
}

.section__header--inverted h2,
.section--dark .section__header h2,
.section--dark .section__header p {
  color: var(--white);
}

.section__cta {
  margin-top: 48px;
}

.section__cta .btn {
  min-width: 260px;
  justify-content: center;
}

.section__cta--inverted .btn {
  border-color: rgba(255, 255, 255, 0.48);
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 31, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 177, 111, 0.24);
}

.header.header--scrolled {
  background: rgba(4, 8, 20, 0.96);
  border-color: rgba(212, 177, 111, 0.35);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}

.brand {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: normal;
  color: var(--white);
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.nav a {
  color: inherit;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--teal-400);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  padding: clamp(96px, 12vh, 140px) 0 clamp(72px, 10vh, 120px);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(67, 200, 172, 0.24), transparent 46%),
    radial-gradient(circle at 82% 12%, rgba(239, 172, 67, 0.15), transparent 52%),
    linear-gradient(145deg, var(--midnight-900) 0%, var(--midnight-850) 60%, #0b2346 100%);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  width: 100%;
  max-width: 1120px;
}

.hero__copy h1 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.hero__copy .subtitle {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.hero__visual {
  position: relative;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(420px, 88vw);
  transition: transform var(--transition), filter var(--transition);
}

.hero__visual-frame {
  position: absolute;
  inset: -32px -28px -40px;
  border-radius: 56px;
  background: linear-gradient(140deg, rgba(67, 200, 172, 0.65) 0%, rgba(239, 172, 67, 0.35) 46%, rgba(12, 33, 62, 0.9) 100%);
  filter: blur(0px);
  opacity: 0.58;
  transform: rotate(-5deg);
  z-index: 0;
  pointer-events: none;
}

.hero__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(8, 21, 41, 0.35);
  background: rgba(10, 31, 59, 0.85);
  padding: clamp(32px, 6vw, 48px);
  object-fit: contain;
}

.hero__highlights {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero__highlights li {
  padding-left: 24px;
  position: relative;
  color: rgba(255, 255, 255, 0.86);
}

.hero__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber-400);
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .hero__visual {
    justify-self: end;
  }
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust {
  display: grid;
  gap: 10px;
}

.trust p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.trust__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.trust__logos span {
  padding: 12px 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 14px;
}

.card--elevated {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-strong);
}

.lead__card h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--stone-700);
}

.lead__card > p {
  margin: 0 0 24px;
  color: var(--stone-500);
}

.form {
  display: grid;
  gap: 18px;
  max-width: 620px;
  margin: 0 auto;
}

.form--wizard {
  position: relative;
}

.form-step {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.form-step:not(.is-active) {
  display: none;
}

.form-step > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form__progress {
  display: grid;
  gap: 12px;
}

.form__progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(21, 41, 70, 0.1);
  overflow: hidden;
}

.form__progress-bar {
  width: 25%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-500), #34c1a4);
  transition: width var(--transition);
}

.form__progress-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.form__insight {
  background: var(--sand-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--stone-600);
  font-weight: 500;
  border-left: 4px solid var(--teal-500);
}

.form__insight[data-state="alta"] {
  border-left-color: var(--teal-500);
  color: var(--stone-700);
}

.form__insight[data-state="media"] {
  border-left-color: var(--amber-500);
}

.form__insight[data-state="baixa"] {
  border-left-color: #f06b64;
}

.form__helper {
  font-size: 14px;
  color: var(--stone-500);
  margin: 0;
}

.option-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 22px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 41, 70, 0.14);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.option-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.option-card__title {
  font-weight: 600;
  color: var(--stone-700);
}

.option-card__description {
  font-size: 14px;
  color: var(--stone-500);
}

.option-card:focus-within,
.option-card:hover {
  border-color: rgba(30, 164, 141, 0.55);
  box-shadow: 0 16px 32px rgba(21, 41, 70, 0.14);
  transform: translateY(-2px);
}

.option-card:has(input:checked) {
  border-color: var(--teal-500);
  box-shadow: 0 16px 38px rgba(21, 41, 70, 0.16);
}

.option-card:has(input:checked) .option-card__title {
  color: var(--teal-600);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form__actions .btn {
  flex: 1;
  min-width: 160px;
}

.form__error {
  margin: 0;
  font-size: 13px;
  color: #b4231d;
  background: rgba(244, 93, 72, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

label {
  font-size: 14px;
  font-weight: 500;
  color: var(--stone-700);
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  border: 1px solid rgba(21, 41, 70, 0.16);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--stone-700);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(30, 164, 141, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 164, 141, 0.12);
}

.disclaimer {
  font-size: 12px;
  color: var(--stone-500);
  text-align: center;
  margin-top: 12px;
}

.features {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

.features--simple {
  gap: 24px;
}

.feature {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(21, 41, 70, 0.06);
}

.feature--simple {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 41, 70, 0.08);
  box-shadow: none;
}

.feature h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--stone-700);
}

.feature p {
  margin: 0;
  color: var(--stone-500);
}

.stats {
  background: var(--sand-100);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
}

.stat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(21, 41, 70, 0.06);
}

.stat .counter {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--stone-700);
  display: block;
  margin-bottom: 8px;
}

.stat p {
  margin: 0;
  color: var(--stone-500);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.steps--compact {
  gap: 24px;
}

.step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(67, 200, 172, 0.2);
  border-radius: var(--radius-md);
  padding: 32px;
  backdrop-filter: blur(4px);
}

.step--compact {
  background: rgba(6, 17, 37, 0.6);
  border: 1px solid rgba(67, 200, 172, 0.3);
}

.step--compact p {
  color: rgba(255, 255, 255, 0.85);
}

.step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(67, 200, 172, 0.22);
  color: var(--teal-400);
  font-weight: 600;
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.testimonials {
  display: grid;
  gap: 48px;
}

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

.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(21, 41, 70, 0.06);
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--stone-700);
}

.testimonial figcaption {
  font-size: 14px;
  color: var(--stone-500);
}

.faq {
  display: grid;
  gap: 42px;
}

.faq__list {
  display: grid;
  gap: 18px;
}


.faq details {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(21, 41, 70, 0.06);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--teal-500);
}

.faq p {
  margin: 12px 0 0;
  color: var(--stone-500);
}


.section--cta .cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section--cta .cta__content {
  max-width: 620px;
}

.section--cta h2 {
  margin: 12px 0 16px;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 46px);
}

.footer {
  background: linear-gradient(180deg, #050d20 0%, #040813 100%);
  color: rgba(255, 255, 255, 0.76);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(67, 200, 172, 0.18);
}

.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.footer__brand p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.footer__nav {
  display: grid;
  gap: 12px;
}

.footer__contact p {
  margin: 0 0 16px;
}

.footer__contact a {
  color: var(--teal-400);
}

.footer__copy {
  margin: 36px 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Calculadora */
.calc-page {
  background: linear-gradient(160deg, var(--midnight-950) 0%, rgba(3, 8, 20, 0.96) 40%, #091b3a 100%);
  color: rgba(255, 255, 255, 0.86);
}

.calc-header {
  background: rgba(6, 17, 37, 0.92);
  border-bottom: 1px solid rgba(67, 200, 172, 0.28);
  position: sticky;
  top: 0;
  z-index: 6;
  backdrop-filter: blur(12px);
}

.calc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.calc-brand {
  font-weight: 700;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.calc-main {
  padding: 72px 0 96px;
  display: grid;
  gap: 72px;
}

.calc-intro {
  display: grid;
  gap: 16px;
  max-width: 720px;
  text-align: center;
  justify-items: center;
}

.calc-intro h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
  color: var(--white);
}

.calc-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.calc-section {
  background: linear-gradient(140deg, rgba(6, 17, 37, 0.94) 0%, rgba(10, 31, 59, 0.9) 52%, rgba(19, 47, 84, 0.88) 100%);
  padding: 72px 0;
  border: 1px solid rgba(67, 200, 172, 0.14);
  box-shadow: 0 26px 72px rgba(5, 11, 24, 0.28);
  color: rgba(255, 255, 255, 0.86);
}

.calc-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: stretch;
}

.calc-section__grid--reverse {
  direction: rtl;
}

.calc-section__grid--reverse > * {
  direction: ltr;
}

.calc-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(21, 41, 70, 0.12);
  display: grid;
  gap: 18px;
}

.calc-card h2 {
  margin: 0;
  font-size: 24px;
  color: var(--stone-700);
}

.calc-card p {
  margin: 0;
  color: var(--stone-700);
}

.calc-form {
  display: grid;
  gap: 18px;
}

.calc-form__inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.calc-fieldset {
  border: 1px solid rgba(21, 41, 70, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-fieldset legend {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-600);
  padding: 0 8px;
}

.calc-fieldset label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--stone-700);
}

.calc-results {
  display: grid;
  gap: 24px;
}

.calc-summary {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(30, 164, 141, 0.32);
  border-radius: var(--radius-md);
  padding: 24px;
  font-weight: 500;
  color: var(--stone-700);
  box-shadow: 0 18px 42px rgba(9, 27, 58, 0.16);
  min-height: 120px;
}

.calc-summary strong {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--midnight-900);
}

.calc-summary__grid {
  display: grid;
  gap: 16px;
  font-weight: 500;
}

.calc-summary__grid span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 4px;
}

.calc-charts {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(21, 41, 70, 0.12);
  display: grid;
  gap: 32px;
}

.calc-charts canvas {
  width: 100% !important;
  max-height: 320px;
}

.calc-chart-fallback {
  margin: 0;
  color: var(--stone-500);
  font-size: 14px;
}

.calc-footer {
  background: var(--midnight-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 32px 0;
}

.calc-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-footer a {
  color: var(--teal-400);
}

@media (max-width: 1024px) {
  .features,
  .stats__grid,
  .steps,
  .testimonial-list,
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding: 96px 0 80px;
    align-items: flex-start;
  }

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

  .hero__visual {
    justify-self: center;
    width: min(380px, 90vw);
  }

  .hero__visual-frame {
    inset: -28px -20px -36px;
    transform: rotate(-3deg);
  }

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

  .section--cta .cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .calc-section__grid {
    grid-template-columns: 1fr;
  }

  .calc-section__grid--reverse {
    direction: ltr;
  }

  .calc-section__grid--reverse > * {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  body {
    background: var(--sand-50);
  }

  body.calc-page {
    background: linear-gradient(160deg, var(--midnight-950) 0%, rgba(3, 8, 20, 0.96) 40%, #091b3a 100%);
    color: rgba(255, 255, 255, 0.86);
  }

  .header {
    background: rgba(5, 12, 26, 0.94);
  }

  .nav {
    position: absolute;
    inset: calc(100% + 12px) 0 auto 0;
    background: rgba(5, 12, 26, 0.96);
    border-radius: var(--radius-md);
    padding: 24px;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
    align-items: stretch;
    text-align: left;
    z-index: 20;
  }

  .nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
  }

  .nav a.btn {
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 88px 0 70px;
  }

  .hero__visual {
    width: min(340px, 92vw);
  }

  .hero__visual-frame {
    inset: -24px -18px -32px;
  }

  .features,
  .stats__grid,
  .steps,
  .testimonial-list,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .lead__card {
    padding: 24px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

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

  .form__actions .btn {
    flex: 1 1 100%;
  }

  .calc-intro {
    text-align: center;
    justify-items: center;
  }

  .calc-section__grid {
    gap: 36px;
  }

  .calc-card,
  .calc-results {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .calc-main {
    padding: 48px 0 72px;
    gap: 48px;
  }

  .calc-section {
    padding: 48px 0;
  }

  .calc-form__inline {
    grid-template-columns: 1fr;
  }

  .calc-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 72px 0;
  }

  .hero__copy h1 {
    font-size: 36px;
  }

  .hero__visual {
    width: min(300px, 94vw);
  }

  .hero__visual-frame {
    inset: -20px -14px -26px;
  }

  .lead__card h2 {
    font-size: 24px;
  }

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

  .section--cta .cta {
    width: 100%;
  }

  .calc-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .calc-header__inner .btn {
    width: 100%;
  }

  .calc-intro {
    gap: 12px;
  }

  .calc-fieldset {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .calc-fieldset legend {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .calc-card {
    padding: 28px;
  }

  .calc-summary {
    padding: 18px;
  }
}
