/* Pension calculator */
.calc-body { background: var(--surface); padding-block: clamp(2.5rem,7vw,4.5rem); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.calc-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.25rem,4vw,2rem); display: flex; flex-direction: column; gap: var(--sp-4); }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: var(--fs-300); font-weight: 700; color: var(--ink); }
.calc-field input[type=number] { font: inherit; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: var(--r-md); outline: none; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.calc-field input[type=number]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--green-050); }
.calc-field input[type=range] { width: 100%; accent-color: var(--brand); }
.calc-field small { font-size: var(--fs-300); color: var(--text-muted); }
.calc-field output { font-weight: 700; color: var(--brand); font-size: var(--fs-400); }
.calc-results { background: var(--brand); color: var(--on-brand); border-radius: var(--r-lg); padding: clamp(1.25rem,4vw,2rem); display: flex; flex-direction: column; gap: var(--sp-4); position: sticky; top: calc(var(--header-height,72px) + 1.5rem); }
.calc-results__label { font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.calc-results__big { font-family: var(--font-campaign); font-stretch: var(--campaign-stretch); font-size: clamp(2rem,5vw,2.75rem); font-weight: 800; line-height: 1.05; color: var(--orange-300); }
.calc-results__note { font-size: var(--fs-300); line-height: 1.55; color: rgba(255,255,255,.75); margin-top: -.25rem; }

/* Info card — explains the rate applies only to the long-term 70% */
.calc-info { display: flex; gap: var(--sp-3); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); }
.calc-info__icon { color: var(--orange-300); flex-shrink: 0; margin-top: 2px; }
.calc-info p { font-size: var(--fs-300); line-height: 1.6; color: rgba(255,255,255,.88); margin: 0; }
.calc-info strong { color: var(--on-brand); font-weight: 700; }

.calc-split { display: flex; flex-direction: column; gap: var(--sp-2); }
.calc-split__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); font-size: var(--fs-400); flex-wrap: wrap; }
.calc-split__row span { color: rgba(255,255,255,.82); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calc-split__tag { font-style: normal; font-size: var(--fs-300); font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.calc-split__tag--grow { background: rgba(244,125,32,.22); color: var(--amber-on-green); }
.calc-split__tag--flat { background: rgba(255,255,255,.14); color: rgba(255,255,255,.88); }
.calc-split__bar { height: 8px; background: rgba(255,255,255,.18); border-radius: var(--r-pill); overflow: hidden; }
.calc-split__bar span { display: block; height: 100%; background: var(--orange-300); }
.calc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); border-top: 1px solid rgba(255,255,255,.18); padding-top: var(--sp-4); margin: 0; }
.calc-meta dt { font-size: var(--fs-300); color: rgba(255,255,255,.78); margin-bottom: 4px; }
.calc-meta dd { font-weight: 700; font-size: var(--fs-400); margin: 0; }
.calc-cta { align-self: flex-start; background: var(--orange-500) !important; }
.calc-disclaimer { font-size: var(--fs-300); color: var(--text-muted); line-height: 1.6; margin-top: var(--sp-5); max-width: 70ch; }
/* Frequency segmented control */
.calc-freq { display: flex; border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.calc-freq input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; accent-color: var(--knest-green); }
.calc-freq label { flex: 1; text-align: center; padding: .55rem .5rem; font-size: var(--fs-300); font-weight: 600; color: var(--text-muted); cursor: pointer; border-right: 1px solid var(--border); line-height: 1.4; transition: background var(--dur-fast,150ms) ease, color var(--dur-fast,150ms) ease; }
.calc-freq label:last-child { border-right: none; }
.calc-freq input[type=radio]:checked + label { background: var(--knest-green); color: var(--on-brand); }
.calc-freq input[type=radio]:focus-visible + label { outline: 2px solid var(--knest-green); outline-offset: -2px; }

@media (max-width: 860px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-results { position: static; }
}
@media (max-width: 480px) { .calc-meta { grid-template-columns: 1fr; gap: var(--sp-2); } }
