:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f2;
  --bg-sunk: #f1efe8;
  --bg-info: #e6f1fb;
  --text: #1a1a1a;
  --text-soft: #5f5e5a;
  --text-mute: #888780;
  --text-info: #185fa5;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --navy: #0f1c2e;
  --navy-2: #1a2a44;
  --accent: #f4a820;
  --accent-ink: #1a1a2e;
  --r-md: 8px;
  --r-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --bg-soft: #1c1c1c;
    --bg-sunk: #111111;
    --bg-info: #0c447c;
    --text: #f3f2ee;
    --text-soft: #b4b2a9;
    --text-mute: #888780;
    --text-info: #85b7eb;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--text-info); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: #fff; font-size: 15px; font-weight: 500; letter-spacing: -0.2px; }
.brand-sub { color: #7a8599; font-size: 11px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: #c8d0dc;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: #fff; border-color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(to bottom, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(244, 168, 32, 0.12);
  color: var(--accent);
  font-size: 12px; font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 0.5px solid rgba(244, 168, 32, 0.3);
  margin-bottom: 18px;
}
.hero .pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 0 0 16px;
  font-weight: 600;
  max-width: 720px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lede {
  color: #b6c0cf;
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 24px;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-p, .btn-s {
  display: inline-block;
  font-size: 14px; font-weight: 500;
  padding: 11px 20px;
  border-radius: 6px;
  border: 0.5px solid transparent;
  cursor: pointer;
}
.btn-p { background: var(--accent); color: var(--accent-ink); }
.btn-p:hover { background: #ffb733; text-decoration: none; }
.btn-s {
  background: rgba(255, 255, 255, 0.06);
  color: #d8e0ec;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-s:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.trust {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  max-width: 640px;
}
.trust-item { color: #7a8599; font-size: 12px; }
.trust-item strong { display: block; color: #fff; font-weight: 500; font-size: 18px; margin-bottom: 2px; }

/* Breadcrumb */
.crumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-soft);
}
.crumb .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--text-soft); }
.crumb a:hover { color: var(--text); }
.crumb .sep { color: var(--text-mute); }
.crumb [aria-current] { color: var(--text); }

/* Article */
.article { padding: 48px 0 64px; }
.article h1 {
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
  font-weight: 600;
}
.article .meta {
  font-size: 13px; color: var(--text-mute);
  margin-bottom: 24px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.article .tag {
  display: inline-block;
  background: var(--bg-info); color: var(--text-info);
  padding: 2px 8px; border-radius: 3px;
  font-size: 12px; font-weight: 500;
}
.article h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.article h3 { font-size: 17px; margin: 28px 0 10px; font-weight: 600; }
.article p { margin: 0 0 16px; color: var(--text-soft); font-size: 16px; }
.article ul, .article ol { color: var(--text-soft); padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--text); font-weight: 600; }

.callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text-soft);
}
.callout strong { color: var(--text); }

/* Tables */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.price-table th, .price-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table thead th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-soft);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td.num { font-family: var(--font-mono); color: var(--text); white-space: nowrap; }

/* Metrics (homepage) */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 4px 0 32px;
}
.metric {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.metric-val { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.metric-key { font-size: 12px; color: var(--text-soft); }

/* Topic cards */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 8px 0 32px;
}
.topic {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start;
}
.topic-icon {
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--bg-info);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topic h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.topic p { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.5; }

/* Article list */
.posts { list-style: none; padding: 0; margin: 8px 0 32px; }
.posts li {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.posts li:last-child { border-bottom: none; }
.posts .thumb {
  width: 72px; height: 54px; flex-shrink: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.5px;
}
.posts h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.posts h3 a { color: var(--text); }
.posts h3 a:hover { color: var(--text-info); }
.posts p { margin: 0 0 6px; font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.posts .post-meta { font-size: 11px; color: var(--text-mute); display: flex; gap: 10px; flex-wrap: wrap; }

/* FAQ */
.faq { background: var(--bg-soft); border-radius: var(--r-lg); padding: 24px 28px; margin-top: 32px; }
.faq h2 { margin-top: 0; }
.faq-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.faq-a { font-size: 14px; color: var(--text-soft); margin: 0; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #7a8599;
  padding: 32px 0;
  margin-top: 64px;
  font-size: 13px;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.foot-brand strong { color: #d8e0ec; font-weight: 500; }
.foot-brand { max-width: 440px; line-height: 1.6; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: #7a8599; }
.foot-links a:hover { color: #d8e0ec; }

@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .nav { gap: 14px; }
  .hero { padding: 44px 0 40px; }
  .trust { gap: 20px; }
}
