/* ============================================================================
   home-live.css — the landing page (rebuild 2026-10-28): hero + today's chart,
   the dark map band, the Ideal Conditions Window example, the three modes over
   a photo, and the Fetch+ band. index.html only. Prefix `hl-`.
   Light first; dark overrides at the end of each block. The map band is dark
   in both themes and the modes photo is light in both themes, by design.
   ========================================================================== */

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hl-kicker {
  margin: 0 0 var(--sp-3);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hl-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hl-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-auto-rows: auto;
  gap: var(--sp-10); align-items: center;
  padding-block: var(--sp-8) var(--sp-10);
}
@media (max-width: 900px) {
  .hl-hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); padding-block: var(--sp-8); }
}

/* the top panel: a synoptic-chart backdrop behind the greeting and the
   activity line, spanning both columns */
.hl-top {
  grid-column: 1 / -1; position: relative; isolation: isolate; overflow: hidden;
  padding: 26px 32px 24px; border-radius: 18px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
}
.hl-synoptic { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--text); pointer-events: none; }
.hl-synoptic__drift { animation: hl-drift 60s linear infinite alternate; }
@keyframes hl-drift { to { transform: translateX(-40px); } }
@media (prefers-reduced-motion: reduce) { .hl-synoptic__drift { animation: none; } }
.hl-greet { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.hl-greet[hidden] { display: none; }
.hl-activity {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--text);
}
.hl-activity__word {
  position: relative; display: inline-block; vertical-align: top; min-width: 1ch;
  height: 1.3em; line-height: 1.15; padding-bottom: 0.12em; overflow: clip; text-align: left;
}
.hl-activity__w {
  position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--text-secondary); line-height: 1.15;
  opacity: 0; transform: translateY(0.6em);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.hl-activity__w.is-in { opacity: 1; transform: translateY(0); }
.hl-activity__w.is-out { opacity: 0; transform: translateY(-0.6em); }
@media (prefers-reduced-motion: reduce) { .hl-activity__w { transition: none; } }
@media (max-width: 560px) { .hl-top { padding: 20px 18px 18px; border-radius: 14px; } }

.hl-eyebrow {
  margin: 0 0 var(--sp-2);
  font: 500 12px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.hl-reading { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; min-height: 72px; }
.hl-range {
  margin: 0; font-size: clamp(3.25rem, 6.5vw, 5.25rem); font-weight: 800; line-height: 0.95;
  letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums;
}
.hl-range__dash { margin: 0 0.05em; font-weight: 600; }
.hl-range__unit { margin-left: 8px; font-size: 0.32em; font-weight: 600; letter-spacing: 0; color: var(--text-secondary); }
.hl-pill.card__rating { margin: 0; align-self: center; padding: 7px 16px; font-size: 15px; }
.hl-now { margin: var(--sp-2) 0 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); min-height: 1.6em; }

.hl-title {
  margin: var(--sp-5) 0 0; font-size: clamp(1.875rem, 3.8vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.022em; line-height: 1.05; color: var(--text);
}
.hl-title em { font-style: normal; color: var(--accent-text); }
.hl-sub { margin: var(--sp-3) 0 0; max-width: 34rem; font-size: var(--fs-body-lg); line-height: 1.6; color: var(--text-secondary); }

.hl-search { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-6); max-width: 34rem; }
.hl-search__q { flex: 1 1 240px; min-height: 48px; }
.hl-search__go { min-height: 48px; padding-inline: var(--sp-6); }

/* the chart card */
.hl-card {
  position: relative; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.hl-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); flex-wrap: wrap; }
