/* Generated by `npm run site:sync` (scripts/site/sync.mjs) from src/styles/fonts.css, src/styles/tokens.css and
   scripts/site/shell.css. Edit those, not this file. */
/* Source Serif 4, self-hosted (docs/DESIGN.md "Typography", owner decision 2026-11-19: option A, one serif for everything).
   Two variable WOFF2 files under public/fonts/ (roman + italic, weight axis 400-700, Latin subset; licence in
   public/fonts/OFL.txt, how they were made in public/fonts/README.md). Served from our own origin: the CSP allows
   `font-src 'self'` only. font-display: swap, with a metric-matched local fallback so the swap does not move the layout. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/SourceSerif4-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/SourceSerif4-italic.woff2') format('woff2');
}
/* Fallbacks tuned to Source Serif 4 (units/em 1000, ascent 1036, descent 335, no line gap; lowercase + space average 0.539 em).
   size-adjust = 0.539 / the local font's average (Georgia 0.4896 -> 110%, Times New Roman 0.4516 -> 119%); ascent / descent
   are Source Serif's divided by size-adjust. Measured with fontTools on macOS Georgia and Times New Roman. */
@font-face {
  font-family: 'Source Serif 4 Fallback';
  font-style: normal;
  font-weight: 400 600;
  src: local('Georgia'), local('Georgia-Regular');
  size-adjust: 110%;
  ascent-override: 94.2%;
  descent-override: 30.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Source Serif 4 Fallback';
  font-style: normal;
  font-weight: 700;
  src: local('Georgia Bold'), local('Georgia-Bold');
  size-adjust: 110%;
  ascent-override: 94.2%;
  descent-override: 30.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Source Serif 4 Fallback';
  font-style: italic;
  font-weight: 400 600;
  src: local('Georgia Italic'), local('Georgia-Italic');
  size-adjust: 110%;
  ascent-override: 94.2%;
  descent-override: 30.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Source Serif 4 Fallback TNR';
  font-style: normal;
  font-weight: 400 600;
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Times');
  size-adjust: 119%;
  ascent-override: 87.1%;
  descent-override: 28.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Source Serif 4 Fallback TNR';
  font-style: normal;
  font-weight: 700;
  src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), local('Times Bold');
  size-adjust: 119%;
  ascent-override: 87.1%;
  descent-override: 28.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Source Serif 4 Fallback TNR';
  font-style: italic;
  font-weight: 400 600;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Times Italic');
  size-adjust: 119%;
  ascent-override: 87.1%;
  descent-override: 28.2%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --card: #ffffff;
  --ink: #0b0b0f;
  --ink-2: #636366;
  --ink-3: #6c6c70;
  --hairline: rgba(60, 60, 67, 0.12);
  --rain: #0a84ff;
  --rain-soft: rgba(10, 132, 255, 0.16);
  --link: #0064d2;
  --good: #34c759;
  --wx-rain: #1a6fd8;
  --wx-rain-light: #a6d4f5;
  --wx-rain-moderate: #5aa8ec;
  --wx-snow: #5d45c9;
  --sc-1: #dadada;
  --sc-2: #cecece;
  --sc-3: #b4d0b9;
  --sc-4: #86b995;
  --sc-5: #57a37b;
  --sc-empty: #aeb4bd;
  --font-serif: 'Source Serif 4', 'Source Serif 4 Fallback', 'Source Serif 4 Fallback TNR', Georgia, 'Times New Roman', serif;
  --font-display: var(--font-serif);
  --font-text: var(--font-serif);
  --font-num: var(--font-serif);
  --radius-control: 12px;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-control: 250ms;
  --dur-press: 150ms;
  --dur-exit: 150ms;
  --hairline-strong: rgba(60, 60, 67, 0.29);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --card: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #98989f;
  --ink-3: #8e8e93;
  --hairline: rgba(235, 235, 245, 0.14);
  --rain-soft: rgba(10, 132, 255, 0.24);
  --link: #4ea3ff;
  --good: #30d158;
  --wx-rain: #b6dcff;
  --wx-rain-light: #3f7fc4;
  --wx-rain-moderate: #5aa8f5;
  --wx-snow: #ece8ff;
  --sc-1: #333333;
  --sc-2: #494949;
  --sc-3: #3a6b4c;
  --sc-4: #3f8a5f;
  --sc-5: #57b585;
  --sc-empty: #5b626d;
  --card-shadow: none;
  --hairline-strong: rgba(235, 235, 245, 0.3);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    color-scheme: dark;
    --bg: #000000;
    --card: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #98989f;
    --ink-3: #8e8e93;
    --hairline: rgba(235, 235, 245, 0.14);
    --rain-soft: rgba(10, 132, 255, 0.24);
    --link: #4ea3ff;
    --good: #30d158;
    --wx-rain: #b6dcff;
    --wx-rain-light: #3f7fc4;
    --wx-rain-moderate: #5aa8f5;
    --wx-snow: #ece8ff;
    --sc-1: #333333;
    --sc-2: #494949;
    --sc-3: #3a6b4c;
    --sc-4: #3f8a5f;
    --sc-5: #57b585;
    --sc-empty: #5b626d;
    --card-shadow: none;
    --hairline-strong: rgba(235, 235, 245, 0.3);
  }
}

