:root { --navy:#111827; --panel:#18243d; --blue:#2872fa; --light:#8eb8ff; --line:#dbe1ea; --muted:#64748b; font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--navy); background:var(--navy); }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-height:100vh; background:var(--navy); }
.site-header { min-height:112px; padding:16px clamp(24px,5vw,64px); display:flex; align-items:center; justify-content:space-between; background:#fff; }
.brand-block { display:flex; flex-direction:column; gap:6px; }
.brand { color:var(--navy); text-decoration:none; font-size:25px; font-weight:700; letter-spacing:-.025em; }
.brand-block span { font-size:13px; }
nav { display:flex; gap:30px; }
nav a { color:#111; text-decoration:none; text-transform:uppercase; font-size:12px; font-weight:700; }
nav a:hover { color:var(--blue); }
main { width:min(1060px,calc(100% - 40px)); margin:0 auto; }
.intro { padding:72px 0 42px; max-width:820px; color:#fff; }
.eyebrow { margin:0 0 16px; color:var(--light); font-size:12px; font-weight:800; letter-spacing:.16em; }
h1 { margin:0; font-size:clamp(40px,5vw,66px); line-height:1.03; letter-spacing:-.04em; }
.intro > p:last-child { max-width:680px; margin:22px 0 0; color:#cbd5e1; font-size:17px; line-height:1.6; }
.calculator { display:grid; grid-template-columns:1fr 1fr; background:#fff; box-shadow:0 18px 48px rgba(0,0,0,.22); }
.input-panel,.result-panel { padding:clamp(30px,4vw,52px); min-height:480px; }
.input-panel { display:flex; flex-direction:column; justify-content:center; }
.section-heading { margin-bottom:34px; }
h2 { margin:0; font-size:27px; }
.section-heading p,.empty-result p { color:var(--muted); line-height:1.55; }
label { display:block; margin:20px 0 8px; font-size:12px; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
input,select { width:100%; height:52px; padding:0 14px; border:1px solid var(--line); background:#fff; color:var(--navy); font:inherit; outline:none; }
input:focus,select:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(40,114,250,.12); }
.usage-row { display:grid; grid-template-columns:1fr 112px; gap:12px; }
button { width:100%; height:54px; margin-top:30px; padding:0 20px; border:0; background:var(--blue); color:#fff; display:flex; align-items:center; justify-content:space-between; font:inherit; font-weight:700; cursor:pointer; }
button:hover { background:#155ddd; }
button:disabled { opacity:.65; cursor:wait; }
.error { margin-bottom:0; color:#9d3c27; font-size:13px; }
.result-panel { background:var(--panel); color:#fff; display:flex; flex-direction:column; justify-content:center; }
.empty-result h2 { margin-top:24px; font-size:30px; }
.empty-result p { color:rgba(255,255,255,.68); }
.bars { height:58px; display:flex; align-items:flex-end; gap:7px; }
.bars i { width:13px; background:var(--light); }
.bars i:nth-child(1){height:30%}.bars i:nth-child(2){height:48%}.bars i:nth-child(3){height:68%}.bars i:nth-child(4){height:100%}
.result-label { color:var(--light); font-size:11px; font-weight:800; letter-spacing:.1em; }
.total { margin:18px 0 6px; font-size:clamp(52px,6vw,76px); line-height:1; font-weight:700; letter-spacing:-.05em; }
.total small { display:block; margin-top:10px; color:rgba(255,255,255,.7); font-size:17px; letter-spacing:0; font-weight:500; }
.result-context { margin:20px 0 26px; color:rgba(255,255,255,.7); }
dl { margin:0 0 24px; border-top:1px solid rgba(255,255,255,.18); }
dl div { display:flex; justify-content:space-between; gap:20px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.18); font-size:13px; }
dt { color:rgba(255,255,255,.65); }
dd { margin:0; text-align:right; }
.result-panel a { color:var(--light); font-size:13px; text-underline-offset:4px; }
footer { padding:34px 0 52px; color:#94a3b8; font-size:12px; line-height:1.6; }
.embed .site-header,.embed .intro,.embed footer { display:none; }
.embed main { width:min(1060px,calc(100% - 64px)); }
@media(max-width:760px){.calculator{grid-template-columns:1fr}.input-panel,.result-panel{min-height:420px}.site-header{padding:16px}.site-header nav{gap:12px}.site-header nav a{font-size:10px}.embed main{width:calc(100% - 24px)}}
@media(max-width:500px){main{width:calc(100% - 24px)}.brand-block span{display:none}.usage-row{grid-template-columns:1fr 96px}}
