/* ═══════════════════════════════════════════════════════════════════════════
   pages.css — Design system partagé des pages simulateurs secondaires
   Extrait verbatim du <style> de index.html (la home reste auto-suffisante).
   Utilisé par : gastos-compraventa.html · cuota-hipoteca.html · tipo-interes.html
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --purple: #d97757;
  --purple-dark: #c4643f;
  --purple-light: #fdf0eb;
  --purple-soft: #fef8f5;
  --ink: #14132b;
  --warm-dark: #211d17;
  --warm-dark-2: #2e2820;
  --text: #2a2740;
  --muted: #6b6880;
  --muted-2: #9a98ad;
  --border: #e8e6f0;
  --border-strong: #d4d1e3;
  --bg: oklch(98% 0.01 80);
  --surface: #fff;
  --green: #16a36e;
  --orange: #e98a1a;
  --red: #e0463a;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20,19,43,.04);
  --shadow: 0 4px 24px rgba(20,19,43,.06);
}

html, body { background: var(--bg); overflow-x: hidden; max-width: 100vw; }
* { max-width: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─────────── HEADER ─────────── */
header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.logo-text span { color: var(--purple); }

.nav-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--purple); font-weight: 600; }
.nav-cta {
  background: var(--warm-dark);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--purple); }

/* ─────────── HERO ─────────── */
.hero {
  text-align: center;
  padding: 64px 24px 36px;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 163, 110, 0.15);
}
.hero h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1.8px;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: var(--purple); }
.hero p {
  font-size: 17px;
  color: var(--muted);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
}

/* ─────────── MAIN ─────────── */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ─────────── CARDS / GRID ─────────── */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  margin-bottom: 40px;
  align-items: start;
}
.calc-grid.wide-results { grid-template-columns: 1fr 420px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card { padding: 36px 40px; }

.form-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.field-label .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field-label .hint {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
}

/* Segmented control */
.segmented {
  display: inline-flex;
  background: var(--purple-soft);
  border-radius: 99px;
  padding: 4px;
  gap: 2px;
  flex-shrink: 0;
}
.segmented button {
  border: none;
  background: transparent;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  border-radius: 99px;
  transition: all .15s;
  white-space: nowrap;
}
.segmented button:hover { color: var(--ink); }
.segmented button.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 2px 6px rgba(217,119,87,.3);
}

/* Input with unit */
.input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  background: var(--surface);
}
.input-wrap:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(217,119,87,.1);
}
.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-wrap input[type=number] { -moz-appearance: textfield; }
.input-wrap .unit {
  padding: 0 16px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Select (misma caja que .input-wrap) */
.select-wrap {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.select-wrap:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(217,119,87,.1);
}
.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 44px 13px 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  border-radius: 12px;
}
.select-wrap::after {
  content: '▼';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}

.field-help {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Pills */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 99px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.pill:hover { border-color: var(--purple); color: var(--purple); }
.pill.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 2px 6px rgba(217,119,87,.25);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}
.toggle-row .toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-strong);
  border-radius: 99px;
  cursor: pointer;
  transition: background .2s;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.switch.on { background: var(--purple); }
.switch.on::after { transform: translateX(20px); }

/* Collapsible ⚙ */
.collapse-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  width: 100%;
  text-align: left;
}
.collapse-toggle:hover { color: var(--ink); }
.collapse-toggle .chevron {
  margin-left: auto;
  font-size: 10px;
  transition: transform .2s;
}
.collapse-block { margin-top: 16px; }

/* ─────────── RESULTS ─────────── */
.results-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 88px;
  height: fit-content;
  background: var(--surface);
}

