/* ========= CSS reset / root palette ========= */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#f7f9fc;
  --card:#ffffff;
  --border:#e2e8f0;
  --text:#1a202c;
  --muted:#6b7280;
  --brand:#2563eb;
  --brand-dark:#1e4fd6;
  --success:#059669;
  --error:#b91c1c;
  font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}
body{background:var(--bg);color:var(--text);line-height:1.5}

/* ========= layout ========= */
.nav{
  display:flex;justify-content:space-between;align-items:center;
  padding:.6rem 1rem;background:#10151a;color:#fff;
}
.brand{font-weight:600;font-size:1.1rem;letter-spacing:.2px}
.nav-actions{display:flex;align-items:center;gap:.8rem}
.addr{max-width:240px;overflow:hidden;text-overflow:ellipsis;font-size:.84rem}
.mono{font-family:ui-monospace,Consolas,monospace}
.small{font-size:.85rem}
.muted{color:var(--muted)}

.hero{text-align:center;padding:2rem 1rem 1.2rem}
.hero h1{font-size:1.7rem;font-weight:700;margin-bottom:.5rem}
.lead{font-size:1.05rem;max-width:680px;margin:0 auto .6rem}

.grid{max-width:820px;margin:0 auto;padding:0 1rem;display:flex;flex-direction:column;gap:1.2rem}
.card{
  background:var(--card);border:1px solid var(--border);border-radius:8px;
  padding:1rem;box-shadow:0 2px 6px rgba(0,0,0,.04)
}
.card h2{font-size:1.1rem;margin-bottom:.7rem}
.section{max-width:820px;margin:2rem auto;padding:0 1rem}
.section.alt{background:var(--card);padding:1.4rem;border:1px solid var(--border);border-radius:8px}
.section h2{font-size:1.2rem;margin-bottom:.8rem}

/* ========= components ========= */
.btn{
  cursor:pointer;border:0;border-radius:4px;background:var(--brand);
  color:#fff;padding:.45rem 1rem;font-size:.9rem;
}
.btn:hover{background:var(--brand-dark)}
.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.3)}
.btn-ghost:hover{background:rgba(255,255,255,.06)}

.pill{
  display:inline-block;background:var(--brand-dark);color:#fff;
  padding:.25rem .6rem;border-radius:9999px;font-size:.78rem;
}
.pill-list{display:flex;flex-wrap:wrap;gap:.5rem}

.result{margin-top:.8rem;font-size:.9rem}
.result div{margin-bottom:.2rem}
details summary{cursor:pointer;user-select:none;margin:.4rem 0}

.live{list-style:none;font-size:.82rem;max-height:240px;overflow-y:auto}
.live li{padding:.25rem 0;border-bottom:1px solid var(--border)}

.steps{margin-top:.4rem;padding-left:1.2rem}
.steps li{margin-bottom:.4rem}

input[type=file]{margin:.5rem 0 .8rem}
code,pre{font-family:ui-monospace,Consolas,monospace;background:#f1f5f9;padding:2px 4px;border-radius:4px}
pre{white-space:pre-wrap}

/* ========= status colors ========= */
#verifyStatus{color:var(--success)}
#verifyStatus.no{color:var(--error)}

/* ========= footer ========= */
footer{padding:2rem 1rem;text-align:center;font-size:.8rem;color:var(--muted)}

/* ========= responsive tweaks ========= */
@media (max-width:480px){
  .nav-actions{gap:.5rem}
  .addr{display:none}
  .hero h1{font-size:1.4rem}
}
