/* Stratocheck landing page.

   Follows the iOS app's theme (StratocheckTheme.swift in the app repository):
   a neutral near-black canvas, IBM Plex, and one accent that only ever marks a
   clear-sky reading. Amber only ever marks a degraded one. Buttons and tracks
   stay white so the accent keeps that meaning.

   The site ships no scripts and allows no inline styles (see site/_headers).
   The page's one interaction is the radio group under the hero chart, read
   here with :has(). Its thirteen states are the block right below the tokens. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Registered so the big number can roll between readings instead of snapping. */
@property --v {
  syntax: "<integer>";
  inherits: true;
  initial-value: 87;
}

:root {
  --canvas: #090a0b;
  --canvas-bottom: #0d0e0f;
  --text: #fff;
  --text-2: #b6b9bc;
  --text-3: #a5a8ab;
  --text-4: #979a9e;
  --panel: rgba(255, 255, 255, 0.045);
  --surface: #040506;
  --footer-surface: #070809;
  --border: rgba(255, 255, 255, 0.14);
  --accent: #7ee0f0;
  --ramp-low: #46919e;
  --warning: #e8a33d;
  --cloud: #e8eaec;
  --map-line: rgba(235, 235, 235, 0.5);
  --map-label: #d4d6d9;

  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-section: 20px;
  --radius-inline: 14px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* The example forecast's selected step: its index, its chance of clear sky,
     and its time. The defaults are the "now" reading. */
  --i: 0;
  --v: 87;
  --clock: "9:15 PM";
  --at: " now";

  color-scheme: dark;
  transition: --v 0.5s var(--ease);
}

