:root {
  --navy: #13294b;
  --teal: #1f6f7a;
  --slate: #14283a;
  --sun: #f6c142;
  --red: #e8402f;
  --bg: #f6f8f9;
  --surface: #ffffff;
  --text: #17222c;
  --muted: #5a6872;
  --line: #dde3e7;
  --link: #1a6470;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a24;
    --surface: #152431;
    --text: #e8eef2;
    --muted: #9aabb6;
    --line: #253746;
    --link: #6cc6cf;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: #d6e4ea; text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--teal) 100%);
  color: #fff;
  padding: 56px 0 72px;
}
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { font-size: 19px; color: #e3eef2; margin: 0 0 24px; max-width: 34em; }
.hero-icon { width: 200px; height: 200px; border-radius: 44px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.badge {
  display: inline-block; background: var(--sun); color: var(--slate);
  font-weight: 700; padding: 12px 20px; border-radius: 999px; text-decoration: none;
}
.badge-note { display: block; margin-top: 10px; font-size: 14px; color: #c9dbe1; }
@media (max-width: 680px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-icon { width: 120px; height: 120px; border-radius: 27px; order: -1; }
}

/* Sections */
main { padding: 48px 0 64px; }
section + section { margin-top: 48px; }
h2 { font-size: 26px; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 28px 0 8px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.card p { margin: 0; color: var(--muted); }
.swatch { width: 14px; height: 14px; flex: none; }
.swatch.square { border-radius: 3px; }
.swatch.dot { border-radius: 50%; }

.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sources li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.sources strong { display: block; }
.sources span { color: var(--muted); font-size: 15px; }

.note { background: var(--surface); border-left: 4px solid var(--sun); border-radius: 8px; padding: 14px 18px; color: var(--text); }

/* Long-form pages */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
