/* Public site (static pages). Kept small: system fonts, no images except inline SVG. */
:root {
  --ink: #0f172a;
  --text: #1f2937;
  --muted: #5b6474;
  --line: #e2e8f0;
  --bg-alt: #f6f8fb;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-light: #60a5fa;
  --red: #dc2626;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 18px; font-weight: 750; }
h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 650; }
p { margin: 0 0 14px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

/* header / footer */
.site-header { background: var(--ink); color: #e2e8f0; position: sticky; top: 0; z-index: 5; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand-name { font-size: 20px; font-weight: 750; color: #fff; letter-spacing: 0.01em; }
.site-brand-name span { color: var(--blue-light); font-weight: 650; }
.small-brand { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: #cbd5e1; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.07); }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 24px; font-size: 15px; color: var(--muted); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer-inner > div { max-width: 420px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; align-content: start; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--blue); }
.site-copy { margin-top: 28px; font-size: 13px; }

/* buttons */
.site-btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.site-btn-primary { background: var(--blue); color: #fff; }
.site-btn-primary:hover { background: var(--blue-dark); color: #fff; }
.site-btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.site-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-nav .site-btn-light { background: #fff; color: var(--ink); padding: 8px 16px; margin-left: 6px; font-weight: 600; }
.site-nav .site-btn-light:hover { background: #e2e8f0; color: var(--ink); }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% 0%, #1e3a8a 0%, var(--ink) 60%); color: #cbd5e1; padding: 72px 0 84px; }
.hero h1 { color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 700; color: var(--blue-light); margin-bottom: 14px; }
.lead { font-size: 20px; color: #cbd5e1; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-note { font-size: 14px; color: #94a3b8; }
.hero-map { width: 100%; max-width: 440px; justify-self: center; }
.hero-map .ring { fill: none; stroke: #3b82f6; stroke-opacity: 0.35; stroke-width: 1.5; }
.hero-map .ring-outer { stroke-dasharray: 4 6; }
.hero-map .sweep { fill: none; stroke: #93c5fd; stroke-width: 3; stroke-linecap: round; }
.hero-map .edge { stroke: #475569; stroke-width: 1.2; }
.hero-map .node circle { fill: #1e293b; stroke: #60a5fa; stroke-width: 1.5; }
.hero-map .node text { fill: #e2e8f0; font: 600 10px var(--mono); }
.hero-map .node-new circle { stroke: #f87171; stroke-width: 2.5; }
.hero-map .core { fill: var(--blue); stroke: #bfdbfe; stroke-width: 2; }
.hero-map .core-text { fill: #fff; font: 700 12px var(--font); }
.hero-map .badge-new-svg rect { fill: var(--red); }
.hero-map .badge-new-svg text { fill: #fff; font: 700 10px var(--font); letter-spacing: 0.08em; }

/* sections */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { font-size: 19px; color: var(--muted); max-width: 760px; margin-bottom: 34px; }
.definition { font-size: 20px; color: var(--ink); border-left: 4px solid var(--blue); padding: 4px 0 4px 18px; margin: 18px 0 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.feature p { font-size: 15.5px; color: var(--muted); margin: 0; }
.feature-icon { color: var(--blue); background: #eff4ff; border-radius: 8px; padding: 7px; width: 38px; height: 38px; margin-bottom: 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.step { position: relative; padding-top: 6px; }
.step-n { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 16px; }
.reliability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.reliability { border-left: 3px solid var(--blue-light); padding-left: 16px; }
.reliability p { color: var(--muted); font-size: 16px; margin: 0; }
.free-check { text-align: center; border: 1px dashed #93c5fd; border-radius: 14px; padding: 40px 28px; background: #f8fbff; }
.coming-soon { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); background: #eff4ff; padding: 6px 12px; border-radius: 999px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--blue); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { margin: 0; font-size: 18px; }
.faq-item p { color: var(--muted); }
.cta { background: var(--ink); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; }

/* blog, articles, content pages */
.page { padding-top: 40px; padding-bottom: 72px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #94a3b8; }
.breadcrumbs a { color: var(--muted); }
.post-list { display: grid; gap: 18px; }
.post-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.post-card h2 { font-size: 24px; margin-bottom: 6px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue); }
.post-meta { color: var(--muted); font-size: 15px; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.post-tag { font-size: 13px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.muted-text { color: var(--muted); }
.article h1 { font-size: clamp(30px, 4vw, 44px); }
.article-cover { border-radius: 12px; margin: 10px 0 20px; }
.prose { font-size: 18px; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose h3 { font-size: 22px; margin: 30px 0 10px; }
.prose h4 { font-size: 18px; margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--line); color: var(--muted); }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.prose pre { background: var(--ink); color: #e2e8f0; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 15px; line-height: 1.5; }
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
.prose img { border-radius: 10px; }
.table-scroll { overflow-x: auto; margin: 0 0 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); }
.article-cta { margin: 40px 0 0; padding: 20px 22px; border-radius: 12px; background: #eff4ff; border: 1px solid #c7d7fe; font-size: 17px; }
.related { margin-top: 40px; }
.related h2 { font-size: 22px; }
.not-found { text-align: center; padding-top: 90px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-map { max-width: 340px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .site-header-inner { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; }
  .site-nav a { padding: 6px 8px; font-size: 14px; }
  .hero { padding: 48px 0 56px; }
  .feature-grid, .steps, .reliability-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .site-footer nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
