:root {
  --ink: #0a2540;
  --ink-soft: #425466;
  --paper: #f6f9fc;
  --surface: #ffffff;
  --line: #e6ebf1;
  --line-strong: #c9d4e3;
  --link: #3b2fc9;
  --link-deep: #2e23a8;
  --button: #4338ca;
  --button-deep: #3b2fc9;
  --moss: #0f6b4a;
  --moss-bg: #e7f6ef;
  --clay: #8d2f2a;
  --clay-bg: #fdecec;
  --footer: #0a2540;
  --footer-text: #d6e2f0;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;
  --space-7: 4rem;
  --space-8: 5.5rem;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(10, 37, 64, 0.06), 0 1px 2px rgba(10, 37, 64, 0.04);
  --site: 74rem;
  --content: 44rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-deep); }

:focus-visible { outline: 2px solid var(--button); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: 8px;
}
.skip:focus { top: 0.5rem; }

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

.header-inner {
  max-width: var(--site);
  margin: 0 auto;
  min-height: 4.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 10px;
  transition: transform 180ms ease;
}
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.04); }

.brand-word {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand-word span { color: var(--link); }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.nav-burger > span:first-child,
.nav-burger > span:first-child::before,
.nav-burger > span:first-child::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  content: "";
  transition: transform 160ms ease;
}
.nav-burger > span:first-child::before { position: absolute; top: -5px; }
.nav-burger > span:first-child::after { position: absolute; top: 5px; }
.nav-burger[aria-expanded="true"] > span:first-child { background: transparent; }
.nav-burger[aria-expanded="true"] > span:first-child::before { top: 0; transform: rotate(40deg); }
.nav-burger[aria-expanded="true"] > span:first-child::after { top: 0; transform: rotate(-40deg); }

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

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav a:hover { color: var(--ink); background: #eef2ff; }
.nav a[aria-current="page"] { color: var(--link-deep); background: #eef2ff; }

.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--site);
  margin: 0 auto;
  padding: var(--space-8) 1.5rem var(--space-7);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  gap: var(--space-7);
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2 { font-family: var(--serif); }

.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.lede, .hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.hero-aside {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem 1.1rem;
  backdrop-filter: blur(8px);
}
.hero-aside ol { list-style: none; margin: 0; padding: 0; }
.hero-aside li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.hero-aside li:last-child { border-bottom: 0; }
.hero-aside span { color: var(--link); font-family: var(--mono); font-size: 0.75rem; }

.container { max-width: var(--site); margin: 0 auto; padding: 0 1.5rem; }

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding: var(--space-7) 0 var(--space-5);
}
.section-intro h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.section-intro p { margin: 0; color: var(--ink-soft); max-width: 28rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  padding-bottom: var(--space-8);
}
.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.25rem;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:nth-child(4),
.card:nth-child(5) { grid-column: span 3; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(50, 50, 168, 0.12);
  color: inherit;
}

.guide-list {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  max-width: 46rem;
}
.guide-list li {
  border-top: 1px solid var(--line);
}
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.2rem 1.25rem;
  padding: 1.15rem 0;
  color: inherit;
  text-decoration: none;
  text-align: left;
}
.guide-list a:hover { color: inherit; }
.guide-list .kicker { margin: 0.2rem 0 0; }
.guide-list strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.guide-list span:last-child { grid-column: 2; color: var(--ink-soft); }
.card-index { font-family: var(--mono); font-size: 0.75rem; color: var(--link); letter-spacing: 0.08em; }
.kicker {
  margin: 1rem 0 0.4rem;
  color: var(--link);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card p { margin: 0; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: 1.25rem; color: var(--link); font-weight: 700; }

.content {
  max-width: calc(var(--content) + 3rem);
  margin: 2.5rem auto var(--space-8);
  padding: 2.5rem 2rem 3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.article-header { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.article-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--ink-soft); font-family: var(--mono); font-size: 0.75rem; }
.article-meta span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.7rem; }

