/* SeaVectors how-to pages (/official-charts/, /models/, /routing/, /nmea/,
   /ais/) in the home page's App Store style: system grouped colours in light
   and dark, icon blue as the accent, white cards on grey, one colour per page
   (the same colour as that feature's icon on the home page).
   Self-contained: these pages no longer load subscribe.css, models.css,
   routing.css or videos.css. */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --fill: rgba(118, 118, 128, .12);
  --text: #000000;
  --muted: rgba(60, 60, 67, .62);
  --faint: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .2);
  --bar: rgba(249, 249, 249, .82);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --accent: #0c65ff;
  /* System colours, under the names the page markup already uses. */
  --blue: #007aff;
  --green: #34c759;
  --amber: #ff9500;
  --orange: #ff9500;
  --coral: #ff3b30;
  --violet: #af52de;
  --cyan: #32ade6;
  --sky: #5e8bff;
  --sys-charts: #007aff;
  --sys-weather: #32ade6;
  --sys-routing: #34c759;
  --sys-nmea: #ff9500;
  --sys-ais: #ff3b30;
  --page: 1160px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --fill: rgba(118, 118, 128, .24);
    --text: #ffffff;
    --muted: rgba(235, 235, 245, .62);
    --faint: rgba(235, 235, 245, .3);
    --sep: rgba(84, 84, 88, .6);
    --bar: rgba(22, 22, 24, .82);
    --shadow: none;
    --blue: #0a84ff;
    --green: #30d158;
    --amber: #ff9f0a;
    --orange: #ff9f0a;
    --coral: #ff453a;
    --violet: #bf5af2;
    --cyan: #64d2ff;
    --sky: #7d9fff;
    --sys-charts: #0a84ff;
    --sys-weather: #64d2ff;
    --sys-routing: #30d158;
    --sys-nmea: #ff9f0a;
    --sys-ais: #ff453a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }
button { font: inherit; color: inherit; }
b { font-weight: 600; }

.wide { width: min(var(--page), 100% - 48px); margin-inline: auto; }
.howto { --pc: var(--accent); }

