:root {
  color-scheme: light;
  --navy: #0d2742;
  --navy-2: #173d63;
  --blue: #275d8c;
  --gold: #e7b85c;
  --gold-soft: #fff6df;
  --ink: #14202b;
  --muted: #5e6c78;
  --line: #d7e0e8;
  --surface: #ffffff;
  --background: #f8fafb;
  --wash: #f3f7fa;
  --green: #176b4d;
  --shadow: 0 18px 50px rgba(13, 39, 66, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #eef4f8 0, #f8fafb 320px, #f8fafb 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, select, input { min-height: 44px; }

.site-header {
  align-items: center;
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px max(22px, calc((100vw - 1420px) / 2));
}
.brand { align-items: center; color: white; display: flex; gap: 10px; text-decoration: none; }
.brand-mark {
  align-items: center; background: linear-gradient(135deg, #a78bfa 0%, #5e3dc0 42%, #3606d7 100%); border-radius: 50%; color: white;
  display: inline-flex; flex: 0 0 38px; font-size: .72rem; font-weight: 900; letter-spacing: -.02em;
  height: 38px; justify-content: center; width: 38px;
}
.brand strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand-name { align-items: baseline; display: flex; }
.brand-initial { color: #a78bfa; font-size: 1.12em; }
.brand small { color: #b9c9d8; font-size: .8rem; }
.privacy-chip { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: white; font-size: .82rem; padding: 7px 12px; text-decoration: none; }
.privacy-chip:hover { background: rgba(255,255,255,.16); }
.privacy-chip span { color: #75d6ab; margin-right: 6px; }

main { margin: 0 auto; max-width: 1480px; padding: 0 28px 48px; }
.intro {
  align-items: flex-end; display: flex; gap: 30px; justify-content: space-between;
  padding: 48px 4px 30px;
}
.eyebrow, .step, .results-kicker { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .15em; margin: 0 0 7px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -.035em; line-height: 1.04; margin: 0 0 12px; }
.lede { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 760px; }
.intro-actions { display: flex; flex-shrink: 0; gap: 10px; }
.privacy-banner {
  align-items: center; background: linear-gradient(135deg, #eaf8f2, #f7fcfa); border: 1px solid #91cdb1;
  border-radius: 14px; color: #204838; display: grid; gap: 12px; grid-template-columns: auto minmax(0,1fr) auto;
  margin: 0 0 22px; padding: 15px 18px; text-decoration: none;
}
.privacy-banner:hover { border-color: #4da77f; box-shadow: 0 10px 24px rgba(23,107,77,.09); }
.privacy-banner-icon { align-items: center; background: var(--green); border-radius: 50%; color: white; display: inline-flex; font-size: .85rem; font-weight: 900; height: 30px; justify-content: center; width: 30px; }
.privacy-banner strong { color: #0f553b; }
.privacy-banner-action { color: var(--green); font-size: .83rem; font-weight: 800; white-space: nowrap; }
.sample-data-notice { background: var(--gold-soft); border: 1px solid #dfbd73; border-radius: 12px; color: #6f5120; margin: -6px 0 22px; padding: 12px 16px; }
.sample-data-notice strong { color: var(--navy); }
.button { border: 0; border-radius: 10px; cursor: pointer; font-weight: 750; padding: 11px 17px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(39,93,140,.28); outline-offset: 2px; }
.button.primary { background: var(--navy); box-shadow: 0 8px 18px rgba(13,39,66,.18); color: white; }
.button.primary:hover { background: var(--navy-2); }
.button.secondary { background: white; border: 1px solid var(--line); color: var(--navy); }
.close-button { border-color: #c9a3a0; color: #7a3028; }
.close-button:hover { background: #fff5f4; border-color: #a04435; }
.button.full { margin-top: 18px; width: 100%; }

.consent-card {
  align-items: center; background: linear-gradient(135deg, #fff8e8, #fffdf8); border: 1px solid #dfbd73;
  border-left: 6px solid var(--gold); border-radius: 16px; box-shadow: 0 14px 36px rgba(104,73,20,.09);
  display: grid; gap: 18px; grid-template-columns: 48px minmax(0,1fr) auto; margin: 0 0 22px; padding: 20px 22px;
}
.consent-icon {
  align-items: center; background: var(--navy); border-radius: 50%; color: var(--gold); display: flex;
  font-family: Georgia, serif; font-size: 1.35rem; font-weight: 900; height: 44px; justify-content: center; width: 44px;
}
.consent-copy .eyebrow { color: #8a5d08; margin-bottom: 3px; }
.consent-copy h2 { color: var(--navy); font-family: Georgia, serif; font-size: 1.28rem; margin: 0; }
.consent-copy > p:not(.eyebrow) { color: #5f512f; font-size: .88rem; margin: 6px 0 12px; max-width: 900px; }
.consent-check { align-items: flex-start; color: var(--navy); display: flex; font-size: .88rem; gap: 9px; }
.consent-check input { accent-color: var(--navy); flex: 0 0 auto; min-height: 20px; width: 20px; }
.consent-button { background: var(--navy); color: white; min-width: 165px; }
.consent-button:disabled { background: #a8b0b7; box-shadow: none; cursor: not-allowed; transform: none; }
.consent-card.acknowledged { background: #eef9f4; border-color: #8bc6aa; border-left-color: var(--green); grid-template-columns: 38px 1fr; padding: 13px 18px; }
.consent-card.acknowledged .consent-icon { background: var(--green); color: white; font-size: 0; height: 32px; width: 32px; }
.consent-card.acknowledged .consent-icon::after { content: "✓"; font-family: inherit; font-size: 1rem; }
.consent-card.acknowledged .eyebrow, .consent-card.acknowledged .consent-copy > p, .consent-card.acknowledged .consent-check, .consent-card.acknowledged .consent-button { display: none; }
.consent-card.acknowledged h2 { color: var(--green); font-family: inherit; font-size: .9rem; }
.workspace.locked { filter: grayscale(.25); opacity: .48; pointer-events: none; user-select: none; }
.workspace { transition: opacity .25s ease, filter .25s ease; }

.workspace { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 340px; }
.live-need-bar {
  align-items: stretch; backdrop-filter: blur(14px); background: rgba(13,39,66,.96); border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; box-shadow: 0 14px 34px rgba(13,39,66,.22); color: white; display: grid; gap: 10px;
  grid-column: 1 / -1; grid-template-columns: minmax(220px,1fr) minmax(220px,.72fr) minmax(220px,.72fr);
  padding: 10px; position: sticky; top: 0; z-index: 30;
}
.live-need-intro { align-content: center; display: grid; padding: 4px 8px; }
.live-need-intro strong { color: white; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.2; }
.live-need-intro small { color: #cbd7e2; font-size: .76rem; margin-top: 2px; }
.live-need-person { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.11); border-radius: 10px; display: grid; min-width: 0; padding: 7px 11px; }
.live-need-person span { color: #dce6ee; font-size: .75rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-need-person strong { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; line-height: 1.15; overflow-wrap: anywhere; }
.live-need-person small { color: #cbd7e2; font-size: .68rem; }
.step-nav {
  background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 13px; display: grid;
  gap: 4px; grid-template-columns: repeat(6, 1fr); margin-bottom: 16px; padding: 7px;
  position: sticky; top: 88px; z-index: 5; backdrop-filter: blur(12px);
}
.step-nav a { align-items: center; border-radius: 9px; color: var(--muted); display: flex; font-size: .86rem; font-weight: 700; gap: 8px; justify-content: center; padding: 9px; text-decoration: none; }
.step-nav a:hover { background: var(--wash); color: var(--navy); }
.step-nav span { align-items: center; background: var(--navy); border-radius: 50%; color: white; display: inline-flex; font-size: .72rem; height: 23px; justify-content: center; width: 23px; }

.form-card, .results-card, .methodology {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.form-card { margin-bottom: 18px; padding: 28px; scroll-margin-top: 76px; }
.section-heading { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; margin-bottom: 24px; padding-bottom: 18px; }
.section-heading h2, .results-card h2 { color: var(--navy); font-family: Georgia, serif; font-size: 1.65rem; margin: 0; }
.section-heading > p { color: var(--muted); font-size: .9rem; margin: 3px 0 0; max-width: 410px; }

fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
legend { color: var(--navy); font-weight: 800; margin-bottom: 13px; }
label { color: #324352; display: grid; font-size: .86rem; font-weight: 720; gap: 7px; }
input, select {
  background: #fff; border: 1px solid #bdcad5; border-radius: 9px; color: var(--ink); padding: 9px 11px; width: 100%;
}
input:hover, select:hover { border-color: #8ca3b5; }
input::placeholder { color: #9aa8b4; }
.two-col { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.person-panel { background: var(--wash); border: 1px solid var(--line); border-radius: 13px; padding: 18px; }
.field-pair { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.field-triple { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 14px; }
.calculated-field { background: #eef4f8; color: var(--navy); font-weight: 800; }
.assumption-grid { align-items: start; display: grid; gap: 15px; grid-template-columns: 160px 1fr 1.7fr; margin-top: 18px; }
.rate-field { background: var(--gold-soft); border: 1px solid #ead39c; border-radius: 12px; padding: 13px; }
.rate-field legend { font-size: .86rem; margin: 0; padding: 0 4px; }
.rate-field small { color: #6f5c30; display: block; font-size: .76rem; margin-top: 8px; }
.segmented { display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); }
.segmented label { display: block; }
.segmented input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.segmented span { background: white; border: 1px solid #d8c28e; border-radius: 8px; color: var(--navy); cursor: pointer; display: block; font-size: .95rem; padding: 8px; text-align: center; }
.segmented input:checked + span { background: var(--navy); border-color: var(--navy); color: white; }
.retirement-age-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.retirement-age-options span { font-size: .82rem; padding: 7px 3px; }
.income-replacement-total { background: var(--wash); border-radius: 8px; color: var(--blue); display: block; font-size: .76rem; font-weight: 800; line-height: 1.35; padding: 7px 8px; }
.income-replacement-total.warning { background: #fff1e8; border: 1px solid #efb7a9; color: #8a3426; }

.comparison-grid { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: minmax(220px, 1.4fr) 1fr 1fr; padding: 10px 0; }
.comparison-grid.headings { background: var(--navy); border: 0; border-radius: 9px; color: white; font-size: .8rem; font-weight: 800; padding: 9px 12px; }
.row-label { color: #314250; font-size: .88rem; font-weight: 700; }
.row-label small { color: var(--muted); display: block; font-size: .75rem; font-weight: 500; }
.row-label small a, .method-grid a { color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.input-prefix { display: block; position: relative; }
.input-prefix::before { color: #72808c; content: "$"; left: 11px; position: absolute; top: 50%; transform: translateY(-50%); }
.input-prefix input { padding-left: 25px; }
.field-stack { display: grid; gap: 6px; }
.shared-field { grid-column: 2 / 4; }
.shared-field > small { color: var(--muted); font-size: .72rem; text-align: center; }
.inline-preset { background: #f6f9fb; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); cursor: pointer; font-size: .72rem; font-weight: 800; min-height: 32px; padding: 5px 8px; width: 100%; }
.inline-preset:hover { background: #eaf2f8; border-color: #9db2c3; }
.estate-projection-link { align-items: center; display: flex; justify-content: center; text-decoration: none; }
.estate-sample-button { background: var(--gold-soft); border-color: #d9b55e; color: #6f4b05; }
.estate-sample-button:hover { background: #ffedbd; border-color: #c8962f; }
.estate-value-label { color: var(--navy); font-size: .78rem; font-weight: 800; }
.estate-growth-field { background: var(--gold-soft); border: 1px solid #ead39c; border-radius: 10px; padding: 10px; }
.estate-growth-field legend { font-size: .76rem; margin-bottom: 7px; }
.estate-growth-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.estate-growth-options span { font-size: .82rem; padding: 7px 3px; }
.estate-tax-summary { background: #edf4f8; border-left: 4px solid var(--blue); border-radius: 9px; color: var(--muted); display: grid; font-size: .76rem; gap: 5px; line-height: 1.4; padding: 10px 11px; }
.estate-tax-summary span { display: block; }
.estate-tax-summary strong { color: var(--navy); }
.inflation-toggle[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.inflation-toggle[aria-pressed="true"]::before { content: "✓ "; }
.advanced-guidance { align-items: flex-start; background: var(--gold-soft); border: 1px solid #ead39c; border-radius: 11px; color: #6f5c30; display: grid; font-size: .82rem; gap: 3px; margin-bottom: 14px; padding: 12px 14px; }
.advanced-guidance strong { color: var(--navy); }
.optional-entry { align-items: center; background: linear-gradient(135deg, #f7fafc, #fffaf0); border: 1px solid #d7e0e8; border-radius: 13px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) auto; padding: 17px 18px; }
.optional-entry > div { display: grid; gap: 4px; }
.optional-entry strong { color: var(--navy); font-size: 1rem; }
.optional-entry span { color: var(--muted); font-size: .86rem; }
.optional-toggle { min-width: 230px; }
#advancedContent, #businessContent { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.advanced-adjusted { color: var(--green); font-size: .72rem; font-weight: 750; min-height: 1.1rem; text-align: center; }
.advanced-row .field-stack { align-self: start; }
.shared-heading { grid-column: 2 / 4; text-align: center; }
.business-owner-select { align-items: center; background: var(--gold-soft); border: 1px solid #ead39c; border-radius: 12px; display: grid; gap: 12px; grid-template-columns: minmax(190px, 1fr) 1fr 1fr; margin-bottom: 14px; padding: 14px; }
.business-owner-select legend { display: contents; }
.business-owner-cell.inactive-owner { opacity: .42; }
.business-owner-cell.inactive-owner .advanced-adjusted { color: var(--muted); }
.business-row .row-label small { display: block; }

.source-strip { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.source-strip div { background: var(--wash); border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.source-strip span { color: var(--muted); display: block; font-size: .76rem; }
.source-strip strong { color: var(--navy); display: block; margin-top: 2px; }
.child-count-field { align-items: center; background: var(--gold-soft); border: 1px solid #ead39c; border-radius: 12px; display: grid; gap: 12px; grid-template-columns: minmax(180px, .8fr) minmax(280px, 1.2fr); margin-bottom: 14px; padding: 13px 15px; }
.child-count-field legend { display: contents; }
.child-count { grid-template-columns: repeat(5, 1fr); }
.child-count span { border-color: #d8c28e; }
.child-empty { background: var(--wash); border: 1px dashed #afbfcb; border-radius: 11px; color: var(--muted); font-size: .86rem; margin: 0; padding: 16px; text-align: center; }
.child-list { display: grid; gap: 13px; }
.child-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.child-card summary { align-items: center; background: #f9fbfc; cursor: pointer; display: flex; justify-content: space-between; list-style: none; padding: 15px 17px; }
.child-card summary::-webkit-details-marker { display: none; }
.child-card summary strong { color: var(--navy); }
.child-card summary span { color: var(--muted); font-size: .8rem; }
.child-card[open] summary { border-bottom: 1px solid var(--line); }
.child-body { padding: 17px; }
.child-basic { display: grid; gap: 12px; grid-template-columns: 1.5fr .7fr 1fr; margin-bottom: 16px; }
.choice-row { align-items: center; background: var(--wash); border-radius: 10px; display: grid; gap: 10px; grid-template-columns: 1.35fr .65fr 1fr; margin-top: 10px; padding: 12px; }
.check-label { align-items: center; display: flex; font-weight: 780; gap: 9px; }
.check-label input { accent-color: var(--navy); min-height: 20px; width: 20px; }
.child-estimate { color: var(--green); font-size: .8rem; font-weight: 750; text-align: right; }

.results-card { padding: 24px; position: sticky; top: 88px; }
.results-kicker { color: #9b6b0b; }
.results-note { color: var(--muted); font-size: .85rem; margin: 5px 0 18px; }
.person-result { border-top: 1px solid var(--line); padding: 17px 0; }
.person-result > span { color: var(--muted); display: block; font-size: .85rem; font-weight: 750; }
.person-result > strong { color: var(--navy); display: block; font-family: Georgia, serif; font-size: 2rem; line-height: 1.15; margin-top: 3px; }
.person-result > small { color: var(--muted); }
dl { margin: 13px 0 0; }
dl div, .child-summary div { display: flex; font-size: .82rem; justify-content: space-between; margin-top: 6px; }
dt, .child-summary span { color: var(--muted); }
dd { font-weight: 750; margin: 0; }
.child-summary { background: var(--wash); border-radius: 12px; padding: 15px; }
.child-summary h3 { color: var(--navy); font-size: .96rem; margin: 0 0 9px; }
.child-summary .total { border-top: 1px solid var(--line); font-size: .9rem; margin-top: 10px; padding-top: 9px; }
.narrative-summary { background: #f8fbfd; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; padding: 15px; }
.narrative-summary h3 { color: var(--navy); font-size: .96rem; margin: 0 0 9px; }
.narrative-summary p { color: #40515f; font-size: .82rem; line-height: 1.55; margin: 0; }
.narrative-summary p + p { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.mini-disclaimer { color: var(--muted); font-size: .72rem; line-height: 1.45; margin: 12px 0 0; text-align: center; }
.print-summary-toolbar { align-items: center; background: var(--gold-soft); border: 1px solid #dfbd73; border-radius: 12px; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 18px; padding: 14px; }
.print-summary-toolbar strong { color: var(--navy); display: block; font-size: 1rem; }
.print-summary-toolbar p { color: #6f5c30; font-size: .82rem; line-height: 1.4; margin: 3px 0 0; }
.print-summary-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.print-summary-mode { background: #eef4f8; }
.print-summary-mode .site-header,
.print-summary-mode .intro,
.print-summary-mode .privacy-banner,
.print-summary-mode .sample-data-notice,
.print-summary-mode .consent-card,
.print-summary-mode .live-need-bar,
.print-summary-mode .workspace > form,
.print-summary-mode .methodology,
.print-summary-mode footer,
.print-summary-mode .bottom-graph-cta { display: none !important; }
.print-summary-mode main { max-width: 900px; padding-top: 24px; }
.print-summary-mode .workspace { display: block; }
.print-summary-mode .results-card { display: block; max-width: 900px; position: static; }
.print-summary-mode #resultsPrintButton { display: none; }

.methodology { margin-top: 22px; padding: 20px 24px; }
.methodology summary { color: var(--navy); cursor: pointer; font-weight: 800; }
.method-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; padding-top: 14px; }
.method-grid p { background: var(--wash); border-radius: 10px; color: var(--muted); font-size: .84rem; margin: 0; padding: 13px; }
.method-grid strong { color: var(--navy); }
footer { color: var(--muted); font-size: .78rem; margin: 24px auto 0; max-width: 1120px; padding: 20px; text-align: center; }
footer strong { color: var(--navy); }
footer p { margin: 7px 0 0; }
.bottom-graph-cta { align-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: 18px; color: white; display: flex; gap: 28px; justify-content: space-between; margin-top: 18px; padding: 24px 26px; }
.bottom-graph-cta .eyebrow { color: var(--gold); }
.bottom-graph-cta h2 { font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.2; margin: 0; }
.bottom-graph-cta .button { background: var(--gold); color: var(--navy); flex: 0 0 auto; text-decoration: none; }
.estate-graph-open { overflow: hidden; }
.estate-graph-dialog { background: transparent; border: 0; height: 100dvh; margin: 0; max-height: none; max-width: none; padding: 0; width: 100%; }
.estate-graph-dialog::backdrop { background: rgba(7,25,43,.72); }
.estate-graph-shell { background: var(--background); display: grid; grid-template-rows: auto 1fr; height: 100dvh; width: 100%; }
.estate-graph-toolbar { align-items: center; background: var(--navy); color: white; display: grid; gap: 16px; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); min-height: 70px; padding: 9px 18px; }
.estate-graph-toolbar > strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; text-align: center; }
.estate-graph-return { align-items: center; background: white; border: 0; border-radius: 10px; color: var(--navy); cursor: pointer; display: inline-flex; gap: 10px; justify-self: start; min-height: 48px; padding: 7px 13px; text-align: left; }
.estate-graph-return > span:first-child { font-size: 1.35rem; }
.estate-graph-return strong, .estate-graph-return small { display: block; }
.estate-graph-return small { color: var(--muted); font-size: .72rem; margin-top: 1px; }
.estate-graph-x { align-items: center; background: white; border: 0; border-radius: 50%; color: var(--navy); cursor: pointer; display: inline-flex; font-size: 1.8rem; height: 46px; justify-content: center; justify-self: end; line-height: 1; width: 46px; }
.estate-graph-return:hover, .estate-graph-x:hover { background: var(--gold-soft); }
.estate-graph-content { background: var(--background); min-height: 0; overflow: auto; overscroll-behavior: contain; }
.embedded-projection-page { padding-top: 18px; }
.graph-chart-area { fill: url(#graphEstateAreaGradient); }
.embedded-projection .site-header, .embedded-projection .back-link { display: none; }
.embedded-projection .projection-page { padding-top: 18px; }

.privacy-page { max-width: 1180px; padding-top: 32px; }
.back-link { color: var(--blue); display: inline-block; font-size: .9rem; font-weight: 800; margin-bottom: 24px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.privacy-hero { max-width: 920px; padding: 18px 0 34px; }
.privacy-hero h1 { max-width: 850px; }
.privacy-lede { color: #40515f; font-size: 1.16rem; line-height: 1.7; margin: 0; max-width: 900px; }
.privacy-return { display: inline-block; margin-top: 22px; text-decoration: none; }
.privacy-answer { align-items: center; background: linear-gradient(135deg, #eaf8f2, #fbfefd); border: 1px solid #91cdb1; border-radius: 18px; display: grid; gap: 18px; grid-template-columns: auto 1fr; margin-bottom: 22px; padding: 24px; }
.privacy-answer-icon { align-items: center; background: var(--green); border-radius: 50%; color: white; display: flex; font-size: 1.15rem; font-weight: 900; height: 46px; justify-content: center; width: 46px; }
.privacy-answer h2, .privacy-card h2, .privacy-details h2, .privacy-callout h2 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; margin: 0; }
.privacy-answer h2 { font-size: 1.4rem; }
.privacy-answer p { color: #315847; margin: 5px 0 0; }
.privacy-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.privacy-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; }
.privacy-card-number { color: #a16e09; font-size: .75rem; font-weight: 900; letter-spacing: .16em; margin: 0 0 12px; }
.privacy-card h2 { font-size: 1.25rem; }
.privacy-card > p:last-child { color: var(--muted); margin: 10px 0 0; }
.privacy-details { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: grid; gap: 0; grid-template-columns: 1fr 1fr; margin-top: 22px; overflow: hidden; }
.privacy-details > div { padding: 26px; }
.privacy-details > div:nth-child(odd) { border-right: 1px solid var(--line); }
.privacy-details > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.privacy-details h2 { font-size: 1.25rem; }
.privacy-details > div > p:last-child { color: var(--muted); margin: 9px 0 0; }
.privacy-callout { align-items: center; background: var(--navy); border-radius: 18px; color: white; display: flex; gap: 28px; justify-content: space-between; margin-top: 22px; padding: 28px; }
.privacy-callout .eyebrow { color: var(--gold); }
.privacy-callout h2 { color: white; font-size: 1.6rem; }
.privacy-callout p:last-child { color: #cbd7e2; margin: 8px 0 0; max-width: 800px; }
.privacy-callout .button { background: var(--gold); color: var(--navy); flex: 0 0 auto; text-decoration: none; }

.projection-page { max-width: 1180px; padding-bottom: 56px; }
.back-link { color: var(--blue); display: inline-block; font-size: .9rem; font-weight: 800; margin-top: 24px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.projection-hero { padding: 36px 4px 26px; }
.projection-hero .lede { max-width: 850px; }
.projection-card, .projection-chart-card, .projection-table-card, .projection-disclaimer { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.projection-card { padding: 28px; }
.projection-card .section-heading h2, .projection-table-heading h2 { color: var(--navy); font-family: Georgia, serif; font-size: 1.55rem; margin: 0; }
.projection-inputs { display: grid; gap: 16px; grid-template-columns: 1.3fr .85fr .85fr; }
.projection-rate-field { background: var(--gold-soft); border: 1px solid #ead39c; border-radius: 13px; margin-top: 20px; padding: 16px; }
.projection-rate-field legend { margin-bottom: 9px; }
.projection-rates { max-width: 430px; }
.projection-rate-field > small { color: var(--muted); display: block; margin-top: 9px; }
.projection-results { margin-top: 20px; }
.projection-summary { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }
.projection-summary article { background: var(--navy); border-radius: 15px; color: white; min-width: 0; padding: 20px; }
.projection-summary span { color: #cbd7e2; display: block; font-size: .82rem; }
.projection-summary strong { color: var(--gold); display: block; font-family: Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 2rem); margin-top: 5px; overflow-wrap: anywhere; }
.projection-chart-card { margin-bottom: 20px; overflow: hidden; }
.projection-chart-heading { align-items: flex-end; border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; padding: 24px 28px 18px; }
.projection-chart-heading h2 { color: var(--navy); font-family: Georgia, serif; font-size: 1.55rem; margin: 0; }
.projection-chart-heading > p { color: var(--muted); font-size: .86rem; margin: 0; max-width: 410px; text-align: right; }
.wealth-chart-scroll { overflow-x: auto; padding: 12px 18px 0; }
.wealth-chart { cursor: crosshair; display: block; min-width: 680px; width: 100%; }
.chart-grid { stroke: #dfe7ed; stroke-width: 1; }
.chart-tick { stroke: #8fa2b2; stroke-width: 1.2; }
.chart-axis-label { fill: #5e6c78; font-size: 13px; font-weight: 650; }
.chart-axis-title { fill: #0d2742; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.chart-area { fill: url(#estateAreaGradient); }
.chart-line { fill: none; stroke: #275d8c; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.chart-annual-dot { fill: #275d8c; stroke: white; stroke-width: 1; }
.chart-tax-line { fill: none; stroke: #a04435; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.chart-tax-dot { fill: #a04435; stroke: white; stroke-width: 1; }
.chart-life-line { stroke: #b37a0b; stroke-dasharray: 6 5; stroke-width: 2; }
.chart-life-dot { fill: #e7b85c; stroke: #0d2742; stroke-width: 2.5; }
.chart-tax-life-dot { fill: #fff; stroke: #a04435; stroke-width: 3; }
.chart-touch-guide line { stroke: #14202b; stroke-dasharray: 4 4; stroke-width: 2; }
.chart-touch-estate-dot { fill: white; stroke: #275d8c; stroke-width: 4; }
.chart-touch-tax-dot { fill: white; stroke: #a04435; stroke-width: 4; }
.chart-life-label { fill: #7a5307; font-size: 13px; font-weight: 850; }
.chart-empty { fill: #5e6c78; font-size: 17px; }
.chart-touch-readout { background: #edf4f8; border: 1px solid #c4d5e1; border-radius: 10px; color: var(--navy); font-size: .9rem; font-weight: 800; margin: 0 28px 12px; min-height: 46px; padding: 11px 14px; }
.chart-legend { align-items: center; color: var(--navy); display: flex; flex-wrap: wrap; font-size: .82rem; font-weight: 750; gap: 10px 22px; padding: 0 28px 8px; }
.chart-legend span { align-items: center; display: inline-flex; gap: 8px; }
.chart-legend i { border-radius: 999px; display: inline-block; height: 4px; width: 30px; }
.legend-estate { background: #275d8c; }
.legend-tax { background: #a04435; }
.chart-help { color: var(--muted); font-size: .8rem; margin: 0; padding: 0 28px 20px; }
.projection-table-card { overflow: hidden; }
.projection-table-heading { align-items: flex-end; border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; padding: 24px 28px; }
.projection-table-heading > p { color: var(--muted); font-size: .86rem; margin: 0; max-width: 360px; text-align: right; }
.table-scroll { max-height: 620px; overflow: auto; }
.projection-table { border-collapse: collapse; width: 100%; }
.projection-table th, .projection-table td { border-bottom: 1px solid var(--line); padding: 12px 18px; text-align: right; }
.projection-table th { background: #edf3f7; color: var(--navy); font-size: .78rem; letter-spacing: .04em; position: sticky; text-transform: uppercase; top: 0; z-index: 1; }
.projection-table th:first-child, .projection-table td:first-child { text-align: left; }
.projection-table tbody tr:nth-child(even) { background: #f8fafb; }
.projection-table tbody tr.life-expectancy-row { background: var(--gold-soft); font-weight: 800; }
.projection-table .empty-table { color: var(--muted); padding: 36px; text-align: center; }
.projection-disclaimer { margin-top: 20px; padding: 22px 26px; }
.projection-disclaimer strong { color: var(--navy); }
.projection-disclaimer p { color: var(--muted); font-size: .86rem; margin: 6px 0 0; }

@media (max-width: 1080px) {
  .workspace { grid-template-columns: 1fr; }
  .results-card { bottom: 0; position: relative; top: 0; }
  .results-card { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
  .results-card > h2, .results-card > .results-kicker, .results-card > .results-note, .results-card > .narrative-summary, .results-card > .button, .results-card > .mini-disclaimer { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .print-summary-toolbar { align-items: stretch; flex-direction: column; }
  .print-summary-actions { display: grid; grid-template-columns: 1fr; }
  .live-need-bar { gap: 7px; grid-template-columns: 1fr 1fr; padding: 8px; top: 104px; }
  .live-need-intro { align-items: center; display: flex; grid-column: 1 / -1; justify-content: center; padding: 0 3px; }
  .live-need-intro strong { font-family: inherit; font-size: .74rem; letter-spacing: .02em; }
  .live-need-intro small { display: none; }
  .live-need-person { padding: 6px 8px; }
  .live-need-person strong { font-size: 1.08rem; }
  .live-need-person small { font-size: .62rem; }
  .step-nav { position: static; }
  .optional-entry { grid-template-columns: 1fr; }
  .optional-toggle { width: 100%; }
  main { padding: 0 14px 34px; }
  .site-header { padding: 10px 14px; }
  .privacy-chip { display: none; }
  .intro { align-items: stretch; flex-direction: column; padding-top: 32px; }
  .privacy-banner { grid-template-columns: auto 1fr; }
  .privacy-banner-action { grid-column: 2; white-space: normal; }
  .intro-actions { width: 100%; }
  .intro-actions .button { flex: 1; }
  .intro-actions .close-button { flex-basis: 100%; }
  .bottom-graph-cta { align-items: stretch; flex-direction: column; }
  .bottom-graph-cta .button { text-align: center; }
  .keyboard-open main:not(.embedded-projection-page) { padding-bottom: 46vh; }
  .keyboard-open .bottom-graph-cta { scroll-margin-bottom: 44vh; }
  .estate-graph-toolbar { gap: 8px; grid-template-columns: 1fr auto; min-height: 66px; padding: 8px 10px; }
  .estate-graph-toolbar > strong { display: none; }
  .estate-graph-return { padding: 6px 10px; }
  .estate-graph-return small { font-size: .68rem; }
  .estate-graph-x { height: 46px; width: 46px; }
  .consent-card { align-items: start; grid-template-columns: 40px 1fr; padding: 18px 15px; }
  .consent-icon { height: 36px; width: 36px; }
  .consent-button { grid-column: 1 / -1; width: 100%; }
  .step-nav a { font-size: 0; gap: 0; }
  .step-nav span { font-size: .74rem; }
  .form-card { border-radius: 14px; padding: 20px 16px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; }
  .two-col, .assumption-grid, .source-strip, .method-grid, .field-triple { grid-template-columns: 1fr; }
  .comparison-grid { gap: 7px; grid-template-columns: 1.15fr .8fr .8fr; }
  .shared-field { grid-column: 2 / 4; }
  .comparison-grid input { min-width: 0; padding-left: 20px; padding-right: 5px; }
  .row-label small { display: none; }
  .advanced-row .row-label small { display: block; margin-top: 4px; }
  .child-basic, .choice-row, .child-count-field, .business-owner-select { grid-template-columns: 1fr; }
  .child-estimate { text-align: left; }
  .results-card { display: block; }
  .privacy-page { padding-top: 22px; }
  .privacy-grid, .privacy-details { grid-template-columns: 1fr; }
  .privacy-details > div:nth-child(odd) { border-right: 0; }
  .privacy-details > div + div { border-top: 1px solid var(--line); }
  .privacy-callout { align-items: stretch; flex-direction: column; }
  .privacy-callout .button { text-align: center; }
  .projection-page { padding-top: 0; }
  .embedded-projection-page { padding-left: 12px; padding-right: 12px; }
  .projection-inputs, .projection-summary { grid-template-columns: 1fr; }
  .projection-chart-heading,
  .projection-table-heading { align-items: flex-start; flex-direction: column; }
  .projection-chart-heading > p,
  .projection-table-heading > p { text-align: left; }
  .projection-table th, .projection-table td { padding: 10px 12px; white-space: nowrap; }
}

@media print {
  body { background: white; font-size: 11px; }
  .intro-actions, .step-nav, .live-need-bar, .button, .consent-check, .privacy-chip, .back-link, .bottom-graph-cta { display: none !important; }
  .site-header { background: white; border-bottom: 2px solid var(--navy); color: var(--navy); min-height: 0; padding: 0 0 9px; }
  .site-header .brand { color: var(--navy); }
  .site-header .brand small { color: var(--blue); }
  .consent-card { background: white; border: 1px solid #888; box-shadow: none; grid-template-columns: 1fr; padding: 10px; }
  .consent-card .consent-icon, .consent-card .eyebrow { display: none; }
  .consent-card.acknowledged .consent-copy > p { display: block; }
  .workspace.locked { filter: none; opacity: 1; }
  main { max-width: none; padding: 0; }
  .intro { padding: 12px 0; }
  .intro h1 { font-size: 26px; }
  .workspace { display: block; }
  .form-card, .results-card, .methodology { box-shadow: none; break-inside: avoid; margin-bottom: 10px; }
  .form-card { padding: 14px; }
  .results-card { border: 2px solid var(--navy); display: grid; gap: 10px; grid-template-columns: 1fr 1fr; position: static; }
  .print-summary-toolbar { display: none !important; }
  .print-summary-mode .results-card { display: grid; }
  .results-card > h2, .results-card > .results-kicker, .results-card > .results-note, .results-card > .child-summary, .results-card > .narrative-summary, .results-card > .mini-disclaimer { grid-column: 1 / -1; }
  details { display: block; }
  details > * { display: block; }
  footer { font-size: 8px; }
}
