:root{
  --bg:#0F1115;
  --surface:#1C1E23;
  --border:#2D3139;
  --text:#F1F2F4;
  --muted:#BFC3C9;
  --accent:#D6A64B;
  --accentHover:#E5BA69;
  --disabled:#3A3F47;
  --error:#A64444;
  --success:#4B7D6E;
  --radius:18px;
  --radiusSm:12px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --max: 1100px;
  --focus: 0 0 0 3px rgba(214,166,75,.55);
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none !important; animation:none !important}
}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline:none;
  box-shadow: var(--focus);
  border-radius:10px;
}
.skip-link{
  position:absolute; left:12px; top:12px;
  padding:10px 12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  transform:translateY(-200%);
  transition:transform .2s ease;
  z-index:9999;
}
.skip-link:focus{transform:translateY(0)}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
header{
  position:sticky; top:0; z-index:100;
  background:rgba(15,17,21,.88);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--border);
}
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:baseline; gap:10px; text-decoration:none;
}
.brand .logo{
  font-weight:600;
  letter-spacing:.18em;
  text-transform:lowercase;
  font-size:18px;
}
.badge{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:4px 10px;
  border-radius:999px;
}
.navlinks{
  display:flex; gap:16px; align-items:center;
}
.navlinks a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
}
.navlinks a:hover{color:var(--text); background:rgba(255,255,255,.04)}
.menu-btn{
  display:none;
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:14px;
}
@media (max-width: 900px){
  .menu-btn{display:inline-flex; align-items:center; gap:10px}
  .navlinks{
    position:absolute;
    left:18px; right:18px;
    top:64px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:12px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
  }
  .navlinks.open{display:flex}
  .navlinks a{padding:12px}
}

main{display:block}
.section{padding:64px 0}
.section + .section{border-top:1px solid var(--border)}
.hero{
  padding:70px 0 48px;
}
.grid{
  display:grid;
  gap:18px;
}
.heroGrid{grid-template-columns: 1.2fr .8fr}
@media (max-width: 900px){
  .heroGrid{grid-template-columns:1fr}
}
h1,h2,h3{line-height:1.15; margin:0 0 12px}
h1{font-size:40px; letter-spacing:-.02em}
@media (max-width: 520px){h1{font-size:32px}}
.lead{color:var(--muted); font-size:16px; margin:0 0 22px}
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 1px 0 rgba(255,255,255,.03) inset;
}
.card h3{font-size:18px; margin-bottom:10px}
.pillrow{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.pill{
  border:1px solid var(--border);
  color:var(--muted);
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
}
.btnrow{display:flex; flex-wrap:wrap; gap:12px; margin-top:18px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:16px;
  padding:12px 16px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
}
.btn-primary{
  background:var(--accent);
  color:var(--bg);
}
.btn-primary:hover{background:var(--accentHover)}
.btn-ghost{
  background:transparent;
  border-color:var(--border);
  color:var(--text);
}
.btn-ghost:hover{background:rgba(255,255,255,.04)}
.btn[disabled], .btn.is-disabled{
  background:var(--disabled);
  color:rgba(241,242,244,.55);
  cursor:not-allowed;
}
.kicker{color:var(--accent); font-weight:600; letter-spacing:.14em; text-transform:uppercase; font-size:12px}
.steps{grid-template-columns:repeat(3, 1fr)}
@media (max-width: 900px){.steps{grid-template-columns:1fr}}
.subs{grid-template-columns:repeat(3, 1fr)}
@media (max-width: 900px){.subs{grid-template-columns:1fr}}
.small{color:var(--muted); font-size:14px}
hr.sep{border:0; border-top:1px solid var(--border); margin:16px 0}
.calcGrid{grid-template-columns: 1fr 1fr}
@media (max-width: 900px){.calcGrid{grid-template-columns:1fr}}

.field{display:grid; gap:8px; margin:12px 0}
label{font-weight:600}
input[type="range"]{width:100%}
select, input[type="text"], input[type="email"]{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
}
.help{color:var(--muted); font-size:13px}
.output{
  display:grid; gap:10px;
}
.output .line{
  display:flex; justify-content:space-between; gap:12px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}
.output .line strong{font-weight:700}
.notice{
  border-left:3px solid var(--accent);
  padding:10px 12px;
  background:rgba(214,166,75,.08);
  border-radius:12px;
  color:var(--muted);
}
.footer{
  padding:26px 0;
  border-top:1px solid var(--border);
}
.footerGrid{
  display:grid; gap:14px;
  grid-template-columns: 1.2fr .8fr;
}
@media (max-width: 900px){.footerGrid{grid-template-columns:1fr}}
.footer a{color:var(--muted); text-decoration:none}
.footer a:hover{color:var(--text); text-decoration:underline}
.iconlinks{display:flex; gap:12px; align-items:center}
.iconlinks a{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
}
.iconlinks a:hover{background:rgba(255,255,255,.04)}
.visually-hidden{
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden;
  clip:rect(1px, 1px, 1px, 1px);
  white-space:nowrap;
}

/* Modal */
.modalOverlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center; justify-content:center;
  padding:18px;
  z-index:1000;
}
.modalOverlay.open{display:flex}
.modal{
  width:min(920px, 100%);
  max-height: min(86vh, 760px);
  overflow:auto;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.modalHeader{
  display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
  padding:16px 16px 0;
}
.modalBody{padding:0 16px 16px}
.modalClose{
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
}
.table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
.table th, .table td{
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table th{
  color:var(--muted);
  font-weight:700;
  background:rgba(255,255,255,.02);
}
.table tr:last-child td{border-bottom:0}

/* Accordion */
.accordion{display:grid; gap:10px}
.accItem{
  border:1px solid var(--border);
  border-radius:var(--radiusSm);
  background:rgba(255,255,255,.02);
  overflow:hidden;
}
.accBtn{
  width:100%;
  text-align:left;
  background:transparent;
  border:0;
  color:var(--text);
  padding:14px 14px;
  font-weight:700;
  display:flex;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}
.accPanel{
  padding:0 14px 14px;
}
.accPanel[hidden]{display:none}
.accMeta{color:var(--muted); font-weight:600}
