/* radarforecast.app — shared design system.
   Used by index, hrrr, rrfs, comparison, support, privacy and terms.

   Redesigned 2026-09-29. The app is the design language: the palette, the
   timeline run-bar colours and the dBZ scale are the app's own values from
   the root app's style.css, not new ones invented for the site. The page is
   dark throughout — a single light section dropped into a dark page (or the
   reverse) reads as an accident, and the app it advertises is dark. */

:root {
  --bg:        #0f1620;   /* the app's --bg-deep */
  --bg-alt:    #131c27;   /* alternating section ground */
  --surface:   #16202c;
  --line:      rgba(148, 170, 196, 0.16);
  --line-soft: rgba(148, 170, 196, 0.12);

  /* One grey family, cool, to match the navy ground. (The app runs a warm
     grey for legibility over a sectional; that is a map decision, not a
     page decision, and mixing the two families is what made the old page
     feel slightly off.) */
  --text:        #d8dee6;
  --text-strong: #f2f5f8;
  --text-mute:   #9fabb9;
  --text-dim:    #7d8998;

  --accent:     #5dcaa5;  /* the app's --accent-teal. The only accent. */
  --accent-ink: #04342c;
  --accent-soft: rgba(93, 202, 165, 0.12);
  --amber:      #ef9f27;
  --amber-soft: rgba(239, 159, 39, 0.09);
  --warn:       #e8736a;

  /* Shadows carry the background's hue rather than plain black. */
  --shadow:    0 26px 60px rgba(6, 12, 22, 0.72);
  --shadow-sm: 0 10px 26px rgba(6, 12, 22, 0.60);

  --wrap: 1180px;
  --gutter: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The page's only texture: a faint graticule, fixed behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(to right,  rgba(148, 170, 196, 0.045) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, rgba(148, 170, 196, 0.045) 0 1px, transparent 1px 120px);
}
body > * { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: "Outfit", -apple-system, system-ui, sans-serif;
  color: var(--text-strong);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.1;  letter-spacing: -0.03em; margin-bottom: 24px; }
h3 { font-size: 2rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

p { margin: 0 0 16px; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 600; color: var(--text-strong); }
em { font-style: italic; }
ul { max-width: 62ch; padding-left: 1.15em; }
li { margin-bottom: 8px; }

code, .mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.93em;
  color: var(--text-strong);
}

a { color: var(--accent); transition: color 200ms ease, background 200ms ease, border-color 200ms ease; }
a:hover { color: #93e2c6; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
}
.skip:focus {
  left: 16px; top: 12px; z-index: 99;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* the sticky bar is ~74px, so anchored targets clear it */
section, h2, [id] { scroll-margin-top: 92px; }

/* ---- Nav ------------------------------------------------------------- */
.rf-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 22, 32, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.rf-nav-in {
  max-width: var(--wrap); margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 10px) var(--gutter) 10px;
  display: flex; align-items: center; gap: 12px;
}
.rf-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.rf-brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.rf-brand span {
  font-family: "Outfit", sans-serif; font-size: 20px; font-weight: 600;
  letter-spacing: -0.015em; color: var(--text-strong);
}
.rf-nav-links {
  margin-left: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  font-size: 15px;
}
.rf-nav-links > a, .rf-menu > summary {
  color: var(--text-dim); text-decoration: none;
  padding: 9px 15px; border-radius: 8px; white-space: nowrap; display: inline-block;
}
.rf-nav-links > a:hover, .rf-menu > summary:hover { color: var(--text-strong); background: var(--accent-soft); }
.rf-nav-links > a.on, .rf-menu > summary.on { color: var(--accent); background: var(--accent-soft); }

/* <details> rather than a hover menu: it opens on tap, closes on Escape and
   is reachable from the keyboard without any script. */