.result-block {
  background: var(--warm-dark);
  background-image: radial-gradient(circle at top right, #3d3528, var(--warm-dark));
  color: white;
  padding: 24px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.result-block::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(217, 119, 87, .35), transparent 70%);
  border-radius: 50%;
}
.result-block .lbl {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.65;
  margin-bottom: 4px;
  position: relative;
}
.result-block .val {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
}
.result-block .sub {
  font-size: 12.5px;
  opacity: 0.7;
  position: relative;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--surface);
}
.stat .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.stat .val {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1;
}
.stat .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.stat.accent { background: var(--purple-soft); border-color: #f2d9cd; }
.stat.accent .val { color: var(--purple); }

.stats-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats-3 { display: grid; grid-template-columns: 1fr; gap: 10px; }

/* Desglose (lignes concepto / importe / %) */
.breakdown {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.breakdown-head {
  display: grid;
  grid-template-columns: 1fr auto 62px;
  gap: 10px;
  background: var(--purple-soft);
  padding: 10px 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}
.breakdown-head span:nth-child(2),
.breakdown-head span:nth-child(3) { text-align: right; }
.breakdown-row {
  display: grid;
  grid-template-columns: 1fr auto 62px;
  gap: 10px;
  align-items: baseline;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.breakdown-row .concepto { color: var(--text); font-weight: 500; }
.breakdown-row .concepto small {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 400;
  margin-top: 2px;
}
.breakdown-row .importe {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.breakdown-row .pct {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.breakdown-row.total {
  background: var(--purple-soft);
  border-top: 1.5px solid #f2d9cd;
}
.breakdown-row.total .concepto { font-weight: 700; color: var(--ink); }
.breakdown-row.total .importe { color: var(--purple); font-size: 15px; font-weight: 700; }
.breakdown-row.total .pct { color: var(--purple); font-weight: 600; }
.breakdown-row.grand {
  background: var(--warm-dark);
  border-top: none;
}
.breakdown-row.grand .concepto,
.breakdown-row.grand .importe,
.breakdown-row.grand .pct { color: #fff; }
.breakdown-row.grand .concepto { font-weight: 700; }
.breakdown-row.grand .concepto small { color: rgba(255,255,255,.55); }
.breakdown-row.grand .importe { font-size: 15px; font-weight: 700; }

/* Split bar capital / intereses */
.splitbar {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
}
.splitbar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.splitbar-head .lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.splitbar-head .val { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.5px; }
.splitbar-track {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--purple-soft);
}
.splitbar-cap {
  background: var(--warm-dark);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.splitbar-int {
  background: var(--purple);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.splitbar-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.splitbar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.splitbar-legend i {
  width: 9px; height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.splitbar-legend i.cap { background: var(--warm-dark); }
.splitbar-legend i.int { background: var(--purple); }

/* Verdict / callout */
.verdict {
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--purple-soft);
}
.verdict .verdict-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verdict p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.verdict p strong { color: var(--ink); font-weight: 700; }
.verdict.good { background: #f0faf5; border-color: #c9ecdc; }
.verdict.good .verdict-title { color: #0f7a52; }
.verdict.warn { background: #fdf6ec; border-color: #f5e2c4; }
.verdict.warn .verdict-title { color: #a6620d; }
.verdict.danger { background: #fdf1f0; border-color: #f5d3cf; }
.verdict.danger .verdict-title { color: #b5352a; }
.verdict.neutral { background: #f7f6fa; border-color: var(--border); }

.callout {
  background: var(--purple-soft);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
}
.callout strong { color: var(--purple); font-weight: 700; }

/* ─────────── CONTENT SECTIONS ─────────── */
.content-section { margin-bottom: 96px; }
.content-section:last-child { margin-bottom: 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.section-head h2 em { font-style: normal; color: var(--purple); }
.section-head p { font-size: 15.5px; color: var(--muted); }

.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.how-grid.three { grid-template-columns: repeat(3, 1fr); }
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.how-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.how-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.how-num {
  width: 28px; height: 28px;
  background: var(--purple-light);
  color: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.how-card-head h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.how-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.how-card p:last-child { margin-bottom: 0; }
.how-card p strong { color: var(--text); font-weight: 600; }
.formula-chip {
  background: var(--purple-soft);
  border-left: 3px solid var(--purple);
  color: var(--purple);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'SFMono-Regular', Menlo, monospace;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-block;
}
.info-chip {
  background: #f4f3f9;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-style: italic;
  display: inline-block;
}
.how-card ul { list-style: none; margin-top: 2px; }
.how-card ul li {
  font-size: 13.5px;
  color: var(--muted);
  padding: 3px 0 3px 18px;
  position: relative;
}
.how-card ul li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--purple);
}

/* FAQ / cartes texte */
.faq-stack { display: flex; flex-direction: column; gap: 18px; }
.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.faq-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.faq-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.faq-card p:last-child { margin-bottom: 0; }
.faq-card p strong { color: var(--ink); font-weight: 600; }
.faq-card em { font-style: italic; color: var(--muted-2); }
.faq-q {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}
.faq-q .chevron {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
}

/* Tableaux */
.examples-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14px;
}
.examples-table thead { background: var(--purple-soft); }
.examples-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.examples-table th:first-child { border-radius: 8px 0 0 8px; }
.examples-table th:last-child { border-radius: 0 8px 8px 0; }
.examples-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.examples-table tr:last-child td { border-bottom: none; }
.examples-table td:last-child { font-weight: 700; color: var(--ink); }
/* Variante : la colonne clé est la 2e (ex. tableau « quién paga »), pas la dernière */
.examples-table.emphasis-2 td:last-child { font-weight: 400; color: var(--muted); }
.examples-table.emphasis-2 td:nth-child(2) { font-weight: 700; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* Tableau comparatif (actual / nueva / diferencia) */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.cmp-table thead { background: var(--purple-soft); }
.cmp-table th {
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
.cmp-table th:first-child { text-align: left; border-radius: 8px 0 0 8px; }
.cmp-table th:last-child { border-radius: 0 8px 8px 0; }
.cmp-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
}
.cmp-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  white-space: normal;
}
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .diff { color: var(--green); font-weight: 700; }
.cmp-table .diff.up { color: var(--red); }
.cmp-table .diff.flat { color: var(--muted); }

/* Cartes "Más simuladores" */
.sim-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.sim-card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.sim-card .sim-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 2px;
}
.sim-card h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.sim-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.sim-card .sim-go {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}

/* ─────────── FOOTER ─────────── */
footer {
  background: var(--warm-dark);
  background-image: linear-gradient(180deg, var(--warm-dark-2), var(--warm-dark));
  color: #c5bdaf;
  padding: 56px 24px 32px;
  text-align: center;
  border-top: 1px solid rgba(217, 119, 87, 0.15);
}
.footer-content { max-width: 1120px; margin: 0 auto; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-logo .logo-icon { width: 28px; height: 28px; }
.footer-logo .logo-text { font-size: 15px; font-weight: 700; }
.footer-logo .logo-text span { color: #e8b89e; }
.footer-tagline { font-size: 13px; margin-bottom: 24px; opacity: 0.7; }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-nav a {
  font-size: 13px;
  color: #c5bdaf;
  text-decoration: none;
  opacity: .85;
  transition: color .15s, opacity .15s;
}
.footer-nav a:hover { color: #fff; opacity: 1; }
.footer-bottom {
  font-size: 12px;
  opacity: 0.55;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 1040px) {
  .how-grid.three { grid-template-columns: 1fr; }
  .sim-cards { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .calc-grid, .calc-grid.wide-results { grid-template-columns: 1fr; }
  .results-card { position: static; }
  .how-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .form-card { padding: 28px 24px; }
  header { padding: 0 18px; gap: 10px; }
  .nav-cta { display: none; }
  .nav-right {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 0;
  }
  .nav-right::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 12.5px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 26px; letter-spacing: -1px; }
  .hero { padding: 40px 16px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .card { border-radius: 14px; }
  main { padding: 0 12px 60px; }
  .results-card { padding: 18px 16px; }
  .section-head h2 { font-size: 24px; letter-spacing: -0.7px; }
  .content-section { margin-bottom: 64px; }
  .examples-table th, .examples-table td { padding: 10px 8px; font-size: 12px; }
  .cmp-table th, .cmp-table td { padding: 11px 10px; font-size: 13px; }
  .segmented { flex-wrap: wrap; width: 100%; }
  .segmented button { padding: 6px 12px; font-size: 12px; }
  .faq-card { padding: 20px 16px; }
  .faq-card h3 { font-size: 16px; }
  .how-card { padding: 22px 18px; }
  .breakdown-head, .breakdown-row { padding-left: 12px; padding-right: 12px; }
  .breakdown-row { font-size: 13px; }
  .field-label { flex-wrap: wrap; }
  .logo-text { font-size: 15px; }
  .logo-icon { width: 30px; height: 30px; }
}
