:root {
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --accent-light: #eff6ff;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 780px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER ---------- */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,.92);
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.logo {
  font-size: 1.15rem; font-weight: 700; text-decoration: none; color: var(--text);
  letter-spacing: -0.3px;
}
.logo span { color: var(--accent); }
nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 500; padding: 6px 12px;
  border-radius: 20px; transition: all .15s;
}
nav a:hover { color: var(--accent); background: var(--accent-light); }
nav a.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }

/* ---------- MAIN CONTENT ---------- */
main { padding: 36px 0 56px; }
article {
  background: var(--bg); border-radius: var(--radius);
  padding: 40px; border: 1px solid var(--border);
  margin-bottom: 24px;
}
article:last-child { margin-bottom: 0; }

/* ---------- TYPOGRAPHY ---------- */
h1 {
  font-size: 1.75rem; color: var(--text); margin-bottom: 16px;
  line-height: 1.25; font-weight: 700; letter-spacing: -0.5px;
}
h2 {
  font-size: 1.25rem; color: var(--text); margin: 32px 0 14px;
  line-height: 1.3; font-weight: 600; letter-spacing: -0.3px;
}
h3 {
  font-size: 1.05rem; color: var(--text); margin: 24px 0 10px; font-weight: 600;
}
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ol, ul { margin: 0 0 16px 24px; }
ol li, ul li { margin-bottom: 8px; }

/* ---------- CODE / INLINE ---------- */
code {
  background: var(--bg-alt); padding: 2px 6px; border-radius: 4px;
  font-size: .88rem; color: var(--accent); border: 1px solid var(--border);
}

/* ---------- TABLES ---------- */
table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem; }
table th, table td { border: 1px solid var(--border); padding: 12px 16px; text-align: left; }
table th {
  background: var(--bg-alt); color: var(--text); font-weight: 600;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .5px;
}
table tr:nth-child(even) { background: var(--bg-alt); }
.status-table td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- BUTTONS ---------- */
.cta-btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 30px; font-weight: 600;
  text-decoration: none; font-size: .95rem; text-align: center;
  transition: all .15s; border: none; cursor: pointer; margin: 4px 8px 4px 0;
}
.cta-btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.cta-btn--outline {
  background: var(--bg); color: var(--accent); border: 2px solid var(--accent);
}
.cta-btn--outline:hover { background: var(--accent); color: #fff; }
.cta-btn--white {
  background: var(--bg); color: var(--accent); font-weight: 600;
}
.cta-btn--white:hover { background: var(--bg-alt); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; align-items: center; }

/* ---------- COMPONENTS ---------- */
.disclaimer {
  background: var(--danger-bg); border-left: 4px solid var(--danger);
  padding: 14px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; font-size: .84rem; color: var(--danger);
}
.disclaimer strong { display: block; margin-bottom: 4px; color: var(--danger); }

.steps {
  list-style: none; margin: 20px 0; padding: 0; counter-reset: step;
}
.steps li {
  counter-increment: step; position: relative;
  padding: 16px 0 16px 52px; border-bottom: 1px solid var(--border);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 16px;
  width: 36px; height: 36px; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .85rem;
}

.hero {
  background: var(--bg); border: 1px solid var(--border);
  padding: 56px 36px; text-align: center;
  border-radius: var(--radius); margin-bottom: 24px;
}
.hero h1 { font-size: 2rem; margin-bottom: 12px; }
.hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 24px; }
.hero .cta-row { justify-content: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border);
  transition: border-color .15s;
}
.card:hover { border-color: var(--accent); }
.card h3 { font-size: 1rem; margin: 0 0 8px; color: var(--text); }

.faq-item { margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 22px; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.faq-item h3 { font-size: 1rem; margin: 0 0 8px; color: var(--text); }

.breadcrumbs {
  font-size: .82rem; margin-bottom: 14px; color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.highlight-box {
  background: var(--accent-light); border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm); padding: 18px 24px; margin: 24px 0;
}
.highlight-box strong { color: var(--accent); }

.month-badge {
  display: inline-block; background: var(--accent-light); color: var(--accent);
  padding: 4px 14px; border-radius: 20px; font-size: .78rem; font-weight: 600;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 40px 0; font-size: .82rem; text-align: center;
  margin-top: 40px; color: var(--text-muted);
}
footer a { color: var(--text); font-weight: 500; }
footer p { margin-bottom: 6px; }
footer .footer-links { margin-top: 16px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  article { padding: 24px 20px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .hero { padding: 36px 20px; }
  .hero h1 { font-size: 1.5rem; }
  nav { gap: 2px; }
  nav a { font-size: .74rem; padding: 4px 8px; }
}

/* ---------- ACCESSIBILITY ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--accent); color: #fff; padding: 8px 16px; z-index: 200; }
.skip-link:focus { top: 0; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