.rf-menu { position: relative; }
.rf-menu > summary { list-style: none; cursor: pointer; }
.rf-menu > summary::-webkit-details-marker { display: none; }
.rf-menu > summary::after { content: " \25be"; opacity: 0.7; }
.rf-menu[open] > summary { color: var(--accent); background: var(--accent-soft); }
.rf-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; padding: 7px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); z-index: 50;
}
.rf-menu-panel a {
  display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none;
  color: var(--text); font-size: 15px; line-height: 1.35;
}
.rf-menu-panel a:hover { background: var(--accent-soft); color: var(--text-strong); }
.rf-menu-panel small { display: block; color: var(--text-dim); font-size: 13px; margin-top: 3px; }

/* ---- Hero ------------------------------------------------------------ */
/* Split, not an overlay: the course line stays clear of the copy. */
.hero {
  display: grid;
  /* Percentages, not a fixed column: the copy column also carries the page
     margin, so a fixed width left the headline breaking one word per line. */
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: center;
  min-height: 560px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-copy {
  padding: 64px var(--gutter) 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; gap: 24px;
  position: relative; z-index: 2;
}
.hero-copy h1 { font-size: clamp(2.1rem, 3.4vw, 3.2rem); }
.hero-copy .sub { font-size: 1.24rem; line-height: 1.4; color: var(--text-mute); margin: 0; max-width: 30ch; }
.hero-map { position: relative; align-self: stretch; overflow: hidden; }
.hero-map img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: 50% 50%; display: block; }
/* feather the seam so the map does not butt against the copy column */
.hero-map::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 220px; z-index: 1;
  background: linear-gradient(to right, var(--bg) 0%, rgba(15, 22, 32, 0.55) 42%, rgba(15, 22, 32, 0) 100%);
}

