:root{
  --bg:#0b1220;
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#a8b0bf;
  --accent:#60a5fa;
  --border:rgba(255,255,255,.10);
  --good:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background: radial-gradient(1200px 700px at 15% 10%, rgba(96,165,250,.20), transparent 60%),
              radial-gradient(900px 600px at 85% 0%, rgba(34,197,94,.12), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:24px}
header{
  padding:18px 0 8px;
  display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap;
}
.brand{display:flex;gap:14px;align-items:center}
.brand img{height:46px;width:auto;border-radius:12px;box-shadow: var(--shadow)}
nav{display:flex;gap:14px;flex-wrap:wrap}
nav a{color:var(--text);opacity:.9}
nav a:hover{opacity:1}

.hero{
  margin-top:10px;
  padding:28px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius:20px;
  box-shadow: var(--shadow);
}
.hero h1{margin:0 0 10px;font-size:40px;letter-spacing:-.02em}
.hero p{margin:0;color:var(--muted);max-width:76ch}
.hero .badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size:13px;
}
.badge .dot{width:10px;height:10px;border-radius:50%}

.grid{
  display:grid;grid-template-columns: 1.2fr .8fr;gap:18px;margin-top:18px;
}
@media (max-width: 920px){ .grid{grid-template-columns:1fr} }

.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius:18px;
  padding:18px;
}
.card h2{margin:0 0 10px;font-size:22px}
.card h3{margin:18px 0 10px;font-size:18px}
.card p{margin:10px 0;color:var(--muted)}
.card ul{margin:10px 0 0 18px;color:var(--muted)}
.card li{margin:6px 0}
.kbd{
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;
  padding:2px 8px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  border-radius:999px;
  color: var(--text);
}

.form{
  display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;
}
@media (max-width: 560px){ .form{grid-template-columns:1fr} }
label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
input[type="number"], select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.92);
  color: #0b1220;
  outline:none;
}
select option{ color:#0b1220; }
input[type="number"]:focus, select:focus{border-color: rgba(96,165,250,.9)}
button{
  cursor:pointer;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(96,165,250,.5);
  background: rgba(96,165,250,.18);
  color: var(--text);
  font-weight:600;
}
button:hover{background: rgba(96,165,250,.25)}
.result{
  margin-top:14px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.22);
  padding:14px;
}
.result .status{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
}
.pill{
  padding:6px 10px;border-radius:999px;border:1px solid var(--border);
  background: rgba(255,255,255,.04);font-size:12px
}
.pill.good{border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.12)}
.pill.warn{border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.12)}
.pill.bad{border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.12)}
.small{font-size:13px;color:var(--muted)}
hr{border:none;border-top:1px solid var(--border);margin:16px 0}
footer{
  margin:22px 0 6px;
  color: var(--muted);
  font-size: 13px;
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
}
.notice{
  font-size:12px;color:var(--muted);
  border-left:3px solid rgba(96,165,250,.7);
  padding:10px 12px;
  background: rgba(96,165,250,.08);
  border-radius:12px;
}

details{
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(0,0,0,.18);
  padding:12px 14px;
  margin-top:12px;
}
details summary{
  cursor:pointer;
  font-weight:700;
  list-style:none;
}
details summary::-webkit-details-marker{display:none}
.checkgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 14px;
  margin-top:10px;
}
@media (max-width: 720px){ .checkgrid{grid-template-columns:1fr} }
.checkitem{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.checkitem input{margin-top:2px; transform: scale(1.1)}
.checkitem b{color:var(--text)}
.checkitem .hint{font-size:12px;color:var(--muted);margin-top:2px}


/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(255,255,255,.92);
  color:#0b1220;
  border:1px solid rgba(0,0,0,.2);
  z-index: 9999;
}
.skip-link:focus{left:12px; outline: none}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible{
  outline: 3px solid rgba(96,165,250,.85);
  outline-offset: 2px;
}

/* Brand */
.brand-title{font-weight:800; font-size:16px; letter-spacing:.01em}
.brand-subtitle{font-size:12px; color:var(--muted); margin-top:2px}

/* Hero list */
.hero-list{
  margin:10px 0 0 18px;
  color: var(--muted);
  max-width: 82ch;
}
.hero-list li{margin:6px 0}

/* Dots */
.dot{width:10px;height:10px;border-radius:50%}
.dot--good{background:var(--good)}
.dot--warn{background:var(--warn)}
.dot--bad{background:var(--bad)}

/* Utility spacing */
.mt-6{margin-top:6px}
.mt-8{margin-top:8px}
.mt-10{margin-top:10px}
.mt-12{margin-top:12px}
.mt-18{margin-top:18px}

/* Form helpers */
.span-all{grid-column:1 / -1}
.form--single{grid-template-columns:1fr}
.form-actions{display:flex; align-items:end}

/* Result */
.status-title{font-weight:800}

/* Tables */
.table-wrap{overflow:auto; border-radius:14px; border:1px solid var(--border); background: rgba(0,0,0,.18)}
table.matrix{
  width:100%;
  border-collapse:collapse;
  min-width: 680px;
}
table.matrix caption{
  text-align:left;
  padding:10px 12px;
  color: var(--muted);
  font-size: 12px;
}
table.matrix th, table.matrix td{
  padding:12px;
  border-top:1px solid rgba(255,255,255,.08);
  vertical-align: top;
}
table.matrix thead th{
  border-top:none;
  color: var(--text);
  font-size: 13px;
  background: rgba(255,255,255,.04);
}

/* Steps list */
ol.steps{
  color: var(--muted);
  padding-left:18px;
}
ol.steps li{margin:10px 0}

/* Footer links */
.site-footer .footer-links{display:flex; gap:8px; flex-wrap:wrap}
.footer-sep{opacity:.6; padding:0 2px}

/* NoScript */
.noscript{
  max-width:1100px;
  margin: 10px auto 30px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(245,158,11,.55);
  background: rgba(245,158,11,.10);
  color: var(--text);
}
