/* ==========================================================================
   Family Freedom Number - Financial Freedom Calculator (a MoneyCurious product)
   Single stylesheet. No frameworks, no webfonts, no build step.
   ========================================================================== */

:root {
  --ink: #0B1B2B;
  --ink-2: #38475C;
  --muted: #6C7889;
  --muted-2: #8B95A3;

  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-2: #F6F4EF;

  --line: #E8E5DD;
  --line-strong: #D9D5CA;

  --green: #0E7C5A;
  --green-deep: #0A6247;
  --green-soft: #E7F2ED;
  --green-mid: #7FBF9F;

  --orange: #D06A2C;
  --orange-ink: #A34C13;
  --orange-soft: #FCF1E8;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-panel: 0 1px 2px rgba(11, 27, 43, .04), 0 30px 60px -46px rgba(11, 27, 43, .45);
  --shadow-soft: 0 10px 24px -18px rgba(11, 27, 43, .45);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; }

/* Anchored sections must not slide under the sticky header. */
section[id],
#results { scroll-margin-top: 84px; }

p { margin: 0 0 14px; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }

img, svg { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand-mark { flex: none; display: block; }

.header-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .01em;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 54px 0 30px; }

.hero-inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  letter-spacing: -0.038em;
  font-weight: 700;
}

.lede {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.62;
  color: var(--ink-2);
}

.lede em { color: var(--ink); font-style: italic; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ==========================================================================
   Calculator layout
   ========================================================================== */

.calc-section { padding: 14px 0 8px; }

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-panel);
}

.panel-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

.panel-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Form ---------- */

.group {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0 0;
  padding: 20px 0 0;
  min-width: 0;
}

.group:first-of-type { border-top: 0; padding-top: 4px; }

.group legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}

.group legend .step {
  color: var(--green);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.group-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.field { margin-top: 18px; }

.field label,
.field .label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.optional {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-left: 4px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.money-input { position: relative; }

.money-input .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  -moz-appearance: textfield;
}

input[type="text"] { padding-left: 29px; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

input[type="text"]:hover,
input[type="number"]:hover { border-color: #C7C2B6; }

input[type="text"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 124, 90, .13);
}

input.is-flagged {
  border-color: #E0A277;
  background: #FFFBF7;
}

.help {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.help strong { color: var(--ink-2); font-weight: 600; }

/* ---------- Segmented control ---------- */

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.seg-btn {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.seg-btn:hover { color: var(--ink); }

.seg-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 1px 3px rgba(11, 27, 43, .13);
}

.kids-exact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.kids-exact[hidden] { display: none; }

.kids-exact label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.kids-exact input { width: 84px; height: 40px; text-align: center; }

/* ---------- Sliders ---------- */

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.slider-head .help { margin: 0; }

.value-chip {
  flex: none;
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 8px;
  padding: 3px 9px;
  min-width: 54px;
  text-align: center;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  margin: 2px 0 0;
  background: transparent;
  cursor: grab;
}

input[type="range"]:active { cursor: grabbing; }

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) var(--p, 50%), #EAE6DD var(--p, 50%), #EAE6DD 100%);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  box-shadow: 0 2px 6px rgba(11, 27, 43, .2);
  transition: transform .12s ease, box-shadow .12s ease;
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgba(14, 124, 90, .35);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #EAE6DD;
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  box-shadow: 0 2px 6px rgba(11, 27, 43, .2);
}

input[type="range"]:focus-visible { outline-offset: 6px; }

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.defaults-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.5;
}

.link-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.issues {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #F0D8C4;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-size: 12.5px;
  line-height: 1.5;
}

.issues[hidden] { display: none; }

/* ==========================================================================
   Results panel
   ========================================================================== */

