
/* Core design system */
:root {
  --brand: #0B2B4C;
  --accent: #1F6FEB;
  --ink: #0A0F1C;
  --muted: #5A6B7C;
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --ring: rgba(31, 111, 235, 0.4);
  --success: #0A7E3D;
  --warning: #B45309;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(31,111,235,.08), transparent 60%), var(--bg);
  line-height: 1.6;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; clip: rect(0 0 0 0); overflow: hidden; }
.skip-link { position: absolute; left: -1000px; top: 8px; background: var(--brand); color: #fff; padding: .5rem .75rem; border-radius: .375rem; z-index: 1000; }
.skip-link:focus { left: 8px; outline: 3px solid #fff; }

.container { width: min(1100px, 92%); margin: 0 auto; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.125rem; color: var(--ink); }

/* Header */
.site-header {
  background: linear-gradient(180deg, #0B2B4C, #0B2B4C 68%, rgba(11,43,76,.94));
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.12);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; font-weight: 700; letter-spacing: .2px; }
.brand-name { font-size: 1.1rem; }
.menu-toggle { margin-left: auto; display: none; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; padding: .5rem .75rem; border-radius: .5rem; }
.site-nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 1rem; }
.site-nav a { color: #fff; text-decoration: none; padding: .5rem .25rem; border-radius: .375rem; }
.site-nav a:hover, .site-nav a:focus { background: rgba(255,255,255,.12); outline: none; }
.notice { background: rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.14); }
.notice p { margin: 0; padding: .5rem 0; text-align: center; }

/* Hero */
.hero { padding: 2.5rem 0 1.5rem; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; }
.hero h1 { color: #fff; margin: 0 0 .5rem; letter-spacing: .2px; }
.hero .lede { color: #E5EDF6; margin: 0 0 1rem; }
#guide-search { width: 100%; padding: .875rem 1rem; border-radius: .75rem; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.9); }
#guide-search:focus { outline: none; box-shadow: 0 0 0 .22rem var(--ring); border-color: var(--accent); }
.hero-art { display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }

/* Cards */
.section-title { margin: 2rem 0 1rem; font-size: 1.25rem; color: var(--brand); }
.cards { padding: 1rem 0 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: .875rem;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.06); }
.card h3 { margin-top: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover, .card h3 a:focus { color: var(--accent); outline: none; }
.card-meta { color: var(--muted); }

/* Trust */
.trust { padding-bottom: 3rem; }
.trust-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.icon-circle {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; margin-bottom: .5rem;
}
.icon-circle svg { width: 28px; height: 28px; }

/* Prose pages */
.prose { padding: 2rem 0 3rem; }
.prose h1 { color: var(--brand); }
.prose h2 { margin-top: 1.25rem; }
.prose a { color: var(--accent); }
.prose .callout { padding: 1rem; border-radius: .75rem; border: 1px solid #e5e7eb; background: #fff; }
.callout.warning { border-color: #F59E0B; background: #FFF7ED; }
.compare { border-collapse: collapse; width: 100%; background: #fff; }
.compare th, .compare td { border: 1px solid #e5e7eb; padding: .6rem .7rem; }
.compare thead th { background: #f3f4f6; }

/* Footer */
.site-footer {
  background: #0B2B4C;
  color: #E5EDF6;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.site-footer a { color: #E5EDF6; }
.footer-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1.3fr 1fr; } }
.footer-title { margin: 0 0 .5rem; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.copyright { margin-top: 1rem; border-top: 1px dashed rgba(255,255,255,.25); padding-top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; border: none; border-radius: .625rem; padding: .6rem 1rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(31,111,235,.22);
}
.btn:hover { filter: brightness(1.04); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid #e5e7eb; box-shadow: none; }

/* Consent banner */
.consent-banner { position: fixed; inset: auto 0 0 0; background: rgba(255,255,255,.96); border-top: 1px solid #e5e7eb; padding: .75rem 0; }
.consent-inner { width: min(1100px, 92%); margin: 0 auto; display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.consent-actions { display: flex; gap: .5rem; }

/* Forms */
input[type="search"] {
  font: inherit;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #0f172a;
    --ink: #e5e7eb;
    --muted: #9aa4b2;
    --brand: #1e293b;
  }
  body { background: radial-gradient(1200px 600px at 70% -10%, rgba(31,111,235,.18), transparent 60%), var(--bg); }
  .card { border-color: #243043; }
  .compare th, .compare td { border-color: #243043; }
  .compare thead th { background: #121a2c; }
  .site-header { background: linear-gradient(180deg, #111827, #0B2B4C 110%); }
  .site-footer { background: #111827; color: #c9d6e4; }
  .footer-title, .section-title, .prose h1 { color: #c9d6e4; }
  .notice { background: rgba(255,255,255,.06); }
}

/* Responsive nav */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; background: rgba(255,255,255,.06); padding: .75rem; border-radius: .5rem; }
}

/* Focus styles */
:focus { outline: none; }
a:focus, button:focus, input:focus {
  box-shadow: 0 0 0 .22rem var(--ring);
  border-radius: .375rem;
}

/* Print */
@media print {
  .site-header, .site-footer, .notice, .hero, .consent-banner { display: none !important; }
  body { background: #fff; color: #000; }
}
