:root {
  --green-900: #0f3d2a;
  --green-800: #166534;
  --green-700: #15803d;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --sand: #faf8f5;
  --stone: #78716c;
  --stone-light: #e7e5e4;
  --white: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --shadow: 0 4px 24px rgba(15, 61, 42, 0.08);
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--green-800); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo__mark {
  width: 40px;
  height: 40px;
  background: var(--green-800);
  color: var(--white);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo__text {
  font-weight: 600;
  font-size: 1.15rem;
}

.logo__text em {
  font-style: normal;
  color: var(--green-800);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover { color: var(--green-800); }

.nav__cta {
  background: var(--green-800) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
}

.nav__cta:hover {
  background: var(--green-900) !important;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--green-50) 0%, var(--sand) 50%, var(--white) 100%);
  padding: 80px 0 100px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--stone-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--green-900);
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--green-800);
  color: var(--white);
}

.btn--primary:hover { background: var(--green-900); color: var(--white); }

.btn--ghost {
  background: var(--white);
  color: var(--green-800);
  border: 2px solid var(--green-800);
}

.btn--ghost:hover { background: var(--green-50); color: var(--green-800); }

.btn--full { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-list li {
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-700);
  font-weight: 700;
}

.hero__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stone-light);
}

.stat-card--alt {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--muted {
  background: var(--sand);
}

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

.section--dark h2 { color: var(--white); }

.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--green-900);
}

.section__head p {
  color: var(--text-muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--green-900);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card ul li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green-700);
}

/* Aides */
.aides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.aide-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--stone-light);
}

.aide-card h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--green-900);
}

.aide-card ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.aide-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--stone-light);
}

.aide-card li:last-child { border-bottom: none; }

/* Simulator */
.simulator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--stone-light);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.simulator__info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--green-900);
  margin-bottom: 12px;
}

.simulator__info p {
  color: var(--text-muted);
}

.simulator__result {
  grid-column: 1 / -1;
  background: var(--green-50);
  border: 2px solid var(--green-100);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.simulator__result h3 {
  color: var(--green-900);
  margin-bottom: 8px;
}

.result__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--green-800);
  margin-bottom: 8px;
}

.result__detail {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

/* Forms */
.form-row {
  margin-bottom: 18px;
}

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  cursor: pointer;
}

.checkbox input { margin-top: 3px; flex-shrink: 0; }

.form-note {
  margin-top: 12px;
  font-size: 0.88rem;
  text-align: center;
}

.form-note.success { color: var(--green-700); }
.form-note.error { color: #b91c1c; }

/* Steps */
.steps h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
}

.steps__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.steps__list li {
  display: flex;
  gap: 16px;
}

.steps__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green-700);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.steps__list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.steps__list p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-grid h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-900);
  margin-bottom: 12px;
}

.contact-grid > div > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-info {
  background: var(--green-50);
  padding: 24px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-form {
  background: var(--sand);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--stone-light);
}

/* Footer */
.footer {
  background: var(--text);
  color: #a8a29e;
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer .logo { color: var(--white); margin-bottom: 16px; }

.footer__desc {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  font-size: 0.88rem;
}

.footer ul li { padding: 4px 0; }

.footer a { color: #a8a29e; }
.footer a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid #44403c;
  padding: 24px 0;
  font-size: 0.8rem;
  text-align: center;
}

.footer__disclaimer {
  margin-top: 8px;
  opacity: 0.7;
  max-width: 700px;
  margin-inline: auto;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 200;
  font-size: 0.9rem;
}

.cookie-banner a { color: var(--green-100); }
.cookie-banner.hidden { display: none; }

/* Legal pages */
.legal-page {
  padding: 120px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--green-900);
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--stone);
  font-size: 0.88rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.2rem;
  color: var(--green-900);
  margin: 32px 0 12px;
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-page ul { padding-left: 20px; margin-bottom: 16px; }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid,
  .cards,
  .aides-grid,
  .simulator,
  .steps__list,
  .contact-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--stone-light);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle { display: flex; }

  .form-row--half { grid-template-columns: 1fr; }

  .hero { padding: 48px 0 64px; }
  .section { padding: 56px 0; }
  .simulator { padding: 28px; }
}
