:root {
  --ink: #111827;
  --muted: #5f6b7f;
  --line: #e1e6ef;
  --soft: #f6f8fb;
  --soft-violet: #f5f3ff;
  --primary: #5548e7;
  --primary-dark: #4035c7;
  --green: #14804a;
  --amber: #b45309;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(25, 34, 56, .08);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --motion-fast: 140ms;
  --motion-ui: 200ms;
  --focus-ring: 0 0 0 3px rgba(85,72,231,.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
a { color: var(--primary); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(225, 230, 239, .94);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > a,
.nav-menu > summary {
  color: #465166;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.site-nav > a:hover,
.nav-menu > summary:hover,
.site-nav [aria-current="page"] { color: var(--primary); }
.nav-menu { position: relative; }
.nav-menu[open] > summary::after { transform: rotate(225deg); margin-bottom: 0; }
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 50;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: 24px 0;
  transition: opacity var(--motion-ui) var(--ease-out), transform var(--motion-ui) var(--ease-out);
}
@starting-style {
  .nav-menu[open] .nav-menu-panel { opacity: 0; transform: translateY(-6px) scale(.98); }
}
.nav-menu-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 5px;
  color: #465166;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.nav-menu-panel a:first-child { color: var(--primary); background: var(--soft-violet); }
.nav-menu-panel a:hover { background: var(--soft); color: var(--primary); }
.product-menu-panel { width: 310px; }
.product-menu-panel a { padding: 11px 12px; }
.product-menu-panel strong,
.product-menu-panel small { display: block; }
.product-menu-panel strong { color: var(--ink); font-size: 13px; }
.product-menu-panel small { margin-top: 3px; color: #737e91; font-size: 11px; font-weight: 600; line-height: 1.4; }
.product-menu-panel a:hover strong { color: var(--primary); }
.site-nav .nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
}
.site-nav .nav-cta:hover { background: var(--primary-dark); color: #fff; }

.hero {
  padding: 72px 0 62px;
  border-bottom: 1px solid var(--line);
  background: #fafbff;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 64px; align-items: end; }
.breadcrumb { margin-bottom: 18px; color: #737e91; font-size: 13px; font-weight: 700; }
.breadcrumb a { color: #667085; text-decoration: none; }
.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: 0; }
h1 { max-width: 900px; margin: 0; font-size: 58px; line-height: 1.06; }
.hero-copy { max-width: 780px; margin: 20px 0 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-summary {
  min-width: 0;
  padding: 22px;
  border: 1px solid #dcd8ff;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(54, 47, 153, .07);
}
.hero-summary > strong { display: block; margin-bottom: 8px; font-size: 17px; }
.hero-summary p { margin: 8px 0 12px; color: var(--muted); }
.hero-summary ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.hero-summary a { font-weight: 800; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  touch-action: manipulation;
  transition: color var(--motion-fast) ease-out, background var(--motion-fast) ease-out, border-color var(--motion-fast) ease-out, transform var(--motion-fast) ease-out;
}
.button.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.button:hover { border-color: #b8b2ff; transform: translateY(-1px); }
.button:active { transform: scale(.97); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.content { padding: 46px 0 92px; }
.local-nav {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: -46px 0 56px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}
.local-nav a { flex: 0 0 auto; padding: 7px 11px; border-radius: 5px; color: #657084; text-decoration: none; font-size: 13px; font-weight: 800; }
.local-nav a:hover { color: var(--primary); background: var(--soft-violet); }
.section { margin-top: 74px; scroll-margin-top: 138px; }
.section:first-child,
.first-section { margin-top: 0; }
.section h2 { margin: 0 0 14px; font-size: 36px; line-height: 1.18; }
.section > p,
.section-intro p { max-width: 830px; color: var(--muted); }
.section-intro { max-width: 860px; margin-bottom: 26px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--motion-ui) var(--ease-out), box-shadow var(--motion-ui) var(--ease-out), transform var(--motion-ui) var(--ease-out);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p, .card li { color: var(--muted); }
.card ul { margin: 10px 0 0; padding-left: 20px; }
.card strong { color: var(--ink); }
.note { padding: 18px 20px; border-left: 3px solid var(--primary); border-radius: 6px; background: var(--soft-violet); color: #404b60; }
.risk { border-left-color: #d97706; background: #fff8eb; }
.split-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 32px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.split-panel h2 { font-size: 32px; }
.citation { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.citation a { display: inline-block; margin-top: 7px; font-weight: 800; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.fact { min-width: 0; padding: 18px; background: #fff; }
.fact span { display: block; color: #758095; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.fact strong { display: block; margin-top: 5px; font-size: 17px; overflow-wrap: anywhere; }
.steps-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 24px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); list-style: none; overflow: hidden; }
.steps-list li { padding: 22px; background: #fff; }
.steps-list strong { display: block; margin-bottom: 8px; }
.steps-list span { display: block; color: var(--muted); }

.benchmark { margin-top: 28px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.benchmark-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.benchmark-head h3 { margin: 0; font-size: 20px; }
.benchmark-head span { color: var(--muted); font-size: 13px; }
.bar-row { display: grid; grid-template-columns: 190px minmax(120px, 1fr) 72px; align-items: center; gap: 14px; margin: 14px 0; }
.bar-label { font-size: 14px; font-weight: 700; }
.bar-track { height: 10px; border-radius: 3px; background: #e5e7ef; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--primary); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.method { margin-top: 18px; color: #6c7688; font-size: 13px; }
.media-panel { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.media-panel img { width: 100%; max-height: 520px; object-fit: cover; }
.media-caption { padding: 12px 16px; color: var(--muted); font-size: 13px; }
.reference-card { padding: 24px; border: 1px solid #d8ddE8; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 28px rgba(25, 34, 56, .05); }
.reference-card p { max-width: 850px; color: var(--muted); }

.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.public-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.public-table th, .public-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.public-table th { background: var(--soft); color: #39465b; font-size: 13px; }
.public-table td { color: var(--muted); }
.public-table tr:last-child td { border-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 18px 2px; cursor: pointer; font-weight: 800; }
.faq-list p { margin: -3px 0 20px; max-width: 820px; color: var(--muted); }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.flow a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 800; }
.flow small { display: block; margin-bottom: 5px; color: var(--primary); }
.flow a:hover { border-color: #b8b2ff; background: #fafaff; }

.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.resource-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.resource-card > img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid var(--line); }
.resource-card > div { padding: 22px; }
.resource-card span { color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.resource-card h2 { margin: 7px 0 9px; font-size: 25px; }
.resource-card p { color: var(--muted); }
.resource-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.resource-card dl div { padding-top: 10px; border-top: 1px solid var(--line); }
.resource-card dt { color: #7a8495; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.resource-card dd { margin: 3px 0 0; font-weight: 700; }
.resource-card > div > a { font-weight: 800; }
.dataset-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dataset-list-item { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr) 130px; gap: 28px; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.dataset-list-item:last-child { border-bottom: 0; }
.dataset-list-item > div > span { color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.dataset-list-item h2 { margin: 4px 0 5px; font-size: 23px; }
.dataset-list-item p { margin: 0; color: var(--muted); }
.dataset-list-item dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.dataset-list-item dt { color: #7a8495; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.dataset-list-item dd { margin: 3px 0 0; font-size: 13px; font-weight: 700; }
.dataset-list-item > a { justify-self: end; font-weight: 800; text-decoration: none; }

.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 820px); gap: 50px; }
.doc-side { position: sticky; top: 142px; height: max-content; padding-right: 18px; border-right: 1px solid var(--line); }
.doc-side a { display: block; padding: 7px 9px; border-radius: 5px; color: #687386; text-decoration: none; font-size: 13px; font-weight: 700; }
.doc-side a:hover { background: var(--soft); color: var(--primary); }
.prose h2 { margin: 48px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose pre { overflow: auto; padding: 18px; border-radius: 7px; background: #111827; color: #e5e7eb; font: 13px/1.6 ui-monospace, SFMono-Regular, monospace; }
.prose code { font-family: ui-monospace, SFMono-Regular, monospace; }
.section-check { display: grid; grid-template-columns: 180px 1fr; gap: 18px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.section-check span { color: var(--muted); }
.checklist { padding-left: 22px; }
.checklist li { margin: 8px 0; }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); color: #6e788b; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #596579; text-decoration: none; font-weight: 700; font-size: 13px; }

@media (hover: hover) and (pointer: fine) {
  .grid > .card:hover, .resource-card:hover { border-color: #cbc7ff; box-shadow: 0 12px 30px rgba(25,34,56,.08); transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 120ms !important; }
  .button:active, .grid > .card:hover, .resource-card:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .local-nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .site-header, .card, .hero-summary, .nav-menu-panel { border-color: currentColor; }
  :where(a, button, input, select, textarea, summary):focus-visible { outline-width: 3px; }
}

@media (max-width: 1080px) {
  .site-nav { gap: 14px; }
  .site-nav > a, .nav-menu > summary { font-size: 13px; }
  h1 { font-size: 50px; }
  .hero-grid { gap: 38px; }
  .steps-list { grid-template-columns: 1fr 1fr; }
  .dataset-list-item { grid-template-columns: 1fr 1fr; }
  .dataset-list-item > a { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 850px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .site-header { position: static; }
  .site-nav { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .nav-menu-panel { position: fixed; top: 108px; left: 20px; right: 20px; width: auto; }
  .hero { padding: 54px 0 48px; }
  .hero-grid, .split-panel { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }
  .section h2 { font-size: 32px; }
  .local-nav { position: static; margin-top: -46px; }
  .grid, .grid.two, .resource-grid { grid-template-columns: 1fr 1fr; }
  .facts, .flow { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { display: none; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .brand { font-size: 17px; }
  .site-nav { gap: 12px; }
  .site-nav > a, .nav-menu { display: block; flex: 0 0 auto; }
  .site-nav .nav-cta { margin-left: 0; }
  .hero { padding: 44px 0 40px; }
  h1 { font-size: 36px; }
  .hero-copy { font-size: 17px; }
  .content { padding-top: 34px; }
  .local-nav { margin-top: -34px; margin-bottom: 46px; }
  .section { margin-top: 58px; }
  .section h2 { font-size: 28px; }
  .grid, .grid.two, .resource-grid, .facts, .flow, .steps-list { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 58px; gap: 8px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bar-value { grid-column: 2; grid-row: 1; }
  .resource-card dl { grid-template-columns: 1fr; }
  .dataset-list-item { grid-template-columns: 1fr; gap: 15px; }
  .dataset-list-item dl { grid-template-columns: 1fr 1fr; }
  .dataset-list-item > a { grid-column: auto; }
  .section-check { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

/* Shared public-page finish: one restrained visual language across docs and guides. */
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { line-height: 1.6; }

.wrap { width: min(1200px, calc(100% - 40px)); }

.site-header { box-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.header-inner { min-height: 68px; }

.site-nav > a,
.nav-menu > summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.nav-menu-panel {
  border-color: rgba(15, 23, 42, .10);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .10);
}

.hero {
  padding-block: 64px 56px;
  background: #fafbfe;
}

.hero-summary,
.grid > .card,
.reference-card,
.resource-card,
.dataset-list,
.table-shell,
.benchmark,
.media-panel {
  border-color: rgba(15, 23, 42, .10);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
}

.button,
.site-nav .nav-cta {
  border-radius: 6px;
  transition:
    color var(--motion-fast) ease-out,
    background-color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out,
    box-shadow var(--motion-fast) ease-out,
    transform var(--motion-fast) ease-out;
}

.faq-list details[open] summary { color: var(--primary); }

@media (hover: hover) and (pointer: fine) {
  .grid > .card:hover,
  .resource-card:hover {
    border-color: #c7c3f7;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
  }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1200px); }
  .header-inner { min-height: 62px; }
  .hero { padding-block: 42px 38px; }
  .button { width: 100%; }
}
