:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #121212;
  --muted: #5c6370;
  --line: #e4e6ea;
  --red: #fa0401;
  --red-deep: #d10300;
  --red-wash: #fff1f0;
  --lime: #c6e04a;
  --lime-ink: #1a2600;
  --teal: #0e8f90;
  --footer: #141414;
  --footer-muted: #a3a8b0;
  --shadow: 0 8px 24px rgb(18 18 18 / 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "IBM Plex Mono", monospace;
  --max: 1120px;
  --radius: 16px;
  --header: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

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

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.75rem);
  margin-top: 40px;
}

h3 {
  font-size: 1.05rem;
  margin-top: 24px;
}

p,
li {
  text-wrap: pretty;
}

button,
.btn {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 8px 16px;
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

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

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 12px;
}

.topbar p {
  margin: 0;
}

.age {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header);
}

.wordmark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.wordmark img {
  height: 28px;
  width: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--red-wash);
  color: var(--red);
}

.header-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(250 4 1 / 0.22);
}

.btn:hover {
  background: var(--red-deep);
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  box-shadow: none;
}

.btn-line {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #d7dbe1;
}

.btn-line:hover {
  background: var(--bg);
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cta-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
  padding: 36px 0 8px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.kicker span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
}

.hero-lede {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.fact-sheet {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fact-sheet-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.fact-sheet-brand img {
  height: 26px;
  width: auto;
}

.fact-sheet dl {
  margin: 0;
  padding: 8px 8px 8px;
}

.fact-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 12px 10px;
  border-top: 1px solid var(--line);
}

.fact-row dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.fact-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.92em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d6b12;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1d9a3a;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}

.stat {
  padding: 16px;
  background: var(--surface);
  border-radius: 14px;
}

.stat b {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  padding: 28px 0 8px;
}

.toc {
  position: sticky;
  top: calc(var(--header) + 16px);
  align-self: start;
}

.toc p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.prose {
  min-width: 0;
}

.prose > p,
.page-copy > p {
  margin: 0 0 14px;
}

.card {
  padding: 8px 28px 28px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.page-head {
  padding: 32px 0 8px;
}

.page-head .hero-lede {
  font-size: 17px;
}

.breadcrumb {
  margin-bottom: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #b7bdc6;
}

.breadcrumb a {
  text-decoration: none;
}

.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--red-wash);
}

.callout p {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.steps {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 44px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pro,
.con {
  padding: 16px 16px 8px;
  border-radius: 14px;
  background: var(--bg);
}

.pro h3,
.con h3 {
  margin-top: 0;
}

.pro ul,
.con ul,
.prose ul,
.page-copy ul {
  margin: 0 0 16px;
  padding-left: 18px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin: 0 0 14px;
  color: var(--muted);
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}

.related a::after {
  content: "→";
  color: var(--red);
}

.site-footer {
  margin-top: 48px;
  padding: 40px 0 28px;
  background: var(--footer);
  color: #eceff3;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer p {
  color: var(--footer-muted);
  font-size: 14px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.footer-legal p {
  margin: 0 0 6px;
  font-size: 13px;
}

.dock {
  display: none;
}

@media (max-width: 960px) {
  .hero,
  .layout,
  .stats,
  .pros-cons,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: flex;
    gap: 8px 14px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .header-actions {
    display: none;
  }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.96);
    border-top: 1px solid var(--line);
  }

  body {
    padding-bottom: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}