.hl-card__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.hl-card__when { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
/* the selected hour's reading, top left of the chart card */
.hl-card__value {
  margin: 0; display: flex; align-items: baseline; gap: 6px; min-height: 30px;
  font: 800 26px/1.15 var(--font-sans, "Inter", sans-serif); letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.hl-card__unit { font-size: 15px; font-weight: 600; color: var(--text-2, var(--text-secondary)); }
.hl-card__arrow { align-self: center; flex: none; width: 20px; height: 20px; color: var(--accent-text, var(--accent)); }
.hl-series .segmented__btn { padding: 7px 14px; }
.hl-series .segmented__btn[aria-pressed='true'],
.hl-series .segmented__btn[aria-pressed='true']:hover {
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-sm);
}
.hl-charts { min-height: 168px; }
.hl-chart[hidden] { display: none; }

.hl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; }
.hl-tile { background: var(--surface); border-radius: var(--r-md); padding: var(--sp-3); min-width: 0; }
.hl-tile dt { font: 500 10px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.hl-tile dd { margin: 4px 0 0; font-size: clamp(15px, 4.2vw, 20px); font-weight: 600; color: var(--text); white-space: nowrap; }
@media (max-width: 480px) {
  .hl-card { padding: var(--sp-4); }
  .hl-tiles { gap: var(--sp-2); }
  .hl-tile { padding: var(--sp-2) 10px; }
}

/* chart series (the surf page's, css/surf-page.css — copied so this page
   need not load the whole surf stylesheet) + Period's line */
.fcx-surf { fill: var(--ch-surf); }
.fcx-wind { fill: var(--wind-bar-base); }
.fcx-wind[data-wind='calm']   { fill: var(--ch-wind-calm); }
.fcx-wind[data-wind='fresh']  { fill: var(--ch-wind-fresh); }
.fcx-wind[data-wind='strong'] { fill: var(--ch-wind-strong); }
.fcx-wind[data-wind='gale']   { fill: var(--ch-wind-gale); }
.fcx-tide { stroke: var(--ch-tide); stroke-width: 2; }
.fcx-tide-area { fill: var(--ch-tide-area-top); }
.fcx-tide-dot { fill: var(--ch-tide); }
.fcx-tide-sel { fill: var(--ch-tide); stroke: var(--ch-card); stroke-width: 2; }
.fcx-plate rect { fill: var(--ch-card); opacity: 0.92; stroke: var(--ch-grid); }
.fcx-plate__t { font-size: 9.5px; font-weight: 600; fill: var(--ch-tide); }

/* ── Trust strip: the sources, scrolling ──────────────────────────────────── */
.hl-trust { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.hl-trust__inner { display: flex; align-items: center; gap: var(--sp-6); min-height: 84px; }
.hl-trust__label {
  flex: none; margin: 0; padding-left: var(--sp-6);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.hl-trust__viewport {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* ⚠ THE TRACK IS EXACTLY TWO COPIES WIDE (revision 6). The gap lives as
   padding-right on every item, not as a flex gap: with a flex gap the track
   is 2 copies + one gap, translateX(-50%) lands half a gap short, and the
   loop hitched by 20 px every cycle. One copy (8 marks at 38 px, 80 px apart)
   measures ~1,340 px against a ~1,310 px viewport at 1440, so at a laptop
   width no mark is on screen twice; on a wider screen a repeat is
   unavoidable without more sources. */
.hl-trust { --hl-trust-gap: 80px; }
.hl-trust__track {
  list-style: none; margin: 0; padding: 8px 0; display: flex; align-items: center; width: max-content;
  animation: hl-marquee 48s linear infinite;
}
.hl-trust__viewport:hover .hl-trust__track, .hl-trust__viewport:focus-within .hl-trust__track { animation-play-state: paused; }
@keyframes hl-marquee { to { transform: translateX(-50%); } }
/* marks only (revision 5): one <img> per item, uniform gaps, no captions */
.hl-trust__item { display: inline-flex; align-items: center; padding-right: var(--hl-trust-gap); }
.hl-trust__img { display: block; height: 38px; width: auto; max-width: 180px; object-fit: contain; opacity: 0.9; }
.hl-trust__img--icon { border-radius: 6px; }
/* dark: colour marks keep their own colours on a light chip, never inverted */
:root[data-theme='dark'] .hl-trust__img { background: rgba(255, 255, 255, 0.92); padding: 5px 9px; height: 48px; border-radius: 8px; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hl-trust__track { animation: none; width: auto; flex-wrap: wrap; row-gap: var(--sp-3); padding-block: var(--sp-3); }
  .hl-trust__item[aria-hidden='true'] { display: none; }
  .hl-trust__viewport { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 560px) { .hl-trust__label { padding-left: var(--sp-4); } }

/* ── Map band ─────────────────────────────────────────────────────────────── */
.hl-map {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 640px; background: var(--band-navy); color: #EAF1F6;
  display: flex; flex-direction: column;
}
.hl-map__stage { position: absolute; inset: 0; z-index: 0; transition: opacity 200ms linear; }
.hl-map__stage.is-swapping { opacity: 0.35; }
.hl-map__layer { position: absolute; inset: 0; display: block; }
/* legibility under the band's copy: a navy fade up from the bottom-left */
.hl-map__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(20deg, rgba(22, 24, 27, 0.88) 0%, rgba(22, 24, 27, 0.55) 30%, rgba(22, 24, 27, 0) 58%);
}
.hl-map__grid { pointer-events: none; }

.hl-pin {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; margin: -22px 0 0 -22px; padding: 0 0 0 15px;
  background: none; border: 0; color: #EAF1F6; will-change: transform;
}
.hl-pin[hidden] { display: none; }
.hl-pin__dot {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: #E3B65A; border: 2px solid #141416; box-shadow: 0 0 0 3px rgba(227, 182, 90, 0.25);
}
.hl-pin__name {
  font: 600 12px var(--font-mono); letter-spacing: 0.04em; white-space: nowrap;
  padding: 3px 7px; border-radius: 6px; background: rgba(22, 24, 27, 0.78);
  opacity: 0.85;
}
.hl-pin[data-selected] .hl-pin__dot {
  background: #FFFFFF; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22), 0 0 0 14px rgba(255, 255, 255, 0.08);
}
.hl-pin[data-selected] .hl-pin__name { opacity: 1; color: #fff; }
.hl-pin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 10px; }

.hl-map__ui {
  position: relative; z-index: 3; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-8);
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--sp-6)); margin-inline: auto;
  padding: var(--sp-8) var(--sp-6) var(--sp-6); box-sizing: border-box;
  pointer-events: none;
}
.hl-map__ui > * > * { pointer-events: auto; }
.hl-map__top, .hl-map__bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-6); flex-wrap: wrap; }
.hl-map__bottom { align-items: flex-end; }