/* ---- Shell: base, header, footer, shared parts (scripts/site/shell.css) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 var(--font-text);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .18em; }

.public-scenario {
  --column: 560px;
  --gutter: clamp(16px, 4vw, 20px);
  --radius-card: 28px;
  --shadow-sheet: 0 8px 28px light-dark(#0002, #0008), 0 0 0 1px var(--hairline);
  --range-off: light-dark(#f3d2ce, #5a3330);
  --range-ok: light-dark(#3f9d5a, #4fb06b);
}
/* Extend the painted track to the outside of the 28px pins, keeping the
   measured track inset so min/max pointer and keyboard positions agree. */
.public-scenario .range2__track::before {
  content: '';
  position: absolute;
  inset: 0 -14px;
  background: inherit;
  border-radius: inherit;
  pointer-events: none;
}
img, video, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Width of the shell (header and footer). Reading pages narrow their own <main> (--site-read). */
:root { --site-max: 1120px; --site-read: 720px; --site-gutter: clamp(18px, 5vw, 40px); --site-header-height: 64px; }
:root {
  --site-sky-dark-start: #151d38eb;
  --site-sky-dark-end: #1a23448c;
  --site-sky-header-tint: linear-gradient(light-dark(#f8f4fe55, #151d38e0), light-dark(#f8f4fe22, #151d38bf) var(--site-header-height), transparent);
}

.site-header { border-bottom: 1px solid var(--hairline); }
.sh-inner {
  display: flex; align-items: center; gap: 8px 28px;
  width: min(100% - 2 * var(--site-gutter), var(--site-max)); min-height: var(--site-header-height); margin: 0 auto;
}
.sh-brand, .sf-logo {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  min-height: 40px;
  color: var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 650; letter-spacing: -.01em; text-decoration: none;
}
.sh-brand img, .sf-logo img { display: block; width: 17px; height: 24px; }
.sh-nav { display: flex; align-items: center; gap: 4px 22px; margin-inline-start: auto; font-size: 15px; }
.sh-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.sh-nav a:hover, .sh-nav a[aria-current="page"] { color: var(--ink); }
.sh-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.sh-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 18px; flex: none;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg);
  font: 600 15px/1.2 var(--font-text); text-decoration: none; white-space: nowrap;
}
.sh-cta:hover, .btn:hover { opacity: .86; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-quiet:hover { opacity: 1; border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .sh-cta, .btn { transition: opacity var(--dur-press) var(--ease), scale var(--dur-press) var(--ease); }
  .sh-cta:active, .btn:active { scale: .96; }
  .sf-appearance label span { transition: background-color var(--dur-press) var(--ease), box-shadow var(--dur-press) var(--ease); }
}
@media (max-width: 760px) {
  /* Two rows: top padding, CTA height, row gap and nav hit area. */
  :root { --site-header-height: calc(10px + 40px + 8px + 44px); }
  .sh-inner { flex-wrap: wrap; min-height: 0; padding-top: 10px; }
  .sh-cta { margin-inline-start: auto; padding: 6px 14px; font-size: 14px; }
  .sh-nav { order: 3; width: 100%; margin: 0; gap: 0 18px; overflow-x: auto; scrollbar-width: none; font-size: 15px; }
  .sh-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 379px) {
  :root { --site-header-height: 56px; }
  .sh-inner { flex-wrap: nowrap; min-height: var(--site-header-height); gap: 8px; padding-top: 0; }
  .sh-brand { gap: 6px; font-size: 16px; }
  .sh-nav {
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 2px 14px;
    gap: 0 12px;
    mask-image: linear-gradient(to right, #000 calc(100% - 12px), transparent);
  }
  .sh-nav a { flex: none; }
  .sh-nav a:focus-visible { outline-offset: -2px; }
  .sh-cta { min-height: 40px; padding-inline: 10px; font-size: 0; }
  .sh-cta::after { content: "App" / ""; font-size: 14px; }
}

/* A sky hero can follow the hub's zero-height sticky mount. The class also works without :has(). */
.site-header:where(.site-header--sky, :has(+ main > :is(.hero, .hub-hero):first-child, + main > #hub-sticky:first-child + .hub-hero)) {
  position: absolute; inset: 0 0 auto; z-index: 2; border-bottom: 0;
  --ink-2: light-dark(#35476a, #e0e5f8);
}
.site-header:where(.site-header--sky, :has(+ main > :is(.hero, .hub-hero):first-child, + main > #hub-sticky:first-child + .hub-hero))::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 -36px; pointer-events: none;
  background: var(--site-sky-header-tint);
}
.site-header:where(.site-header--sky, :has(+ main > :is(.hero, .hub-hero):first-child, + main > #hub-sticky:first-child + .hub-hero)) + main {
  --site-hero-inset: var(--site-header-height);
}
.hub-hero__inner { padding-block-start: var(--site-hero-inset, 0px); }

.site-footer {
  width: min(100% - 2 * var(--site-gutter), var(--site-max)); margin: 72px auto 0; padding: 40px 0 44px;
  border-top: 1px solid var(--hairline); color: var(--ink); font-size: 15px; line-height: 1.5;
}
.site-footer p { margin: 0; }
.sf-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 32px 56px; }
.sf-tag { max-width: 30ch; margin-top: 12px !important; color: var(--ink-2); }
.sf-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.sf-label { margin: 0 0 8px !important; color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sf-group ul { display: grid; margin: 0; padding: 0; list-style: none; }
.sf-group li { margin: 0; }
.sf-group a { display: flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; }
.sf-group a:hover { text-decoration: underline; }
.sf-group a[aria-current="page"] { font-weight: 650; }
.sf-base {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--hairline); color: var(--ink-2); font-size: 14px;
}
.sf-appearance:not([hidden]) { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.sf-appearance-options {
  display: inline-flex; padding: 3px; border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.sf-appearance label { position: relative; cursor: pointer; color: var(--ink); }
.sf-appearance input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.sf-appearance label span { display: grid; place-items: center; min-height: 40px; padding: 0 12px; border-radius: 9px; }
.sf-appearance input:checked + span { background: var(--card); box-shadow: 0 1px 3px var(--hairline); }
.sf-appearance input:focus-visible + span { outline: 2px solid var(--link); outline-offset: -2px; }
@media (max-width: 760px) { .sf-inner { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .sf-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } .site-footer { margin-top: 56px; padding-top: 32px; } }

/* Reading pages (About, Terms, Privacy, Support, articles, 404): one centred column like the app. */
.page {
  width: min(100% - 2 * var(--site-gutter), var(--site-read)); margin: clamp(32px, 7vw, 64px) auto 0;
}
.page h1 { margin: 0 0 16px; font-size: clamp(34px, 6.5vw, 48px); letter-spacing: -.02em; }
.page h2 { margin: 40px 0 10px; font-size: clamp(23px, 4vw, 28px); letter-spacing: -.01em; }
.page h3 { margin: 28px 0 8px; font-size: 21px; }
.page p, .page ul, .page ol { margin: 0 0 16px; }
.page ul, .page ol { padding-inline-start: 24px; }
.page li + li { margin-top: 6px; }
.page .lede { color: var(--ink-2); font-size: 20px; }
.page .meta { color: var(--ink-2); font-size: 15px; }
.eyebrow { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.page .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.page .facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 16px; }
.page .facts dt { color: var(--ink-2); }
.page .facts dd { margin: 0; }
@media (max-width: 520px) { .page .facts { grid-template-columns: 1fr; gap: 0; } .page .facts dd { margin-bottom: 10px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
.page dt { font-weight: 650; }
.page dd { margin: 0 0 10px; }
.draft-note { margin: 0 0 24px; padding: 10px 14px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-control); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; }
