/* Archivo, the app's one typeface (docs/design/phase-3), shipped with the app so it works offline and looks the same on
   every device. Variable in weight and width: the dense forecast tables set their numbers semi-condensed. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Public site (/, /pricing, /about, /privacy, /terms). Plain CSS, no framework.
 *
 * The colour tokens below are a copy of the ones in src/index.css, under the same [data-theme] switch that
 * public/theme-init.js sets before first paint, so the public pages and the app match. server/site/site.test.ts fails
 * when a shared token differs from src/index.css. Text sizes and spacing are the public pages' own.
 */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --app: #060708;
  --surface: #0d1012;
  --raised: #15191d;
  --line: #1b1e22;
  --line-strong: #2c3136;
  --fg: #f2f4f5;
  --fg-2: #c8cbce;
  --fg-muted: #9ca0a5;
  --fg-subtle: #858a8f;
  --on-accent: #ffffff;
  --focus: #60a5fa;
  --series-wave: #97c5de;
  --series-wind: #e3e5e7;
  --series-power: #c8cbce;
  --series-tide: #6d9fc2;
  /* Public-only: link text (sky-400 / sky-700 in the app), the primary button (blue-600) and its hover */
  --link: #38bdf8;
  --btn: #2563eb;
  --btn-hover: #1d4ed8;
  --glow: rgb(37 99 235 / 0.22);
  --viz-sea: #0e1920;
  --viz-land: #24272a;
  --viz-cell: #94a3b8;
  /* Text in the sketches: the series colours in dark, darker shades in light so small labels pass 4.5:1 on the sea tint */
  --t-wind: #fbbf24;
  --t-power: #34d399;
  --t-wave: #22d3ee;
  /* Rating tiers: TIER_COLOR and TIER_TEXT_ON_FILL of src/theme/spotTiers.ts (site.test.ts checks they match) */
  --tier-poor: #ba585c;
  --tier-fair: #fb9c06;
  --tier-good: #65c16a;
  --tier-great: #6ff6c5;
  --tier-epic: #fff066;
  /* Poor's ink (TIER_TEXT_ON_DARK / _LIGHT): Poor as small text, readable on every background */
  --tier-poor-ink: #c1696c;
  --tier-poor-on: #ffffff;
  --tier-fair-on: #0b0d0f;
  --tier-good-on: #0b0d0f;
  --tier-great-on: #0b0d0f;
  --tier-epic-on: #0b0d0f;
  --shadow: 0 12px 40px rgb(0 0 0 / 0.45);
  --store-bg: #000000;
  --store-fg: #ffffff;
}

[data-theme="light"] {
  color-scheme: light;
  --app: #f3f6fa;
  --surface: #ffffff;
  --raised: #edf0f3;
  --line: #dfe2e6;
  --line-strong: #cfd2d5;
  --fg: #161718;
  --fg-2: #3e4042;
  --fg-muted: #5e6163;
  --fg-subtle: #727577;
  --on-accent: #ffffff;
  --focus: #2563eb;
  --series-wave: #2e6a8a;
  --series-wind: #3e4042;
  --series-power: #3e4042;
  --series-tide: #2e6a8a;
  --link: #0369a1;
  --btn: #2563eb;
  --btn-hover: #1d4ed8;
  --glow: rgb(37 99 235 / 0.1);
  --viz-sea: #dbeafe;
  --viz-land: #e2e5e9;
  --viz-cell: #475569;
  --t-wind: #92400e;
  --t-power: #065f46;
  --t-wave: #155e75;
  --tier-poor: #e25359;
  --tier-fair: #d87e0a;
  --tier-good: #007230;
  --tier-great: #00a39e;
  --tier-epic: #ffbd00;
  --tier-poor-ink: #be3d44;
  --tier-poor-on: #0b0d0f;
  --tier-fair-on: #0b0d0f;
  --tier-good-on: #ffffff;
  --tier-great-on: #0b0d0f;
  --tier-epic-on: #0b0d0f;
  --shadow: 0 12px 36px rgb(15 23 42 / 0.16);
  --store-bg: #000000;
  --store-fg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--app);
  color: var(--fg);
  font: 16px/1.6 'Archivo', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