.hl-panel, .hl-near, .hl-layers, .hl-scrub {
  background: rgba(22, 24, 27, 0.86); border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hl-near { flex: 0 1 380px; min-width: 0; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.hl-near__title { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #93A6B6; }
.hl-near__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06); background: transparent; color: #EAF1F6; text-align: left;
}
.hl-near__row:hover { border-color: rgba(255, 255, 255, 0.22); }
.hl-near__row[aria-pressed='true'] { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.35); }
.hl-near__row:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hl-near__name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-near__range { font-size: 13px; color: #93A6B6; }
.hl-near__row[aria-pressed='true'] .hl-near__range { color: #EAF1F6; }
.hl-near__pill.card__rating { margin: 0; padding: 3px 8px; font-size: 11px; }

.hl-layers { display: flex; gap: 4px; flex-wrap: wrap; border-radius: 10px; padding: 5px; }
.hl-chip {
  min-height: 36px; padding: 0 14px; border-radius: 7px; border: 0; background: transparent;
  font: 500 12px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: #93A6B6;
}
.hl-chip:hover { color: #EAF1F6; }
.hl-chip[aria-pressed='true'] { background: #fff; color: #141416; }
.hl-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hl-map__copy { max-width: 34rem; display: flex; flex-direction: column; gap: 10px; }
.hl-map__copy .hl-kicker { margin: 0; color: #93A6B6; }
.hl-map__title { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: #fff; text-shadow: 0 1px 12px rgba(22, 24, 27, 0.6); }
.hl-map__lede { margin: 0; max-width: 30rem; font-size: 15px; line-height: 1.55; color: #C9D6E0; text-shadow: 0 1px 8px rgba(22, 24, 27, 0.7); }
.btn.hl-map__cta { align-self: flex-start; margin-top: 6px; min-height: 44px; background: #fff; color: #141416; border: 0; font-weight: 600; }
.btn.hl-map__cta:hover { background: #EAF1F6; }
.btn.hl-map__cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hl-scrub { margin: 0; border-radius: 10px; padding: 10px 14px; font-size: 12px; color: #C9D6E0; }
.hl-scrub[data-state='error'] { color: #F097A3; }
@media (max-width: 900px) {
  .hl-map { min-height: 760px; }
  .hl-near { flex-basis: 100%; }
}

/* ── Ideal Conditions Window (a static example) ───────────────────────────── */
.hl-ideal { background: var(--bg); border-bottom: 1px solid var(--line); }
.hl-ideal__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--sp-12); align-items: center; padding-block: var(--sp-16);
}
@media (max-width: 900px) { .hl-ideal__inner { grid-template-columns: minmax(0, 1fr); padding-block: var(--sp-12); gap: var(--sp-8); } }
.hl-ideal__title { margin: 0; font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; color: var(--text); }
.hl-ideal__title em { font-style: normal; color: var(--accent-text); }
.hl-ideal__lede { margin: var(--sp-5) 0 0; max-width: 32rem; font-size: var(--fs-body-lg); line-height: 1.6; color: var(--text-secondary); }
.hl-checks { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.hl-checks li { position: relative; padding-left: 26px; }
.hl-checks li::before {
  content: ''; position: absolute; left: 2px; top: 0.35em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--text-secondary); border-bottom: 2.5px solid var(--text-secondary); transform: rotate(-45deg);
}
.hl-checks strong { color: var(--text); }
.hl-ideal__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.hl-ideal__cta .btn { min-height: 44px; }

/* the example week: seven day rows stacked beside the copy, each with the
   day's best window as the app's ideal ring (css/surf-page.css .idl-ring) */
.hl-week { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.hl-week__head { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.hl-week__prefs { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hl-week__row { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hl-day {
  display: grid; grid-template-columns: 56px 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 6px 14px 6px 16px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.hl-day:hover { border-color: var(--line-strong); }
.hl-day[data-best] { border: 2px solid var(--tier-best); background: var(--bg); padding: 5px 13px 5px 15px; }
.hl-day__when { display: flex; align-items: center; line-height: 1.15; }  /* day name only (Grant, rev 7) */
.hl-day__name { font-weight: 700; font-size: 15px; color: var(--text); }
.hl-day__win { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hl-day__time { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
.hl-day__sub { font-size: 11px; color: var(--text-muted); }
.hl-day__tier {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px;
  color: color-mix(in srgb, var(--tier) 72%, var(--text)); background: color-mix(in srgb, var(--tier) 11%, transparent);
}
.hl-day[data-best] .hl-day__tier { background: var(--tier); color: #fff; }
:root[data-theme='dark'] .hl-day[data-best] .hl-day__tier { color: #141416; }

.hl-ideal { --tier-best: #287739; }
:root[data-theme='dark'] .hl-ideal { --tier-best: #98E28F; }
/* the app's tier colours (ideal_match_tier.dart, as css/surf-page.css) */
.hl-ideal [data-tier='best'] { --tier: #287739; }
.hl-ideal [data-tier='high'] { --tier: #087C6E; }
.hl-ideal [data-tier='mid']  { --tier: #8B5C09; }
.hl-ideal [data-tier='low']  { --tier: #B6324A; }
:root[data-theme='dark'] .hl-ideal [data-tier='best'] { --tier: #98E28F; }
:root[data-theme='dark'] .hl-ideal [data-tier='high'] { --tier: #72DDC7; }
:root[data-theme='dark'] .hl-ideal [data-tier='mid']  { --tier: #EFCA7D; }
:root[data-theme='dark'] .hl-ideal [data-tier='low']  { --tier: #F097A3; }
/* a neutral secondary button: no teal label (Grant, 2026-10-29) */
.btn.hl-btn-quiet { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); padding-block: calc(var(--btn-pad-y) - 1.5px); }
.btn.hl-btn-quiet:hover { border-color: var(--text-muted); background: var(--surface); }
.hl-ring {
  --p: 0; position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--tier) calc(var(--p) * 1turn), var(--line-strong) 0);
}
.hl-day[data-best] .hl-ring { background: conic-gradient(var(--tier) calc(var(--p) * 1turn), color-mix(in srgb, var(--tier) 22%, transparent) 0); }
.hl-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.hl-day[data-best] .hl-ring::before { background: var(--bg); }
.hl-ring__pct { position: relative; font: 700 14px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text); }
.hl-week__best { margin: var(--sp-1) 0 0; font-size: 14px; color: var(--text-secondary); }
.hl-week__best strong { color: var(--text); }

/* ── Three modes over a photo ─────────────────────────────────────────────── */
.hl-modes { position: relative; isolation: isolate; overflow: hidden; background: #EAF6F4; color: #0A1628; }
.hl-modes__photo, .hl-modes__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hl-modes__photo { z-index: -2; }
.hl-modes__photo img { object-fit: cover; object-position: center 55%; }
.hl-modes__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 40%, rgba(255, 255, 255, 0.55) 100%);
}
.hl-modes__inner { padding-block: var(--sp-20) var(--sp-8); }
.hl-modes .hl-kicker { color: #44555E; }
.hl-modes__title { margin: 0; font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: #0A1628; }
.hl-modes__lede { margin: var(--sp-3) 0 0; max-width: 34rem; font-size: var(--fs-body-lg); line-height: 1.55; color: #1C2B3A; }
.hl-modes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-12); }
@media (max-width: 900px) { .hl-modes__grid { grid-template-columns: minmax(0, 1fr); } }
.hl-mode {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--sp-6);
  border-radius: 16px; text-decoration: none; color: #0A1628;
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(10, 22, 40, 0.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.hl-mode:hover { border-color: rgba(10, 22, 40, 0.4); transform: translateY(-2px); }
.hl-mode:focus-visible { outline: 3px solid #0A1628; outline-offset: 3px; }
.hl-mode__stat { font-size: 2.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: #0A1628; }
.hl-mode__unit { font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #607079; }
.hl-mode__name { margin-top: var(--sp-3); font-size: 19px; font-weight: 700; color: #0A1628; }
.hl-mode__body { font-size: 15px; line-height: 1.55; color: #2E3F4B; }
.hl-mode__go { margin-top: auto; padding-top: var(--sp-3); font-weight: 600; font-size: 15px; color: #0A1628; }
.hl-modes__credit { margin: var(--sp-8) 0 0; font-size: 11px; color: #44555E; text-align: right; }
.hl-modes__credit a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .hl-mode:hover { transform: none; } }

/* ── Fetch+ band ──────────────────────────────────────────────────────────── */
.hl-plus { background: var(--surface); border-bottom: 1px solid var(--line); }
.hl-plus__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-12); align-items: start; padding-block: var(--sp-16);
}
@media (max-width: 900px) { .hl-plus__inner { grid-template-columns: minmax(0, 1fr); padding-block: var(--sp-12); gap: var(--sp-8); } }
.hl-plus__title { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.022em; line-height: 1.1; color: var(--text); }
.hl-plus__plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); align-items: stretch; }
@media (max-width: 480px) { .hl-plus__plans { grid-template-columns: minmax(0, 1fr); } }
.hl-plan.plan { min-height: 168px; text-align: left; }
.hl-plan--best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hl-plus__fine { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--text-muted); }

/* ── Colour rule (Grant, 2026-10-29) ──────────────────────────────────────
   No teal TEXT on the landing page except the "one app." / "without a
   camera." accents and the teal buttons (Explore, Set your ideal); the
   logo and the surf chart bars keep theirs. The Instagram strip's shared
   styles (css/home-sections.css) colour its eyebrow and profile link teal,
   so they are neutralised HERE, leaving that file and the strip's markup
   as they are. */
.igstrip .eyebrow, .igstrip__profile { color: var(--text-secondary); }
.igstrip__btn:hover { color: var(--text); }

/* ── Download Fetch: a band between the hero's chart and the trust strip ──── */
.hl-getapp { background: var(--accent-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hl-getapp__inner {
  max-width: var(--page-max, 1240px); margin: 0 auto; padding: 18px var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-4);
}
.hl-getapp__mark { flex: none; width: 44px; height: auto; }
.hl-getapp__copy { flex: 1 1 auto; min-width: 0; }
.hl-getapp__title { margin: 0; font: 800 20px/1.2 var(--font-sans, "Inter", sans-serif); color: var(--text); }
.hl-getapp__sub { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--text-2, var(--text-secondary)); }
.hl-getapp__btn { flex: none; }
@media (max-width: 640px) {
  .hl-getapp__inner { flex-wrap: wrap; padding: 16px var(--sp-4); }
  .hl-getapp__copy { flex-basis: calc(100% - 44px - var(--sp-4)); }
  .hl-getapp__btn { width: 100%; }
}

/* ═══ landing redesign (2026-11-16) ═════════════════════════════════════════
   The hero keeps the greeting panel, the headline, the description and the
   search; the mock range and chart are gone. Beside the headline: a fanned
   stack of three live cards, one per mode (js/home-live.js). Signed in, the
   pitch and the stack go and the page opens on the reader's favorites. */
/* Signed out the hero is the Flick banner + the intro box only; signed in
   it is the Flick banner, the greeting and the Explore search (no headline).
   :not([data-signed='in']) so the first paint, before JS knows, is the
   signed-out page. */
body:not([data-signed='in']) .hl-top,
body:not([data-signed='in']) .hl-hero__copy,
body:not([data-signed='in']) .hl-getapp { display: none; }
body[data-signed='in'] .hl-hero__copy { grid-column: 1 / -1; }
body[data-signed='in'] .hl-hero__copy .hl-title,
body[data-signed='in'] .hl-hero__copy .hl-sub { display: none; }
body[data-signed='in'] .hl-hero__inner { padding-bottom: var(--sp-8, 32px); row-gap: 0; }   /* the greeting floats clear of the section below */
.hl-lf { padding-block: var(--sp-10, 40px); }
body[data-signed='in'] .hl-lf { padding-top: var(--sp-10, 40px); }   /* a clear gap under the greeting panel */
.hl-plus__reviews:empty { display: none; }

/* reviews */
.hl-plus__reviews { margin-top: var(--sp-8, 32px); display: flex; flex-direction: column; gap: 14px; }
.hl-plus__revh, .hl-reviews__title { margin: 0; font: 800 24px/1.15 var(--font-sans, "Inter", sans-serif); letter-spacing: -0.02em; color: var(--text); }
.hl-reviews { padding-block: var(--sp-10, 40px); }
.hl-reviews .wrap { display: flex; flex-direction: column; gap: 14px; }
.hl-reviews[hidden], .hl-plus[hidden] { display: none; }
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rev { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-align: left; }
.rev__stars { letter-spacing: 3px; color: #E8AA34; font-size: 14px; }
.rev__q { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rev__t { font: 700 15px/1.3 var(--font-sans, "Inter", sans-serif); }
.rev__x { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2, var(--text-secondary)); }
.rev__who { margin-top: auto; font-size: 12px; color: var(--text-2, var(--text-secondary)); }
@media (max-width: 760px) { .revs { grid-template-columns: minmax(0, 1fr); } }
/* the rotating stage: one in front, its neighbours faded at the sides */
.revrot { position: relative; height: 268px; overflow: hidden; }
.revrot .rev { position: absolute; top: 6px; left: 50%; width: min(46%, 460px); height: 252px; overflow: hidden; cursor: pointer;
  transform: translateX(-50%) scale(0.7); opacity: 0; z-index: 0; transition: transform 0.6s ease, opacity 0.6s ease; }
.revrot .rev[data-slot='f'] { transform: translateX(-50%) scale(1); opacity: 1; z-index: 2; border-color: var(--text); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); cursor: default; }
.revrot .rev[data-slot='r'] { transform: translateX(42%) scale(0.84); opacity: 0.4; z-index: 1; }
.revrot .rev[data-slot='l'] { transform: translateX(-142%) scale(0.84); opacity: 0.4; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .revrot .rev { transition: none; } }
@media (max-width: 760px) {
  .revrot .rev { width: 78%; }
  .revrot .rev[data-slot='r'] { transform: translateX(-22%) scale(0.8); }
  .revrot .rev[data-slot='l'] { transform: translateX(-78%) scale(0.8); }
}

/* the Fetch+ window: the reviews float above it, detached; the window itself
   is two sides — logo, motto and benefits left, plans and the button right */
:is(#ov-plus, #ov-download) .plus__reviews { width: min(1040px, 100%); margin: 0 auto var(--sp-6, 24px); }
:is(#ov-plus, #ov-download) .plus__reviews .revrot { overflow: visible; }
:is(#ov-plus, #ov-download) .plus__reviews .rev { width: min(40%, 400px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
#ov-plus .ov__inner.plus { max-width: 940px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--sp-10, 40px);
  align-items: center; justify-items: stretch; text-align: left; padding: var(--sp-8, 32px); border-radius: 20px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22); }
#ov-plus .plus__left { display: flex; flex-direction: column; align-items: flex-start; }
#ov-plus .plus__left .plus__motto { margin-top: var(--sp-4, 16px); max-width: none; text-align: left; }
#ov-plus .plus__left .plus__benefits { margin-top: var(--sp-6, 24px); text-align: left; }
#ov-plus .plus__right { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
#ov-plus .plus__right .plus__toggle { margin-top: 0; align-self: center; }
@media (max-width: 820px) {
  #ov-plus .ov__inner.plus { grid-template-columns: minmax(0, 1fr); padding: var(--sp-5, 20px); gap: var(--sp-6, 24px); }
  :is(#ov-plus, #ov-download) .plus__reviews .rev { width: 78%; }
}

/* Flick of the Winter banner above the hero panel — the whole contest
   season (js/home-flick.js). Light ice box so the black warped wordmark
   (css/flick-title.css) reads in both themes. Spacing is its own: the hero
   grid's row gap is 40/32 px signed out but 0 signed in, and the old
   negative margin slid this box under the panel on a signed-in iPhone. */
.hl-flick {
  grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(14px, 3vw, 32px);
  padding: clamp(10px, 1.8vw, 16px) clamp(14px, 2.6vw, 26px); border-radius: 18px;
  background: linear-gradient(115deg, #FFFFFF 0%, #EEF7F8 55%, #DDF0F2 100%);
  border: 1.5px solid #0A0A0A; color: #0A0A0A; text-decoration: none;
  margin-bottom: calc(14px - var(--sp-10));
  box-shadow: 0 6px 0 #0A0A0A;
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (max-width: 900px) { .hl-flick { margin-bottom: calc(14px - var(--sp-8)); } }
/* dark mode (Grant, 2026-11-22: "same with flick of winter box"): the box
   turns dark and the wordmark, outline and Vote now flip to light, like the
   rest of the site */
:root[data-theme='dark'] .hl-flick {
  background: linear-gradient(115deg, var(--surface-raised) 0%, var(--surface) 100%);
  border-color: var(--text); box-shadow: 0 6px 0 var(--text); color: var(--text);
}
:root[data-theme='dark'] .hl-flick:hover { box-shadow: 0 8px 0 var(--text); }
:root[data-theme='dark'] .hl-flick:active { box-shadow: 0 3px 0 var(--text); }
:root[data-theme='dark'] .hl-flick .flk { color: var(--text); }
:root[data-theme='dark'] .hl-flick__go { background: var(--text); color: var(--bg); }
body[data-signed='in'] .hl-flick { margin-bottom: 14px; }
/* less ground around the banner (Grant, 2026-11-22: "feels boxy"): the hero
   hugs it — a thin strip above (under the header) and below (above the map
   or the greeting). Signed out the banner is the hero's only content, so
   the strip is all there is; with no contest on, the empty hero goes. */
.hl-hero__inner { padding-top: 12px; }
body:not([data-signed='in']) .hl-hero__inner { padding-bottom: 16px; }
body:not([data-signed='in']) .hl-flick { margin-bottom: 0; }
body:not([data-signed='in']) .hl-hero:has(.hl-flick[hidden]) { display: none; }
@media (max-width: 640px) {
  .hl-hero__inner { padding-top: 8px; }
  body:not([data-signed='in']) .hl-hero__inner { padding-bottom: 12px; }
}
.hl-flick[hidden] { display: none; }
.hl-flick:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #0A0A0A; }
.hl-flick:active { transform: translateY(3px); box-shadow: 0 3px 0 #0A0A0A; }
.hl-flick__title { flex: 1; }
.hl-flick .flk { font-size: min(12.4cqi, 5.2rem); }
.hl-flick__go {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: #0A0A0A; color: #fff; font-weight: var(--fw-label); font-size: var(--fs-body); white-space: nowrap;
}
.hl-flick__go span[aria-hidden] { display: inline-block; transition: transform .2s ease; }
.hl-flick:hover .hl-flick__go span[aria-hidden] { transform: translateX(4px); }
/* iPhone: the wordmark takes the full width, Vote now sits under it, right */
/* phones (Grant, 2026-11-22): the desktop box, scaled down — the wordmark
   and Vote now side by side inside one compact box, as little padding and
   ground around it as fits */
@media (max-width: 640px) {
  .hl-flick { gap: 8px; padding: 4px 8px 4px 10px; border-radius: 14px; box-shadow: 0 4px 0 #0A0A0A; }
  .hl-flick:hover { box-shadow: 0 4px 0 #0A0A0A; transform: none; }
  .hl-flick__go { gap: 3px; padding: 6px 10px; font-size: 11px; }
  :root[data-theme='dark'] .hl-flick, :root[data-theme='dark'] .hl-flick:hover { box-shadow: 0 4px 0 var(--text); }
}

/* ── Signed out: the map band opens the page (Grant, 2026-11-22) ─────────────
   Edge to edge under the Flick banner, with the intro (headline, Get started)
   on top of the map at the bottom-left, in the site's own
   type and colours. On phones it fills the screen under the header so Get
   started is on screen when the page opens on it (home-live.js landOnMap).
   Signed in, the band's own copy shows instead. */
.hl-map__intro { display: none; }
/* the intro (Grant, 2026-11-22): the Fetch mark, the headline and Get
   started straight on the map — no box, no fade into the page (the map ends
   at a clean edge above "Three modes. One app."). The map is dark in both
   themes, so the type is white over the band's own dark shade, and Get
   started is the white button the band already uses. */
body:not([data-signed='in']) .hl-map__intro { display: flex; flex-direction: column; gap: 16px; max-width: 36rem; }
/* signed out, where things sit on the map (Grant, 2026-11-22):
   wide screens  the headline, mark and Get started on the LEFT, vertically
                 centred; the spot picker stacked over the layer chips at the
                 bottom RIGHT; the data stamp bottom-left.
   ≤ 900 px      the phone look: the intro at the top (a little air under the
                 Flick banner), the picker and the chips at the bottom. */
@media (min-width: 901px) {
  body:not([data-signed='in']) .hl-map__ui { flex-direction: row-reverse; align-items: stretch; }
  body:not([data-signed='in']) .hl-map__bottom { flex: 1; align-self: center; align-items: center; }
  body:not([data-signed='in']) .hl-map__top { flex: none; width: min(380px, 40%); flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-end; gap: 10px; }
  body:not([data-signed='in']) .hl-map__top .hl-near { flex: none; }
  body:not([data-signed='in']) .hl-map__top .hl-layers { justify-content: space-between; }
  body:not([data-signed='in']) .hl-map__top .hl-chip { padding: 0 10px; }
  body:not([data-signed='in']) .hl-scrub { position: absolute; left: var(--sp-6); bottom: var(--sp-6); }
  body:not([data-signed='in']) .hl-map .hl-map__shade {
    background: linear-gradient(90deg, rgba(22, 24, 27, 0.88) 0%, rgba(22, 24, 27, 0.55) 28%, rgba(22, 24, 27, 0) 55%);
  }
}
/* ≤ 900 px (Grant, 2026-11-22): a fresh open shows ONLY the headline, the
   mark and Get started, centred on the first screen of map and made to stand
   out (bigger type, a dark glow behind it). The spot picker, the layer chips
   and the time box sit below that screen — they show when the reader scrolls. */
@media (max-width: 900px) {
  body:not([data-signed='in']) .hl-map__ui { flex-direction: column-reverse; }
  body:not([data-signed='in']) .hl-map__bottom {
    min-height: calc(100svh - var(--nav-h, 64px) - 30px);
    align-items: center; justify-content: center;
  }
  body:not([data-signed='in']) .hl-map__top { align-items: flex-end; }
  body:not([data-signed='in']) .hl-map .hl-map__shade {
    background:
      radial-gradient(120% 360px at 50% calc((100svh - var(--nav-h, 64px)) / 2), rgba(22, 24, 27, 0.72) 0%, rgba(22, 24, 27, 0.42) 45%, rgba(22, 24, 27, 0) 100%),
      linear-gradient(0deg, rgba(22, 24, 27, 0.55) 0%, rgba(22, 24, 27, 0) 320px);
  }
}
.hl-map__intro-h { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }   /* the mark sits under "you." */
.hl-map__intro-lines { display: flex; flex-direction: column; }
.hl-map__intro-lines > span { display: block; white-space: nowrap; }
.hl-map__intro-logo { flex: none; width: clamp(44px, 5vw, 64px); height: auto; filter: drop-shadow(0 2px 10px rgba(22, 24, 27, 0.6)); }
body:not([data-signed='in']) .hl-map .hl-map__copy { display: none; }
.hl-map__intro-h { margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; color: #fff; text-wrap: balance; text-shadow: 0 1px 14px rgba(22, 24, 27, 0.6); }
.hl-map__intro-go { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.hl-map__intro-go .btn.hl-map__cta { margin-top: 0; padding-inline: 26px; font-size: 1rem; font-weight: 700; }
@media (max-width: 900px) {
  body:not([data-signed='in']) .hl-map { min-height: calc(100svh - var(--nav-h, 64px) + 250px); }
  body:not([data-signed='in']) .hl-map__ui { padding: 12px 14px 18px; }
  body:not([data-signed='in']) .hl-map__intro { gap: 22px; max-width: none; align-items: center; text-align: center; }
  body:not([data-signed='in']) .hl-map__intro-h { gap: 16px; align-items: center; font-size: clamp(2.7rem, 12.5vw, 4.2rem); text-shadow: 0 2px 22px rgba(22, 24, 27, 0.75); }
  body:not([data-signed='in']) .hl-map__intro-logo { width: 68px; }
  body:not([data-signed='in']) .hl-map__intro-go { justify-content: center; }
  body:not([data-signed='in']) .hl-map__intro-go .btn.hl-map__cta { justify-content: center; min-height: 58px; padding-inline: 40px; font-size: 1.15rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
  .hl-near { padding: 8px; gap: 2px; }
  .hl-near__title { display: none; }
  .hl-near__row { min-height: 38px; padding: 5px 8px; }
  .hl-layers { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 3px; }
  .hl-layers::-webkit-scrollbar { display: none; }
  .hl-chip { flex: none; min-height: 32px; padding: 0 10px; font-size: 11px; }
  /* the time box: bottom right, beside the layer chips, under the spot
     picker (Grant, 2026-11-22). The chips keep to the room left of it and
     swipe sideways. */
  body:not([data-signed='in']) .hl-scrub {
    position: absolute; right: 14px; bottom: 18px; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; height: 38px; line-height: 13px; padding: 0 9px; font-size: 10px; white-space: nowrap;
    width: 148px; overflow: hidden; text-align: center;
  }
  /* the model name sits under the time, without its " · " */
  body:not([data-signed='in']) .hl-scrub__model { font-size: 0; opacity: .75; }
  body:not([data-signed='in']) .hl-scrub__model::after { content: attr(data-model); font-size: 9px; }
  /* the chips stop short of the time box (its 148 px + a 10 px gap), so the
     two never overlap on any phone width */
  body:not([data-signed='in']) .hl-map__top .hl-layers { flex: none; width: calc(100% - 158px); max-width: calc(100% - 158px); box-sizing: border-box; align-self: flex-start; }
}