.cta {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 54px; padding: 0 26px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-family: "Outfit", sans-serif; font-size: 17px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, background 200ms ease;
}
.cta:hover { background: #79d8b8; color: var(--accent-ink); transform: translateY(-1px); }
.cta:active { transform: translateY(1px) scale(0.99); }
.cta[aria-disabled="true"] { background: var(--surface); color: var(--text-mute); box-shadow: none; cursor: default; border: 1px solid var(--line); }
.cta[aria-disabled="true"]:hover { transform: none; background: var(--surface); }
.cta-note { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--text-dim); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---- Run-bar strip --------------------------------------------------- */
/* The app's own timeline: one tick per forecast hour, coloured by the run it
   came from. Drawn as repeating gradients rather than 88 elements. */
/* longhand, not `padding:` — the shorthand zeroed .wrap's side gutters and
   pulled the strip 56px left of everything else on the page */
.strip-wrap { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 18px; }
.strip { display: flex; gap: 2px; height: 14px; }
.strip > span { border-radius: 1px; }
.strip .s-obs   { flex: 7;  background: repeating-linear-gradient(to right, #a9b1ba 0 11px, transparent 11px 13px); }
.strip .s-new   { flex: 24; background: repeating-linear-gradient(to right, #5dcaa5 0 11px, transparent 11px 13px); }
.strip .s-old   { flex: 14; background: repeating-linear-gradient(to right, #2f8f5a 0 11px, transparent 11px 13px); }
.strip .s-long  { flex: 18; background: repeating-linear-gradient(to right, #ef9f27 0 11px, transparent 11px 13px); }
.strip .s-rrfs  { flex: 16; background: repeating-linear-gradient(to right, #6e4413 0 11px, transparent 11px 13px); }
.strip .s-none  { flex: 9;  background: repeating-linear-gradient(to right, #243040 0 11px, transparent 11px 13px); }

.strip-key {
  margin-top: 13px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--text-dim);
}
.strip-key span.k { display: inline-flex; align-items: center; gap: 7px; }
.strip-key i { width: 10px; height: 10px; border-radius: 2px; display: block; }
/* Its own line, left-aligned and at reading size: it is the page's one
   warning, not a footnote to the run-bar key. */
.strip-slogan {
  flex-basis: 100%; margin: 14px 0 0;
  font-family: "IBM Plex Sans", sans-serif; font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 500; font-style: italic; line-height: 1.35; color: var(--warn);
}

/* ---- Sections -------------------------------------------------------- */
section { padding: 92px 0; }
.band { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* The opening statement: type only, no image, maximum air. */
.statement {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 500;
  line-height: 1.32; letter-spacing: -0.02em; color: var(--text-strong);
  max-width: 24ch; margin: 0 0 32px;
}
.lede-body { max-width: 62ch; color: var(--text-mute); }

/* ---- Demo video ------------------------------------------------------ */
/* Beside its caption, not centred in a field of nothing. */
.demo {
  margin: 0; display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.demo video {
  width: 100%; height: auto; display: block;
  border-radius: 18px; box-shadow: var(--shadow); background: #0f1620;
}
/* The inline video is a button: it opens the lightbox. */
.demo-open {
  display: block; position: relative; padding: 0; margin: 0; width: 100%;
  border: 0; background: none; cursor: zoom-in; border-radius: 18px;
}
.demo-open video { transition: transform 250ms ease, box-shadow 250ms ease; }
.demo-open:hover video { transform: translateY(-2px); box-shadow: 0 32px 70px rgba(6, 12, 22, 0.8); }
.demo-hint {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(15, 22, 32, 0.82); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: var(--text-strong);
  font: 500 13px/1 "IBM Plex Sans", sans-serif;
}
.demo-open:hover .demo-hint, .demo-open:focus-visible .demo-hint { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* The demo is portrait, so on a landscape screen it is height-bound: give it
   the whole window height, or "enlarged" comes out smaller than the inline
   copy on a laptop. The player's own controls add true fullscreen. */
.lightbox {
  padding: 0; border: 0; background: transparent; overflow: visible;
  max-width: 100vw; max-height: 100vh;
}
.lightbox::backdrop { background: rgba(6, 10, 16, 0.86); backdrop-filter: blur(4px); }
.lightbox video {
  display: block; width: auto; height: auto;
  max-width: calc(100vw - 32px); max-height: calc(100vh - 32px);
  border-radius: 16px; box-shadow: var(--shadow); background: #0f1620;
}
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text-strong); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.lightbox-close:hover { background: var(--accent); color: var(--accent-ink); }

.demo figcaption { color: var(--text-mute); font-size: 1.1rem; line-height: 1.5; max-width: 34ch; }

/* ---- Models ---------------------------------------------------------- */
.models-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.model-note {
  padding: 26px 28px; background: var(--surface); color: var(--text-mute);
  border-left: 3px solid var(--accent); border-radius: 4px 16px 16px 4px;
}
.model-note p:first-child {
  font-family: "Outfit", sans-serif; font-size: 1.15rem; font-weight: 600;
  color: var(--text-strong); margin-bottom: 10px;
}
.model-note p { font-size: 1rem; line-height: 1.55; }

/* Deliberately not two matching cards: different rules, different offsets. */
.models { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 56px; align-items: start; }
.model { padding-top: 26px; border-top: 2px solid var(--accent); }
.model.preview { margin-top: 72px; border-top-color: var(--amber); }
.model h3 { margin-bottom: 4px; }
.model .who { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.model > p { font-size: 1.03rem; color: var(--text-mute); }
.model-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 4px; }
.badge {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px;
  letter-spacing: 0.06em; color: var(--amber);
  border: 1px solid rgba(239, 159, 39, 0.55); padding: 3px 7px;
}
.spec {
  margin: 20px 0 22px;
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.spec dt { color: var(--text-dim); }
.spec dd { margin: 0; color: var(--text); }
.more a {
  font-family: "Outfit", sans-serif; font-size: 1rem; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid rgba(93, 202, 165, 0.45); padding-bottom: 2px;
}
.more a:hover { border-bottom-color: #93e2c6; }

/* ---- Feature rows ---------------------------------------------------- */
/* Prose beside a screenshot. `.flip` puts the shot first; `.bleed` lets it
   run off the page edge so the rhythm is not identical every time. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 76px; align-items: center; }
.feature.flip { grid-template-columns: 300px minmax(0, 1fr); }
.feature.flip .shot { order: -1; }
.feature > div { max-width: 58ch; }

.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 14px; color: var(--text-dim); font-size: 13.5px; line-height: 1.4; }

/* Bleeds: the figure escapes the wrap on one side. */
.bleed-left  .shot { margin-left: calc(-1 * var(--gutter) - 40px); }
.bleed-left  .shot img { border-radius: 0 18px 18px 0; }
.bleed-left  .shot figcaption { margin-left: calc(var(--gutter) + 40px); }
.bleed-right .shot { margin-right: calc(-1 * var(--gutter) - 40px); }
.bleed-right .shot img { border-radius: 18px 0 0 18px; }

/* Two text columns, used once, so one section reads differently. */
.twocol { column-count: 2; column-gap: 52px; max-width: none; }
.twocol p { max-width: none; break-inside: avoid; }

/* ---- Flight categories ----------------------------------------------- */
.cats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 13px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; }
.cats li { display: flex; align-items: center; gap: 13px; margin: 0; }
.cats i { width: 15px; height: 15px; border-radius: 50%; flex: none; display: block; }
.cats b { width: 5ch; font-weight: 400; color: var(--text); }
.cats span { color: var(--text-dim); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.split p { max-width: none; }

/* ---- dBZ scale ------------------------------------------------------- */
.legend { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.scale { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.scale span { height: 56px; border-radius: 3px; }
.scale-labels {
  margin-top: 10px;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px;
  font-variant-numeric: tabular-nums; color: var(--text-dim);
}

.caution {
  margin-top: 28px; padding: 20px 24px;
  border-left: 3px solid var(--amber); border-radius: 4px 14px 14px 4px;
  background: var(--amber-soft); color: var(--text); font-size: 1rem; line-height: 1.55;
}
.caution p { max-width: none; }

.disclaimer {
  /* auto-fit so a one-paragraph disclaimer (the model pages) fills the row
     instead of sitting in a half-width column beside a hole. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 56px;
  padding: 32px 36px; margin-bottom: 56px;
  border: 1px solid rgba(232, 115, 106, 0.4); border-radius: 16px;
  background: rgba(232, 115, 106, 0.06);
}
.disclaimer p { max-width: none; font-size: 1rem; line-height: 1.6; color: var(--text); }
/* Title and sources span the row; the two paragraphs keep their columns. The
   model pages' one-paragraph disclaimers have neither, so they are unaffected. */
.disclaimer h2 {
  grid-column: 1 / -1; margin: 0 0 -24px;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem); color: var(--warn); max-width: 34ch;
}
.disc-note { grid-column: 1 / -1; margin-top: -22px; padding-top: 26px; border-top: 1px solid rgba(232, 115, 106, 0.3); }
.disc-note p { max-width: 90ch; }
.disc-src { margin-top: 12px; font-size: 0.88rem !important; color: var(--text-dim) !important; }
.disc-src a { color: var(--text-mute); }
.disc-src a:hover { color: var(--accent); }

/* A quieter panel for the legal and support pages. */
.lede {
  padding: 24px 28px; margin-bottom: 36px;
  background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: 4px 16px 16px 4px; color: var(--text-mute);
}
.warn {
  padding: 24px 28px; margin: 32px 0;
  border: 1px solid rgba(239, 159, 39, 0.5); border-radius: 16px; background: var(--amber-soft);
}
.warn h2 { color: var(--amber); font-size: 1.5rem; margin-bottom: 10px; }

/* Source lists on the model pages: quiet, but the links are real. */
.sources { list-style: none; padding: 0; margin: 0; }
.sources li { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; }
.sources a { color: var(--text-mute); }
.sources a:hover { color: var(--accent); }

/* The homepage slogan, repeated at the foot of the other pages: same face,
   size and warning red as .strip-slogan. */
/* .article p would otherwise win on specificity and turn it grey */
.page-slogan, .article .page-slogan {
  margin: 48px 0 24px; max-width: none;
  font-family: "IBM Plex Sans", sans-serif; font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 500; font-style: italic; line-height: 1.35; color: var(--warn);
}

/* ---- Footer ---------------------------------------------------------- */
.site-foot {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; padding: 40px 0 56px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--text-dim);
}
.site-foot p { max-width: none; margin: 0 0 6px; }
.site-foot .fh { color: var(--text); font-weight: 600; margin-bottom: 10px; }
.site-foot a { color: var(--text-mute); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.foot-brand span { font-family: "Outfit", sans-serif; font-size: 17px; font-weight: 600; color: var(--text); }

/* ---- Article pages --------------------------------------------------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { margin-bottom: 18px; }
.page-head .sub { font-size: 1.2rem; color: var(--text-mute); max-width: 52ch; margin: 0 0 18px; }
.article section { padding: 44px 0; border-top: 1px solid var(--line-soft); }
.article section:first-of-type { border-top: none; padding-top: 0; }
.article h2 { font-size: 1.9rem; }
.article h3 { font-size: 1.35rem; margin: 28px 0 8px; }
.article p, .article ul { color: var(--text-mute); }

.factsheet { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: 1rem; }
.factsheet th, .factsheet td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.factsheet tr:first-child th, .factsheet tr:first-child td { border-top: none; }
.factsheet th { font-weight: 500; color: var(--text-dim); width: 38%; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13.5px; }
.factsheet td { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---- Feature headings ---------------------------------------------- */
/* One heading system for every feature section: the feature's name, as the
   app labels it, with the line that used to be the heading as a deck under
   it. The chip is the button you tap in the app, drawn like the app's own. */
h2.named {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-bottom: 8px;
}
.deck {
  font-family: "Outfit", sans-serif; font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500; line-height: 1.3; letter-spacing: -0.015em;
  color: var(--text-mute); margin: 0 0 22px;
}
.btn-chip {
  display: inline-block;
  font: 500 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  letter-spacing: 0; color: #c2c0b6;
  padding: 8px 13px; border-radius: 8px;
  background: #131c28; border: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: middle;
}

/* A button that cycles (the base map) shows every state it cycles through. */
.chip-set { display: inline-flex; gap: 6px; }

/* The full scale the imagery is drawn in (pipeline/colormap.py), 5 to 70+. */
.scale.scale-full, .scale-labels.scale-full { grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; }
.scale.scale-full span { height: 48px; }
.scale-labels.scale-full { font-size: 12px; }
/* Stay one row on a phone: two separate grids wrapped into two rows each put
   both swatch rows above both label rows. 14 columns still fit "70+" at 10px. */
@media (max-width: 620px) {
  .scale.scale-full, .scale-labels.scale-full { gap: 2px; }
  .scale.scale-full span { height: 30px; }
  .scale-labels.scale-full { font-size: 10px; }
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 1080px) {
  .models-head, .legend, .split, .disclaimer { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .model-note { border-radius: 4px 16px 16px 4px; }
  .models { gap: 48px; }
  .model.preview { margin-top: 0; }
  .twocol { column-count: 1; }
}

@media (max-width: 900px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 40px var(--gutter) 36px; order: 2; }
  .hero-map { order: 1; }
  .hero-map img { min-height: 0; height: 320px; }
  .hero-map::before { display: none; }
  section { padding: 64px 0; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.flip .shot { order: 0; }
  .shot { max-width: 300px; }
  .bleed-left .shot, .bleed-right .shot { margin-left: 0; margin-right: 0; }
  .bleed-left .shot img, .bleed-right .shot img { border-radius: 18px; }
  .bleed-left .shot figcaption { margin-left: 0; }
  .demo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .demo-open { max-width: 420px; }
  .site-foot { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .rf-nav-in { flex-wrap: wrap; gap: 8px; }
  .rf-nav-links { margin-left: 0; width: 100%; }
  .rf-menu-panel { position: static; box-shadow: none; margin: 4px 0 2px; min-width: 0; }
  .models { grid-template-columns: minmax(0, 1fr); }
  .scale span { height: 40px; }
  .disclaimer { padding: 24px; }
  .factsheet th { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .demo video { display: none; }
  .demo .fallback { display: block !important; }
}
