:root {
  --ink: #172033;
  --muted: #5c677c;
  --line: #dfe5ee;
  --paper: #efefef;
  --wash: #f5f7fb;
  --accent: #2457d6;
  --accent2: #0f7a67;
  --warm: #fff8e8;

  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.09);
}

/* ========================================
   Reset / Base
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

.wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: auto;
}

/* ========================================
   Accessibility
======================================== */

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Header / Navigation
======================================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent2)
  );
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 15px;
  color: #fff !important;
  background: var(--accent);
  border-radius: 999px;
}

.menu-btn {
  display: none;
  padding: 8px 10px;
  font: inherit;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* ========================================
   Hero
======================================== */

.hero {
  padding: 84px 0 62px;
  background:
    radial-gradient(
      circle at 90% 10%,
      #e9f2ff 0,
      transparent 32%
    ),
    radial-gradient(
      circle at 10% 0,
      #ecfbf7 0,
      transparent 30%
    );
}

.eyebrow {
  color: var(--accent2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ========================================
   Typography
======================================== */

h1,
h2,
h3 {
  margin: 0 0 0.7em;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0.2em 0 1.1em;
}

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* ========================================
   Buttons / Actions
======================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.btn.primary {
  color: #fff;
  background: var(--accent);
}

.btn.secondary {
  color: var(--accent);
  background: #fff;
}

/* ========================================
   Trust / Pills / Tags
======================================== */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.pill {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 650;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tag {
  display: inline-block;
  margin: 4px 5px 4px 0;
  padding: 4px 9px;
  color: #244caa;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eef3ff;
  border-radius: 999px;
}

/* ========================================
   Sections
======================================== */

.section {
  padding: 68px 0;
}

.section.alt {
  background: var(--wash);
}

.section.compact {
  padding: 38px 0;
}

/* ========================================
   Grids
======================================== */

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ========================================
   Cards
======================================== */

.card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card.shadow {
  box-shadow: var(--shadow);
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent);
}

.kicker {
  color: var(--accent2);
  font-size: 0.87rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========================================
   Answer / Note / Callout Boxes
======================================== */

.answer-box {
  margin: 24px 0 34px;
  padding: 20px 22px;
  font-size: 1.08rem;
  background: #f1fbf8;
  border-left: 5px solid var(--accent2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note {
  padding: 20px;
  background: var(--warm);
  border: 1px solid #f0dfb2;
  border-radius: var(--radius);
}

.callout {
  margin: 25px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ========================================
   Lists
======================================== */

.checklist {
  padding-left: 1.15rem;
}

.checklist li {
  margin: 0.55rem 0;
}

/* ========================================
   Breadcrumbs
======================================== */

.breadcrumbs {
  padding: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: inherit;
}

/* ========================================
   Article Layout
======================================== */

.article-wrap {
  display: grid;
  grid-template-columns:
    minmax(0, 780px)
    minmax(220px, 1fr);
  gap: 52px;
  align-items: start;
}

.article h2 {
  margin-top: 1.55em;
}

.article h3 {
  margin-top: 1.45em;
}

.article ul,
.article ol {
  padding-left: 1.35rem;
}

.article li {
  margin: 0.48rem 0;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}

/* ========================================
   Table of Contents
======================================== */

.toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

/* ========================================
   Sources
======================================== */

.sources {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.sources li {
  margin: 0.5rem 0;
}

/* ========================================
   Pricing
======================================== */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.featured {
  position: relative;
  border: 2px solid var(--accent);
}

.featured::before {
  content: "Most complete";
  position: absolute;
  top: -13px;
  right: 18px;
  padding: 4px 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--accent);
  border-radius: 999px;
}

/* ========================================
   Process Steps
======================================== */

.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  margin: 24px 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
}

/* ========================================
   CTA Band
======================================== */

.cta-band {
  padding: 38px;
  color: #fff;
  background: var(--ink);
  border-radius: 28px;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #d9e2f3;
}

.cta-band .btn.secondary {
  border-color: #fff;
}

/* ========================================
   FAQ
======================================== */

.faq details {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

/* ========================================
   Search / Filter
======================================== */

.filter {
  width: 100%;
  margin: 16px 0 26px;
  padding: 14px 16px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ========================================
   Forms
======================================== */

form {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  font: inherit;
  border: 1px solid #cbd3df;
  border-radius: 10px;
}

.field textarea {
  min-height: 140px;
}

.hp {
  position: absolute;
  left: -10000px;
}

/* ========================================
   Tables
======================================== */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--wash);
}

/* ========================================
   Code
======================================== */

code {
  padding: 0.12em 0.35em;
  background: #f1f3f7;
  border-radius: 5px;
}

/* ========================================
   Metrics
======================================== */

.metric {
  font-size: 2.15rem;
  font-weight: 900;
}

/* ========================================
   Footer
======================================== */

footer {
  margin-top: 70px;
  color: #d7deec;
  background: #10182a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-grid a {
  color: #d7deec;
}

.footer-bottom {
  padding: 18px 0;
  color: #9ca8be;
  font-size: 0.9rem;
  border-top: 1px solid #2a344a;
}

/* ========================================
   Tablet
======================================== */

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

  .article-wrap {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 18px;
    right: 18px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}

/* ========================================
   Mobile
======================================== */

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .pricing,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .section {
    padding: 52px 0;
  }

  .cta-band {
    padding: 28px;
  }

  .nav {
    min-height: 64px;
  }

  .article-wrap {
    gap: 28px;
  }
}

/* ========================================
   Reduced Motion
======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}