:root:has(#t1:checked) { --i: 1; --v: 88; --clock: "9:30 PM"; --at: " at 9:30 PM"; }
:root:has(#t2:checked) { --i: 2; --v: 86; --clock: "9:45 PM"; --at: " at 9:45 PM"; }
:root:has(#t3:checked) { --i: 3; --v: 82; --clock: "10:00 PM"; --at: " at 10:00 PM"; }
:root:has(#t4:checked) { --i: 4; --v: 76; --clock: "10:15 PM"; --at: " at 10:15 PM"; }
:root:has(#t5:checked) { --i: 5; --v: 68; --clock: "10:30 PM"; --at: " at 10:30 PM"; }
:root:has(#t6:checked) { --i: 6; --v: 61; --clock: "10:45 PM"; --at: " at 10:45 PM"; }
:root:has(#t7:checked) { --i: 7; --v: 56; --clock: "11:00 PM"; --at: " at 11:00 PM"; }
:root:has(#t8:checked) { --i: 8; --v: 54; --clock: "11:15 PM"; --at: " at 11:15 PM"; }
:root:has(#t9:checked) { --i: 9; --v: 57; --clock: "11:30 PM"; --at: " at 11:30 PM"; }
:root:has(#t10:checked) { --i: 10; --v: 64; --clock: "11:45 PM"; --at: " at 11:45 PM"; }
:root:has(#t11:checked) { --i: 11; --v: 72; --clock: "12:00 AM"; --at: " at 12:00 AM"; }
:root:has(#t12:checked) { --i: 12; --v: 79; --clock: "12:15 AM"; --at: " at 12:15 AM"; }

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--canvas);
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-2);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* A barely visible lift, anchored to the screen rather than the scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--canvas), var(--canvas-bottom));
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.3rem + 3.2vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

p,
ul,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: rgba(126, 224, 240, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--canvas);
}

/* Sentence-case section header, the app's "eyebrow" role. */
.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-2);
}
.eyebrow + h2 {
  margin-top: 12px;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font: 400 0.75rem/1.4 var(--mono);
  white-space: nowrap;
}
.chip {
  padding: 5px 11px;
  font-size: 0.8125rem;
  background: var(--canvas);
}
.chip--warning {
  color: var(--warning);
  border-color: rgba(232, 163, 61, 0.45);
}
.chip--clock::before {
  content: var(--clock);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--text);
  color: var(--canvas);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s;
}
.button:hover {
  background: #dcdfe2;
}
.button:active {
  transform: scale(0.98);
}
.button:focus-visible {
  border-radius: 999px;
}
.button--quiet {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.9375rem;
}
.button--quiet:hover {
  background: var(--panel);
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 10, 11, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.masthead__row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand__icon {
  display: block;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.masthead__nav {
  display: none;
  gap: 28px;
  font-size: 0.9375rem;
}
.masthead__nav a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.masthead__nav a:hover {
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 6.5vw, 88px);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  color: var(--text-4);
  font: 400 0.8125rem/1.4 var(--mono);
}
.hero__grid {
  display: grid;
  gap: 40px;
}

.reading__value {
  display: flex;
  align-items: baseline;
  margin-left: -0.045em;
  color: var(--accent);
  /* The reading carries its own altitude, as the app's curve does: the deeper
     into cloud it sits, the darker it is drawn. */
  color: color-mix(in oklab, var(--accent) calc(var(--v) * 1%), var(--ramp-low));
  font-size: clamp(7.5rem, 4.5rem + 15vw, 15.5rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.reading__num::before {
  counter-reset: reading var(--v);
  content: counter(reading);
}
.reading__unit {
  margin-left: 0.12em;
  font-size: 0.44em;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.reading__label {
  margin-top: clamp(16px, 2vw, 26px);
  color: var(--text-2);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem);
  font-weight: 500;
}
.reading__label::after {
  content: var(--at);
}

.lede {
  max-width: 34em;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 32px;
}
.cta__note {
  max-width: 17em;
  color: var(--text-4);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ---------- hero chart ---------- */

.chart {
  margin-top: clamp(44px, 6vw, 84px);
}
.chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin-bottom: 14px;
}
.chart__verdict {
  color: var(--text-3);
  font-size: 0.875rem;
}
.chart__plot {
  position: relative;
  height: clamp(190px, 24vw, 300px);
  margin-bottom: 38px;
}
.chart__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart__draw {
  position: absolute;
  inset: 0;
  clip-path: inset(-12px -12px -12px 0);
}

.band {
  fill: var(--text);
}
.band--clear {
  opacity: 0.055;
}
.band--cloudy {
  opacity: 0.025;
}
.rule {
  stroke: var(--text);
  stroke-opacity: 0.18;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.ramp-low {
  stop-color: var(--ramp-low);
}
.ramp-high {
  stop-color: var(--accent);
}
.wash-top {
  stop-color: var(--accent);
  stop-opacity: 0.16;
}
.wash-bottom {
  stop-color: var(--accent);
  stop-opacity: 0;
}
.curve {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.curve--flat {
  stroke: var(--accent);
  stroke-width: 2.5;
}
#curve,
#lower48 {
  vector-effect: non-scaling-stroke;
}

.axis,
.zone {
  position: absolute;
  color: var(--text-4);
  font-size: 0.75rem;
  line-height: 1;
  pointer-events: none;
}
.axis {
  left: 10px;
  font-family: var(--mono);
}
.axis--high {
  top: calc(20% + 7px);
}
.axis--low {
  top: calc(80% - 19px);
}
.zone {
  right: 0;
  font-weight: 500;
  transform: translateY(-50%);
}
.zone--clear {
  top: 10%;
}
.zone--partly {
  top: 55%;
}
.zone--cloudy {
  top: 90%;
}

.chart__cursor,
.chart__dot {
  position: absolute;
  left: calc(var(--i) / 12 * 100%);
  pointer-events: none;
  transition: left 0.35s var(--ease);
}
.chart__cursor {
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: var(--text);
  opacity: 0.3;
}
.chart__dot {
  top: calc((100 - var(--v)) * 1%);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--accent);
  background: color-mix(in oklab, var(--accent) calc(var(--v) * 1%), var(--ramp-low));
  box-shadow: 0 0 0 4px var(--canvas);
}
.chart__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
}

/* The time controls. Each label is a full-height column over the plot, so
   anywhere in the column selects that time. The end columns are half width,
   which keeps every column centred on its own reading without overhanging the
   plot. The inputs are fixed to the viewport corner so that focusing one from
   the map's scrubber, further down the page, never scrolls back up here. */
.scrub {
  position: absolute;
  inset: 0 0 -38px;
  display: grid;
  grid-template-columns: 0.5fr repeat(11, minmax(0, 1fr)) 0.5fr;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.scrub__input {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.scrub label {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.scrub label::before,
.scrub label::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: var(--text);
}
/* The tick under the plot. */
.scrub label::before {
  bottom: 26px;
  height: 6px;
  opacity: 0.4;
}
/* The column's hover line. */
.scrub label::after {
  top: 0;
  bottom: 38px;
  opacity: 0;
  transition: opacity 0.15s;
}
.scrub label:hover::after {
  opacity: 0.16;
}
.scrub label:first-of-type::before,
.scrub label:first-of-type::after {
  left: 0;
}
.scrub label:last-of-type::before,
.scrub label:last-of-type::after {
  left: 100%;
}
.scrub__tick {
  position: absolute;
  bottom: 0;
  left: 50%;
  color: var(--text-4);
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: color 0.2s;
}
/* End labels grow inward, as the app's do. */
.scrub label:first-of-type .scrub__tick {
  left: 0;
  transform: none;
}
.scrub label:last-of-type .scrub__tick {
  left: auto;
  right: 0;
  transform: none;
}
.scrub__input:checked + label::before {
  opacity: 1;
}
.scrub__input:checked + label .scrub__tick {
  color: var(--text);
}
.scrub__input:focus-visible + label {
  outline: 2px solid var(--text);
  outline-offset: -2px;
  border-radius: 6px;
}
.chart__hint {
  /* Padding, not margin: a margin here would collapse into the plot's. */
  padding-top: 14px;
  color: var(--text-4);
  font-size: 0.8125rem;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(48px, 6.5vw, 88px);
}
.duo__copy p + p,
.split__body p + p {
  margin-top: 16px;
}
.duo__copy h2 + p,
.duo__copy h2 + ul {
  margin-top: 24px;
}
.duo__copy p {
  max-width: 33em;
}
.aside {
  color: var(--text-4);
  font-size: 0.9375rem;
}

.split {
  display: grid;
  gap: 24px;
}
.split__body {
  max-width: 36em;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--border);
}
.specs__cell {
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid var(--border);
}
.specs dt {
  color: var(--text-3);
  font-size: 0.875rem;
}
.specs dd {
  margin-top: 10px;
  color: var(--text);
  font: 400 clamp(2.5rem, 1.7rem + 2.6vw, 3.75rem) / 1 var(--mono);
  letter-spacing: -0.05em;
}
.specs__unit {
  margin-left: 0.4em;
  color: var(--text-3);
  font-size: 0.34em;
  letter-spacing: 0;
}

.duo {
  display: grid;
  gap: 36px;
}
.duo__copy {
  order: -1;
}

/* ---------- reading legend ---------- */

.legend {
  padding: 6px 24px 24px;
}
.legend__rows {
  padding: 0;
  list-style: none;
}
.legend__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.legend__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
}
.legend__name::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.legend__row--partly .legend__name::before {
  background: var(--ramp-low);
}
.legend__row--cloudy .legend__name::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--text-4);
}
.legend__range {
  color: var(--text-3);
  font: 400 0.875rem/1.3 var(--mono);
  text-align: right;
}
.legend__age {
  padding-top: 20px;
}
.legend__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* ---------- cloud map ---------- */

.map {
  overflow: hidden;
}
.map__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.map__view {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.map__svg {
  display: block;
  width: 100%;
  height: 100%;
}
.map__clouds {
  fill: var(--cloud);
  transform: translate(calc(var(--i) * 45px), calc(var(--i) * -5px));
  transition: transform 0.6s var(--ease);
}
.map__lines {
  fill: none;
  stroke: var(--map-line);
  stroke-width: 1.1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* Place names and the forecast location sit over the drawing as HTML, placed
   by percentage, so they keep one size however far the map is scaled. */
.place {
  position: absolute;
  padding-left: 9px;
  color: var(--map-label);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface), 0 0 2px var(--surface);
  transform: translateY(-50%);
}
.place::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--map-label);
}
.place--left {
  padding: 0 9px 0 0;
  transform: translate(-100%, -50%);
}
.place--left::before {
  left: 100%;
}
.place--bradford { left: 3%; top: 16.3%; }
.place--elkland { left: 79.4%; top: 12.8%; }
.place--coudersport { left: 38.7%; top: 37.1%; }
.place--wellsboro { left: 80%; top: 40.1%; }
.place--austin { left: 34.7%; top: 53.6%; }
.place--st-marys { left: 10.1%; top: 73.9%; }
.map__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--text);
}
.map__pin::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  opacity: 0.55;
}
.map__foot {
  padding: 14px 20px 14px;
  border-top: 1px solid var(--border);
  background: var(--footer-surface);
}
.map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  color: var(--text-3);
  font-size: 0.8125rem;
}
.map__ramp-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-4);
  font-size: 0.75rem;
}
.map__ramp {
  width: 64px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, rgba(232, 234, 236, 0.08), rgba(232, 234, 236, 0.515));
  box-shadow: inset 0 0 0 1px var(--border);
}
.map__scrub {
  position: relative;
  display: grid;
  grid-template-columns: 0.5fr repeat(11, minmax(0, 1fr)) 0.5fr;
  height: 40px;
  margin-top: 6px;
}
.map__scrub::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--border);
}
.map__scrub label {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map__scrub label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 8px;
  margin: -4px 0 0 -0.5px;
  background: var(--text-4);
  opacity: 0.7;
}
.map__scrub label:first-of-type::before {
  left: 0;
}
.map__scrub label:last-of-type::before {
  left: 100%;
}
.map__playhead {
  position: absolute;
  top: 50%;
  left: calc(var(--i) / 12 * 100%);
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px var(--footer-surface);
  pointer-events: none;
  transition: left 0.35s var(--ease);
}
:root:has(.scrub__input:focus-visible) .map__scrub {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- night ---------- */

/* The app's night palette, for the one section about it. Every token the
   components read is redefined here, so they re-theme without their own rules. */
.night {
  --canvas: #000;
  --text: #ff5c3d;
  --text-2: #e0654b;
  --text-3: #d65e44;
  --text-4: #cd5941;
  --panel: rgba(255, 92, 61, 0.04);
  --surface: #0f0100;
  --footer-surface: #140200;
  --border: rgba(255, 92, 61, 0.16);
  --accent: #ff8163;
  --ramp-low: #8a3524;

  margin-block: clamp(48px, 6.5vw, 88px);
  padding-block: clamp(72px, 10vw, 144px);
  background: #000;
  color: var(--text-2);
}
.night ::selection {
  background: rgba(255, 92, 61, 0.3);
}
.points {
  padding: 0;
  list-style: none;
}
.points li {
  max-width: 33em;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.points li:last-child {
  border-bottom: 1px solid var(--border);
}
.points strong {
  color: var(--text);
  font-weight: 600;
}

.screen {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: 26px 24px 22px;
}
.screen__place {
  color: var(--text-3);
  font-size: 0.8125rem;
}
.screen__headline {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.screen__meta {
  margin-top: 12px;
  text-wrap: balance;
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
}
.screen__value {
  color: var(--accent);
}
.screen__plot {
  position: relative;
  height: 150px;
  margin-top: 24px;
}
.screen__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-4);
  font-size: 0.75rem;
}

/* ---------- plans ---------- */

.plans {
  display: grid;
  gap: 20px;
  margin-top: clamp(32px, 4vw, 56px);
}
.plan {
  padding: 28px 28px 14px;
}
.plan h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.plan__window {
  margin-top: 24px;
  color: var(--text-3);
  font: 400 0.8125rem/1 var(--mono);
}
.plan__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
}
.plan__track span {
  height: 6px;
  border-radius: 3px;
  background: var(--text);
}
.plan__track--hour span:not(:first-child) {
  background: var(--border);
}
.plan__list {
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.plan__list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.fineprint {
  max-width: 54em;
  margin-top: 24px;
  color: var(--text-4);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ---------- tools ---------- */

.exchange {
  padding: 22px 24px 28px;
}
.exchange__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--text-4);
  font: 400 0.8125rem/1.4 var(--mono);
}
.exchange__ask {
  width: fit-content;
  max-width: 92%;
  margin: 24px 0 0 auto;
  padding: 12px 16px;
  border-radius: var(--radius-inline);
  background: var(--panel);
  color: var(--text);
}
.exchange__answer {
  margin-top: 18px;
}