p, li { margin: .5rem 0; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
code { font-size: .9em; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: 8px; top: -3rem; background: var(--btn); color: var(--on-accent); padding: .5rem .9rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.muted { color: var(--fg-muted); }
.small { font-size: .875rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--app); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: .5rem 1rem; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); font-weight: 700; font-size: 1.15rem; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 9px; display: block; }
.site-nav { display: flex; align-items: center; gap: .25rem .5rem; }
.site-nav a:not(.btn) { color: var(--fg-2); text-decoration: none; padding: .4rem .6rem; border-radius: 8px; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--fg); background: var(--raised); }
.theme-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-2); border-radius: 10px; cursor: pointer; }
.theme-toggle:hover { color: var(--fg); }
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="light"] .icon-sun, :root:not([data-theme="light"]) .icon-moon { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.25rem; border-radius: 12px; font: inherit; font-weight: 650; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--btn); color: var(--on-accent); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--raised); }
.btn-small { min-height: 40px; padding: .4rem .9rem; font-size: .95rem; }

/* Sections */
section { padding: 3rem 0; }
.section-head { max-width: 42rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--fg-2); margin-top: .75rem; }
.eyebrow { font-size: .875rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); margin-bottom: 1rem; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding: 2rem 0 2.5rem; background: radial-gradient(60rem 24rem at 30% -10%, var(--glow), transparent 70%); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy { min-width: 0; }
.hero .eyebrow { color: var(--series-wave); margin-bottom: .75rem; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; max-width: 17ch; text-wrap: balance; }
.hero .lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: var(--fg-2); max-width: 36rem; margin-top: 1rem; }
.hero-media { min-width: 0; }
.hero-media img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; align-items: stretch; }
.btn-large { flex-direction: column; gap: 0; min-height: 56px; padding: .6rem 1.6rem; font-size: 1.1rem; line-height: 1.25; }
.btn-large small { font-size: .78rem; font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Spot search */
.search { position: relative; margin-top: 1.5rem; max-width: 36rem; }
.search-box { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: .3rem .3rem .3rem .9rem; }
.search-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--glow); }
.search-box svg { width: 18px; height: 18px; flex: none; color: var(--fg-muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 1rem; padding: .55rem 0; outline: none; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-results { list-style: none; margin: .4rem 0 0; padding: .35rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; position: absolute; left: 0; right: 0; z-index: 4; box-shadow: var(--shadow); }
.search-results li, .search-page-results li { margin: 0; }
.search-results a, .search-page-results a { display: flex; flex-direction: column; padding: .5rem .65rem; border-radius: 10px; text-decoration: none; color: var(--fg); }
.search-results [role="option"]:not([aria-disabled="true"]) { display: flex; flex-direction: column; padding: .5rem .65rem; border-radius: 10px; color: var(--fg); cursor: pointer; }
.search-results [role="option"]:not([aria-disabled="true"]):hover, .search-results [role="option"][aria-selected="true"] { background: var(--raised); outline: none; }
.hit-name { font-weight: 650; }
.hit-place { color: var(--fg-muted); font-size: .85rem; }
.search-results .search-empty { padding: .5rem .65rem; color: var(--fg-muted); font-size: .9rem; }
.search-page-results { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .25rem; max-width: 36rem; }
.search-page-results a { border: 1px solid var(--line); background: var(--surface); }

/* Best right now */
.section-row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.section-row p { margin: 0; }
.best { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.best li { margin: 0; }
.best-card { display: grid; gap: .35rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--app); color: var(--fg); text-decoration: none; height: 100%; }
.best-card:hover { border-color: var(--line-strong); background: var(--raised); }
.best-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.best-name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.best-place { color: var(--fg-muted); font-size: .85rem; }
.best-nums { display: flex; gap: 1rem; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.best-nums strong { color: var(--fg); font-size: 1.1rem; }
.tier { display: inline-block; flex: none; font-size: .7rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; }
.tier-poor { background: var(--tier-poor); color: var(--tier-poor-on); }
.tier-fair { background: var(--tier-fair); color: var(--tier-fair-on); }
.tier-good { background: var(--tier-good); color: var(--tier-good-on); }
.tier-great { background: var(--tier-great); color: var(--tier-great-on); }
.tier-epic { background: var(--tier-epic); color: var(--tier-epic-on); box-shadow: 0 0 12px var(--tier-epic); }

/* Spot pages */
.crumbs ol { list-style: none; margin: 0; padding: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .85rem; color: var(--fg-muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; }
.spot-head { padding: .75rem 0 1.25rem; display: grid; gap: .5rem; }
.spot-head h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.spot-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--fg-2); }
.units { display: inline-flex; justify-self: start; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.units button { font: inherit; font-size: .85rem; font-weight: 650; padding: .3rem .8rem; border: 0; background: transparent; color: var(--fg-2); cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--btn); color: var(--on-accent); }
.spot-grid { display: grid; gap: 1rem; }
.spot-main, .spot-side { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card h2 { font-size: 1.15rem; }
.card-head h2 .muted { font-weight: 500; font-size: .95rem; }
.now-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.now-grid div { min-width: 0; }
.now-grid dt { color: var(--fg-muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.now-grid dd { margin: .15rem 0 0; color: var(--fg-2); font-size: .85rem; }
.now-grid strong { display: block; color: var(--fg); font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.15; }
.wind-words { margin: 0; color: var(--series-power); font-weight: 650; }
.days { list-style: none; margin: 0; padding: 0; display: grid; }
.day { margin: 0; padding: .75rem 0; border-top: 1px solid var(--line); display: grid; gap: .45rem; }
.day:first-child { border-top: 0; padding-top: 0; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.day-head h3 { font-size: 1rem; }
.day-nums { color: var(--fg-2); font-size: .9rem; font-variant-numeric: tabular-nums; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.parts li { margin: 0; display: grid; gap: .25rem; justify-items: start; background: var(--raised); border-radius: 10px; padding: .45rem .55rem; }
.part-name { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); }
.day-wind { margin: 0; font-size: .85rem; color: var(--fg-2); }
.more-days { margin: 0; padding-top: .5rem; border-top: 1px dashed var(--line-strong); font-size: .9rem; }
.tier-none { background: var(--raised); color: var(--fg-muted); }
.compass { width: 100%; max-width: 220px; height: auto; justify-self: center; display: block; }
.compass text { font: 700 11px 'Archivo', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--fg-muted); }
.compass-sea { fill: var(--viz-sea); stroke: var(--line-strong); }
.compass-window { fill: var(--series-wave); fill-opacity: .2; stroke: var(--series-wave); stroke-width: 1.5; }
.compass-off { fill: var(--series-power); fill-opacity: .14; }
.compass-facing { stroke: var(--series-wave); stroke-width: 2.5; stroke-linecap: round; }
.compass-wind { stroke: var(--series-power); stroke-width: 3; stroke-linecap: round; fill: none; }
.compass-dot { fill: var(--fg); }
.wind-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .88rem; color: var(--fg-2); }
.wind-legend li { margin: 0; }
.wl { display: inline-block; font-size: .75rem; font-weight: 700; padding: .05rem .4rem; border-radius: 6px; border: 1px solid var(--line-strong); margin-right: .25rem; }
.wl-off { color: var(--t-power); border-color: var(--series-power); }
.wl-cross { color: var(--t-wind); border-color: var(--series-wind); }
.wl-on { color: var(--tier-poor-ink); border-color: var(--tier-poor); }
.sat-frame { border-radius: 12px; overflow: hidden; background: var(--viz-sea); border: 1px solid var(--line); }
.sat { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.sat-bg { fill: var(--viz-sea); }
.sat-ring { fill: none; stroke: var(--on-accent); stroke-width: 4; }
.sat[hidden] { display: none; }
.sat-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sat-thumbs li { margin: 0; }
.sat-thumb { width: 100%; display: grid; gap: .2rem; padding: .35rem; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.sat-thumb:hover { border-color: var(--line-strong); }
.sat-thumb[aria-pressed="true"] { border-color: var(--focus); box-shadow: 0 0 0 2px var(--glow); }
.sat-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--viz-sea); }
.sat-date { font-size: .8rem; font-weight: 650; }
.sat-cloud { font-size: .72rem; color: var(--fg-muted); line-height: 1.3; }
.sat-links { margin: 0; font-weight: 650; }
.near { list-style: none; margin: 0; padding: 0; }
.near li { margin: 0; border-top: 1px solid var(--line); }
.near li:first-child { border-top: 0; }
.near a { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .55rem 0; color: var(--fg); text-decoration: none; }
.near a:hover .near-name { text-decoration: underline; }
.near-km { color: var(--fg-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dot-poor { background: var(--tier-poor); } .dot-fair { background: var(--tier-fair); } .dot-good { background: var(--tier-good); }
.dot-great { background: var(--tier-great); } .dot-epic { background: var(--tier-epic); }
.months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; align-items: end; height: 80px; }
.months li { margin: 0; display: grid; gap: 2px; height: 100%; align-content: end; }
.bar { display: block; background: var(--fg-subtle); border-radius: 3px; }
.bar-0 { height: 2px; } .bar-1 { height: 6px; } .bar-2 { height: 12px; } .bar-3 { height: 18px; } .bar-4 { height: 24px; } .bar-5 { height: 30px; }
.bar-6 { height: 36px; } .bar-7 { height: 42px; } .bar-8 { height: 48px; } .bar-9 { height: 54px; } .bar-10 { height: 60px; }
.bar-label { font-size: .65rem; color: var(--fg-muted); text-align: center; }
.spot-cta { display: flex; flex-wrap: wrap; gap: .75rem; padding: 1.5rem 0 3rem; align-items: stretch; }
.spot-index { list-style: none; margin: .75rem 0 2rem; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.spot-index li { margin: 0; }
.spot-index a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: .5rem; align-items: center; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; height: 100%; }
.spot-index a:hover { border-color: var(--line-strong); background: var(--raised); }
.index-name { font-weight: 700; }
.index-place { grid-row: 2; color: var(--fg-muted); font-size: .85rem; }
.spot-index .tier { grid-row: 1 / span 2; grid-column: 2; }
.index-groups { padding-bottom: 2rem; }
.index-groups h2 { font-size: 1.3rem; }

/* App stores */
.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store { display: inline-flex; align-items: center; gap: .65rem; min-height: 54px; padding: .45rem 1.1rem .45rem .85rem; border-radius: 12px; background: var(--store-bg); color: var(--store-fg); border: 1px solid var(--line-strong); text-decoration: none; line-height: 1.15; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: .72rem; opacity: .85; }
.store strong { font-size: 1.05rem; font-weight: 650; }
.store-soon { background: transparent; color: var(--fg); border-style: dashed; }
.store-soon small { color: var(--fg-muted); opacity: 1; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: 1.5rem 0 0; list-style: none; color: var(--fg-muted); font-size: .9rem; }
.hero-facts li { margin: 0; }
.hero-facts strong { color: var(--fg); }

/* Feature cards */
.features { display: grid; gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.alt .card { background: var(--app); }
.card h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card p { margin: 0; color: var(--fg-2); }
.card .note { color: var(--fg-muted); font-size: .9rem; }
.shot-card { padding: 0; overflow: hidden; gap: 0; }
.shot-card h3, .shot-card p { padding: 0 1.25rem; }
.shot-card h3 { padding-top: 1.1rem; margin-bottom: .5rem; }
.shot-card p { padding-bottom: 1.25rem; }
.shot { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top center; background: var(--app); border-bottom: 1px solid var(--line); }
.viz { width: 100%; height: auto; border-radius: 12px; display: block; }
.viz text { font: 600 11px 'Archivo', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--fg-2); }
.viz .t-off { fill: var(--t-power); }
.viz .t-cross { fill: var(--t-wind); }
.viz .t-hit { fill: var(--t-wave); }
.viz .sea { fill: var(--viz-sea); }
.viz .land { fill: var(--viz-land); }
.viz .swell { stroke: var(--series-wave); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.viz .shade { fill: var(--viz-cell); fill-opacity: .22; }
.viz .cell { stroke: var(--viz-cell); fill: none; stroke-width: 1.5; stroke-dasharray: 5 4; }
.viz .bar-model { fill: var(--series-tide); }
.viz .bar-surf { fill: var(--series-power); }
.viz .wind-off { stroke: var(--series-power); fill: var(--series-power); }
.viz .wind-cross { stroke: var(--series-wind); fill: var(--series-wind); }
.viz .wind-on { stroke: #ef4444; fill: #ef4444; }
.viz .arrow { stroke-width: 2.5; stroke-linecap: round; }
.viz .window { fill: var(--series-wave); fill-opacity: .25; stroke: var(--series-wave); stroke-width: 1.5; }
.viz .tick { stroke: var(--fg-muted); stroke-width: 1.5; stroke-linecap: round; }
.viz .tick-cloud { stroke: var(--fg-muted); stroke-opacity: .35; stroke-width: 1.5; stroke-linecap: round; }
.viz .tick-match { stroke: var(--series-wave); stroke-width: 3; stroke-linecap: round; }
.viz .frame { fill: var(--viz-land); stroke: var(--line-strong); }
.viz .frame-hit { stroke: var(--series-wave); stroke-width: 2; }
.viz .frame-sea { fill: var(--viz-sea); }
.viz .frame-foam { fill: none; stroke: var(--fg-2); stroke-width: 1.5; stroke-linecap: round; opacity: .8; }
.viz .axis { stroke: var(--line-strong); stroke-width: 1; }
.viz .ink { stroke: var(--fg-2); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.viz .dot { fill: var(--fg); }
.badge { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--series-wave); color: var(--series-wave); border-radius: 999px; padding: .1rem .5rem; }
.badge-soon { border-color: var(--line-strong); color: var(--fg-muted); }

/* Coverage */
.stats { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.stats li { margin: 0; }
.stat-num { display: block; font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.stat-label { color: var(--fg-muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chips li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; color: var(--fg-2); }
.chips li span { color: var(--fg-muted); margin-left: .35rem; font-variant-numeric: tabular-nums; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.steps li { margin: 0; position: relative; padding-left: 3rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--btn); color: var(--on-accent); }
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--fg-2); }

/* Plans */
.plans { display: grid; gap: 1rem; }
.plans .card h3 { font-size: 1.1rem; }
.plans ul, .tiers ul { margin: 0; padding-left: 1.2rem; color: var(--fg-2); }
.plans li, .tiers li { margin: .3rem 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: .25rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; padding: .75rem 0; list-style-position: inside; }
.faq details > :not(summary) { color: var(--fg-2); margin: 0 0 1rem; }

/* Pricing */
.page-title { padding: 2.5rem 0 1rem; }
.page-title h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); letter-spacing: -.02em; }
.page-title p { color: var(--fg-2); max-width: 42rem; margin-top: .75rem; }
.tiers { display: grid; gap: 1.25rem; }
.tier-name { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tier-note { color: var(--fg-muted); font-size: .9rem; margin: 0; }
.planned { color: var(--fg-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--fg-muted); font-size: .9rem; }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand { font-size: 1rem; margin: 0 0 .5rem; }
.footer-brand p { margin: 0; max-width: 22rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .35rem; }
.site-footer nav h2 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); margin-bottom: .25rem; }
.site-footer nav a { color: var(--fg-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--fg); text-decoration: underline; }
.footer-legal { margin-top: 1.25rem; }
.credits { margin-top: 1rem; }
.credits summary { cursor: pointer; font-weight: 650; color: var(--fg-2); }
.credits p { margin: .6rem 0; }
.credits strong { color: var(--fg-2); }

/* Long text (about, privacy, terms) */
.prose { max-width: 42rem; padding: 2rem 0 4rem; }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.2rem); margin-bottom: .25rem; }
.prose h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.prose .lead { font-size: 1.1rem; margin-top: 1rem; }
.prose .button { display: inline-block; margin-top: .75rem; padding: .6rem 1.2rem; border-radius: 12px; background: var(--btn); color: var(--on-accent); text-decoration: none; font-weight: 650; }

@media (max-width: 47.99rem) {
  .site-nav .nav-map { display: none; }
  .cta .btn-large, .spot-cta .btn-large { flex: 1 1 100%; }
  /* The one action on a spot page stays in reach on a phone */
  .spot-cta { position: sticky; bottom: 0; z-index: 3; background: var(--app); border-top: 1px solid var(--line); padding: .75rem 0; margin-top: 1rem; }
  .spot-cta .btn-ghost { display: none; }
  /* On a phone the best spots scroll sideways instead of stacking five tall cards */
  .best { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .best li { scroll-snap-align: start; }
}

@media (max-width: 30rem) {
  .site-nav .nav-about, .site-nav .nav-pricing { display: none; }
  .site-header .wrap { flex-wrap: nowrap; gap: .25rem; }
  .site-nav { gap: 0; }
  .site-nav a:not(.btn) { padding: .4rem .5rem; }
  .btn-small { padding: .4rem .75rem; }
}

@media (min-width: 48rem) {
  section { padding: 4.5rem 0; }
  .hero { padding: 4rem 0 4rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; }
  .footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .spot-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .footer-brand { grid-column: auto; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
