:root {
  --bg: #ffffff;
  --alt: #f6f8f7;
  --text: #17201c;
  --muted: #5d6b64;
  --border: #dfe6e2;
  --brand: #1a5f3f;
  --brand-text: #ffffff;
  --card: #ffffff;
  color-scheme: light;
  font: 17px/1.6 system-ui, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --alt: #151c19;
    --text: #e8eeeb;
    --muted: #9aa9a1;
    --border: #28332e;
    --brand: #3fa877;
    --brand-text: #07130d;
    --card: #1a2420;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -0.01em; margin-bottom: 1.2rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.spacer { flex: 1; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; align-items: center; gap: 1.25rem; min-height: 60px; }
.logo { font-weight: 700; text-decoration: none; color: var(--brand); font-size: 1.15rem; }
.nav nav { display: flex; gap: 1.1rem; }
.nav-link { text-decoration: none; color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.nav-link:hover { color: var(--text); }
@media (max-width: 720px) { .nav nav { display: none; } }

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-text); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--brand); }
.btn-light { background: #fff; border-color: #fff; color: #17201c; }
.btn-sm { padding: 0.45rem 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }

.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-grid > *, .two-col > * { min-width: 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

.section { padding: 56px 0; }
.alt { background: var(--alt); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

.sample { padding: 1rem; overflow-x: auto; }
.sample-head { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.sample table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.sample th, .sample td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sample th { color: var(--muted); font-weight: 600; }
.sample tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 0.12rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.b-valid { background: #e3f5ea; color: #146c3a; }
.b-invalid { background: #fce8e6; color: #a12b20; }
.b-risky { background: #fff4e0; color: #92600a; }
.b-disposable { background: #f0e6fb; color: #6b3ec9; }
.b-role { background: #e6eefc; color: #1a4fa0; }
.b-unknown { background: #eee; color: #555; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.steps p { color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: var(--brand-text); font-weight: 700; margin-bottom: 0.6rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 1.5rem; } }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.status-list li { display: flex; gap: 0.75rem; align-items: baseline; color: var(--muted); }
.status-list .badge { flex: none; min-width: 8.5rem; text-align: center; }

details { border-bottom: 1px solid var(--border); padding: 0.9rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6rem 0 0; color: var(--muted); }

.cta-band { background: var(--brand); color: var(--brand-text); text-align: center; padding: 56px 0; }
.cta-band h2 { margin-bottom: 1.2rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 2rem 0 1.5rem; }
.plan { display: flex; flex-direction: column; gap: 0.25rem; position: relative; }
.plan ul { padding-left: 1.1rem; margin: 0.5rem 0 1.25rem; flex: 1; }
.plan .btn { text-align: center; }
.featured { border-color: var(--brand); border-width: 2px; }
.tag { position: absolute; top: -0.8rem; left: 1.2rem; background: var(--brand); color: var(--brand-text) !important; font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.6rem; border-radius: 999px; }
.price { font-size: 2.2rem; font-weight: 700; margin: 0; color: var(--text) !important; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.topup { margin-bottom: 2rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.4rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.prose h2 { font-size: 1.25rem; margin-top: 2rem; }

.site-footer { border-top: 1px solid var(--border); padding: 36px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