.affiliate-disclosure,
.callout {
  background:
    linear-gradient(180deg, #f7f5ff 0%, #f4f8fc 100%) padding-box,
    linear-gradient(90deg, #635bff, #38bdf8, #a855f7) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 1.15rem 2rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

p.affiliate-disclosure.affiliate-note {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 0 0;
  margin: 0 0 1.25rem;
  color: #516070;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
}
.affiliate-disclosure strong, .callout strong { display: block; margin-bottom: 0.25rem; }

h2 { margin: 2.75rem 0 0.8rem; font-size: clamp(1.45rem, 2.4vw, 1.85rem); letter-spacing: -0.03em; line-height: 1.2; }
h3 { margin: 1.5rem 0 0.45rem; font-size: 1.15rem; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
.content ul, .content ol { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.content li { margin: 0.35rem 0; }
.content li::marker { color: var(--link); }
code { font-family: var(--mono); font-size: 0.86em; background: #eef2ff; padding: 0.1em 0.35em; border-radius: 6px; }

.step { display: flex; gap: 0.75rem; align-items: baseline; }
.step::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #635bff, #38bdf8);
  flex: none;
  transform: translateY(-0.1rem);
}

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0 1.75rem; }
.pros, .cons { padding: 1.25rem; border-radius: 14px; border: 1px solid var(--line); }
.pros { background: var(--moss-bg); }
.cons { background: var(--clay-bg); }
.pros h3, .cons h3 { margin-top: 0; }
.pros h3.subhead, .cons h3.subhead { margin-top: 1.5rem; }
.pros ul, .cons ul { list-style: none; margin: 0; padding: 0; }
.pros li, .cons li { position: relative; padding: 0.4rem 0 0.4rem 1.3rem; }
.pros li::before, .cons li::before { position: absolute; left: 0; font-weight: 700; }
.pros li::before { content: "+"; color: var(--moss); }
.cons li::before { content: "–"; color: var(--clay); }

.table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
table { width: 100%; min-width: 36rem; border-collapse: collapse; margin: 0; }
caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1rem 0.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
th, td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th {
  background: #eef2ff;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 140ms ease; }
tbody tr:hover td { background: #f8faff; }

.internal-links { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.internal-links h3 { margin-top: 0; }
.internal-links ul { list-style: none; margin: 0; padding: 0; }
.internal-links li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.internal-links li:last-child { border-bottom: 0; }
.sources {
  max-width: 40rem;
  margin: 2.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.sources h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink-soft);
}

.sources p,
.sources li {
  margin: 0 0 0.55rem;
  color: #516070;
  font-size: 0.875rem;
  line-height: 1.5;
}

.sources ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  text-align: left;
}

.sources p:last-child,
.sources li:last-child { margin-bottom: 0; }

.affiliate-note {
  max-width: 40rem;
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #516070;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
}

.home-sources {
  max-width: none;
  margin: 0;
  padding: 0.5rem 0 3.5rem;
  border-top: 0;
  text-align: center;
}

.home-sources .container {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--button);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(67, 56, 202, 0.25);
  transition: transform 160ms ease, background-color 160ms ease;
}
.btn:hover { background: var(--button-deep); color: #fff; transform: translateY(-1px); }
.signup { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1.25rem 0 1.75rem; }
.hero .signup { margin-top: 1.5rem; }
.signup .btn { margin: 0; }
.signup-note { color: var(--ink-soft); font-size: 0.92rem; }

.footer { background: var(--footer); color: var(--footer-text); padding: 3rem 0 2.5rem; }
.footer-inner {
  max-width: var(--site);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
.footer .brand { margin: 0 0 0.75rem; color: #fff; }
.footer .brand-word span { color: #c7d2fe; }
.footer p { margin: 0; color: var(--footer-text); font-size: 0.95rem; max-width: 36rem; }
.footer .fine { margin-top: 0.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-content: start; justify-content: flex-end; }
.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .hero-inner, .footer-inner, .pros-cons, .section-intro { grid-template-columns: 1fr; display: grid; }
  .section-intro { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .cards { grid-template-columns: 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
  .content { margin: 1.25rem 1rem 3rem; padding: 1.5rem 1.1rem 2rem; }
}

@media (max-width: 860px) {
  .nav-burger { display: grid; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
  .nav a { width: 100%; }
  .nav.is-open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .btn:hover, .brand:hover .brand-mark { transform: none; }
}
