/* Calculator page */
.calc-page{background:radial-gradient(ellipse 70% 420px at 82% 0,#0a2a40 0,transparent 70%),var(--bg);overflow-x:clip}
.calc-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.calc-hero{position:relative;padding-top:30px;padding-bottom:22px;min-height:168px}
.calc-hero-copy{position:relative;z-index:1;max-width:720px}
.calc-hero h1{margin:0 0 8px;font-size:15px;font-weight:600;line-height:1.4;letter-spacing:.1px;color:var(--cyan);text-wrap:balance}
.calc-slogan{margin:0 0 8px;font-size:clamp(34px,3.6vw,48px);line-height:1.08;letter-spacing:-1.6px;font-weight:600;color:var(--text)}
.calc-lead{margin:0 0 12px;font-size:16px;line-height:1.5;color:#c6d8e4}
.calc-chips{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;list-style:none;font-size:13px;color:#a4bccd}
.calc-chips li{display:flex;align-items:center;gap:7px}
.calc-chips li:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--cyan)}
.calc-art{position:absolute;top:-10px;right:-56px;width:min(560px,46%);height:auto;pointer-events:none}

.calc-console{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(0,1fr);border:1px solid #1d4257;border-radius:12px;background:#061321;box-shadow:0 30px 90px #0007;overflow:hidden}
.calc-tool{position:relative;z-index:1;padding-bottom:56px}
.calc-input{display:flex;flex-direction:column;padding:22px 26px 22px;min-width:0}
.calc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.calc-currency{display:flex;align-items:center;gap:10px;margin:0;padding:0;border:0}
.calc-currency legend{float:left;margin-right:10px;padding:0;font-size:13px;color:#a4bccd;line-height:38px}
.calc-segments{display:inline-flex;padding:3px;border-radius:7px;background:#020c17}
.calc-segments label{position:relative;display:block;cursor:pointer}
.calc-segments input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.calc-segments span{display:block;min-width:50px;padding:7px 10px;border-radius:5px;font-size:13px;font-weight:600;text-align:center;color:#a4bccd}
.calc-segments input:checked+span{background:#0f3a50;color:var(--cyan)}
.calc-segments input:focus-visible+span{outline:2px solid var(--cyan);outline-offset:2px}
.calc-link{min-height:44px;padding:8px 10px;background:none;border:0;border-radius:5px;color:var(--cyan);font-size:14px;font-weight:600}
.calc-link:hover{color:#80edff}
.calc-example{min-height:44px;padding:9px 14px;border:1px solid #2cbcd7;border-radius:6px;background:#0a2738;color:var(--cyan);font-size:14px;font-weight:600;white-space:nowrap}
.calc-example:hover{background:#0f3a50}
.calc-link.is-quiet{color:#a4bccd;font-weight:400}
.calc-note{margin:0 0 12px;font-size:14px;line-height:1.5;color:#c2d3df}

.calc-head,.calc-row{display:grid;grid-template-columns:76px repeat(3,minmax(0,1fr)) 44px;gap:10px;align-items:start}
.calc-head{padding-bottom:6px;font-size:13px;color:#a4bccd;border-bottom:1px solid #16303f}
.calc-row{padding:9px 0;border-bottom:1px solid #12293a}
#calc-rows:empty{min-height:130px}.calc-rule{margin:14px 0 0;font-size:14px;line-height:1.5;color:#c2d3df}.calc-rule b{font-weight:600;color:#dce7f0}
.calc-badge{display:flex;align-items:center;height:46px;font-size:13px;font-weight:600;color:#8cd9e9;white-space:nowrap}
.calc-field label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.calc-field input{display:block;width:100%;height:46px;padding:10px 12px;border:1px solid #1f3c50;border-radius:6px;background:#020c17;color:#eaf3fa;font-size:16px;transition:border-color .15s}
.calc-field input::placeholder{color:#7f9bb1}
.calc-field input:hover{border-color:#2f5a73}
.calc-field input:focus{border-color:var(--cyan);outline:1px solid var(--cyan);outline-offset:0}
.calc-field input[aria-invalid=true]{border-color:#ff9c8c}
.calc-field-error{margin:5px 0 0;font-size:13px;line-height:1.35;color:#ffb5a9}
.calc-remove{display:grid;place-items:center;width:44px;height:46px;padding:0;background:none;border:0;border-radius:6px;color:#8fadc1}
.calc-remove:hover{color:#ffb5a9;background:#0d1f2d}
.calc-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px}
.calc-add{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid #2cbcd7;border-radius:6px;background:#0a2738;color:var(--cyan);font-size:14px;font-weight:600}
.calc-add:hover{background:#0f3a50}
.calc-undo{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:4px 6px 4px 12px;border-radius:6px;background:#0d2433;font-size:14px;color:#dce7f0}
.calc-undo[hidden]{display:none}

.calc-result{padding:24px 26px 22px;min-width:0;border-left:1px solid #16303f;background:radial-gradient(ellipse at 90% 0,#0d3d55 0,transparent 60%),#07182a}
.calc-result h2{margin:0 0 6px;font-size:14px;font-weight:500;letter-spacing:0;line-height:1.4;color:#a4bccd}
.calc-result h2:focus{outline:none}
.calc-result-inner{position:sticky;top:104px}
.calc-value{margin:0 0 6px;font-size:clamp(34px,3.3vw,46px);line-height:1.1;font-weight:600;letter-spacing:-1.2px;color:var(--cyan);overflow-wrap:anywhere}
[data-state=empty] .calc-value,[data-state=incomplete] .calc-value{color:#54748a}
.calc-explain{margin:0 0 14px;font-size:14px;line-height:1.5;color:#c6d8e4}
[data-state=incomplete] .calc-explain{color:#ffc46b}
.calc-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 10px;padding:10px 0 0;border-top:1px solid #1d4257}
.calc-totals dt{margin-bottom:3px;font-size:13px;color:#a4bccd}
.calc-totals dd{margin:0;font-size:18px;font-weight:600;overflow-wrap:anywhere}
.calc-demo{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.calc-demo[hidden]{display:none}
.calc-demo-label{padding:3px 8px;border-radius:4px;background:#0d2433;font-size:14px;color:#c2d3df}
.calc-chart-scroll{min-height:172px;overflow-x:auto}
.calc-chart-scroll svg{display:block}
.calc-chart-scroll svg.is-demo{opacity:.68}
.calc-chart-scroll text{font-family:Arial,Helvetica,sans-serif;font-size:13px}
.calc-bar-value{fill:#f1f5fb;font-weight:600;paint-order:stroke;stroke:#07182a;stroke-width:3px}
.calc-bar-name,.calc-tick{fill:#c2d3df}
.calc-mean{fill:#ffc46b;font-weight:600}
.calc-chart-notes{margin:8px 0 0;font-size:14px;line-height:1.5;color:#c2d3df}
.calc-chart-notes strong{display:block;font-weight:600;color:#dce7f0}
.calc-list{max-height:168px;margin:10px 0 0;padding:0;overflow-y:auto;list-style:none;font-size:14px;color:#c2d3df}
.calc-list li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-top:1px solid #12293a}
.calc-list b{font-weight:400;color:#dce7f0;text-align:right}
.calc-invite{margin:12px 0 0;font-size:14px;line-height:1.5;color:#c2d3df}
.calc-invite a,.calc-content a{color:var(--cyan);text-decoration:underline}

.calc-howto{padding-bottom:64px}
.calc-howto h2,.calc-promo h2,.calc-content h2{letter-spacing:-.8px;line-height:1.2}
.calc-howto h2{font-size:32px;margin:0 0 20px}
.calc-steps{display:grid;grid-template-columns:repeat(4,1fr);margin:0;padding:0;list-style:none}
.calc-steps li{position:relative;padding:4px 22px;border-left:1px solid #1d4257}
.calc-steps li:first-child{padding-left:0;border-left:0}
.calc-steps span{display:block;margin-bottom:6px;font-size:14px;color:#a4bccd}
.calc-steps b{display:block;font-size:20px;font-weight:600;line-height:1.3}
.calc-steps small{display:block;margin-top:2px;font-size:14px;color:#c6d8e4}
.calc-steps li:last-child b{font-size:32px;color:var(--cyan)}

.calc-promo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:48px;align-items:center;padding-top:8px;padding-bottom:64px}
.calc-promo h2{font-size:34px;margin:0 0 14px}
.calc-promo ul{margin:0 0 22px;padding:0;list-style:none;font-size:16px;color:#dce7f0}
.calc-promo li{display:flex;align-items:center;gap:10px;padding:5px 0}
.calc-promo li:before{content:'';flex:none;width:6px;height:6px;border-radius:50%;background:var(--cyan)}
.calc-shot{margin:0}
.calc-shot button{display:block;position:relative;width:100%;padding:0;background:none;border:0;border-radius:10px;cursor:zoom-in}
.calc-shot img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 24px 70px #0009,0 0 0 1px #1d4257}
.calc-zoom-hint{position:absolute;right:10px;bottom:10px;padding:5px 10px;border-radius:5px;background:#020812d9;font-size:13px;color:#dce7f0}
.calc-shot figcaption{margin-top:10px;font-size:13px;color:#a4bccd}
.calc-zoom{width:min(1400px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);padding:0;border:1px solid #2b526c;border-radius:10px;background:#040c16;color:var(--text)}
.calc-zoom::backdrop{background:#020812e6}
.calc-zoom img{display:block;width:100%;height:auto}
.calc-zoom-bar{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 8px 6px 14px;background:#040c16;font-size:14px;color:#c2d3df}

.calc-content{max-width:760px;padding-bottom:72px}
.calc-content h2{font-size:26px;margin:32px 0 8px}
.calc-content h2:first-child{margin-top:0}
.calc-content p{font-size:16px;line-height:1.7;color:#c6d8e4;margin:0 0 10px}
.calc-formula{padding:12px 14px;border-radius:6px;background:#071321;font-family:monospace;overflow-wrap:anywhere}

@media(max-width:1100px){.calc-result-inner{position:static}.calc-console{grid-template-columns:1fr}.calc-result{border-left:0;border-top:1px solid #16303f}.calc-promo{grid-template-columns:1fr;gap:24px}.calc-art{width:46%}}
@media(max-width:900px){.calc-steps{grid-template-columns:1fr 1fr;row-gap:18px}.calc-steps li:nth-child(3){padding-left:0;border-left:0}}
@media(max-width:700px){
 .calc-hero{padding-top:18px;padding-bottom:16px;min-height:0}
 .calc-hero h1{font-size:14px;margin-bottom:6px}
 .calc-slogan{font-size:28px;letter-spacing:-.8px;max-width:230px;margin-bottom:6px}
 .calc-lead{font-size:14px;line-height:1.4;margin-bottom:8px;max-width:300px}
 .calc-chips{gap:4px 10px;font-size:12px}
 .calc-chips li{gap:5px}
 .calc-art{top:26px;right:-112px;width:280px;opacity:.55}
 .calc-art>g,.calc-art>path,.calc-art>ellipse,.calc-art>circle:nth-of-type(3){display:none}
 .calc-toolbar{flex-wrap:nowrap;margin-bottom:4px}
 .calc-currency legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .calc-segments span{min-width:44px;padding:7px 6px}
 .calc-example{padding:9px 10px}
 .calc-input{padding:16px 14px}
 .calc-result{padding:20px 14px}
 .calc-head{display:none}
 #calc-rows:empty{min-height:398px}
 .calc-note{margin-top:4px}
 .calc-row{grid-template-columns:1fr 1fr;gap:8px 10px;padding:10px 0 12px;position:relative}
 .calc-badge{grid-column:1 / -1;height:30px}
 .calc-remove{position:absolute;top:2px;right:-8px;width:44px;height:44px}
 .calc-field:nth-of-type(3){grid-column:1 / -1}
 .calc-field label{position:static;width:auto;height:auto;overflow:visible;clip:auto;display:block;margin-bottom:4px;font-size:13px;color:#c6d8e4;white-space:normal}
 .calc-howto h2{font-size:26px}
 .calc-promo h2{font-size:28px}
}
@media(max-width:480px){.calc-steps{grid-template-columns:1fr}.calc-steps li,.calc-steps li:nth-child(3){padding:0 0 12px;border-left:0;border-bottom:1px solid #16303f}.calc-steps li:last-child{border-bottom:0;padding-bottom:0}.calc-totals dd{font-size:16px}}
@media(prefers-reduced-motion:no-preference){.calc-chart-scroll svg{animation:calc-fade .25s ease-out}@keyframes calc-fade{from{opacity:.3}}.calc-chart-scroll svg.is-demo{animation:none}}
@media(max-width:700px){.calc-zoom picture{display:block;overflow-x:auto}.calc-zoom img{width:980px;max-width:none}.calc-zoom-bar{left:0}}
