:root {
  --ink: #07334f;
  --ink-deep: #041d2e;
  --text: #173b52;
  --muted: #526d80;
  --cream: #f7fafb;
  --sage: #eaf4f5;
  --sage-2: #d8eaed;
  --white: #ffffff;
  --gold: #f1c600;
  --teal: #087572;
  --line: #c9dfe8;
  --line-dark: #9db9c6;
  --shadow: 0 20px 55px rgba(4, 29, 46, 0.11);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --max: 1080px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(8,117,114,.55);
  outline-offset: 3px;
}

.site-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(23,59,50,.08);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; width: min(290px, 64vw); }
.brand svg { display: block; width: 100%; height: auto; }
.exit-link { color: var(--ink); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.sandbox-banner {
  text-align: center;
  padding: 8px 18px;
  background: var(--ink-deep);
  color: white;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.shell { width: min(var(--max), calc(100% - 32px)); margin: 42px auto 72px; }
.app-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(23,59,50,.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-head { padding: 26px clamp(22px, 4vw, 48px) 0; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .9rem; }
.progress-track { height: 8px; background: #edf2ee; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress-bar { height: 100%; width: 0; background: var(--teal); border-radius: inherit; transition: width .25s ease; }

.screen { padding: clamp(30px, 5vw, 66px); min-height: 560px; display: grid; align-content: center; }
.screen.compact { min-height: 500px; }
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; margin: 0 0 12px; }
h1, h2, h3 { color: var(--ink-deep); font-family: var(--serif); line-height: 1.08; margin-top: 0; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
h1 { font-size: clamp(2.35rem, 5vw, 4.6rem); max-width: 900px; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-bottom: 18px; }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); margin-bottom: 10px; }
.lead { font-size: clamp(1.05rem, 1.55vw, 1.25rem); max-width: 800px; color: #41534d; margin: 0 0 26px; }
.helper { color: var(--muted); max-width: 760px; margin: -2px 0 24px; }
.small-note { color: var(--muted); font-size: .88rem; }
.section-intro { max-width:860px; margin:0 0 34px; padding:0 0 26px 22px; border-left:4px solid var(--gold); border-bottom:1px solid var(--line); }
.section-intro h2 { font-size:clamp(1.5rem,2.5vw,2.2rem); margin-bottom:10px; }
.section-intro p:last-child { margin:0; color:var(--muted); }
.basis-note { max-width: 880px; margin: 22px 0; padding: 18px 20px; border: 1px solid var(--line-dark); border-left: 4px solid var(--teal); border-radius: var(--radius-md); background: var(--sage); color: var(--ink); }
.basis-note p { margin: 0 0 10px; }
.basis-note p:last-child { margin-bottom: 0; }
.basis-reminder { max-width: 880px; margin: 20px 0 0; color: var(--ink); font-weight: 800; }

.promise-heading { font-family: var(--sans); font-size: 1.2rem; margin: 28px 0 12px; }
.promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0 0 30px; }
.promise {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.btn {
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--ink-deep); background: var(--gold); border-color: var(--gold); box-shadow: 0 10px 24px rgba(4,29,46,.16); }
.btn-primary:hover { background: #ffdb27; border-color: #ffdb27; }
.btn-secondary { color: var(--ink); background: white; }
.btn-ghost { color: var(--ink); background: transparent; border-color: transparent; padding-inline: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-width: 840px; }
.choice-fieldset { margin:0; padding:0; border:0; min-width:0; }
.choice {
  position: relative;
  display: block;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 17px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: white;
  color: var(--ink-deep);
  font-weight: 750;
  cursor: pointer;
  transition: border .15s ease, background .15s ease, box-shadow .15s ease;
}
.choice input:checked + span { border-color: var(--teal); background: var(--sage); box-shadow: 0 0 0 3px rgba(8,117,114,.10); }
.choice input:focus-visible + span { outline: 3px solid rgba(8,117,114,.55); outline-offset: 3px; }

.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; max-width: 880px; }
.question-block { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.question-block h2 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); margin-bottom: 14px; }
.question-block .helper { margin-bottom: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink-deep); font-weight: 800; }
.input-wrap { position: relative; }
.input-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; }
.currency-input, .text-input, select {
  width: 100%; min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line-dark);
  background: white; color: var(--ink-deep); padding: 13px 15px; font-weight: 750;
}
.currency-input { padding-left: 34px; font-size: 1.1rem; }
.currency-input[aria-invalid="true"], .text-input[aria-invalid="true"] { border-color: #965d52; box-shadow: 0 0 0 3px rgba(150,93,82,.10); }
.field-help { color: var(--muted); font-size: .88rem; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-weight: 650; }
.checkline input { width: 20px; height: 20px; margin-top: 2px; }

.error-summary { display: none; padding: 14px 16px; border: 1px solid #b4776d; background: #fff5f2; color: #6b3d35; border-radius: 12px; margin-bottom: 18px; max-width: 850px; }
.error-summary.show { display: block; }
.inline-error { color: #7b463d; font-size: .86rem; font-weight: 700; min-height: 1.2em; }

.reveal-card { max-width: 850px; padding: clamp(24px,4vw,42px); border-radius: var(--radius-lg); background: var(--sage); border: 1px solid var(--line); }
.reveal-number { color: var(--ink); font-family: var(--serif); font-size: clamp(2rem,4vw,3.5rem); line-height: 1.1; margin-bottom: 16px; }

.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-width: 900px; }
.review-item { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.review-item strong { color: var(--ink-deep); }
.review-edit { min-height:44px; border:0; background:transparent; color:var(--teal); font-weight:800; text-decoration:underline; cursor:pointer; }

.result-wrap { padding: 0; }
.result-hero { padding: clamp(34px,6vw,72px); background: var(--ink-deep); color: white; }
.result-hero .eyebrow, .result-hero h1, .result-hero .lead { color: white; }
.result-hero h1 { font-size: clamp(2.25rem,4.3vw,4rem); }
.result-section { padding: clamp(34px,5vw,64px); border-bottom: 1px solid var(--line); }
.result-section:last-child { border-bottom: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.metric-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.metric-label { color: var(--muted); font-size: .86rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric-value { color: var(--ink-deep); font-family: var(--serif); font-size: clamp(1.9rem,3vw,2.8rem); line-height: 1; margin: 8px 0; }
.metric-value--duration { font-family: var(--sans); font-size: clamp(1.15rem, 2vw, 1.65rem); line-height: 1.2; overflow-wrap: anywhere; }
.metric-detail { color: var(--muted); font-size: .9rem; }

.coverage-bar, .tax-bar { display:flex; overflow:hidden; height: 22px; border-radius:999px; background:#edf2ee; border:1px solid var(--line); margin: 18px 0 9px; }
.coverage-dependable { background: var(--ink); min-width: 0; }
.coverage-gap { background: var(--gold); min-width: 0; }
.tax-pretax { background: #527666; }
.tax-other { background: #c8d8ce; }
.legend { display:flex; flex-wrap:wrap; gap: 16px; color:var(--muted); font-size:.88rem; }
.legend-item { display:inline-flex; align-items:center; gap:7px; }
.swatch { width:12px; height:12px; border-radius:3px; background:var(--ink); }
.swatch.gap { background:var(--gold); }
.swatch.other { background:#c8d8ce; }

.reference-wrap { max-width: 760px; margin: 26px 0; }
.reference-line { position:relative; height: 12px; border-radius:999px; background:linear-gradient(90deg,#d8e5dd,#e9dfc8,#e2c9c3); margin:42px 0 20px; }
.marker { position:absolute; top:-17px; transform:translateX(-50%); font-size:.76rem; color:var(--muted); font-weight:800; }
.marker:after { content:""; display:block; width:2px; height:32px; margin:3px auto 0; background:var(--line-dark); }
.user-rate { position:absolute; top:50%; transform:translate(-50%,-50%); width:22px; height:22px; border-radius:50%; background:var(--ink-deep); box-shadow:0 0 0 5px rgba(255,255,255,.9),0 4px 12px rgba(0,0,0,.2); }

.scenario-controls { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 24px; }
.scenario-btn { min-height:44px; border:1px solid var(--line-dark); border-radius:999px; background:white; color:var(--ink); padding:10px 16px; font-weight:800; cursor:pointer; }
.scenario-btn.active { background:var(--ink); color:white; border-color:var(--ink); }
.scenario-panel { padding:24px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--cream); max-width:900px; }

.action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:24px; }
.action-card { padding:22px; border-radius:var(--radius-lg); border:1px solid var(--line); background:white; }
.action-number { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--ink); color:white; font-weight:900; margin-bottom:18px; }
.action-card h3 { margin:0 0 6px; color:var(--ink-deep); font-size:1.05rem; }
.action-card p { margin: 8px 0; }
.action-card ul { padding-left: 19px; }

.question-list { display:grid; gap:12px; max-width:880px; counter-reset:q; padding:0; list-style:none; }
.question-list li { counter-increment:q; padding:16px 18px 16px 58px; position:relative; border:1px solid var(--line); border-radius:var(--radius-md); background:white; }
.question-list li:before { content:counter(q); position:absolute; left:16px; top:14px; width:28px; height:28px; border-radius:50%; background:var(--sage); color:var(--ink); display:grid; place-items:center; font-weight:900; }

/* Ordinary planning notes are ice and teal, never a yellow warning treatment (teaching pass). */
.disclosure { padding:18px; border-left:4px solid var(--teal); background:var(--sage); color:#40596a; font-size:.88rem; max-width:960px; }

.email-panel { margin-top:28px; padding:24px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--sage); display:none; }
.email-panel.open { display:block; }
.conditional-follow-up { margin-top:16px; }
.conditional-follow-up[hidden] { display:none; }
.conversation-panel,.risk-panel { margin-top:28px; padding:24px; border-top:1px solid var(--line); }
.conversation-panel h2,.risk-panel h2 { font-size:clamp(1.5rem,2.2vw,2rem); }
.success { display:none; padding:16px; border-radius:12px; background:#e5f1e9; border:1px solid #a8c3b2; color:var(--ink-deep); font-weight:700; margin-top:16px; }
.success.show { display:block; }

.prototype-footer { text-align:center; padding:28px; color:var(--muted); font-size:.86rem; }

/* V49.11 lead gate and branch results */
.money-wrap { position:relative; }
.money-wrap > span { position:absolute; left:16px; top:50%; transform:translateY(-50%); color:var(--muted); font-weight:800; z-index:1; }
.error-summary { display:block; }
.error-summary ul { margin:8px 0 0; }
.field-error { min-height:1.25em; margin:0; color:#7b463d; font-size:.86rem; font-weight:700; }
.preview-panel { margin-bottom:34px; padding:clamp(24px,4vw,40px); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--sage); }
.preview-panel h2 { margin-bottom:14px; }
#lead-form { display:grid; gap:20px; max-width:920px; }
#lead-form input[type="text"],#lead-form input[type="email"],#lead-form input[type="tel"],#lead-form select { width:100%; min-height:56px; border:1.5px solid var(--line-dark); border-radius:12px; padding:13px 15px; background:#fff; color:var(--ink-deep); font:inherit; }
#lead-form input[aria-invalid="true"] { border-color:#965d52; box-shadow:0 0 0 3px rgba(150,93,82,.10); }
.check-row { display:flex; gap:11px; align-items:flex-start; max-width:900px; font-weight:650; }
.check-row input { width:20px; height:20px; flex:0 0 auto; margin-top:3px; }
.check-row a { color:var(--teal); }
#follow-up-fields { display:grid; gap:20px; padding:22px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--sage); }
#follow-up-fields[hidden] { display:none; }
/* Advisor-contact preference: compact single-select chips; the email and phone entered above are the ones used. */
.chip-fieldset { display:grid; gap:10px; margin:0; padding:0; border:0; min-width:0; }
.chip-fieldset[hidden] { display:none; }
.chip-fieldset legend { margin-bottom:10px; padding:0; color:var(--ink-deep); font-weight:800; }
.chip-group { display:flex; flex-wrap:wrap; gap:10px; }
.chip { position:relative; display:inline-flex; }
.chip input { position:absolute; opacity:0; pointer-events:none; }
.chip span { display:inline-flex; align-items:center; min-height:44px; padding:8px 18px; border:1.5px solid var(--line-dark); border-radius:999px; background:#fff; color:var(--ink-deep); font-weight:750; cursor:pointer; transition:border .15s ease, background .15s ease, color .15s ease; }
.chip input:checked + span { border-color:var(--teal); background:var(--teal); color:#fff; }
.chip input:focus-visible + span { outline:3px solid rgba(8,117,114,.55); outline-offset:3px; }
.chip input[aria-invalid="true"] + span { border-color:#965d52; }
.chip-note { margin:0; color:var(--muted); font-size:.92rem; }
.chip-note:empty { display:none; }
.form-disclosure { max-width:900px; padding:16px 18px; border-left:4px solid var(--teal); background:var(--sage); color:#40596a; font-size:.9rem; }
.submit-error:not(:empty) { padding:14px 16px; border:1px solid #b4776d; border-radius:12px; background:#fff5f2; color:#6b3d35; font-weight:700; }
.honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
/* Cloudflare Turnstile (production save step): invisible unless Cloudflare asks the visitor to confirm, then shown above the button. */
.xray-turnstile { max-width:100%; overflow-x:auto; }
.xray-turnstile:empty { display:none; }
.saved-notice { margin-bottom:24px; padding:15px 18px; border:1px solid #96b8a2; border-radius:10px; background:#e5f1e9; color:var(--ink-deep); font-weight:800; }
.metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:24px 0; }
.hero-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.metric { min-width:0; padding:22px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; }
.metric span { display:block; color:var(--muted); font-size:.86rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.metric strong { display:block; margin-top:8px; color:var(--ink-deep); font-family:var(--serif); font-size:2rem; line-height:1.1; overflow-wrap:anywhere; }
.coverage { height:22px; margin:20px 0; overflow:hidden; border:1px solid var(--line); border-radius:999px; background:#edf2ee; }
.coverage span { display:block; height:100%; background:var(--teal); }
.scenario-control { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.scenario-control button { min-width:72px; min-height:44px; border:1px solid var(--line-dark); border-radius:999px; background:#fff; color:var(--ink); font-weight:800; cursor:pointer; }
.scenario-control button.active { border-color:var(--ink); background:var(--ink); color:#fff; }
.action-card > span { width:34px; height:34px; display:grid; place-items:center; margin-bottom:16px; border-radius:50%; background:var(--ink); color:#fff; font-weight:900; }
.result-cta { background:var(--sage); }
.result-cta .result-scope { font-weight:700; }
.result-cta .result-journey { margin:22px 0 0; font-size:.95rem; }
.result-sequence-link { margin:24px 0; padding:18px 20px; border-left:4px solid var(--teal); background:var(--ice); }
.result-sequence-link a { color:var(--navy); font-weight:800; }
.result-footer-actions { padding:24px clamp(20px,5vw,64px); }
.text-button { border:0; background:transparent; color:var(--teal); font:inherit; font-weight:800; text-decoration:underline; cursor:pointer; }
#xray-main:focus,.screen h1:focus,.screen h2:focus { outline:3px solid rgba(8,117,114,.45); outline-offset:6px; }

.placement-page { background: var(--cream); }
.placement-shell { width:min(1180px,calc(100% - 32px)); margin:40px auto; }
.placement-section { padding:64px clamp(22px,5vw,70px); border-radius:28px; background:var(--sage); }
.checkup-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:28px; }
.checkup-card { display:flex; flex-direction:column; padding:28px; background:white; border:1px solid var(--line); border-radius:20px; min-height:360px; box-shadow:0 14px 35px rgba(23,59,50,.08); }
.checkup-card .actions { margin-top:auto; }
.context-block { margin-top:40px; padding:40px; border-radius:24px; background:white; border:1px solid var(--line); }

@media (max-width: 760px) {
  .site-strip { position:static; }
  .shell { width:min(100% - 20px,var(--max)); margin-top:18px; }
  .screen { padding:28px 20px 34px; min-height:520px; }
  .promise-grid,.choice-grid,.field-grid,.metric-grid,.metrics,.hero-metrics,.action-grid,.review-grid,.checkup-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .result-section,.result-hero { padding:34px 20px; }
  .app-head { padding-inline:20px; }
  h1 { font-size:2.45rem; }
  h2 { font-size:2rem; }
  .metric-value { font-size:2.15rem; }
  .review-item { grid-template-columns:1fr auto; }
  .review-edit { grid-column:1 / -1; justify-self:start; }
  .actions .btn { width:100%; }
  .placement-section,.context-block { padding:30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}

@media print {
  body { background:white; color:black; }
  .site-strip,.sandbox-banner,.app-head,.prototype-footer,.email-panel,.result-actions .actions,.conversation-panel,.risk-panel,.scenario-controls,.scenario-control,.result-cta,.result-footer-actions { display:none !important; }
  .shell { width:100%; margin:0; }
  .app-card { box-shadow:none; border:0; border-radius:0; }
  .result-hero { background:white !important; color:black !important; padding:20px 0; }
  .result-hero h1,.result-hero .lead,.result-hero .eyebrow { color:black !important; }
  .result-section { padding:18px 0; break-inside:avoid; }
  .metric-card,.action-card,.scenario-panel,.question-list li { break-inside:avoid; box-shadow:none; }
  .scenario-panel { background:white; }
  .btn { display:none !important; }
}

/* Keep the tool skip link available to keyboard users. */
.paycheck-xray-page .skip-link:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; }
.paycheck-xray-page .skip-link:focus { position:fixed; top:1rem; left:1rem; z-index:10000; padding:.75rem 1rem; background:#fff; color:#07334f; outline:3px solid #087572; }
.site-strip nav[aria-label="X-Ray links"] { display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; }
.paycheck-xray-page .error-summary { scroll-margin-top:9rem; }
#lead-form select[aria-invalid="true"] { border-color:#965d52; box-shadow:0 0 0 3px rgba(150,93,82,.10); }

/* Teaching pass (theme 50.3.2): the Second Paycheck opening, the first reveal, the Decision View and its detail. */
.xray-emphasis { max-width:800px; margin:8px 0 10px; color:var(--ink-deep); font-size:clamp(1.25rem,2.1vw,1.6rem); font-weight:800; line-height:1.3; }
.xray-bridge-line { margin:0 0 18px; color:var(--teal); font-size:1.1rem; font-weight:800; }
.xray-expectation { max-width:800px; margin:18px 0 8px; padding:14px 16px; border-left:4px solid var(--teal); background:var(--sage); color:var(--ink); }
.xray-subquestion { margin-top:32px; }
.xray-legend-heading { margin:0 0 8px; padding:0; color:var(--ink-deep); font-family:var(--serif); font-size:clamp(1.35rem,2vw,1.8rem); line-height:1.15; }
.xray-income-note { margin-top:14px; }
.xray-temporary-details { display:grid; gap:18px; margin-top:22px; padding:22px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; }
.xray-temporary-details[hidden] { display:none; }
.xray-reveal { max-width:900px; padding:clamp(24px,4vw,42px); border:1px solid var(--line); border-top:6px solid var(--teal); border-radius:var(--radius-lg); background:#fff; }
.xray-reveal-rows { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; margin:0 0 22px; }
.xray-reveal-rows div { padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--sage); }
.xray-reveal-rows dt { color:var(--muted); font-size:.82rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.xray-reveal-rows dd { margin:4px 0 0; color:var(--ink-deep); font-size:1.35rem; font-weight:800; }
.xray-reveal-number, .xray-reveal-heading { margin-bottom:12px; font-size:clamp(1.9rem,3.6vw,3rem); }
.xray-reveal-annual { margin:0 0 14px; color:var(--ink-deep); font-size:1.25rem; font-weight:800; }
.xray-reveal-states { display:grid; gap:10px; margin:0 0 16px; padding:0; list-style:none; }
.xray-reveal-state { padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--sage); color:var(--ink); }
.xray-reveal-state--later { border-left:5px solid var(--teal); background:#fff; color:var(--ink-deep); font-size:1.2rem; font-weight:700; }

.pf-xray-result { display:block; }
.pf-xray-result .result-section { padding:clamp(28px,4vw,46px) 0; }
.xray-decision { padding:clamp(4px,1.5vw,12px) 0 clamp(24px,3vw,34px); border-bottom:1px solid var(--line); }
.xray-headline { max-width:980px; margin-bottom:14px; font-size:clamp(2.05rem,4.3vw,3.5rem); }
.xray-headline--temporary span { display:block; }
.xray-headline--temporary .xray-state-now { margin-bottom:12px; color:var(--muted); font-family:var(--sans); font-size:clamp(1.05rem,1.6vw,1.3rem); font-weight:700; line-height:1.4; }
.xray-secondary { margin:0 0 10px; color:var(--ink-deep); font-size:clamp(1.15rem,1.9vw,1.45rem); font-weight:800; }
.xray-note { margin:0 0 10px; }
.xray-limitations { margin-top:18px; }
.xray-jobs h2 { font-size:clamp(1.8rem,3vw,2.6rem); }
.xray-bridge { margin:26px 0 0; color:var(--ink-deep); font-family:var(--sans); font-size:1.2rem; }
.xray-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:14px; }
.xray-card { min-width:0; padding:22px; border:1px solid var(--line); border-top:5px solid var(--teal); border-radius:var(--radius-lg); background:#fff; }
.xray-card h4 { margin:0 0 4px; color:var(--ink-deep); font-family:var(--serif); font-size:1.45rem; line-height:1.15; }
.xray-card__subhead { margin:0; color:var(--muted); font-size:.95rem; }
.xray-card__value { margin:14px 0 10px; color:var(--ink-deep); font-size:1rem; font-weight:600; line-height:1.35; overflow-wrap:anywhere; }
.xray-card__value strong { font-size:clamp(1.45rem,2.3vw,1.85rem); font-weight:800; line-height:1.15; }
.xray-card p:last-child { margin-bottom:0; }
.xray-handoff h2, .xray-save h2, .xray-tax-context h2, .xray-follow-up h2 { max-width:880px; font-size:clamp(1.55rem,2.5vw,2.15rem); }
.xray-handoff + .xray-handoff { padding-top:0; }
.xray-tax-status { color:var(--ink); font-weight:700; }
.xray-tax-form { display:grid; gap:18px; margin-top:18px; padding:22px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; }
.xray-tax-form fieldset[hidden] { display:none; }
.pf-xray-result details.xray-methodology { margin:18px 0; padding:0; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; }
/* How we got here: the working evidence, visible without a click (final refinement, 2026-09-29). */
.pf-xray-result section.xray-evidence { margin:18px 0; padding:22px 22px 0; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; }
.pf-xray-result section.xray-evidence > h2 { max-width:880px; margin:0; font-size:clamp(1.35rem,2.3vw,1.7rem); }
section.xray-evidence > .xray-evidence__body { padding:0 0 4px; border-top:0; }
/* The 10%, 20% and 30% market examples stay one click deeper. */
details.xray-evidence-deeper > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:48px; color:var(--ink-deep); font-size:clamp(1.15rem,1.8vw,1.35rem); font-weight:800; list-style:none; cursor:pointer; }
details.xray-evidence-deeper > summary::-webkit-details-marker { display:none; }
details.xray-evidence-deeper > summary::after { content:"+"; flex:0 0 auto; color:var(--teal); font-size:1.5rem; line-height:1; }
details.xray-evidence-deeper[open] > summary::after { content:"\2212"; }
details.xray-evidence-deeper[open] > summary { margin-bottom:12px; }
/* Final polish (2026-09-29): the savings comparison sits behind a small disclosure inside How we got here. */
details.xray-evidence-reference > summary { display:inline-flex; align-items:center; gap:10px; min-height:44px; color:var(--teal); font-size:1rem; font-weight:800; list-style:none; cursor:pointer; }
details.xray-evidence-reference > summary::-webkit-details-marker { display:none; }
details.xray-evidence-reference > summary::after { content:"+"; color:var(--teal); font-size:1.25rem; line-height:1; }
details.xray-evidence-reference[open] > summary::after { content:"\2212"; }
details.xray-evidence-reference[open] > summary { margin-bottom:8px; }
details.xray-methodology > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:60px; padding:16px 22px; color:var(--ink-deep); font-size:1.2rem; font-weight:800; list-style:none; cursor:pointer; }
details.xray-methodology > summary::-webkit-details-marker { display:none; }
details.xray-methodology > summary::after { content:"+"; flex:0 0 auto; color:var(--teal); font-size:1.7rem; line-height:1; }
details.xray-methodology[open] > summary::after { content:"\2212"; }
.xray-evidence__body { padding:4px 22px 22px; border-top:1px solid var(--line); }
.xray-evidence-part { padding:22px 0; border-bottom:1px solid var(--line); }
.xray-evidence-part:last-child { border-bottom:0; }
.xray-evidence-part h3 { font-size:clamp(1.3rem,2vw,1.6rem); }
.xray-evidence-part h4 { margin:18px 0 6px; color:var(--ink-deep); font-size:1.05rem; }
.pf-xray-result .result-cta { padding:clamp(24px,4vw,40px); border-radius:var(--radius-lg); }
.saved-notice p { margin:0; }
.saved-notice ol { margin:8px 0 0; font-weight:600; }
.saved-notice .saved-notice__steps { margin-top:10px; }
.saved-notice:focus { outline:3px solid rgba(8,117,114,.45); outline-offset:4px; }
.result-footer-actions { display:flex; flex-wrap:wrap; gap:8px 24px; padding-inline:0; }
/* Final refinement (2026-09-29): the first-paycheck reveal is labelled as an insight, not a numbered section. */
#progress-label.is-insight { color:var(--teal); text-transform:uppercase; letter-spacing:.14em; font-size:.78rem; font-weight:800; }
/* X4: the total spans the row; the soft overlap note sits between it and the two amounts it compares. Empty, it
   stays in the accessibility tree (a live region) without taking space. */
.xray-resource-grid > .field:first-child { grid-column:1 / -1; }
.xray-overlap-note { grid-column:1 / -1; margin:0; padding:12px 16px; border:1px solid #e2c27a; border-left:4px solid #a56a12; border-radius:10px; background:#fff8e6; color:#4d3a10; font-weight:600; }
.xray-overlap-note:empty { position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* Final polish (2026-09-29): where the two amounts share a row, their labels, inputs, help and error lines sit on shared
   rows, so the inputs stay level when one label wraps. Stacked fields (760px and below) are unchanged. */
@media (min-width: 761px) {
  @supports (grid-template-rows: subgrid) {
    .xray-resource-grid > .field:not(:first-child) { grid-row:span 4; grid-template-rows:subgrid; row-gap:8px; }
  }
}
@media (max-width: 760px) {
  .xray-cards { grid-template-columns:1fr; }
  details.xray-methodology > summary { padding:14px 16px; }
  .pf-xray-result section.xray-evidence { padding:18px 16px 0; }
  .xray-evidence__body { padding:4px 16px 16px; }
  .xray-reveal { padding:22px 18px; }
}
@media print {
  details.xray-evidence-deeper > summary, details.xray-evidence-reference > summary, details.xray-methodology > summary, .xray-save, .xray-tax-context .actions, .xray-tax-form { display:none !important; }
  section.xray-evidence, details.xray-methodology { border:0; }
}
