/* ── Custom properties ──────────────────────────── */
:root {
  --bg:           #0a1628;
  --surface:      #1e3a5f;
  --surface-alt:  #162d4f;
  --accent:       #f59e0b;
  --accent-hover: #d97706;
  --text:         #e2e8f0;
  --text-muted:   #9aafc4;
  --border:       #2d4a6e;
  --max-w:        760px;
  --radius:       8px;
  --focus-ring:   0 0 0 3px rgba(245,158,11,0.5);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: underline; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 2px; }
ul, ol { padding-left: 1.5rem; }

/* ── Skip link ──────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ── Layout ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Nav ────────────────────────────────────────── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .container {
  display: flex;
  gap: 0.25rem;
  padding-block: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
nav .container::-webkit-scrollbar { display: none; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--text); background: var(--surface-alt); }
nav a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── Sections ───────────────────────────────────── */
section {
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: none; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.2; color: var(--text); }
h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* ── Hero ───────────────────────────────────────── */
#hero {
  padding-block: 4.5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 60%);
}
#hero h1 { margin-bottom: 0.75rem; }
#hero .byline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 52ch;
  margin-inline: auto;
}
.cta-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); color: #000; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: #000; }

/* ── Checklist ──────────────────────────────────── */
#checklist ol { list-style: none; padding: 0; counter-reset: steps; }
#checklist ol li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
#checklist ol li::before {
  content: counter(steps);
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
#checklist ol li strong { display: block; margin-bottom: 0.2rem; }

/* ── Law ────────────────────────────────────────── */
#law .law-block {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
#law .law-block h3 { color: var(--accent); }

/* ── Practices ──────────────────────────────────── */
#practices ul { list-style: none; padding: 0; }
#practices ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
#practices ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
#practices ul li:last-child { border-bottom: none; }

/* ── Resources ──────────────────────────────────── */
#resources .resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s, background 0.15s;
}
.resource-card:hover { border-color: var(--accent); background: var(--surface-alt); }
.resource-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.resource-card .rc-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.resource-card .rc-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ── FAQ ────────────────────────────────────────── */
#faq .faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.25rem;
}
#faq .faq-item:last-child { border-bottom: none; }
#faq .faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
#faq .faq-item p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 0;
}

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-disclaimer {
  max-width: 64ch;
  line-height: 1.6;
}
.footer-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-meta a { color: var(--text-muted); }
.footer-meta a:hover { color: var(--accent); }
.footer-brand { color: var(--text-muted); }
.footer-brand a { color: var(--text-muted); font-weight: 500; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
  section { padding-block: 2.5rem; }
  #hero { padding-block: 3rem; }
  #resources .resource-grid { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 0.4rem; }
}
