:root{
  --bg:#f8fafc;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --muted2:#94a3b8;
  --line:#e2e8f0;
  --blue:#2563eb;
  --teal:#14b8a6;
  --green:#16a34a;
  --orange:#f97316;
  --red:#dc2626;
  --soft:#eff6ff;
  --soft2:#ecfeff;
  --shadow:0 22px 70px rgba(15,23,42,.08);
  --max:1120px;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 12% 0%,rgba(37,99,235,.12),transparent 32%),
    radial-gradient(circle at 88% 6%,rgba(20,184,166,.14),transparent 32%),
    linear-gradient(180deg,#f8fafc,#ffffff 52%,#f8fafc);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.6;
}
a{color:inherit}
.wrap{width:min(var(--max),calc(100% - 32px));margin:auto}
.site-header{
  position:sticky;
  top:0;
  z-index:80;
  background:rgba(248,250,252,.86);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(226,232,240,.82);
}
.header-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand img{width:246px;max-height:58px;display:block}
.nav{display:flex;align-items:center;gap:8px;white-space:nowrap}
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:850;
  padding:9px 11px;
  border-radius:999px;
}
.nav a:hover,.nav a:focus{background:#fff;color:var(--text);outline:none;box-shadow:0 0 0 1px var(--line)}
.menu-toggle{
  display:none;
  width:46px;height:46px;border-radius:16px;
  border:1px solid var(--line);background:#fff;color:var(--text);
  font-size:23px;font-weight:900;cursor:pointer;
}
.hero{padding:70px 0 38px}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(300px,.58fr);
  gap:28px;
  align-items:stretch;
}
.hero-card,.status-card,.summary-card,.metric-card,.chart-card,.listing-card,.method-card,.result-grid article{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}
.hero-card{padding:44px;position:relative;overflow:hidden}
.hero-card:before{
  content:"";
  position:absolute;right:-160px;top:-170px;width:420px;height:420px;
  border-radius:999px;background:radial-gradient(circle,rgba(37,99,235,.14),transparent 70%);
}
.kicker{
  position:relative;
  margin:0 0 14px;
  color:var(--teal);
  font-size:13px;
  font-weight:950;
  letter-spacing:.13em;
  text-transform:uppercase;
}
h1,h2,h3{margin:0;line-height:1.05;letter-spacing:-.045em}
h1{position:relative;font-size:clamp(46px,7vw,86px);max-width:790px}
h1 span{color:var(--blue)}
h2{font-size:clamp(32px,4.4vw,54px)}
h3{font-size:24px}
.lead{
  position:relative;
  margin:22px 0 0;
  max-width:810px;
  color:var(--muted);
  font-size:clamp(18px,2.1vw,22px);
}
.hero-actions{position:relative;display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.button{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:46px;padding:0 18px;border-radius:999px;
  background:linear-gradient(135deg,var(--blue),#1d4ed8);
  color:#fff;text-decoration:none;font-weight:950;
  box-shadow:0 15px 36px rgba(37,99,235,.20);
}
.button.secondary{background:#fff;color:var(--blue);border:1px solid rgba(37,99,235,.22);box-shadow:none}
.status-card{padding:26px;display:flex;flex-direction:column;justify-content:space-between}
.status-label{
  display:inline-flex;width:max-content;max-width:100%;
  border-radius:999px;
  padding:7px 10px;
  background:#ecfdf5;
  color:#047857;
  font-weight:950;
  font-size:13px;
}
.status-card strong{display:block;font-size:24px;line-height:1.15;margin-top:14px}
.status-card p{color:var(--muted);margin:10px 0 20px}
.status-mini{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.status-mini div{border:1px solid var(--line);border-radius:18px;padding:13px;background:#fff}
.status-mini span,.summary-card span,.metric-card span,.result-grid span{display:block;color:var(--muted);font-size:14px;font-weight:800}
.status-mini strong,.summary-card strong,.metric-card strong,.result-grid strong{font-size:22px;margin-top:4px}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:20px 0 54px}
.summary-card{padding:20px}
.summary-card small,.metric-card small{display:block;color:var(--muted);margin-top:8px}
.section{padding:58px 0;border-top:1px solid rgba(226,232,240,.86)}
.section.tinted{background:linear-gradient(135deg,rgba(239,246,255,.72),rgba(236,254,255,.72));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-title{max-width:880px;margin-bottom:24px}
.section-title p{color:var(--muted);font-size:18px}
.section-title.compact{margin-bottom:14px}
.toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0}
.toolbar label{font-weight:900}
select,input{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:14px;
  padding:13px 14px;
  font:inherit;
}
select{max-width:360px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow)}
table{width:100%;min-width:1060px;border-collapse:collapse}
th,td{padding:15px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{background:#f8fafc;color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.05em}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#f8fafc}
.money{font-weight:950;color:var(--text)}
.pill{
  display:inline-flex;
  border-radius:999px;
  padding:5px 9px;
  font-size:13px;
  font-weight:900;
  background:#f1f5f9;
  color:var(--muted);
}
.pill.good{background:#ecfdf5;color:#047857}
.pill.mid{background:#fff7ed;color:#c2410c}
.pill.bad{background:#fef2f2;color:#b91c1c}
.chart-card{margin-top:22px;padding:24px}
.bars{display:grid;gap:10px}
.bar-row{display:grid;grid-template-columns:190px minmax(120px,1fr) 92px;gap:12px;align-items:center}
.bar-label{font-weight:900}
.bar-track{height:16px;border-radius:999px;background:#e2e8f0;overflow:hidden}
.bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--teal),var(--blue))}
.bar-value{text-align:right;color:var(--muted);font-weight:900}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.metric-card{padding:22px}
.metric-card strong{display:block;font-size:30px;letter-spacing:-.04em}
.calc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.calc-grid label{display:grid;gap:8px;font-weight:900;color:var(--muted)}
.calc-grid input{font-weight:900;color:var(--text)}
.result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.result-grid article{padding:20px}
.notice{
  padding:16px 18px;
  border:1px solid rgba(37,99,235,.18);
  background:#eff6ff;
  color:#334155;
  border-radius:20px;
}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.54fr);gap:24px;align-items:start}
.source-list{margin:0;padding-left:22px;color:var(--muted)}
.source-list li{margin:10px 0}
.method-card{padding:24px}
.method-card strong{font-size:22px}
.method-card p{color:var(--muted)}
.footer{border-top:1px solid var(--line);padding:30px 0;color:var(--muted)}
.footer-inner{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
@media(max-width:980px){
  .hero-grid,.split{grid-template-columns:1fr}
  .summary-grid,.metric-grid,.calc-grid,.result-grid,.listing-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .header-inner{min-height:72px}
  .brand img{width:min(230px,70vw)}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  .nav{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:16px;
    width:min(320px,calc(100vw - 32px));
    padding:10px;
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:stretch;
    white-space:normal;
  }
  .nav.open{display:flex}
  .nav a{padding:13px 14px;background:#fff;border:1px solid var(--line)}
  .hero{padding-top:42px}
  .hero-card{padding:30px}
  .summary-grid,.metric-grid,.calc-grid,.result-grid,.listing-grid{grid-template-columns:1fr}
  .bar-row{grid-template-columns:1fr}
  .bar-value{text-align:left}
  .status-mini{grid-template-columns:1fr}
}


.data-caveat{
  margin:0 auto 24px;
  padding:18px 20px;
  border-radius:24px;
  background:linear-gradient(135deg,#fff7ed,#eff6ff);
  border:1px solid rgba(249,115,22,.22);
  color:#334155;
  box-shadow:0 16px 44px rgba(15,23,42,.06);
}
.data-caveat strong{
  display:block;
  color:#9a3412;
  margin-bottom:4px;
}


.mode-switch-card{
  margin:0 auto 24px;
  padding:24px;
  border-radius:28px;
  background:rgba(255,255,255,.9);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.mode-switch-card h2{
  font-size:clamp(26px,3.2vw,38px);
}
.mode-switch-card p{
  color:var(--muted);
  margin-bottom:0;
}
.mode-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 12px;
}
.mode-button{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:999px;
  min-height:44px;
  padding:0 16px;
  font:inherit;
  font-weight:950;
  cursor:pointer;
}
.mode-button.active{
  background:linear-gradient(135deg,var(--blue),#1d4ed8);
  border-color:transparent;
  color:#fff;
  box-shadow:0 14px 32px rgba(37,99,235,.18);
}
.mode-button:hover,
.mode-button:focus{
  outline:none;
  border-color:rgba(37,99,235,.36);
}
.mode-description{
  padding:13px 15px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid var(--line);
}
