:root {
  --brand: #2f6bb2;
  --brand-dark: #24548c;
  --ink: #1b2733;
  --muted: #46586a;
  --bg: #ffffff;
  --bg-alt: #f2f6fb;
  --border: #d7e1ec;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

img { max-width: 100%; height: auto; }

section[id], footer[id] { scroll-margin-top: 5rem; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--brand-dark); }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand img { display: block; height: 40px; width: auto; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}

.nav-list a:hover { background: var(--bg-alt); color: var(--brand-dark); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.nav-toggle-icon { font-size: 1.1rem; line-height: 1; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 1rem;
}

.hero .lead {
  max-width: 46rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary { background: #fff; color: var(--brand-dark); }
.btn-primary:hover { background: #e8f0fa; }

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 1rem;
  color: var(--brand-dark);
}

h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }

.section p { max-width: 60rem; color: var(--muted); }
.section p strong { color: var(--ink); }

/* Pill list */
.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Cards & grids */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 { color: var(--brand-dark); }
.card p { margin: 0; font-size: 0.95rem; }

.grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
}

.steps > li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  position: relative;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.4rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 { color: var(--brand-dark); }
.steps ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }

.highlight {
  background: var(--bg-alt);
  border-left: 4px solid var(--brand);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #dbe5ee;
  padding: 3rem 0 2rem;
}

.site-footer h2 { color: #fff; }
.site-footer h3 { color: #fff; margin-top: 1rem; }
.site-footer a { color: inherit; }
.site-footer address { font-style: normal; }

.footer-note { margin-top: 2rem; border-top: 1px solid #38495a; padding-top: 1rem; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile navigation */
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }

  .site-header nav {
    display: none;
    width: 100%;
  }

  .site-header.nav-open nav { display: block; }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
  }

  .nav-list a {
    padding: 0.85rem 0.75rem;
    min-height: 44px;
  }

  section[id], footer[id] { scroll-margin-top: 4.5rem; }
}

@media (max-width: 600px) {
  .grid-4, .grid-3, .two-col { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0; }
  .hero .lead { font-size: 1rem; }

  .container { padding: 0 1rem; }

  .card { padding: 1.25rem; }

  .steps > li {
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    padding-top: 3.6rem;
  }

  .steps > li::before {
    left: 1.25rem;
    top: 1.1rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 20rem;
    text-align: center;
  }

  .pill-list li { font-size: 0.9rem; }

  .site-footer { padding: 2rem 0 1.5rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.75rem; }
  .brand img { height: 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link { transition: none; }
}