/* Buttons */
.cta {
  display: inline-grid; place-items: center; height: 46px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: filter .15s, transform .15s;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ghost { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ghost:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.big { height: 54px; padding: 0 30px; font-size: 18px; }
.pill-btn { flex: none; white-space: nowrap; display: inline-grid; place-items: center; height: 32px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }

/* Nav: the home page's bar. */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--sep); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 56px; }
.wordmark { flex: none; display: block; width: 124px; height: 19px; background: var(--text); -webkit-mask: var(--mark) left center / contain no-repeat; mask: var(--mark) left center / contain no-repeat; }
.nav-site { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-site a { white-space: nowrap; }
.nav-site a:hover, .nav-site a[aria-current="page"] { color: var(--accent); }
.nav-site .features { color: var(--muted); }

/* Hero: the feature's icon, its name, the promise, then the clip. */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 0 0; }
.hero-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 20px; color: #fff; font-size: 38px; background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 82%, #fff), var(--pc)); box-shadow: 0 14px 32px -12px color-mix(in srgb, var(--pc) 70%, transparent); }
.eyebrow { margin-top: 20px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pc); }
.hero h1 { margin-top: 10px; font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.lede { margin-top: 18px; max-width: 34em; font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.price-line { margin-top: 14px; font-size: 15px; color: var(--muted); }
.price-line b { color: var(--text); }
.jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; max-width: 900px; }
.jump a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--fill); }
.jump a:hover { color: #fff; background: var(--pc); }

/* iPad frame */
.route-video { max-width: 1000px; margin: 52px auto 0; }
.ipad { position: relative; border-radius: 18px; background: #000; margin: 7px; box-shadow: 0 0 0 6px #1b1d20, 0 0 0 7px #3a3d42, 0 30px 70px -24px rgba(0, 0, 0, .5); }
.ipad-camera { display: none; }
.ipad-screen { position: relative; height: 0; padding-top: 69.44%; border-radius: inherit; overflow: hidden; background: #000; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.ipad-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.block .route-video { max-width: 900px; margin-top: 36px; }

/* Sections */
.block, .coverage { padding-top: 120px; text-align: center; }
.block h2, .coverage h2, .closing h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.block > .sub, .coverage > .sub { max-width: 40em; margin: 12px auto 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.sub a, .card a { color: var(--accent); font-weight: 600; }
.sub a:hover, .card a:hover { text-decoration: underline; }
.note { max-width: 46em; margin: 22px auto 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.note b { color: var(--text); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; text-align: left; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { --c: var(--pc); padding: 22px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; line-height: 1.3; }
/* A card's icon becomes a small app-style tile, like the home page's feature rows. */
.card h3 i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-size: 15px; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); }
.card > p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.card b { color: var(--text); }
.card .agency { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--c); }
/* Model kinds on /models/ and routing cards: a coloured dot, matching the legend. */
.card.official { --c: var(--green); }
.card.high-res { --c: var(--cyan); }
.card.global { --c: var(--blue); }
.card.official h3::before, .card.high-res h3::before, .card.global h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.card.official h3:has(i)::before, .card.high-res h3:has(i)::before, .card.global h3:has(i)::before { display: none; }
.card dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 28px; margin: 16px 0 0; }
.card dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card > p.chips { margin-top: 14px; }
.chips span { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--fill); }

/* Numbered steps */
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; text-align: left; }
.chain.four { grid-template-columns: repeat(4, 1fr); }
.chain.five { grid-template-columns: repeat(5, 1fr); }
.chain li { --c: var(--pc); padding: 22px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.chain .step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; font-weight: 700; color: #fff; background: var(--c); }
.chain h3 { margin-top: 14px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.chain p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.chain.four p, .chain.five p { font-size: 14px; }
.chain b { color: var(--text); }
.chain + .cards { margin-top: 14px; }

/* Grouped list, like iOS Settings: limits, troubleshooting, settings. */
.limits, .priority { max-width: 820px; margin: 32px auto 0; padding: 0; list-style: none; text-align: left; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.limits li, .priority li { position: relative; padding: 16px 22px 16px 56px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.limits li + li, .priority li + li { border-top: .5px solid var(--sep); }
.limits b, .priority b { color: var(--text); }
.limits li::before { content: "\f05a"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 22px; top: 16px; color: var(--pc); }
.priority { counter-reset: p; }
.priority li::before { counter-increment: p; content: counter(p); position: absolute; left: 18px; top: 15px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: var(--pc); }
.limits + .cards { margin-top: 14px; }

/* Routing: depth formula */
.formula { display: grid; gap: 12px; max-width: 760px; margin: 32px auto 0; }
.eq { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.eq .grp { display: inline-flex; align-items: center; gap: 10px; }
.eq .term { padding: 10px 16px; border-radius: 12px; font-weight: 600; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 .5px var(--sep); }
.eq .result { color: #fff; background: var(--pc); box-shadow: none; }
.eq .op { font-size: 20px; font-weight: 700; color: var(--muted); }

/* Routing: channel drawing stays a dark chart, framed like the map. */
.channel { max-width: 960px; margin: 36px auto 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.channel svg { display: block; width: 100%; height: auto; }

/* Colour keys (route colours, AIS risk levels) */
.colours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; text-align: left; }
#levels .colours { grid-template-columns: repeat(3, 1fr); }
.colours > div { display: flex; gap: 16px; padding: 20px 22px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.swatch { flex: none; width: 34px; height: 8px; margin-top: 9px; border-radius: 4px; background: var(--s); }
.colours b { font-size: 17px; }
.colours p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* NMEA: sensors → network → gateway → app */
.pipeline { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; max-width: 860px; margin: 32px auto 0; }
.pipeline span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 600; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 .5px var(--sep); }
.pipeline span i { color: var(--pc); }
.pipeline .sep { font-size: 12px; color: var(--faint); }

/* Models: forecast hand-over bar */
.handoff { max-width: 760px; margin: 32px auto 0; text-align: left; }
.handoff-label { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.handoff .bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; }
.handoff .bar span { width: var(--w); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--c); }
.handoff .bar span + span { border-left: 2px solid var(--bg); }
.handoff .ticks { position: relative; height: 22px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.handoff .ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.handoff .ticks span:nth-child(1) { left: 0; transform: none; }
.handoff .ticks span:nth-child(2) { left: 28.6%; }
.handoff .ticks span:nth-child(3) { right: 0; transform: none; }
.handoff p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.legend-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.legend-chips span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--c); vertical-align: -1px; }

/* Models: current-model table */
.table-scroll { margin-top: 36px; overflow-x: auto; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.models-table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 15px; }
.models-table th, .models-table td { padding: 13px 18px; border-bottom: .5px solid var(--sep); }
.models-table tbody tr:last-child th, .models-table tbody tr:last-child td { border-bottom: 0; }
.models-table thead th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.models-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.models-table td { color: var(--muted); }
.models-table .mono { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.noaa { color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, transparent); }
.pill.eccc { color: var(--coral); background: color-mix(in srgb, var(--coral) 13%, transparent); }

.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; text-align: left; }
.explain > div { padding: 22px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.explain h3 { font-size: 18px; font-weight: 600; }
.explain p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Big numbers, like the home page's facts bar. */
.offline, .stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; padding: 24px 8px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.offline div, .stats div { padding: 0 14px; }
.offline div + div, .stats div + div { border-left: .5px solid var(--sep); }
.offline b, .stats b { display: block; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.offline span, .stats span { font-size: 14px; color: var(--muted); }
.offline + .sub { margin: 18px auto 0; max-width: 40em; font-size: 16px; color: var(--muted); }

/* Coverage map (official charts) */
.map-card { position: relative; margin-top: 40px; border-radius: 22px; overflow: hidden; background: #0a1828; box-shadow: var(--shadow); }
.map { height: min(560px, 60vw); min-height: 300px; opacity: 0; transition: opacity .8s; }
.map.is-ready { opacity: 1; }
.map .maplibregl-ctrl-attrib { background: rgba(8, 18, 31, .6); color: rgba(255, 255, 255, .45); font-size: 10px; }
.map .maplibregl-ctrl-attrib a { color: inherit; }
.map .maplibregl-cooperative-gesture-screen { font: 600 14px -apple-system, Inter, sans-serif; background: rgba(8, 18, 31, .7); }
.map .maplibregl-ctrl-group { background: rgba(8, 18, 31, .8); }
.map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) opacity(.75); }
.legend { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.legend button { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: #fff; background: rgba(8, 18, 31, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.legend button span { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.legend button[aria-pressed="false"] { color: rgba(255, 255, 255, .45); }
.legend button[aria-pressed="false"] span { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
/* The map is drawn in its own fixed colours, so its legend keys use them too. */
.legend [data-layer="charts"] { --c: #40d1ed !important; }
.legend [data-layer="relief"] { --c: #5cdb94 !important; }
.legend [data-layer="currents"] { --c: #73adff !important; }
.current-dot { width: 10px; height: 10px; border-radius: 50%; background: #73adff; box-shadow: 0 0 0 2px rgba(8, 18, 31, .9), 0 0 0 5px rgba(115, 173, 255, .25); }
.current-tip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; font-size: 12px; color: rgba(255, 255, 255, .7); background: rgba(8, 18, 31, .9); opacity: 0; transition: opacity .15s; }
.current-tip b { color: #fff; }
.current-dot:hover .current-tip, .current-dot:focus .current-tip { opacity: 1; }
.coverage .stats { margin-top: 14px; }

/* Recordings: a sideways row of iPad thumbnails. */
.tile { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.thumb { position: relative; display: block; height: 0; padding-top: 69.44%; overflow: hidden; margin: 6px; border-radius: 14px; background: #000; box-shadow: 0 0 0 5px #1b1d20, 0 0 0 6px #3a3d42, 0 18px 40px -18px rgba(0, 0, 0, .45); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .thumb img, .tile:focus-visible .thumb img { transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .2s, background .2s; }
.play i { margin-left: 3px; font-size: 18px; }
.tile:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }
.time { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; background: rgba(0, 0, 0, .65); }
.info { display: block; margin: 14px 6px 0; }
.info b { display: block; font-size: 16px; }
.info small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
#recordings .grid { display: flex; gap: 18px; margin-top: 36px; padding: 4px 0 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; text-align: left; }
#recordings .grid::-webkit-scrollbar { display: none; }
#recordings .tile { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
.rec-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.rec-nav button { width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: var(--fill); color: var(--text); font-size: 14px; }
.rec-nav button:hover:not(:disabled) { background: color-mix(in srgb, var(--fill) 60%, var(--text) 12%); }
.rec-nav button:disabled { opacity: .35; cursor: default; }
.single-rec { max-width: 560px; margin: 32px auto 0; }

/* Guides: grouped rows, like the home page's feature list. */
.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 980px; margin: 36px auto 0; text-align: left; }
.guide { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); transition: transform .15s; }
.guide:hover { transform: translateY(-2px); }
.guide > i:first-child { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 17px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.guide > i.fa-newspaper:first-child { color: var(--orange); background: color-mix(in srgb, var(--orange) 13%, transparent); }
.guide span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.guide b { font-size: 16px; }
.guide small { font-size: 14px; line-height: 1.35; color: var(--muted); }
.guide .go { flex: none; font-size: 13px; color: var(--faint); }

/* Closing: the plans and the button, like the end of the home page. */
.closing { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 120px 0 72px; text-align: center; }
.app-icon { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 .5px var(--sep), 0 14px 32px rgba(0, 0, 0, .2); }
.closing h2 { margin-top: 20px; }
.closing .desc { margin-top: 10px; font-size: 17px; color: var(--muted); }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(560px, 100%); margin-top: 32px; text-align: left; }
.plan-card { padding: 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.plan-card.best { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.plan-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 17px; }
.plan-top em { font-style: normal; font-size: 12px; font-weight: 700; }
.save { padding: 1px 8px; border-radius: 999px; color: #fff; background: var(--green); }
.limited { color: var(--orange); }
.plan-price { margin-top: 12px; }
.plan-price b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.plan-price span { font-size: 15px; color: var(--muted); }
.plan-note { margin-top: 2px; font-size: 14px; color: var(--green); }
.closing .cta { margin-top: 22px; }
.fine { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 22px; font-size: 15px; font-weight: 600; }
.fine a { color: var(--accent); }
.fine a:hover { text-decoration: underline; }
.legal { max-width: 46em; margin-top: 18px; font-size: 12px; line-height: 1.55; color: var(--muted); }

/* Footer */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 22px 0 calc(96px + env(safe-area-inset-bottom)); border-top: .5px solid var(--sep); font-size: 13px; color: var(--muted); }
.foot span { max-width: 62ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a:hover { color: var(--text); }

/* Sticky bar: slides up once the hero's button is off screen. */
/* Scoped to [data-bar]: the forecast hand-over on /models/ also has a .bar. */
.bar[data-bar] { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .3s ease; }
.bar[data-bar].is-shown { transform: none; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar img { width: 40px; height: 40px; border-radius: 9px; }
.bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.bar-text b { font-size: 15px; }
.bar-text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Video player: always dark, whatever the page theme. */
body.player-open { overflow: hidden; }
.player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; color: #fff; }
.player[hidden] { display: none; }
.player-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.player-dialog { position: relative; width: min(1100px, 100%, (100vh - 160px) * 1.387); }
.player.is-portrait .player-dialog { width: min(560px, 100%, (100vh - 160px) * .695); }
.player.is-portrait .ipad-screen { padding-top: 143.9%; }
.player-close { position: absolute; right: -8px; top: -52px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; font-size: 18px; background: rgba(255, 255, 255, .14); }
.player-close:hover { background: rgba(255, 255, 255, .24); }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; text-align: center; }
.player-bar h2 { font-size: 20px; font-weight: 600; }
.player-bar p { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.player-bar button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12); }
.player-bar button:hover { background: rgba(255, 255, 255, .22); }

/* Tablets */
@media (max-width: 1020px) {
  .chain.five { grid-template-columns: repeat(3, 1fr); }
  .chain.four { grid-template-columns: repeat(2, 1fr); }
  #recordings .tile { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 860px) {
  .chain, .chain.five, .cards, .cards.three, .explain, .colours, #levels .colours, .guides { grid-template-columns: 1fr; }
}
/* Phones */
@media (max-width: 640px) {
  .wide { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .nav-row { gap: 12px; }
  .nav-site { gap: 14px; }
  .nav-site .features { display: none; }
  .wordmark { width: 96px; }
  .pill-btn { display: none; }
  .hero { padding-top: 40px; }
  .hero-icon { width: 72px; height: 72px; border-radius: 17px; font-size: 32px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .big { width: 100%; justify-content: center; }
  .jump { margin-top: 24px; }
  .route-video { margin-top: 36px; }
  .ipad { margin: 6px; border-radius: 14px; box-shadow: 0 0 0 5px #1b1d20, 0 0 0 6px #3a3d42, 0 18px 40px -16px rgba(0, 0, 0, .45); }
  .block, .coverage { padding-top: 72px; }
  .block > .sub, .coverage > .sub { font-size: 15px; }
  .block h2, .coverage h2, .block > .sub, .coverage > .sub { text-align: left; }
  .cards, .chain, .colours { margin-top: 24px; gap: 10px; }
  .chain.four, .chain.five { grid-template-columns: 1fr; }
  .card, .chain li { padding: 18px; }
  .limits li, .priority li { padding: 14px 16px 14px 48px; font-size: 15px; }
  .limits li::before { left: 18px; top: 14px; }
  .priority li::before { left: 14px; top: 13px; }
  .card dl { grid-template-columns: 1fr 1fr; gap: 8px 18px; }
  .offline, .stats { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .offline div + div, .stats div + div { border-left: 0; border-top: .5px solid var(--sep); padding-top: 14px; }
  .map { height: 320px; }
  #recordings .tile { flex-basis: 82%; }
  .rec-nav { display: none; }
  .guides { gap: 0; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
  .guide { border-radius: 0; box-shadow: none; padding: 13px 16px; }
  .guide + .guide { border-top: .5px solid var(--sep); }
  .guide:hover { transform: none; }
  .guide > i:first-child { width: 34px; height: 34px; border-radius: 8px; font-size: 15px; }
  .pipeline .sep { display: none; }
  .closing { padding-top: 72px; }
  .plan-cards { grid-template-columns: 1fr; }
  .closing .big { width: 100%; }
  .player { padding: 12px; }
  .player-close { right: 0; top: -50px; }
  .player-bar h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map, .bar[data-bar], .cta, .guide, .thumb img, .play { transition: none; }
}

/* Languages: EN · 中文 · ES switcher, as on the home page. */
.langs { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--fill); }
.langs a { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.langs a:hover { color: var(--text); }
.nav-site .langs a[aria-current="true"] { color: var(--text); background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
/* CJK headlines read better without the tight Latin tracking. */
.lang-zh h1, .lang-zh h2, .lang-zh h3 { letter-spacing: 0; }
.lang-zh .eyebrow { letter-spacing: .02em; }
@media (max-width: 640px) {
  .langs a { padding: 3px 7px; }
  .nav-site { gap: 12px; }
}
/* Spanish runs longer; drop "All features" before the bar crowds. */
@media (max-width: 760px) { .lang-es .nav-site .features { display: none; } }
