:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #eef1f5;
  --text: #14181f;
  --muted: #5a6473;
  --border: #dde2e9;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --overdue: #b42318;
  --overdue-bg: #fde8e7;
  --soon: #9a5b00;
  --soon-bg: #fff1d6;
  --upcoming: #1f5fbf;
  --upcoming-bg: #e3edfb;
  --ok: #1d7a46;
  --ok-bg: #e2f4ea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.06), 0 8px 24px rgba(20, 24, 31, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1217;
    --surface: #171b22;
    --surface-alt: #13171d;
    --text: #e8ebf0;
    --muted: #9aa4b2;
    --border: #2a303a;
    --accent: #5b9bf0;
    --accent-text: #0f1217;
    --overdue: #ff8a80;
    --overdue-bg: #3a1714;
    --soon: #f5c26b;
    --soon-bg: #3a2a10;
    --upcoming: #8fb8f5;
    --upcoming-bg: #16253b;
    --ok: #7fd6a2;
    --ok-bg: #12301f;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1217;
  --surface: #171b22;
  --surface-alt: #13171d;
  --text: #e8ebf0;
  --muted: #9aa4b2;
  --border: #2a303a;
  --accent: #5b9bf0;
  --accent-text: #0f1217;
  --overdue: #ff8a80;
  --overdue-bg: #3a1714;
  --soon: #f5c26b;
  --soon-bg: #3a2a10;
  --upcoming: #8fb8f5;
  --upcoming-bg: #16253b;
  --ok: #7fd6a2;
  --ok-bg: #12301f;
  --shadow: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); box-shadow: inset 0 -6px 0 rgba(0,0,0,0.18); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.header-inner .btn-small { margin-left: auto; }
@media (min-width: 820px) {
  .nav { display: flex; }
  .header-inner .btn-small { margin-left: 0; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px;
  background: var(--accent); color: var(--accent-text);
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } .hero { padding: 88px 0 96px; } }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* Due-list panel */
.panel {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.panel-sub { font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.due-list { list-style: none; margin: 0; padding: 0; }
.due-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.due-list li:last-child { border-bottom: 0; }
.reg { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.dept { grid-column: 1; grid-row: 2; font-size: 0.85rem; color: var(--muted); }
.pill { grid-column: 2; grid-row: 1 / span 2; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-overdue { color: var(--overdue); background: var(--overdue-bg); }
.pill-soon { color: var(--soon); background: var(--soon-bg); }
.pill-upcoming { color: var(--upcoming); background: var(--upcoming-bg); }
.pill-ok { color: var(--ok); background: var(--ok-bg); }
.panel figcaption { padding: 10px 20px; font-size: 0.8rem; color: var(--muted); background: var(--surface-alt); border-top: 1px solid var(--border); }

/* Sections */
.section, .band { padding: 64px 0; }
@media (min-width: 900px) { .section, .band { padding: 88px 0; } }
.band, .section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid-3 { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p, .features p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.features { gap: 28px 32px; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 24px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { display: flex; gap: 16px; }
.steps p { color: var(--muted); margin: 0; }
.step-n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--upcoming-bg); color: var(--accent);
}

.pricing { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr; gap: 56px; } }
.checklist { list-style: none; margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.checklist li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

.faq { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.final-inner { text-align: center; }
.final-inner .lede { margin: 0 auto 24px; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner a { color: var(--muted); }
