.churn-page {
  --ink: #17172b;
  --muted: #595965;
  --line: #dcdbe2;
  color: var(--ink);
  background: #faf9f6;
}
.churn-page [hidden] { display: none !important; }
.churn-page .churn-wrap { padding-block: clamp(48px, 7vw, 110px) 0; }
.churn-intro { max-width: 820px; margin-bottom: clamp(28px, 4vw, 55px); }
.churn-page h1, .churn-page h2, .churn-page h3, .churn-page p, .churn-page dl, .churn-page dd { margin: 0; }
.churn-intro h1 { font-size: clamp(3rem, 6.1vw, 6.6rem); line-height: .99; letter-spacing: -.072em; font-weight: 560; margin: 18px 0 24px; }
.churn-intro > p:last-child, .estate-outlook > div > p:last-child { max-width: 57ch; color: var(--muted); font-size: 1.12rem; line-height: 1.55; }
.churn-desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: clip; }
.estate-editor, .estate-results { min-width: 0; padding: clamp(22px, 3.2vw, 53px); }
.estate-heading, .estate-results-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.estate-heading h2, .estate-outlook h2, .estate-next h2 { font-size: clamp(1.65rem, 2.8vw, 3.25rem); letter-spacing: -.055em; line-height: 1.1; font-weight: 560; }
.churn-page .estate-reset { border: 0; padding: 8px 0; min-height: 44px; background: none; color: #463799; font: inherit; font-size: .85rem; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.churn-page .estate-hint, .churn-page .estate-note { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.churn-page .estate-hint { margin: 5px 0 24px; }
.churn-page .estate-note { margin-top: 12px; }
.estate-editor fieldset { padding: 0; margin: 0; min-width: 0; border: 0; }
.estate-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 15px; }
.estate-inputs label { min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; line-height: 1.4; color: var(--ink); font-size: .9rem; font-weight: 620; }
.estate-inputs label span { font-weight: 450; }
.estate-inputs input, .estate-inputs select { width: 100%; min-height: 46px; box-sizing: border-box; border: 1px solid #aaa9b4; background: white; color: var(--ink); border-radius: 6px; font: inherit; font-size: 1rem; font-weight: 490; font-variant-numeric: tabular-nums; padding: 10px 11px; margin-top: 6px; }
.estate-inputs input[aria-invalid=true] { border: 2px solid #a12337; }
.churn-page :is(input, select, summary, button, a):focus-visible { outline: 3px solid #7261d6; outline-offset: 2px; }
.wide-field { grid-column: 1/-1; }
.valuation-inputs, .estate-method { border-block-start: 1px solid var(--line); margin-top: 24px; }
.valuation-inputs summary, .estate-method summary { width: fit-content; cursor: pointer; padding: 14px 2px; font-weight: 650; }
.valuation-inputs summary::marker, .estate-method summary::marker { color: #55489c; }
.churn-page .estate-error { border-left: 3px solid #a12337; color: #802034; line-height: 1.45; padding: 5px 12px; margin-top: 12px; }
.estate-results { background: #19192f; color: #fff; }
.churn-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 650; color: #dcd5ff; }
.rate-tag { background: #302f4a; border: 1px solid #57546c; padding: 6px 11px; border-radius: 100px; font-size: .81rem; font-variant-numeric: tabular-nums; }
.estate-results h2 { margin: 31px 0 3px; font-size: 1.06rem; font-weight: 510; letter-spacing: -.015em; }
.churn-page .impact-number { color: #e2dcff; font-size: clamp(2.6rem, 4.6vw, 5.5rem); line-height: 1.04; font-weight: 560; letter-spacing: -.07em; overflow-wrap: anywhere; }
#retained-summary, #outputs-empty { color: #d1d0dc; font-size: .97rem; line-height: 1.5; margin-top: 8px; }
.churn-bars { padding-block: 23px 20px; border-block: 1px solid #424158; margin-block: 24px 10px; }
.churn-bars h3 { font-weight: 560; font-size: .94rem; margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: 65px minmax(0, 1fr) minmax(4.1ch, auto); align-items: center; gap: 12px; margin-top: 9px; font-size: .87rem; color: #d1d0dc; }
.bar-row strong { font-weight: 570; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.bar-track { background: #333248; height: 8px; border-radius: 3px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: #cec5ff; }
#scenario-bar { width: 85%; background: #9e93e8; }
.estate-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-block: 7px; }
.estate-facts dt { color: #d1d0dc; font-size: .9rem; }
.estate-facts dd { color: white; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.estate-outlook { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: start; gap: clamp(22px,6vw,90px); margin-block: clamp(42px,6vw,86px) 30px; }
.estate-outlook h2, .estate-next h2 { margin-block: 12px 14px; }
.estate-outlook table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.estate-outlook :is(td,th) { text-align: right; padding: 10px 7px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.estate-outlook thead th { font-weight: 600; color: #484458; }
.estate-outlook :is(th,td):first-child { text-align: left; }
.estate-outlook td:last-child { color: #47358d; font-weight: 630; }
.estate-method { border-bottom: 1px solid var(--line); margin-block: 24px 48px; }
.estate-method summary { padding-block: 19px; }
.estate-method p { font-size: .98rem; max-width: 79ch; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.estate-method a, .estate-text-link { color: #48388d; text-decoration: underline; text-underline-offset: .2em; }
.estate-next { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding-bottom: clamp(45px,6vw,85px); }
.estate-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.estate-text-link { padding: 9px 2px; font-size: .9rem; }
.churn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 810px) {
  .churn-desk, .estate-outlook { grid-template-columns: 1fr; }
  .churn-desk { max-width: 720px; }
  .estate-outlook { gap: 20px; }
  .churn-intro h1 { font-size: clamp(2.9rem, 10vw, 5.2rem); }
}
@media (max-width: 470px) {
  .wide-break { display: none; }
  .estate-editor, .estate-results { padding: 20px 16px; }
  .estate-inputs { gap: 14px 10px; }
  .estate-heading { align-items: baseline; }
  .estate-facts > div { gap: 6px; }
  .estate-facts dt, .estate-outlook table { font-size: .85rem; }
  .estate-outlook :is(td,th) { padding-inline: 4px; }
}
@media (max-width: 350px) {
  .estate-inputs { grid-template-columns: 1fr; }
}
