:root {
  --brand: #5569ff;
  --brand-dark: #3b4bd8;
  --brand-soft: #eef0ff;
  --text: #223354;
  --muted: #5a6b8c;
  --bg: #f2f5f9;
  --card: #ffffff;
  --line: #e3e8f2;
  --radius: 14px;
  --maxw: 980px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #8b7bff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex: none;
}
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

/* ---------- breadcrumb ---------- */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 0;
}
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; opacity: .6; }

/* ---------- hero ---------- */
.hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 44px;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 12px 0 14px;
  letter-spacing: -0.02em;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 11px;
  border-radius: 999px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}
.definition {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
}
.definition strong { color: var(--text); }

/* ---------- sections ---------- */
main { flex: 1; padding: 36px 0 48px; }
.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
}
.section > h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.section > h3 {
  margin: 26px 0 6px;
  font-size: 18px;
}
.section p { margin: 12px 0 0; }
.section > h2 + .sub, .section > h3 + .sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.section ul, .section ol { margin: 12px 0 0; padding-left: 22px; }
.section li { margin: 7px 0; }

/* ---------- fact table ---------- */
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 0;
  font-size: 15px;
}
.facts th, .facts td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.facts th { width: 210px; color: var(--muted); font-weight: 600; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts td strong { color: var(--text); }

/* ---------- cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fbfcff;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { margin-top: 18px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  background: #fbfcff;
  overflow: hidden;
}
.faq details[open] { background: var(--card); }
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  flex: none;
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- cta ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand), #7b6bff);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
}
.cta h2 { margin: 0 0 8px; font-size: 23px; color: #fff; }
.cta p { margin: 0 0 18px; opacity: .92; }
.btn {
  display: inline-block;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  margin-left: 10px;
}
.btn-ghost:hover { text-decoration: none; background: rgba(255,255,255,.12); }

/* ---------- note ---------- */
.note {
  background: #fff8e6;
  border: 1px solid #ffe2a8;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 18px;
  font-size: 14.5px;
  color: #6b5210;
}
.note strong { color: #4a3a08; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.updated { margin-top: 10px; font-size: 13px; opacity: .85; }

@media (max-width: 640px) {
  .hero h1 { font-size: 27px; }
  .section { padding: 22px 18px; }
  .facts th { width: 140px; }
  .site-nav { width: 100%; }
}
