:root{
  --bg:#f9fafb;
  --fg:#243131;
  --muted:#5b6a6a;
  --brand:#1a5f7a;
  --brand-ghost:#e6f1f5;
  --card:#ffffff;
  --border:#e5e7eb;
  --ok:#118a00;
  --fail:#c01c28;
  --shadow:0 4px 24px rgba(0,0,0,.06);
  --radius:12px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--fg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{
  max-width:980px;
  margin:0 auto;
  padding:24px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 0 8px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--fg);
}

.brand-mark{
  display:block;
  height:64px;
  width:auto;
}

.nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-left:auto;
}
.nav a{
  color:var(--fg);
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px;
}
.nav a:hover{ background:var(--brand-ghost); }

.hero{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
  margin-top:16px;
  text-align:center;
}

h1{ margin:0 0 8px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.sub{ color:var(--muted); margin:0 0 20px; }

.ctas{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

button,.btn{
  appearance:none;
  border:none;
  border-radius:10px;
  padding:12px 18px;
  font-size:16px;
  cursor:pointer;
  background:var(--brand);
  color:white;
  box-shadow:var(--shadow);
}
.btn:hover,button:hover{ filter:brightness(0.95); }
.btn.secondary{
  background:transparent;
  color:var(--brand);
  border:1px solid var(--brand);
}

.section{
  margin-top:28px;
  display:grid;
  gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

.card h3{ margin-top:0; }
.muted{ color:var(--muted); }

pre{
  background:var(--brand-ghost);
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px;
  overflow-x:auto;
  white-space:pre-wrap;
  word-break:break-word;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  margin:12px 0;
}

.docs-section{
  grid-template-columns:1fr;
}

.docs-section table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0;
  font-size:.95rem;
}

.docs-section th,
.docs-section td{
  border:1px solid var(--border);
  padding:8px 10px;
  text-align:left;
  vertical-align:top;
}

.docs-section details{
  margin:12px 0;
}

.docs-section details summary{
  cursor:pointer;
  font-weight:600;
  margin-bottom:6px;
}

.contact-form{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:12px;
}

.contact-form label{
  font-weight:600;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px;
  font-size:1rem;
  font-family:inherit;
  background:white;
  box-shadow:inset 0 1px 2px rgba(15,23,42,0.06);
}

.contact-form textarea{
  resize:vertical;
  min-height:160px;
}

textarea{
  width:100%;
  max-width:100%;
  min-width:0;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px;
  background:white;
  box-shadow:inset 0 1px 2px rgba(15,23,42,0.06);
}

.footer{
  text-align:center;
  color:var(--muted);
  padding:28px 0 16px;
  font-size:.9rem;
}

.badge-ok{ color:var(--ok); font-weight:600; }
.badge-fail{ color:var(--fail); font-weight:600; }

/* Utility */
.center{ text-align:center; }

@media (max-width:640px){
  .container{ padding:16px; }
  .section{ grid-template-columns:1fr; }
  .nav{ width:100%; margin-left:0; padding-top:6px; }
  .nav a{ padding:6px 10px; }
  .card{ padding:16px; }
  .brand-mark{ height:40px; }
  textarea{ height:200px; }
  .results-card{ padding:16px; }
}


.results-card{
  margin-top:16px;
  padding:18px;
}

.results-card[hidden]{
  display:none;
}

.result-header{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.result-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  font-weight:600;
  font-size:.9rem;
}

.result-badge--ok{
  background:rgba(17,138,0,0.12);
  color:var(--ok);
}

.result-badge--fail{
  background:rgba(192,28,40,0.12);
  color:var(--fail);
}

.result-chip{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  margin-left:6px;
  border-radius:999px;
  background:var(--brand-ghost);
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:0.04em;
}

.result-section{
  margin-top:12px;
}

.result-section h3{
  margin:0 0 6px;
  font-size:1rem;
}

.result-section ul{
  margin:0;
  padding-left:18px;
}

.result-section li{
  margin-bottom:4px;
}

.results-card details{
  margin-top:12px;
}

.results-card summary{
  cursor:pointer;
  font-weight:600;
}
