:root {
  --navy: #10243e;
  --navy-2: #173d5c;
  --ink: #13243d;
  --muted: #617187;
  --teal: #0e827a;
  --teal-dark: #086b64;
  --teal-light: #e7f7f4;
  --gold: #f0ca64;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --line: #d9e3ea;
  --danger: #b93838;
  --success: #157a55;
  --warning: #9a6b00;
  --shadow: 0 18px 50px rgba(16, 36, 62, .09);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; }
.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }

.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-size: 1.1rem; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 11px; }
.version-badge { font-size: .68rem; background: var(--teal-light); color: var(--teal-dark); padding: 3px 6px; border-radius: 999px; }
.top-nav { display: flex; gap: 24px; }
.top-nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; }
.top-nav a:hover { color: var(--teal); }

.hero { padding: 76px 0 58px; background: linear-gradient(145deg, #eaf8f6 0%, #f6fafc 55%, #fff7e8 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 56px; align-items: center; }
.eyebrow, .section-kicker { display: inline-block; text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 900; color: var(--teal); }
h1 { font-size: clamp(2.55rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -.05em; margin: 13px 0 22px; max-width: 870px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.03em; margin: 6px 0 0; }
h3 { margin: 0; font-size: 1.08rem; }
h4 { margin: 0; font-size: 1.05rem; }
.hero-copy { font-size: 1.18rem; color: var(--muted); max-width: 750px; margin: 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-points span { border: 1px solid #c9dedb; background: rgba(255,255,255,.78); border-radius: 999px; padding: 8px 12px; font-size: .87rem; font-weight: 750; }
.hero-cta { display: inline-block; margin-top: 26px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 850; padding: 13px 18px; border-radius: 11px; }
.hero-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 24px; padding: 28px; }
.hero-card-label { color: var(--teal); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 20px 0; }
.before-after div { background: var(--bg); border: 1px solid var(--line); padding: 14px; border-radius: 14px; }
.before-after span { display: block; color: var(--muted); font-size: .78rem; }
.before-after strong { display: block; margin-top: 5px; font-size: 1.05rem; }
.before-after .arrow { color: var(--teal); font-size: 1.4rem; font-weight: 900; }
.mini-list { margin: 0; padding-left: 20px; color: var(--muted); }
.mini-list li { margin: 8px 0; }

.ad-slot { min-height: 82px; margin-top: 28px; margin-bottom: 28px; border: 1px dashed #b8c8d3; border-radius: 14px; display: grid; place-items: center; text-align: center; padding: 16px; color: #7b8997; background: #fafcfd; font-size: .85rem; }
.planner-section { padding-bottom: 74px; }
.planner-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(360px, .62fr); gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(16,36,62,.05); }
.inputs-panel { padding: 30px; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.text-button { border: 0; background: none; color: var(--teal); font-weight: 850; cursor: pointer; padding: 8px 0; }

.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; background: #edf3f6; padding: 6px; border-radius: 13px; margin: 24px 0 8px; }
.mode-button { border: 0; background: transparent; border-radius: 9px; padding: 11px 12px; color: var(--muted); font-weight: 850; cursor: pointer; }
.mode-button.active { background: #fff; color: var(--teal-dark); box-shadow: 0 3px 12px rgba(16,36,62,.08); }
.mode-help { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }

.form-section { padding: 26px 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; }
.section-title-row, .subsection-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; }
.section-title-row > div:first-child { display: flex; gap: 12px; align-items: flex-start; }
.section-title-row p, .subsection-heading p { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }
.form-step { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--teal-light); color: var(--teal-dark); font-weight: 900; }
.form-grid { display: grid; gap: 14px; }
.two-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field-card { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 15px; font-weight: 780; font-size: .91rem; background: #fff; }
.field-card small { font-weight: 500; }
.number-wrap { margin-top: 9px; min-height: 43px; display: flex; align-items: center; background: #fff; border: 1px solid #cbd7e0; border-radius: 10px; overflow: hidden; }
.number-wrap:focus-within { border-color: var(--teal); outline: 3px solid rgba(14,130,122,.11); }
.number-wrap input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 850; padding: 9px 11px; }
.number-wrap span { color: var(--muted); padding: 0 10px; font-weight: 750; white-space: nowrap; }
.number-wrap.money > span:first-child { padding-right: 2px; }
small { display: block; color: var(--muted); font-size: .77rem; margin-top: 7px; line-height: 1.45; }
.insight-box { display: flex; align-items: baseline; gap: 9px; margin-top: 16px; padding: 14px 16px; border: 1px solid #c9e3df; background: var(--teal-light); border-radius: 12px; }
.insight-box strong { color: var(--teal-dark); font-size: 1.15rem; }
.insight-box span { color: var(--muted); font-size: .83rem; }

.secondary-button { border: 1px solid #b8d4d1; background: #fff; color: var(--teal-dark); border-radius: 9px; padding: 8px 11px; font-weight: 820; cursor: pointer; white-space: nowrap; }
.secondary-button:hover { background: var(--teal-light); }
.inflation-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-bottom: 14px; }
.mini-field { border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.mini-field span { display: flex; align-items: center; gap: 2px; margin-top: 4px; color: var(--ink); font-weight: 850; font-size: .9rem; }
.mini-field input { width: 58px; border: 0; border-bottom: 1px solid #bdcbd5; outline: 0; font-weight: 850; color: var(--ink); }
.table-help { display: grid; gap: 4px; padding: 12px 14px; background: #f7fafb; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 12px; color: var(--muted); font-size: .78rem; }
.data-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
.data-table th { text-align: left; color: var(--muted); background: #f7fafb; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 8px 7px; border-bottom: 1px solid #e9eff3; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.table-input, .table-select { width: 100%; min-height: 38px; border: 1px solid #ccd7df; border-radius: 8px; padding: 7px 8px; color: var(--ink); background: #fff; }
.table-input.name { min-width: 145px; }
.table-input.amount { min-width: 100px; }
.table-select { min-width: 120px; }
.table-setting { min-width: 90px; }
.remove-row { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #fff2f2; color: #a43c3c; cursor: pointer; font-weight: 900; }
.table-total { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 10px 2px 0; color: var(--muted); font-size: .83rem; }
.table-total strong { color: var(--ink); font-size: 1rem; }
.sub-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #fbfdfe; }
.sub-panel summary { cursor: pointer; font-weight: 850; }
.sub-panel p { margin: 7px 0 13px; color: var(--muted); font-size: .82rem; }
.compact-grid .field-card { padding: 11px; }
.subsection-heading { margin-top: 24px; margin-bottom: 10px; }
.local-actions { padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.save-status { color: var(--teal-dark); font-size: .8rem; }
.validation { min-height: 1.4em; color: var(--danger); font-weight: 750; font-size: .86rem; margin-top: 12px; }

.result-panel { padding: 28px; position: sticky; top: 88px; background: linear-gradient(180deg, #fff 0%, #fbfefd 100%); }
.years-chip { display: inline-flex; flex-wrap: wrap; background: var(--teal-light); color: var(--teal-dark); border-radius: 999px; padding: 7px 11px; margin: 16px 0 20px; font-size: .84rem; }
.primary-result { padding: 22px; border-radius: 16px; background: var(--navy); color: #fff; }
.primary-result span { display: block; opacity: .82; font-size: .85rem; }
.primary-result strong { display: block; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -.04em; margin: 11px 0 8px; }
.primary-result small { color: rgba(255,255,255,.7); margin: 0; }
.result-list { margin-top: 16px; }
.result-item { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.result-item span { color: var(--muted); font-size: .84rem; }
.result-item strong { text-align: right; white-space: nowrap; }
.result-item.emphasized strong { color: var(--navy); }
.result-item.sip { margin-top: 10px; padding: 15px; border: 1px solid #c7e3df; background: var(--teal-light); border-radius: 12px; }
.result-item.sip strong { color: var(--teal-dark); font-size: 1.07rem; }
.funding-card { margin-top: 20px; padding: 14px; background: #f8fafb; border: 1px solid var(--line); border-radius: 13px; }
.funding-card > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; }
.funding-card span { color: var(--muted); font-size: .82rem; }
.funding-card strong { font-size: 1.3rem; }
.progress-track { height: 10px; background: #e4ebef; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; width: 0; background: var(--teal); border-radius: inherit; transition: width .3s ease; }
.retirement-budget-card { margin-top: 12px; padding: 14px; border: 1px solid #e4d9b7; background: #fffaf0; border-radius: 13px; }
.retirement-budget-card span { display: block; color: var(--muted); font-size: .79rem; }
.retirement-budget-card strong { display: block; font-size: 1.2rem; margin: 4px 0; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }
.share-button { min-height: 43px; border: 1px solid var(--teal); background: #fff; color: var(--teal-dark); border-radius: 9px; font-weight: 850; cursor: pointer; }
.share-button:hover { background: var(--teal-light); }
.copy-status { color: var(--teal-dark); min-height: 1.2em; text-align: center; font-size: .76rem; margin-top: 4px; }
.disclaimer { color: #748292; font-size: .72rem; line-height: 1.45; margin: 13px 0 0; }

.dashboard-section { padding: 72px 0; border-top: 1px solid var(--line); background: #fff; }
.dashboard-heading, .scenario-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.dashboard-heading p, .scenario-heading p { color: var(--muted); margin: 0; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-card, .scenario-card { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 9px 28px rgba(16,36,62,.04); }
.chart-title { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.chart-title span { color: var(--muted); font-size: .76rem; text-align: right; }
.chart { min-height: 270px; margin-top: 14px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-empty { min-height: 250px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.scenario-card { margin-top: 20px; background: #f9fbfc; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.scenario-item { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: #fff; }
.scenario-item.current { border-color: #85c9c3; box-shadow: inset 0 0 0 1px #85c9c3; }
.scenario-item .scenario-age { color: var(--teal-dark); font-weight: 900; font-size: .82rem; }
.scenario-item strong { display: block; font-size: 1.25rem; margin: 4px 0 8px; }
.scenario-item dl { margin: 0; display: grid; gap: 5px; }
.scenario-item dl div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .77rem; }
.scenario-item dd { margin: 0; color: var(--ink); font-weight: 800; }

.content-section { padding: 76px 0; border-top: 1px solid var(--line); background: #f7fafb; }
.content-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 58px; }
.steps { display: grid; gap: 12px; }
.steps article { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.steps article > span { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 900; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.monetize-section { padding: 54px 0; background: var(--bg); }
.monetize-card { background: var(--navy); color: #fff; border-radius: 22px; padding: 32px; display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.monetize-card .section-kicker { color: #77d2ca; }
.monetize-card p { color: rgba(255,255,255,.72); max-width: 730px; margin-bottom: 0; }
.cta-button { text-decoration: none; background: var(--gold); color: #30270b; font-weight: 900; padding: 12px 17px; border-radius: 10px; white-space: nowrap; }
.faq-section { padding: 76px 0; background: #fff; }
.faq-wrap { max-width: 880px; }
.faq-wrap h2 { margin-bottom: 23px; }
.faq-wrap details { border-top: 1px solid var(--line); padding: 17px 0; }
.faq-wrap details:last-child { border-bottom: 1px solid var(--line); }
.faq-wrap summary { cursor: pointer; font-weight: 850; }
.faq-wrap p { color: var(--muted); }
footer { background: #0e1f33; color: #fff; padding: 27px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; font-size: .83rem; }
.footer-inner div { display: flex; flex-direction: column; }
.footer-inner div span, .footer-inner > span { color: rgba(255,255,255,.6); }

@media (max-width: 1020px) {
  .planner-grid { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 760px; }
}
@media (max-width: 820px) {
  .chart-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .inflation-grid { grid-template-columns: 1fr 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .dashboard-heading, .scenario-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1220px); }
  .top-nav { display: none; }
  .hero { padding: 48px 0 38px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .before-after { grid-template-columns: 1fr; }
  .before-after .arrow { transform: rotate(90deg); justify-self: center; }
  .inputs-panel, .result-panel { padding: 20px; }
  .two-col, .three-col, .inflation-grid { grid-template-columns: 1fr; }
  .section-title-row, .subsection-heading { align-items: flex-start; flex-direction: column; }
  .mode-switch { grid-template-columns: 1fr; }
  .result-item { align-items: flex-start; flex-direction: column; gap: 3px; }
  .result-item strong { text-align: left; }
  .result-actions { grid-template-columns: 1fr; }
  .table-total { justify-content: space-between; }
  .monetize-card, .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; color: #111; font-family: Arial, sans-serif; }
  .site-header, .hero, .ad-slot, .planner-section, .dashboard-section, .content-section, .monetize-section, .faq-section, footer { display: none !important; }
  #printReport { display: block !important; }
  .report-shell { max-width: none; }
  .report-header h1 { font-size: 25px; }
  .report-hero strong { font-size: 24px; }
  .report-chart { min-height: 190px; }
  .report-chart svg { max-height: 220px; }
  .report-block, .report-hero, .report-summary-grid, .report-two-col, .report-notes { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* V2.1 enhanced results */
.print-only { display: none; }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mini-metrics > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.mini-metrics span, .readiness-card span { display: block; color: var(--muted); font-size: .75rem; }
.mini-metrics strong { display: block; margin-top: 4px; font-size: .95rem; }
.readiness-card { margin-top: 12px; padding: 14px; border: 1px solid #c9e3df; border-radius: 13px; background: #f5fbfa; }
.readiness-card > div { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.readiness-card strong { color: var(--teal-dark); text-align: right; }
.primary-action { background: var(--teal); color: #fff; }
.primary-action:hover { background: var(--teal-dark); }

.glance-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.glance-card { border: 1px solid var(--line); border-radius: 15px; padding: 17px; background: #fff; box-shadow: 0 8px 24px rgba(16,36,62,.035); }
.glance-card span { display: block; color: var(--muted); font-size: .78rem; min-height: 2.3em; }
.glance-card strong { display: block; font-size: 1.35rem; margin: 6px 0 2px; letter-spacing: -.025em; }
.glance-card small { margin: 0; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.analysis-card { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 9px 28px rgba(16,36,62,.04); }
.analysis-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.analysis-heading > span { color: var(--muted); font-size: .72rem; text-align: right; max-width: 155px; }
.analysis-heading h3 { margin-top: 4px; }
.breakdown-list { display: grid; }
.breakdown-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #e9eff3; }
.breakdown-list > div:last-child { border-bottom: 0; }
.breakdown-list span { color: var(--muted); font-size: .84rem; }
.breakdown-list strong { white-space: nowrap; }
.breakdown-list .offset strong { color: var(--success); }
.breakdown-list .total { margin-top: 4px; padding: 13px 12px; border: 0; background: var(--teal-light); border-radius: 10px; }
.breakdown-list .total span, .breakdown-list .total strong { color: var(--teal-dark); font-weight: 900; }
.expense-change-list { display: grid; gap: 4px; }
.expense-change-row { display: grid; grid-template-columns: minmax(150px,.9fr) minmax(285px,1.35fr); gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid #e9eff3; }
.expense-change-row:last-child { border-bottom: 0; }
.expense-change-context { min-width: 0; }
.expense-change-context > strong { display: block; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expense-change-context > span { display: block; color: var(--muted); font-size: .71rem; margin-top: 4px; }
.expense-change-context em { margin-left: 5px; font-style: normal; font-weight: 850; white-space: nowrap; }
.expense-change-context em.down { color: var(--success); }
.expense-change-context em.up { color: #a25716; }
.expense-change-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.expense-change-values > div { border: 1px solid #e1e9ee; border-radius: 9px; padding: 8px 9px; background: #fbfdfe; min-width: 0; }
.expense-change-values span { display: block; color: var(--muted); font-size: .64rem; line-height: 1.25; min-height: 2.4em; }
.expense-change-values b { display: block; margin-top: 4px; color: var(--ink); font-size: .78rem; white-space: nowrap; }
.change-summary-only { min-height: 165px; display: grid; place-items: center; text-align: center; padding: 18px; color: var(--muted); gap: 8px; }
.change-summary-only > strong { display: block; color: var(--teal-dark); font-size: 1.9rem; margin-bottom: 0; }
.change-quick-values { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.change-quick-values > div { border: 1px solid #e1e9ee; border-radius: 9px; padding: 8px; background: #fbfdfe; }
.change-quick-values span { display: block; font-size: .65rem; line-height: 1.25; }
.change-quick-values b { display: block; color: var(--ink); margin-top: 4px; font-size: .82rem; }
.future-price-bridge { margin-top: 11px; padding-top: 11px; border-top: 1px solid #eadfca; display: grid; gap: 3px; }
.future-price-bridge > span { color: var(--muted); font-size: .73rem; }
.future-price-bridge > strong { color: var(--teal-dark); font-size: .95rem; }
.future-price-bridge > small { color: var(--muted); font-size: .66rem; line-height: 1.35; }
.future-glance { background: linear-gradient(180deg,#ffffff 0%,#f4fbfa 100%); border-color: #c9e2df; }
.current-scenario-note { display: block; margin-top: 11px; color: var(--teal-dark); font-size: .76rem; font-weight: 800; }
.scenario-use-button { width: 100%; margin-top: 11px; border: 1px solid #b8d4d1; background: #fff; color: var(--teal-dark); border-radius: 8px; padding: 7px 9px; font-weight: 820; cursor: pointer; }
.scenario-use-button:hover { background: var(--teal-light); }

/* Print-ready retirement report */
.report-section { background: #fff; color: #17263d; }
.report-shell { max-width: 980px; margin: 0 auto; }
.report-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; padding-bottom: 18px; border-bottom: 2px solid #153c5a; }
.report-brand { color: #0e827a; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.report-header h1 { font-size: 30px; margin: 4px 0 2px; letter-spacing: -.035em; }
.report-header p { margin: 0; color: #66768a; }
.report-meta { text-align: right; font-size: 12px; }
.report-meta strong, .report-meta span { display: block; }
.report-meta span { color: #788698; margin-top: 3px; }
.report-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin: 20px 0; }
.report-hero > div { padding: 18px; border-radius: 12px; background: #123f5f; color: #fff; }
.report-hero > .report-hero-side { background: #e9f7f5; color: #123049; }
.report-hero span { display: block; font-size: 11px; opacity: .8; }
.report-hero strong { display: block; font-size: 28px; margin: 6px 0 3px; }
.report-hero small { color: inherit; opacity: .72; margin: 0; }
.report-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.report-summary-grid > div { border: 1px solid #dce4ea; border-radius: 9px; padding: 11px; }
.report-summary-grid span { display: block; color: #68778a; font-size: 10px; }
.report-summary-grid strong { display: block; margin-top: 4px; font-size: 14px; }
.report-block { margin-top: 20px; break-inside: avoid; }
.report-block h2, .report-notes h2 { font-size: 16px; margin: 0 0 8px; letter-spacing: -.01em; }
.report-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.report-table th, .report-table td { border-bottom: 1px solid #e1e7ec; padding: 7px 6px; text-align: left; vertical-align: top; }
.report-table tbody th { color: #66768a; font-weight: 600; width: 58%; }
.report-table td { text-align: right; font-weight: 800; }
.report-table thead th { background: #f3f7f9; color: #536276; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.report-change-table td:first-child, .report-scenario-table td:first-child { text-align: left; font-weight: 700; }
.report-total-value { color: #086b64; }
.report-chart { width: 100%; min-height: 235px; border: 1px solid #e1e7ec; border-radius: 9px; padding: 5px; }
.report-chart svg { display: block; width: 100%; height: auto; }
.report-notes { margin-top: 22px; padding: 14px; border: 1px solid #dce4ea; border-radius: 9px; background: #f7fafb; break-inside: avoid; }
.report-notes p { margin: 5px 0; color: #66768a; font-size: 9.5px; line-height: 1.45; }

@media (max-width: 980px) {
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .glance-grid, .mini-metrics { grid-template-columns: 1fr; }
  .analysis-heading { flex-direction: column; gap: 5px; }
  .analysis-heading > span { text-align: left; max-width: none; }
  .readiness-card > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .readiness-card strong { text-align: left; }
}


/* RetireWise V2.2 — public-site readiness */
.site-header .mobile-nav { display: none; position: relative; }
.site-header .mobile-nav summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-weight: 800; color: var(--navy); }
.site-header .mobile-nav summary::-webkit-details-marker { display:none; }
.mobile-nav-links { position: absolute; right: 0; top: 44px; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); display: grid; z-index: 50; }
.mobile-nav-links a { text-decoration: none; padding: 9px 10px; border-radius: 7px; color: var(--muted); font-weight: 750; }
.mobile-nav-links a:hover { background: var(--teal-light); color: var(--teal-dark); }

.home-hero, .page-hero { background: linear-gradient(145deg, #eaf8f6 0%, #f6fafc 58%, #fff7e8 100%); border-bottom: 1px solid var(--line); }
.home-hero { padding: 82px 0 72px; }
.home-hero-grid { grid-template-columns: 1.08fr .92fr; }
.home-hero h1, .planner-hero h1 { font-size: clamp(2.8rem, 4.4vw, 4.15rem); max-width: 800px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions .hero-cta { margin-top: 0; }
.secondary-link-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #b9d3d0; background: #fff; color: var(--teal-dark); text-decoration: none; font-weight: 850; padding: 11px 16px; border-radius: 11px; }
.secondary-link-button:hover { background: var(--teal-light); }
.trust-points { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 23px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.trust-points span::before { content: '✓'; color: var(--teal); font-weight: 900; margin-right: 6px; }
.home-example-card { padding: 30px; }
.example-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 18px 0; }
.example-flow > div { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 15px; }
.example-flow span { display: block; color: var(--muted); font-size: .78rem; }
.example-flow strong { display: block; margin-top: 5px; font-size: 1.1rem; }
.example-flow .arrow { color: var(--teal); font-size: 1.5rem; font-weight: 900; }
.home-example-card p { color: var(--muted); }
.home-example-card small { display: block; color: #81909f; }

.feature-section, .split-section, .trust-section, .launch-cta-section { padding: 76px 0; }
.feature-section { background: #fff; }
.section-heading-centered { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.section-heading-centered p { color: var(--muted); font-size: 1.03rem; }
.feature-grid { display: grid; gap: 18px; }
.three-feature-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.feature-card { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(16,36,62,.045); }
.feature-number { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--teal-light); color: var(--teal-dark); font-weight: 900; margin-bottom: 15px; }
.feature-card p { color: var(--muted); margin-bottom: 0; }
.split-section { background: #f7fafb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: start; }
.split-grid > div:first-child p { color: var(--muted); font-size: 1.02rem; }
.text-link, .primary-inline-link { color: var(--teal-dark); font-weight: 850; text-decoration: none; }
.text-link:hover, .primary-inline-link:hover { text-decoration: underline; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.capability-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.capability-grid strong, .capability-grid span { display: block; }
.capability-grid span { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.trust-section { background: #fff; }
.trust-card { border-radius: 22px; background: var(--navy); color: #fff; padding: 34px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 35px; align-items: center; }
.trust-card .section-kicker { color: #80ddd5; }
.trust-card p { color: rgba(255,255,255,.72); }
.trust-links { display: grid; gap: 9px; }
.trust-links a { color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; padding: 10px 12px; text-decoration: none; font-weight: 750; }
.trust-links a:hover { background: rgba(255,255,255,.08); }
.launch-cta-section { background: var(--bg); }
.launch-cta { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.launch-cta p { color: var(--muted); margin-bottom: 0; }
.launch-cta .hero-cta { margin-top: 0; white-space: nowrap; }

.page-hero { padding: 72px 0 58px; }
.narrow-page { max-width: 930px; }
.page-hero h1 { font-size: clamp(2.55rem, 5vw, 4.4rem); margin-bottom: 17px; }
.page-lead { color: var(--muted); font-size: 1.18rem; max-width: 800px; margin: 0; }
.page-content { background: #fff; padding: 58px 0 80px; }
.rich-copy { font-size: 1rem; }
.rich-copy p, .rich-copy li { color: #4f6074; }
.rich-copy .content-block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.rich-copy .content-block:first-child { padding-top: 0; }
.rich-copy .content-block:last-of-type { border-bottom: 0; }
.rich-copy h2 { font-size: 1.7rem; margin-bottom: 12px; }
.rich-copy h3 { font-size: 1.05rem; }
.rich-copy ul { padding-left: 22px; }
.rich-copy li { margin: 7px 0; }
.compare-grid, .principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.compare-grid article, .principle-grid article { border: 1px solid var(--line); background: #f9fbfc; border-radius: 14px; padding: 18px; }
.compare-grid article p, .principle-grid article p { margin-bottom: 0; }
.pill { display: inline-block; font-size: .72rem; color: var(--teal-dark); background: var(--teal-light); border-radius: 999px; padding: 5px 8px; font-weight: 850; margin-bottom: 9px; }
.numbered-flow { display: grid; gap: 11px; margin-top: 16px; }
.numbered-flow article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.numbered-flow article > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--teal); font-weight: 900; }
.numbered-flow p { margin: 4px 0 0; }
.callout { background: #f3fbfa; border: 1px solid #cde6e2 !important; border-radius: 16px; padding: 22px !important; margin-top: 24px; }
.formula-box { margin: 15px 0; padding: 16px 18px; border-left: 4px solid var(--teal); background: #f5fafb; border-radius: 0 10px 10px 0; }
.formula-box span, .formula-box strong { display: block; }
.formula-box span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.formula-box strong { margin-top: 5px; font-size: 1.05rem; }
.methodology-note, .policy-meta { background: #f6fafb; border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; margin-bottom: 25px; color: var(--muted); }
.methodology-note strong, .methodology-note span { display: block; }
.methodology-note strong { color: var(--ink); }
.methodology-note span { margin-top: 3px; }
.policy-meta { font-size: .84rem; }
.faq-page-list details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-page-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-page-list summary { cursor: pointer; font-weight: 850; color: var(--ink); }
.faq-page-list p { margin-bottom: 0; }
.notice-box { border: 1px solid #ecd6a1; background: #fffaf0; border-radius: 13px; padding: 15px; margin-top: 18px; }
.notice-box p { margin-bottom: 0; }
.page-cta { margin-top: 42px; background: var(--navy); border-radius: 18px; padding: 28px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.page-cta .section-kicker { color: #7adbd3; }
.page-cta h2 { margin: 4px 0 6px; }
.page-cta p { margin: 0; color: rgba(255,255,255,.7); }
.page-cta .hero-cta { margin: 0; white-space: nowrap; }

.method-cta-section { padding: 50px 0; background: var(--bg); }
.method-cta-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.method-cta-card p { color: var(--muted); max-width: 760px; margin-bottom: 0; }
.method-cta-card .secondary-link-button { white-space: nowrap; }
.budget-narrative { margin: 9px 0 0; color: var(--ink); font-size: .78rem; font-weight: 750; line-height: 1.45; }
.result-actions { grid-template-columns: .78fr 1.22fr; }
.result-actions .share-button { padding: 9px 10px; line-height: 1.2; }
.primary-action { white-space: nowrap; }
.faq-more { margin-top: 20px; }

.site-footer { background: #0e1f33; color: #fff; padding: 44px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 32px; }
.footer-brand { color: #fff; }
.footer-brand-block p { color: rgba(255,255,255,.65); max-width: 430px; font-size: .87rem; }
.footer-small { color: rgba(255,255,255,.45); font-size: .75rem; }
.footer-grid > div:not(.footer-brand-block) { display: grid; align-content: start; gap: 8px; }
.footer-grid > div:not(.footer-brand-block) strong { margin-bottom: 4px; }
.footer-grid a { color: rgba(255,255,255,.68); text-decoration: none; font-size: .84rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.45); font-size: .75rem; }

@media (max-width: 900px) {
  .three-feature-grid { grid-template-columns: 1fr; }
  .split-grid, .trust-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
  .home-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .top-nav { display: none; }
  .site-header .mobile-nav { display: block; }
  .home-hero { padding: 52px 0 46px; }
  .home-hero h1, .planner-hero h1 { font-size: clamp(2.35rem, 11vw, 3.25rem); }
  .example-flow { grid-template-columns: 1fr; }
  .example-flow .arrow { justify-self: center; transform: rotate(90deg); }
  .capability-grid, .compare-grid, .principle-grid { grid-template-columns: 1fr; }
  .launch-cta, .page-cta, .method-cta-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-block { grid-column: auto; }
  .hero-actions { align-items: stretch; }
  .hero-actions a { width: 100%; }
}

/* V2.2.1 visual polish retained */
.planning-age-value { margin-left: .28em; }
.scenario-explainer { margin: -8px 0 16px; color: var(--muted); font-size: .82rem; line-height: 1.55; max-width: 920px; }
.scenario-corpus-label { display: block; color: var(--muted); font-size: .7rem; margin-top: 6px; }
.scenario-corpus-label + strong { margin-top: 2px; }
@media (min-width: 1100px) {
  .planner-hero { padding-top: 62px; padding-bottom: 48px; }
  .planner-hero .hero-points { margin-top: 22px; }
  .planner-hero .hero-cta { margin-top: 20px; }
}

/* V2.2.2 purchasing-power vs future-rupee comparison */
@media (max-width: 1100px) {
  .glance-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .expense-change-row { grid-template-columns: 1fr; gap: 8px; }
  .expense-change-values { grid-template-columns: 1fr 1fr; }
  .report-summary-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .expense-change-values, .change-quick-values { grid-template-columns: 1fr; }
  .report-summary-grid { grid-template-columns: 1fr; }
}