/* ---------- coverage ---------- */

.coverage__svg {
  display: block;
  width: 100%;
  height: auto;
}
.coverage__dot {
  fill: var(--text);
  opacity: 0.34;
}
.coverage__line {
  stroke: rgba(235, 235, 235, 0.85);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.coverage figcaption {
  max-width: 36em;
  margin-top: 20px;
  color: var(--text-3);
  font-size: 0.9375rem;
}
.coverage figcaption strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- closing and footer ---------- */

.closing {
  margin-top: clamp(48px, 6.5vw, 88px);
  padding: clamp(88px, 12vw, 168px) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing h2 {
  max-width: 17em;
  margin-inline: auto;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.closing .lede {
  margin: 22px auto 36px;
  text-wrap: balance;
}

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-4);
  font-size: 0.875rem;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__nav a {
  color: var(--text-3);
  text-decoration: none;
}
.footer__nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__marks {
  margin-top: 20px;
  font-size: 0.75rem;
}

/* ---------- wider screens ---------- */

@media (min-width: 560px) {
  .masthead__nav {
    display: flex;
  }
  .masthead__nav a:not([href="/support/"], [href="/map/"]) {
    display: none;
  }
}

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }
  .masthead__nav a:not([href="/support/"], [href="/map/"]) {
    display: inline;
  }
  .specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .specs__cell {
    padding-left: 24px;
    border-left: 1px solid var(--border);
  }
  .specs__cell:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 920px) {
  .hero__grid {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: clamp(48px, 7vw, 104px);
  }
  .split {
    grid-template-columns: 5fr 6fr;
    align-items: end;
    gap: clamp(48px, 7vw, 104px);
  }
  .duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 104px);
  }
  .duo__copy {
    order: 0;
  }
}

/* ---------- motion ---------- */

@keyframes settle {
  from {
    --v: 0;
  }
}
@keyframes reveal {
  from {
    clip-path: inset(-12px 100% -12px 0);
  }
}
@keyframes pulse {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  /* The reading settles from zero as the curve draws in. */
  :root {
    animation: settle 1.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .chart__draw {
    animation: reveal 1.5s 0.1s cubic-bezier(0.3, 0.7, 0.2, 1) backwards;
  }
  .chart__dot::after {
    animation: pulse 2.6s 1.6s ease-out infinite;
  }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Without :has() the time controls cannot move anything, so they are put away
   and the page stays on the "now" reading. */
@supports not selector(:has(a)) {
  .scrub,
  .map__scrub,
  .chart__hint,
  .map-aside {
    display: none;
  }
  .chart__plot {
    margin-bottom: 0;
  }
}

@media print {
  .masthead {
    position: static;
  }
  .reveal {
    animation: none;
  }
}
