/* GoThere — one stylesheet for every page of the site.
   Light only, as the app is. The system's own faces: SF for nearly
   everything, New York (ui-serif) for a few headings and the time figures,
   as in the app (Specs/typography.spec.md). Nothing is downloaded. */

:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #737378;     /* 4.7:1 on white: AA for its 13–15px text, a step lighter than ink-soft */
  --rule: #d2d2d7;
  --tile: #f5f5f7;
  --accent: #1f6b47;        /* the app's accentInk */
  --accent-press: #17573a;
  --delay: #9a5b00;         /* the app's delayInk */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --page: 980px;
  --gutter: 22px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The footer sits at the foot of the screen on a page shorter than it
   (/support/sent on a phone). svh is the viewport with Safari's bars shown,
   so a page that fits does not scroll; vh is the fallback. main is given
   its width: a flex item with auto margins (.doc) shrinks to its content. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font: 17px/1.47 var(--sans);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body > main { flex: 1 0 auto; width: 100%; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: #fff; padding: 6px 10px; }

/* ── Navigation ─────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter);
  height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font: 600 21px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.nav li a { font-size: 12px; letter-spacing: -0.01em; color: var(--ink); opacity: 0.8; }
.nav li a:hover { opacity: 1; text-decoration: none; }
.nav li a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* ── Type: one scale for the landing page ─────────────────────
   The hero's headline and the one line under it; a tile's are below. */

.headline {
  margin: 0; font: 700 clamp(44px, 8vw, 80px)/1.05 var(--display); letter-spacing: -0.015em;
}
.lede {
  margin: 16px auto 0; max-width: 30em;
  font: 400 clamp(19px, 2vw, 22px)/1.4 var(--display); letter-spacing: 0.002em; color: var(--ink-soft);
}

/* ── Layout: the hero, then five features as a grid of tiles ──
   One wide tile for the Lock Screen, then a large and a small tile, then a
   small and a large (Dima, 2026-11-12: "Love the bento desktop one, let's go
   with that"). Each is its headline and one line over its picture, and every
   picture sits whole inside its tile. On a phone the tiles stack, one
   column. */

.section { padding: 160px var(--gutter) 0; text-align: center; }
.section:last-of-type { padding-bottom: 160px; }

.bento {
  max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding-top: 120px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; text-align: left;
}
.tile {
  --device: min(300px, 100%);
  display: flex; flex-direction: column; overflow: hidden;
  padding: 44px 44px 0; border-radius: 28px; background: var(--tile);
}
.tile.wide { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-around; padding: 56px 56px 0; }
.tile.large { grid-column: span 7; }
.tile.small { grid-column: span 5; }
.tile-copy { max-width: 26rem; margin-bottom: 40px; }
.tile.wide .tile-copy { margin-bottom: 56px; }
.tile-title { margin: 0; font: 700 clamp(26px, 2.6vw, 34px)/1.12 var(--display); letter-spacing: -0.005em; }
.tile.wide .tile-title { font-size: clamp(30px, 3.6vw, 44px); }
.tile-line { margin: 10px 0 0; font: 400 clamp(17px, 1.5vw, 19px)/1.42 var(--display); letter-spacing: 0.002em; color: var(--ink-soft); }
/* The picture stands whole at the foot of its tile, clear of its edges:
   every phone at one size, the close-up card wider. */
.tile > .visual { margin: auto auto 44px; }
.tile.wide > .visual { margin: 0 0 56px; }
.tile > .watch-visual { margin-bottom: 24px; }
.tile > .aboard-visual { --device: min(440px, 100%); }

/* One column below 900px, where a small tile beside a large one would stack
   its headline three lines deep. A tile's inset grows with the window, from
   a phone's 24px at the sides to the grid's 44px, so text never sits tight
   against a wide tile's edge (Dima, 2026-11-12: "some padding issues with
   the text at 620px width"). */
@media (max-width: 899px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 72px; }
  .tile, .tile.wide, .tile.large, .tile.small { grid-column: 1 / -1; flex-direction: column; align-items: stretch; padding: clamp(32px, 7vw, 44px) clamp(24px, 6vw, 44px) 0; }
  .tile-copy, .tile.wide .tile-copy { margin-bottom: 32px; }
  .tile > .visual, .tile.wide > .visual { margin: 0 auto 32px; }
  .tile > .watch-visual { margin-bottom: 16px; }
}
/* Wider than a phone, a one-column tile's line runs two lines; balanced,
   the second never holds just two words. */