.results-panel {
  position: sticky;
  top: 82px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag {
  flex: none;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}

.big-number {
  margin: 16px 0 0;
  font-size: clamp(2.5rem, 5.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.big-sub {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.progress-block { margin-top: 24px; }

.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
}

.progress-pct {
  font-weight: 700;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

.progress-pct.is-empty { color: var(--muted-2); font-weight: 600; }

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #ECE9E1;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-deep), #3FAE83);
  transition: width .5s var(--ease);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

.stat-value {
  margin-top: auto;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-accent { background: var(--orange-soft); }
.stat-accent .stat-value { color: var(--orange-ink); }

/* Reached or passed the target: the gap is no longer a shortfall. */
.stat-accent.is-funded { background: var(--green-soft); }
.stat-accent.is-funded .stat-value { color: var(--green-deep); }

.breakdown {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mini-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #ECE9E1;
}

.stack-seg {
  flex: 0 0 0;
  height: 100%;
  transition: flex-basis .5s var(--ease), flex-grow .5s var(--ease);
}

.seg-lifestyle { background: var(--green); }
.seg-children { background: var(--green-mid); }
.seg-onetime { background: #E08A4E; }

.legend {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.legend-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 9px; height: 9px;
  border-radius: 3px;
  flex: none;
}

.sw-lifestyle { background: var(--green); }
.sw-children { background: var(--green-mid); }
.sw-onetime { background: #E08A4E; }

.legend-val {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.legend-share {
  min-width: 36px;
  text-align: right;
  font-weight: 500;
  color: var(--muted-2);
  font-size: 12px;
}

.share {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}

.btn:hover { border-color: var(--ink-2); background: #FCFBF8; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }

.btn-sm { height: 36px; font-size: 12.5px; padding: 0 13px; }

.share-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted-2);
}

.panel-disclaimer {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 66px 0; }

.section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.section-lede {
  max-width: 640px;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.section p { font-size: 14.8px; line-height: 1.68; color: var(--ink-2); }

/* ---------- Scenarios ---------- */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.scenario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 16px 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.scenario-card.is-active {
  border-color: var(--green);
  background: #F3F8F5;
  box-shadow: 0 0 0 1px var(--green) inset;
}

.sc-rate {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.sc-target {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sc-delta {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sc-bar {
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: #ECE9E1;
  overflow: hidden;
}

.sc-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--green);
  transition: width .45s var(--ease);
}

.scenario-card.is-active .sc-bar span { background: var(--green-deep); }

.sc-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: #fff;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 2px 7px;
}

.scenario-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 680px;
}

/* ---------- Methodology ---------- */

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: start;
}

.method-grid h3 {
  font-size: 14.5px;
  margin: 26px 0 5px;
  letter-spacing: -0.01em;
}

.method-grid > div > p:first-of-type { margin-top: 0; }

.formula-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.formula-title {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.formula {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.formula:last-of-type { border-bottom: 0; }

.f-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.formula code {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-word;
}

.formula-legend {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.formula-legend strong { color: var(--ink-2); }

.formula-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

/* Secondary explanation under a methodology heading. */
.section .note {
  margin: 10px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 2px solid #DCD8CD;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted);
}

.section .note strong { color: var(--ink-2); font-weight: 600; }

/* ---------- FAQ ---------- */

.faq-wrap { max-width: 780px; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--green);
  transition: transform .2s ease;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item summary:hover { color: var(--green-deep); }

.faq-item p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 66ch;
}

/* ---------- Disclaimer ---------- */

.disclaimer-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 10px 34px;
  background: var(--orange-soft);
  border: 1px solid #F0DCCB;
  border-radius: 18px;
  padding: 26px 28px;
}

.disclaimer-card h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.disclaimer-card p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #6B4A31;
  max-width: 74ch;
}

.disclaimer-card p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
}

.footer-brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer-brand-parent {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-2);
}

.footer-nav { display: flex; gap: 18px; }

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--ink); }

.footer-legal { margin: 0; font-size: 12px; color: var(--muted-2); }

/* ==========================================================================
   Mobile sticky summary
   ========================================================================== */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
}

.mobile-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.mobile-bar-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.3;
}

#mb-target {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .calc-grid { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .method-grid { grid-template-columns: 1fr; gap: 28px; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-bar { display: block; }
  body { padding-bottom: 72px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 38px 0 22px; }
  .header-note { display: none; }
  .section { padding: 48px 0; }
  .panel { padding: 22px 20px 20px; border-radius: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field + .field { margin-top: 18px; }
  .stat { padding: 11px 12px; }
  .stat-value { font-size: 1rem; }
  .big-number { font-size: 2.6rem; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .share-buttons .btn { flex: 1 1 auto; }
  .disclaimer-card { padding: 22px 20px; grid-template-columns: 1fr; gap: 8px; }
  .disclaimer-card h2 { margin-bottom: 4px; }
}

@media (max-width: 480px) {
  .tag { display: none; }
  .results-head { display: block; }
}

@media (max-width: 380px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .big-number { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
