:root {
  --ink: #152b2a;
  --muted: #607271;
  --paper: #f5f8f5;
  --white: #ffffff;
  --line: #dce6e1;
  --green: #0d6b57;
  --green-dark: #075243;
  --mint: #dff4e9;
  --lime: #d8f06f;
  --warning: #ef725f;
  --warning-soft: #fff0ed;
  --shadow: 0 24px 70px rgba(21, 43, 42, 0.11);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header,
.section,
.trust-strip,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--white);
  background: var(--green);
}

.header-link,
.text-button {
  border: 0;
  color: var(--green);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.section {
  padding-block: 92px;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  top: 30px;
  right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 240, 111, 0.55), rgba(216, 240, 111, 0));
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.15rem;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.button {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 30px rgba(13, 107, 87, 0.22);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-wide {
  width: 100%;
}

.hero-card,
.calculator-card,
.info-card,
.result-card,
.result-breakdown,
.contact-card {
  border: 1px solid rgba(220, 230, 225, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 34px;
  transform: rotate(1.5deg);
}

.card-label {
  margin: 0 0 30px;
  color: var(--muted);
  font-weight: 700;
}

.income-row,
.example-result {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.income-row {
  color: var(--muted);
}

.income-row strong {
  color: var(--ink);
}

.gap-visual {
  height: 20px;
  margin: 12px 0 22px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.covered {
  width: 38%;
  background: var(--green);
}

.missing {
  width: 62%;
  background: var(--warning);
}

.example-result {
  margin-top: 32px;
  padding: 22px;
  align-items: center;
  border-radius: 18px;
  background: var(--warning-soft);
}

.example-result strong {
  color: #b63f30;
}

.microcopy,
.privacy-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.trust-strip {
  padding: 20px 28px;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--green);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading > p:last-child,
.info-card p,
.result-card p,
.breakdown-copy p,
.contact-card p,
.explanation-grid p,
.legal-section p {
  color: var(--muted);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.calculator-card {
  padding: 36px;
}

.form-progress {
  margin-bottom: 28px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.status-fieldset {
  margin: 0 0 30px;
  padding: 0 0 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.status-fieldset legend {
  margin-bottom: 16px;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.status-purpose {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.status-option {
  min-height: 94px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  transition: border 180ms ease, background 180ms ease, transform 180ms ease;
}

.status-option:hover {
  transform: translateY(-2px);
}

.status-option:has(input:checked) {
  border-color: var(--green);
  background: var(--mint);
  box-shadow: 0 0 0 2px rgba(13, 107, 87, 0.08);
}

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

.status-option span {
  display: grid;
  gap: 6px;
}

.status-option strong {
  line-height: 1.2;
}

.status-option small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.status-hint {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 0.8rem;
  font-weight: 700;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.field small {
  min-height: 38px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.field-warning {
  color: var(--warning);
  font-size: 0.78rem;
}

.input-shell {
  min-height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border 180ms ease, box-shadow 180ms ease;
}

.input-shell:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(13, 107, 87, 0.1);
}

.input-shell input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.05rem;
  font-weight: 700;
}

.input-shell > span {
  color: var(--muted);
}

.age-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-field {
  padding: 18px;
  display: flex;
  grid-column: 1 / -1;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.check-field input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
}

.check-field span {
  display: grid;
  gap: 3px;
}

.check-field small {
  color: var(--muted);
  font-weight: 400;
}

.form-error {
  min-height: 24px;
  margin: 18px 0 6px;
  color: #b63f30;
  font-size: 0.85rem;
  font-weight: 700;
}

.info-card {
  padding: 28px;
  box-shadow: none;
  position: sticky;
  top: 24px;
}

.info-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--mint);
  font-weight: 800;
}

.info-card ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.info-card li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
}

.results-section[hidden] {
  display: none;
}

.results-heading {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.result-hero {
  padding: 46px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--green);
  text-align: center;
}

.result-hero span {
  font-weight: 700;
}

.result-hero strong {
  margin: 8px 0;
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: -0.07em;
  line-height: 1;
}

.result-hero p {
  max-width: 650px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.78);
}

.result-hero .result-question {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.result-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.estimate-status {
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid #eadc96;
  border-radius: 14px;
  color: #715b00;
  background: #fff9dc;
  font-size: 0.86rem;
  font-weight: 700;
}

.support-note {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #efb6ad;
  border-radius: 14px;
  color: #77382f;
  background: var(--warning-soft);
}

.support-note[hidden] {
  display: none;
}

.support-note p {
  margin: 8px 0 0;
  color: #855047;
  font-size: 0.84rem;
}

.estimate-status.is-positive {
  border-color: #b9dfce;
  color: var(--green-dark);
  background: var(--mint);
}

.pension-card {
  background: var(--mint);
}

.result-card {
  min-height: 190px;
  padding: 24px;
  box-shadow: none;
}

.result-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.result-card strong {
  margin: 14px 0;
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.45rem;
}

.result-card p {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.accent-card {
  background: var(--warning-soft);
}

.result-breakdown {
  margin-top: 24px;
  padding: 34px;
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: none;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.bar-row strong {
  text-align: right;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.bar {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  transition: width 700ms ease;
}

.income-bar {
  background: var(--ink);
}

.cover-bar {
  background: var(--green);
}

.warning-bar {
  background: var(--warning);
}

.contact-card {
  margin-top: 24px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
  background: var(--mint);
  box-shadow: none;
}

.contact-card h2 {
  max-width: 700px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.contact-card small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.whatsapp-button {
  color: var(--white);
  background: #168b60;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.email-button {
  border: 1px solid var(--green);
  color: var(--green);
  background: var(--white);
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.explanation-grid article {
  padding: 30px 0;
  border-top: 2px solid var(--ink);
}

.explanation-grid span {
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.explanation-grid h3 {
  margin-top: 32px;
}

.legal-section {
  padding: 42px;
  border-radius: var(--radius);
  background: #edf2ef;
}

.legal-section h2 {
  font-size: 1.6rem;
}

.legal-section p {
  font-size: 0.86rem;
}

footer {
  padding-block: 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer nav a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.legal-page {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 80px 100px;
}

.legal-page > h1 {
  margin-bottom: 54px;
  font-size: clamp(2.8rem, 8vw, 5rem);
}

.legal-page section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-page section h2 {
  font-size: 1.35rem;
}

.legal-page section p {
  color: var(--muted);
}

.legal-page section a {
  color: var(--green);
  font-weight: 700;
}

.legal-alert {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid #eadc96;
  border-radius: 14px;
  color: #715b00;
  background: #fff9dc;
}

@media (max-width: 920px) {
  .hero,
  .calculator-layout,
  .result-breakdown {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
  }

  .hero-card {
    max-width: 560px;
    transform: none;
  }

  .info-card {
    position: static;
  }

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

  .status-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card small {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .trust-strip,
  footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 68px;
  }

  .brand > span:last-child {
    font-size: 0.86rem;
  }

  .section {
    padding-block: 64px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .hero-card,
  .calculator-card,
  .result-hero,
  .result-breakdown,
  .contact-card,
  .legal-section {
    padding: 24px;
    border-radius: 20px;
  }

  .trust-strip {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .input-grid,
  .result-grid,
  .explanation-grid {
    grid-template-columns: 1fr;
  }

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

  .field small {
    min-height: auto;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-hero strong {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .bar-row {
    grid-template-columns: 90px 1fr;
  }

  .bar-row strong {
    grid-column: 2;
    text-align: left;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