@media (min-width: 481px) and (max-width: 899px) {
  .tile-line { text-wrap: balance; }
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero { padding-top: 120px; }
/* The headline is one question; when it wraps, its lines come out even, never
   a word left alone on the last one. */
.hero .headline { text-wrap: balance; }
.hero .lede { margin-top: 24px; }
/* A status, not a button: plain words, no fill or outline, nothing to tap. */
.soon { margin: 32px 0 0; font: 600 19px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.soon-note { margin: 8px 0 0; font-size: 14px; color: var(--ink-faint); }

/* ── Product visuals ────────────────────────────────────────
   Every picture on the landing page is the app itself, drawn here from
   the app's own tokens (Shared/DesignSystem: DesignSystem.swift,
   Typography.swift, LineStamp.swift) and laid out as the Live Activity,
   the Dynamic Island, the watch and the app's screens draw today. Each
   device's screen is a size container, so its contents are set in the
   device's own points (--u: one iPhone point; --w: one watch point) and
   stay sharp at any size. No image is fetched. A picture is as wide as
   --device, which each tile sets. ── */

:root {
  --paper: #fcfbf7;          /* the app's page */
  --app-ink: #1e1b17;
  --app-soft: #5c554b;
  --app-whisper: #8e877c;
  --app-rule: #ddd7cc;
  --line-lw: #98002e;        /* Lakeshore West's route_color, as the server sends it */
  --island-ink: #fcfbf7;     /* ActivityInk on the island's black */
  --island-soft: #aaa399;
  --island-accent: #6cc497;
  --island-delay: #e8a54a;
  --rounded: ui-rounded, "SF Pro Rounded", var(--sans);
  --device: clamp(248px, 72vw, 360px);
}

.visual { position: relative; width: var(--device); }
/* iPhone 17 Pro: a 402 × 874 pt screen in thin, even black borders and a
   silver aluminium edge, the Dynamic Island at its top. */
.iphone {
  position: relative; aspect-ratio: 428 / 900; border-radius: 15.9% / 7.56%;
  background: linear-gradient(135deg, #ececee 0%, #b4b4b9 20%, #f6f6f8 46%, #a7a7ac 74%, #e2e2e5 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 50px 90px -40px rgba(0, 0, 0, 0.45);
}
/* The glass's black border. */
.iphone::before {
  content: ""; position: absolute; inset: 0.48% 1%; border-radius: 15.2% / 7.15%; background: #000;
}
/* The buttons: the Action button and volume on the left, the side button on the right. */
.iphone::after {
  content: ""; position: absolute; top: 17%; height: 21%; left: -0.7%; right: -0.7%;
  background:
    linear-gradient(#b2b2b7 0 13%, transparent 13% 27%, #b2b2b7 27% 55%, transparent 55% 63%, #b2b2b7 63% 91%, transparent 91%) left / 2% 100% no-repeat,
    linear-gradient(transparent 0 32%, #b2b2b7 32% 86%, transparent 86%) right / 2% 100% no-repeat;
  border-radius: 2px;
}
.screen {
  --u: calc(100cqw / 402);
  position: absolute; inset: 1.48% 3.1%; overflow: hidden; container-type: inline-size;
  border-radius: 13.7% / 6.3%; text-align: left; letter-spacing: 0;
}
.island {
  position: absolute; z-index: 2; top: calc(11 * var(--u)); left: calc(138.5 * var(--u));
  width: calc(125 * var(--u)); height: calc(37 * var(--u)); border-radius: calc(18.5 * var(--u)); background: #000;
}
.sb-time {
  position: absolute; top: calc(17 * var(--u)); left: calc(36 * var(--u)); width: calc(80 * var(--u));
  text-align: center; font: 600 calc(17 * var(--u)) / 1 var(--display);
}
.sb-icons {
  position: absolute; top: calc(20 * var(--u)); right: calc(30 * var(--u));
  display: flex; align-items: center; gap: calc(6 * var(--u)); color: #000;
}
/* Every icon is sized here in device points, width and height, and in the
   page by its width and height attributes too, so an icon is icon-sized even
   before (or without) this stylesheet: an SVG sized by neither fills the
   width of the page. */
.sb-icons svg { display: block; flex: none; }
.sb-signal { width: calc(18 * var(--u)); height: calc(12 * var(--u)); }
.sb-wifi { width: calc(16 * var(--u)); height: calc(12 * var(--u)); }
.sb-battery { width: calc(26 * var(--u)); height: calc(12.5 * var(--u)); }
.home-bar {
  position: absolute; bottom: calc(8 * var(--u)); left: calc(132 * var(--u));
  width: calc(138 * var(--u)); height: calc(5 * var(--u)); border-radius: calc(3 * var(--u)); background: #000;
}

/* The line stamp: Lakeshore West's colour with "LW" knocked out in paper,
   pressed (the Lock Screen, the island's expanded view) or flat (the compact
   island and the watch). 1.3 times as wide as tall, corners a tenth of it. */
.stamp {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: calc(27 * var(--u)); height: calc(20.8 * var(--u)); border-radius: calc(2.1 * var(--u));
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%), var(--line-lw);
  box-shadow: inset 0 calc(0.75 * var(--u)) calc(0.75 * var(--u)) rgba(0, 0, 0, 0.4),
    inset 0 calc(-0.6 * var(--u)) calc(0.75 * var(--u)) rgba(255, 255, 255, 0.22);
  color: var(--paper); font: 700 calc(11.5 * var(--u)) / 1 var(--rounded); letter-spacing: -0.02em;
}
.stamp.flat { background: var(--line-lw); box-shadow: none; }

/* The board: the Live Activity's rows, departure digits right-aligned so the
   times line up, a late train at its new time. The arrival and its AM are one
   cell, so a narrow 8:12 leaves its slack after the AM, not before it. */
.board-grid {
  display: grid; grid-template-columns: auto auto auto auto auto 1fr;
  align-items: baseline; row-gap: calc(3 * var(--u));
}
.b-row { display: contents; }
.b-dep, .b-arr, .b-mer {
  font: 500 calc(16.5 * var(--u)) / 1.3 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.b-dep { justify-self: end; }
.b-mer { margin-left: calc(4 * var(--u)); }
.b-arrow { margin: 0 calc(5 * var(--u)); font: 400 calc(15 * var(--u)) / 1 var(--serif); color: var(--app-soft); }
.b-cars, .b-aboard, .b-status { justify-self: end; margin-left: calc(7 * var(--u)); font: 400 calc(13 * var(--u)) / 1.3 var(--sans); }
.b-cars { color: var(--app-soft); }
/* The rider's own train: "● On board", a touch brighter than On time
   (ActivityInk.aboard), in the car count's column (the close-up drops the
   count, as the card does when the row is narrow). */
.b-aboard { color: #258052; white-space: nowrap; }
.b-aboard::before {
  content: ""; display: inline-block; width: calc(7 * var(--u)); height: calc(7 * var(--u));
  margin: 0 calc(4 * var(--u)) calc(1 * var(--u)) 0; border-radius: 50%; background: currentColor;
}
.b-status { white-space: nowrap; }
.ok { color: var(--accent); }
.late { color: var(--delay); }
/* A row as it read before an update, under the row as it reads now. */
.swap { display: inline-grid; justify-items: end; }
.swap > * { grid-area: 1 / 1; }
.swap > .was { opacity: 0; }

/* The Lock Screen: a winter dawn, the date and time, the Live Activity. */
.lock, .aboard-visual {
  color: #fff;
  background:
    radial-gradient(120% 55% at 72% 100%, rgba(255, 200, 160, 0.55), rgba(255, 200, 160, 0) 62%),
    linear-gradient(#0f1b33 0%, #20406e 36%, #6b8db8 66%, #c6d4e5 88%, #e8e3df 100%);
}
.lock .sb-icons { color: #fff; }
.lock-date, .lock-time { position: absolute; left: 0; right: 0; text-align: center; }
.lock-date { top: calc(74 * var(--u)); font: 600 calc(21 * var(--u)) / 1 var(--display); color: rgba(255, 255, 255, 0.85); }
.lock-time {
  top: calc(98 * var(--u)); font: 600 calc(108 * var(--u)) / 1 var(--display); letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
}
.la {
  position: absolute; left: calc(14 * var(--u)); right: calc(14 * var(--u)); bottom: calc(128 * var(--u));
  padding: calc(16 * var(--u)) calc(18 * var(--u)); border-radius: calc(26 * var(--u));
  background: var(--paper); color: var(--app-ink); box-shadow: 0 calc(2 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.14);
}
.la-head { display: flex; align-items: center; gap: calc(9 * var(--u)); }
.la-title { font: 600 calc(18 * var(--u)) / 1.2 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.la .board-grid {
  margin-top: calc(11 * var(--u)); padding-top: calc(11 * var(--u));
  background: linear-gradient(to right, var(--app-rule) 55%, transparent 0) top left / calc(5.5 * var(--u)) 1px repeat-x;
}
.lock-button {
  position: absolute; bottom: calc(44 * var(--u)); display: grid; place-items: center;
  width: calc(50 * var(--u)); height: calc(50 * var(--u)); border-radius: 50%; background: rgba(15, 22, 36, 0.3);
}
.lock-button svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.lock-button.torch { left: calc(46 * var(--u)); }
.lock-button.camera { right: calc(46 * var(--u)); }
.lock .home-bar { background: rgba(255, 255, 255, 0.92); }

/* In the app: the Alerts list on paper. */
.alerts-visual .paper { background: var(--paper); color: var(--app-ink); }
.app-page { padding: calc(108 * var(--u)) calc(24 * var(--u)) 0; }
.add-button {
  position: absolute; top: calc(62 * var(--u)); right: calc(18 * var(--u));
  width: calc(50 * var(--u)); height: calc(50 * var(--u)); border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #2a7d55, var(--accent) 70%);
  box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(31, 107, 71, 0.3);
}
.add-button::before, .add-button::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: calc(20 * var(--u)); height: calc(2.6 * var(--u));
  margin: calc(-1.3 * var(--u)) 0 0 calc(-10 * var(--u)); border-radius: calc(1.3 * var(--u)); background: #fff;
}
.add-button::after { transform: rotate(90deg); }
.app-title { display: block; font: 400 calc(37 * var(--u)) / 1.1 var(--serif); letter-spacing: -0.01em; }
.line-head, .alert-row {
  background: linear-gradient(to right, var(--app-rule) 55%, transparent 0) bottom left / calc(5.5 * var(--u)) 1px repeat-x;
}
.line-head { display: flex; align-items: center; gap: calc(10 * var(--u)); margin-top: calc(38 * var(--u)); padding-bottom: calc(14 * var(--u)); }
.line-head .stamp { width: calc(31 * var(--u)); height: calc(24 * var(--u)); border-radius: calc(2.4 * var(--u)); font-size: calc(13 * var(--u)); }
.line-name { font: 400 calc(23 * var(--u)) / 1.1 var(--serif); }
.line-count { margin-left: auto; font: 400 calc(16 * var(--u)) / 1 var(--sans); color: var(--app-soft); }
.alert-row {
  display: grid; grid-template-columns: 1fr auto; padding: calc(18 * var(--u)) 0 calc(20 * var(--u));
  grid-template-areas: "time status" "route ." "meta ." "days toggle";
}
.ar-time { grid-area: time; font: 400 calc(32 * var(--u)) / 1.15 var(--serif); font-variant-numeric: tabular-nums; }
.ar-time s { margin-left: calc(4 * var(--u)); font-size: calc(15 * var(--u)); color: var(--app-whisper); }
.ar-status {
  grid-area: status; align-self: start; display: inline-flex; align-items: center; gap: calc(5 * var(--u));
  margin-top: calc(8 * var(--u)); font: 500 calc(15 * var(--u)) / 1 var(--sans);
}
.ar-status svg { flex: none; width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.ar-route { grid-area: route; margin-top: calc(4 * var(--u)); font: 400 calc(17 * var(--u)) / 1.3 var(--sans); }
.ar-meta { grid-area: meta; margin-top: calc(2 * var(--u)); font: 400 calc(14.5 * var(--u)) / 1.3 var(--sans); color: var(--app-soft); }
.ar-days { grid-area: days; display: flex; gap: calc(13 * var(--u)); margin-top: calc(14 * var(--u)); }
.ar-days i { padding-bottom: calc(3 * var(--u)); font: 600 calc(13.5 * var(--u)) / 1 var(--sans); font-style: normal; }
.ar-days .off { font-weight: 400; color: rgba(115, 106, 94, 0.45); }
.ar-days .today { background: linear-gradient(var(--accent), var(--accent)) bottom / 100% calc(1.5 * var(--u)) no-repeat; }
.toggle {
  grid-area: toggle; align-self: end; position: relative;
  width: calc(64 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--accent);
}
.toggle::after {
  content: ""; position: absolute; top: calc(2 * var(--u)); right: calc(2 * var(--u));
  width: calc(38 * var(--u)); height: calc(24 * var(--u)); border-radius: calc(12 * var(--u)); background: #fff;
  box-shadow: 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, 0.15);
}

/* The Dynamic Island over the Home Screen at 7:41, the dawn a little
   further on than the Lock Screen's: two widgets and a row of apps under it,
   white on the wallpaper, as iOS draws them. */
.home {
  color: #fff;
  background:
    radial-gradient(120% 60% at 30% 100%, rgba(255, 205, 165, 0.6), rgba(255, 205, 165, 0) 64%),
    linear-gradient(#35598c 0%, #557cb0 30%, #8ea9cc 60%, #d3d9e2 86%, #ece4dc 100%);
}
.home .sb-icons { color: #fff; }
.widget {
  position: absolute; top: calc(166 * var(--u)); width: calc(164 * var(--u)); height: calc(164 * var(--u));
  padding: calc(15 * var(--u)) calc(16 * var(--u)); border-radius: calc(24 * var(--u));
  display: flex; flex-direction: column; box-shadow: 0 calc(2 * var(--u)) calc(14 * var(--u)) rgba(15, 30, 60, 0.18);
}
.weather { left: calc(27 * var(--u)); background: linear-gradient(#5b8ad0, #34609f); }
.wx-place { font: 600 calc(15 * var(--u)) / 1.2 var(--sans); }
.wx-temp { font: 300 calc(44 * var(--u)) / 1.05 var(--display); letter-spacing: -0.02em; }
.wx-sky {
  display: flex; align-items: center; gap: calc(4 * var(--u)); margin-top: auto;
  font: 600 calc(13 * var(--u)) / 1.25 var(--sans);
}
.wx-sky svg { flex: none; width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.wx-range { font: 500 calc(13 * var(--u)) / 1.25 var(--sans); }
.calendar { right: calc(27 * var(--u)); background: #fff; color: #1d1d1f; }
.cal-day { font: 600 calc(11.5 * var(--u)) / 1.2 var(--sans); letter-spacing: 0.02em; color: #e5372d; }
.cal-date { font: 400 calc(38 * var(--u)) / 1.05 var(--display); letter-spacing: -0.02em; }
.cal-event {
  margin-top: calc(6 * var(--u)); padding-left: calc(8 * var(--u)); border-left: calc(3 * var(--u)) solid #5a8dd8;
  font: 600 calc(12 * var(--u)) / 1.25 var(--sans); white-space: nowrap;
}
.cal-event span { display: block; font-weight: 400; color: #6e6e73; }
.icons {
  position: absolute; top: calc(360 * var(--u)); left: calc(27 * var(--u)); right: calc(27 * var(--u));
  display: flex; justify-content: space-between;
}
.icon {
  display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); width: calc(72 * var(--u));
  font: 500 calc(12 * var(--u)) / 1 var(--sans); text-shadow: 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, 0.25);
}
.glyph {
  display: grid; place-items: center; width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: calc(15 * var(--u));
  color: #fff; box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(15, 30, 60, 0.16);
}
.glyph svg { width: calc(36 * var(--u)); height: calc(36 * var(--u)); }
.glyph.messages { background: linear-gradient(#67e27a, #2bbd47); }
.glyph.mail { background: linear-gradient(#4fb8ff, #1a72f0); }
.glyph.clock { background: #1d1d1f; }
.glyph.clock svg { width: calc(52 * var(--u)); height: calc(52 * var(--u)); }
.glyph.camera { background: linear-gradient(#e9e9ec, #b9b9be); color: #3a3a3e; }
.glyph.phone { background: linear-gradient(#67e27a, #2bbd47); }
.glyph.safari { background: linear-gradient(#4fb8ff, #1a72f0); }
.glyph.safari svg { width: calc(50 * var(--u)); height: calc(50 * var(--u)); }
.glyph.music { background: linear-gradient(#ff6b7f, #f8304f); }
/* Photos: a ring of colours round a white centre, on white. */
.glyph.photos {
  background:
    radial-gradient(circle, #fff 0 14%, transparent 15%),
    radial-gradient(circle, transparent 0 40%, #fff 41%),
    conic-gradient(#f9b72b, #f47b20, #e9434f, #b44ba5, #5d5fd8, #3ca4e8, #3cc272, #a8d037, #f9b72b);
}
/* Search, above the dock; the dock, frosted, with four apps. */
.search {
  position: absolute; bottom: calc(126 * var(--u)); left: 50%; transform: translateX(-50%);
  padding: calc(6 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, 0.28);
  font: 500 calc(13 * var(--u)) / 1 var(--sans);
}
.dock {
  position: absolute; bottom: calc(18 * var(--u)); left: calc(14 * var(--u)); right: calc(14 * var(--u));
  display: flex; justify-content: space-between; padding: calc(16 * var(--u)) calc(20 * var(--u));
  border-radius: calc(40 * var(--u)); background: rgba(255, 255, 255, 0.3);
}
.home .home-bar { background: rgba(255, 255, 255, 0.92); }
.island.live {
  left: calc(14 * var(--u)); width: calc(374 * var(--u)); height: calc(112 * var(--u)); border-radius: calc(56 * var(--u));
  box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, 0.22);
  overflow: hidden; /* the two views cross-fade while it changes size */
}
.isl-compact, .isl-expanded { position: absolute; inset: 0; }
.isl-compact {
  display: flex; align-items: center; justify-content: space-between; padding: 0 calc(16 * var(--u)) 0 calc(14 * var(--u));
  opacity: 0;
}
.isl-compact .stamp { width: calc(19.8 * var(--u)); height: calc(15.2 * var(--u)); border-radius: calc(1.5 * var(--u)); font-size: calc(9 * var(--u)); }
.isl-late { font: 600 calc(15 * var(--u)) / 1 var(--sans); color: var(--island-delay); white-space: nowrap; }
/* Open, the island is a capsule: its ends are half circles of its height,
   as the iPhone's are (Dima, 2026-11-12: "it looks like a rounded rect
   instead of a capsule when expanded"), so the board stands in from them,
   centred top to bottom. */
.isl-expanded { padding: calc(22 * var(--u)) calc(38 * var(--u)) 0 calc(36 * var(--u)); color: var(--island-ink); }
.isl-head { display: flex; align-items: center; gap: calc(9 * var(--u)); }
.isl-title { font: 600 calc(15 * var(--u)) / 1.15 var(--serif); white-space: nowrap; }
.isl-expanded .board-grid { margin-top: calc(8 * var(--u)); }
.isl-expanded .b-dep, .isl-expanded .b-arr, .isl-expanded .b-mer { font-size: calc(16 * var(--u)); }
.isl-expanded .b-arrow, .isl-expanded .b-cars { color: var(--island-soft); }
.isl-expanded .ok { color: var(--island-accent); }
.isl-expanded .late { color: var(--island-delay); }
/* Beside a wide compact island the status bar keeps only the time and the
   battery, pushed to the corners. Hidden while the island is open. */
.island-visual .sb-time { left: calc(18 * var(--u)); width: calc(50 * var(--u)); }
.island-visual .sb-signal, .island-visual .sb-wifi { display: none; }
.island-visual .sb-time, .island-visual .sb-icons { opacity: 0; }

/* Apple Watch Series 11, 46 mm, silver aluminium: the case drawn in its own
   millimetres (--mm: one of the case's 39 across; it is 46 tall), the glass
   black to a thin bezel, the Digital Crown and the side button on the right,
   a Sport Band leaving top and bottom. On the screen, the Smart Stack as
   watchOS draws it with GoThere's Live Activity (its 208 × 248 pt screen,
   from a capture of the card on a watch: the date and the clock, the card,
   the next card under it, Edit). */
.watch-visual { aspect-ratio: 428 / 680; }
.watch {
  --mm: calc(100cqw / 39);
  position: absolute; top: 50%; left: 50%; width: 76%; aspect-ratio: 39 / 46;
  transform: translate(-50%, -50%); container-type: inline-size;
}
/* The band leaves the case as wide as its slot, curves away and fades out. */
.band {
  position: absolute; left: calc(7.5 * var(--mm)); right: calc(7.5 * var(--mm)); height: calc(20 * var(--mm));
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 16%, rgba(255, 255, 255, 0.1) 44%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.3)),
    #2f3440;
}
.band.top {
  bottom: calc(100% - 4 * var(--mm));
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);
  mask-image: linear-gradient(to top, #000 35%, transparent);
}
.band.bottom {
  top: calc(100% - 4 * var(--mm));
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
}
/* The Digital Crown, seen side on: a knurled cylinder standing proud of the
   case's upper right; the side button below it, long and nearly flush. */
.crown {
  position: absolute; top: calc(11.6 * var(--mm)); right: calc(-2.1 * var(--mm));
  width: calc(4 * var(--mm)); height: calc(7.2 * var(--mm)); border-radius: calc(0.9 * var(--mm)) / calc(1.2 * var(--mm));
  background:
    repeating-linear-gradient(rgba(60, 60, 66, 0.4) 0 calc(0.16 * var(--mm)), transparent calc(0.16 * var(--mm)) calc(0.46 * var(--mm))),
    linear-gradient(#7d7d82, #ececef 26%, #ffffff 40%, #c4c4c9 66%, #77777c);
  box-shadow: inset calc(-0.5 * var(--mm)) 0 calc(0.3 * var(--mm)) rgba(0, 0, 0, 0.18);
}
.side-button {
  position: absolute; top: calc(23.5 * var(--mm)); right: calc(-0.9 * var(--mm));
  width: calc(2 * var(--mm)); height: calc(10.5 * var(--mm)); border-radius: calc(0.8 * var(--mm));
  background: linear-gradient(90deg, #c9c9cd, #f1f1f3 45%, #a5a5aa);
  box-shadow: inset 0 0 0 calc(0.08 * var(--mm)) rgba(0, 0, 0, 0.18);
}
.watch-case {
  position: absolute; inset: 0; border-radius: calc(10.4 * var(--mm));
  background: linear-gradient(150deg, #fafafb 0%, #cfcfd3 24%, #eeeef0 48%, #aeaeb3 78%, #dedee1 100%);
  box-shadow:
    inset 0 0 0 calc(0.12 * var(--mm)) rgba(0, 0, 0, 0.14),
    inset calc(0.3 * var(--mm)) calc(0.3 * var(--mm)) calc(0.4 * var(--mm)) rgba(255, 255, 255, 0.7),
    0 calc(2.6 * var(--mm)) calc(7 * var(--mm)) calc(-1.4 * var(--mm)) rgba(0, 0, 0, 0.38);
}
/* The glass: black edge to edge, a thin bezel round the display; its glare
   sits over the screen. */
.watch-case::before, .watch-case::after {
  content: ""; position: absolute; inset: calc(0.9 * var(--mm)); border-radius: calc(9.5 * var(--mm));
}
.watch-case::before { background: #050506; box-shadow: 0 0 0 calc(0.12 * var(--mm)) rgba(0, 0, 0, 0.5); }
.watch-case::after {
  z-index: 2;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 34%);
}
.watch-screen {
  --w: calc(100cqw / 208);
  position: absolute; z-index: 1; top: calc(2.7 * var(--mm)); left: calc(2.5 * var(--mm));
  width: calc(34 * var(--mm)); aspect-ratio: 208 / 248;
  overflow: hidden; container-type: inline-size;
  border-radius: calc(7.9 * var(--mm)); background: #000; color: #fff; text-align: left; letter-spacing: 0;
}
.w-date { position: absolute; top: calc(31 * var(--w)); left: calc(18 * var(--w)); font: 400 calc(22 * var(--w)) / 1.09 var(--display); color: #a9a9ae; }
.w-clock {
  position: absolute; top: calc(20 * var(--w)); right: calc(18 * var(--w)); width: calc(86 * var(--w)); height: calc(86 * var(--w));
  border-radius: 50%; background: repeating-conic-gradient(from -1deg, rgba(255, 255, 255, 0.7) 0deg 2deg, transparent 2deg 6deg), #222224;
}
.w-clock span {
  position: absolute; inset: calc(7 * var(--w)); display: grid; place-items: center; border-radius: 50%;
  background: #1a1a1c; font: 600 calc(26 * var(--w)) / 1 var(--display); letter-spacing: -0.01em;
}
.w-card {
  position: absolute; z-index: 1; top: calc(125 * var(--w)); left: calc(7 * var(--w)); right: calc(9 * var(--w));
  height: calc(80 * var(--w)); padding: calc(15 * var(--w)) calc(8 * var(--w)) 0 calc(11 * var(--w));
  border-radius: calc(20 * var(--w)); background: #0e0e0f; box-shadow: inset 0 0 0 calc(1 * var(--w)) rgba(255, 255, 255, 0.17);
}
.w-head { display: flex; align-items: center; gap: calc(6 * var(--w)); }
.w-head .stamp { width: calc(19 * var(--w)); height: calc(14.6 * var(--w)); border-radius: calc(1.5 * var(--w)); font-size: calc(9 * var(--w)); }
.w-dest { font: 600 calc(10.5 * var(--w)) / 1 var(--sans); }
.w-chip {
  margin-left: auto; padding: calc(2.5 * var(--w)) calc(7 * var(--w)); border-radius: 999px;
  background: rgba(232, 165, 74, 0.2); color: var(--island-delay); font: 500 calc(12 * var(--w)) / 1.2 var(--sans);
}
.w-times { display: block; margin-top: calc(10 * var(--w)); font: 700 calc(27 * var(--w)) / 1 var(--display); font-variant-numeric: tabular-nums; }
.w-next {
  position: absolute; top: calc(198 * var(--w)); left: calc(20 * var(--w)); right: calc(22 * var(--w));
  height: calc(26 * var(--w)); border-radius: 0 0 calc(16 * var(--w)) calc(16 * var(--w));
  background: #141416; box-shadow: inset 0 0 0 calc(1 * var(--w)) rgba(255, 255, 255, 0.12);
}
.w-edit {
  position: absolute; top: calc(225 * var(--w)); left: calc(52 * var(--w)); width: calc(104 * var(--w)); height: calc(34 * var(--w));
  padding-top: calc(4 * var(--w)); border-radius: calc(17 * var(--w)); background: #1f1f21; text-align: center;
  font: 500 calc(11 * var(--w)) / 1 var(--sans); color: #d6d6da;
}

/* On board: the Lock Screen's card close up, on its winter dawn, the
   rider's own train marked. Set in the card's own points (--u: the card is
   374 of the iPhone's 402). */
.aboard-visual {
  display: grid; place-items: center; aspect-ratio: 428 / 400; border-radius: 34px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 50px 90px -40px rgba(0, 0, 0, 0.45);
}
.card { --u: calc(100cqw / 374); width: 92%; container-type: inline-size; text-align: left; letter-spacing: 0; }
.card .la { position: static; }

/* ── Legal pages ────────────────────────────────────────────── */

.doc { max-width: 692px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.doc h1 { margin: 0 0 8px; font: 500 clamp(36px, 6vw, 48px)/1.1 var(--serif); letter-spacing: -0.01em; }
.doc .updated { margin: 0 0 32px; font-size: 14px; color: var(--ink-faint); }
.doc .intro { font: 400 21px/1.45 var(--display); letter-spacing: 0.002em; color: var(--ink); }
.doc h2 {
  margin: 48px 0 12px; padding-top: 28px; border-top: 1px solid var(--rule);
  font: 600 24px/1.25 var(--display); letter-spacing: 0.002em;
}
.doc h3 { margin: 28px 0 6px; font: 600 19px/1.3 var(--display); letter-spacing: 0.004em; }
.doc p, .doc ul, .doc ol { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc code { font: 15px ui-monospace, SFMono-Regular, Menlo, monospace; }
.doc strong.period { white-space: nowrap; }

/* The contact form (support page): labels above soft fields, one filled
   button. Fields are 17px so iOS does not zoom in on them. */
.contact { margin: 28px 0 8px; }
.contact .field { margin: 0 0 20px; }
.contact label {
  display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px;
  font: 600 14px/1.3 var(--sans); letter-spacing: -0.01em; color: var(--ink);
}
.contact .optional { font-weight: 400; color: var(--ink-faint); }
.contact input, .contact textarea {
  display: block; width: 100%; margin: 0; padding: 12px 14px;
  font: 17px/1.4 var(--sans); letter-spacing: -0.022em; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  -webkit-appearance: none; appearance: none;
}
.contact textarea { min-height: 176px; resize: vertical; }
.contact input:focus, .contact textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 107, 71, 0.16);
}
.doc .contact .hint { margin: 6px 0 0; font-size: 14px; color: var(--ink-faint); }
.contact button {
  margin: 4px 0 0; padding: 12px 30px; border: 0; border-radius: 980px; cursor: pointer;
  font: 400 17px/1.2 var(--sans); letter-spacing: -0.022em; color: #fff; background: var(--accent);
}
.contact button:hover { background: var(--accent-press); }
.contact button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Why the form is shown again: one sentence, in the delay ink. */
.doc .contact-notice {
  margin: 0 0 22px; padding: 12px 16px; border-radius: 12px;
  background: #fbf3e8; color: var(--delay); font-size: 15px; line-height: 1.4;
}
/* The trap: off the page and out of the tab order, there only for a script
   that fills in every field it finds. */
.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer ─────────────────────────────────────────────────── */

.footer { background: var(--tile); color: var(--ink-soft); font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 24px var(--gutter) 32px; }
.footer p { margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 12px; border-top: 1px solid var(--rule); }
.footer-links a { color: var(--ink); }
.footer .legend { max-width: 60em; }

/* ── Motion: a quiet rise as things come into view, only where the
      browser ties it to the scroll and only if the visitor allows it.
      Nothing is hidden waiting for it. ── */

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes swap-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-40%); } }
@keyframes swap-in { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
/* The island's loop starts open on the board, so its first frame (and any
   still of the page) shows the train, then closes to compact and opens again.
   The two views cross-fade, so the island is never an empty pill. */
@keyframes island-morph {
  0%, 40%, 96%, 100% {
    left: calc(14 * var(--u)); width: calc(374 * var(--u)); height: calc(112 * var(--u)); border-radius: calc(56 * var(--u));
    box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, 0.22); animation-timing-function: cubic-bezier(0.3, 1.1, 0.45, 1);
  }
  48%, 88% {
    left: calc(70.5 * var(--u)); width: calc(261 * var(--u)); height: calc(37 * var(--u)); border-radius: calc(18.5 * var(--u));
    box-shadow: none; animation-timing-function: cubic-bezier(0.3, 1.25, 0.45, 1);
  }
}
@keyframes island-compact { 0%, 41%, 93%, 100% { opacity: 0; } 45%, 89% { opacity: 1; } }
@keyframes island-expanded { 0%, 41%, 93%, 100% { opacity: 1; } 45%, 89% { opacity: 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .headline, .hero .lede, .hero .soon { animation: arrive 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .lede { animation-delay: 0.08s; }
  .hero .soon { animation-delay: 0.16s; }
  /* The hero's second train goes late as you watch: its times and status
     change in place, as the Live Activity's do. Reduced motion shows the
     row as it ends. */
  .lock-visual .swap > .was { animation: swap-out 0.5s ease 2.4s both; }
  .lock-visual .swap > .now { animation: swap-in 0.5s ease 2.4s both; }
  /* The island: open on the full board, compact, open again. Reduced
     motion shows it open. */
  .island.live { animation: island-morph 9s infinite; }
  .island-visual .isl-compact { animation: island-compact 9s infinite; }
  .island-visual .isl-expanded { animation: island-expanded 9s infinite; }
  .island-visual .sb-time, .island-visual .sb-icons { animation: island-compact 9s infinite; }
  /* The rise fills forwards only: before a section starts into view it is
     drawn as it is, not hidden, so a full-page capture, a browser that
     never scrolls it in, or one that drops the animation sees the content.
     It is hidden only from the moment its top edge reaches the bottom of
     the window, where nothing of it shows yet. */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear forwards; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
  .contact input, .contact textarea { transition: border-color 0.15s, box-shadow 0.15s; }
}

/* ── Narrow screens: the iPhone in the rider's hand ─────────── */

@media (max-width: 734px) {
  :root { --gutter: 20px; }
  .nav-inner { height: 48px; }
  .nav ul { gap: 18px; }
  .section { padding-top: 112px; }
  .section:last-of-type { padding-bottom: 112px; }
  .hero { padding-top: 72px; }
  .doc { padding-top: 40px; }
  .doc .intro { font-size: 19px; }
}
