/* RailroaderHub home page. The night-sky palette of smokeystudio.com: deep violet night, moon-white
   text, signal pink for trains and actions, lamp amber for stations, signals and Hub Plus. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2-variations"), url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --night: #140c2e;
  --night-2: #1d1342;
  --night-3: #2a1d58;
  --ink: #0d0822;
  --moon: #f6f1ff;
  --haze: #b4a9d3;
  --dim: #8f84b5;
  --pink: #f0287f;
  --pink-press: #d3176c;
  --pink-hover: #c0105f;
  --amber: #ffc35c;
  --green: #4fe3a1;
  --cyan: #45d4f0;
  --red: #ff4d6a;
  --line: rgba(196, 176, 255, 0.13);
  --line-strong: rgba(196, 176, 255, 0.26);

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --content: 1200px;
  --nav-h: 68px;
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--moon);
  font: 400 17.5px/1.6 var(--text);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--amber);
  color: #241300;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--pink-press);
  color: var(--moon);
  font: 700 16.5px/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 34px -16px rgba(240, 40, 127, 0.85);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--pink-hover);
}

.button-quiet {
  border-color: var(--line-strong);
  background: rgba(246, 241, 255, 0.05);
  box-shadow: none;
}

.button-quiet:hover {
  border-color: rgba(246, 241, 255, 0.5);
  background: rgba(246, 241, 255, 0.1);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------------------ nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav[data-scrolled="true"] {
  background: rgba(20, 12, 46, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(var(--content), 100% - 2 * var(--gutter));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 11px;
  font: 750 21px/1 var(--display);
  font-stretch: 88%;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 8px;
}

.nav-links a {
  color: var(--haze);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--moon);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Signed in or not: the server marks <html data-auth="in"> before the page is drawn. */
html[data-auth="in"] [data-signed-out],
html:not([data-auth="in"]) [data-signed-in] {
  display: none !important;
}

/* Your communities, in the menu. */
.menu {
  min-width: 260px;
  max-width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - var(--nav-h) - 16px);
  overflow-y: auto;
}

.menu-label {
  margin: 0;
  padding: 4px 12px 2px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 650;
}

.menu-place {
  display: grid;
}

.menu .menu-place-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.menu-place-name img,
.menu-place-initials {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  object-fit: cover;
}

.menu-place-initials {
  display: grid;
  place-items: center;
  color: var(--moon);
  font: 800 10px/1 var(--display);
}

.menu-place-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-place-links {
  display: flex;
  gap: 2px;
  padding: 0 0 4px 38px;
}

.menu .menu-place-links a {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: var(--haze);
  font-size: 13.5px;
}

.menu-count {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--pink-press);
  color: var(--moon);
  font-size: 11.5px;
  font-weight: 800;
}

/* The bell, with how many notifications are new: the same as on the rest of the site. */
.bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(246, 241, 255, 0.04);
  color: var(--moon);
}

.bell:hover {
  border-color: rgba(246, 241, 255, 0.45);
}

.bell svg {
  width: 19px;
  height: 19px;
}

.bell-count {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--night);
  border-radius: 999px;
  background: var(--pink-press);
  color: var(--moon);
  font: 800 11px/16px var(--text);
  text-align: center;
}

/* Your picture in the nav, and its menu: the same as on the rest of the site. */
.me-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(246, 241, 255, 0.04);
  color: var(--moon);
  font: 650 15px/1 var(--text);
  cursor: pointer;
}

.me-button:hover,
.me-button[aria-expanded="true"] {
  border-color: rgba(246, 241, 255, 0.45);
}

.me-button img {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.me-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu {
  position: absolute;
  top: calc(var(--nav-h) - 6px);
  right: max(var(--gutter), (100% - var(--content)) / 2);
  z-index: 45;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #1a1140;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}

.menu a,
.menu button {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--moon);
  font: 600 15px/1.2 var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.menu a:hover,
.menu button:hover,
.menu a:focus-visible,
.menu button:focus-visible {
  background: rgba(246, 241, 255, 0.08);
}

.menu hr {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.nav-launch {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 195, 92, 0.4);
  border-radius: 999px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--content)) minmax(var(--gutter), 1fr);
  align-items: center;
  min-height: max(660px, min(100svh, 1000px));
  padding: calc(var(--nav-h) + 48px) 0 150px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(80% 70% at 78% 40%, rgba(108, 43, 217, 0.22), transparent 70%),
    var(--night);
}

.hero::after {
  /* The hero settles into the page instead of ending in a hard edge. */
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--night));
  pointer-events: none;
}

.hero-map-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.8) 48%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.8) 48%, #000 60%);
}

.hero-map {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-copy {
  grid-column: 2;
  max-width: 580px;
}

.launch-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--amber);
  font-size: 15.5px;
  font-weight: 700;
}

.countdown {
  margin-left: 10px;
  color: var(--haze);
  font-weight: 500;
}

.countdown:empty {
  display: none;
}

.lamp {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 195, 92, 0.16), 0 0 18px rgba(255, 195, 92, 0.8);
}

.lamp-live {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 227, 161, 0.16), 0 0 18px rgba(79, 227, 161, 0.8);
}

.hero h1 {
  font-size: clamp(56px, 7.7vw, 118px);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.9;
  letter-spacing: -0.008em;
}

.lead {
  max-width: 34ch;
  margin: 28px 0 36px;
  color: var(--haze);
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.5;
}

/* ------------------------------------------------------------ the countdowns */

/* Like a station's departure board: what opens, how long until it does, and when that is. */
.departures {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(13, 8, 34, 0.74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.departure {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 16px 22px 18px;
}

.departure:not([hidden]) ~ .departure {
  border-left: 1px solid var(--line);
}

.departure-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
}

.departure-name .lamp {
  width: 8px;
  height: 8px;
}

.departure-clock {
  color: var(--moon);
  font: 800 34px/1 var(--display);
  font-stretch: 84%;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.clock-unit {
  margin-left: 2px;
  color: var(--haze);
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0;
}

.departure-when {
  color: var(--dim);
  font-size: 13.5px;
  white-space: nowrap;
}

.departure-open .departure-name {
  color: #8ff0c4;
}

.departure-now {
  color: #8ff0c4;
}

/* ------------------------------------------------------------ the hero's map */

.hero-map .c {
  fill: none;
  stroke: #c9b8ff;
  stroke-opacity: 0.085;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hero-map .c.i {
  stroke-opacity: 0.19;
  stroke-width: 1.25;
}

.hero-map .river {
  fill: none;
  stroke: var(--cyan);
  stroke-opacity: 0.32;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-map .casing {
  fill: none;
  stroke: var(--ink);
  stroke-width: 10;
  stroke-linecap: round;
}

.hero-map .side-casing {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
}

.hero-map .rail {
  fill: none;
  stroke: var(--moon);
  stroke-width: 3.4;
  stroke-linecap: round;
}

.hero-map .side {
  fill: none;
  stroke: #d9d1f2;
  stroke-width: 2.1;
  stroke-linecap: round;
}

.hero-map .parked line {
  stroke: #9c90c4;
  stroke-width: 6;
  stroke-linecap: round;
}

.hero-map .occupied {
  fill: none;
  stroke: var(--red);
  stroke-width: 7;
  stroke-linecap: butt;
  opacity: 0.9;
  transition: stroke-dasharray 0s;
}

.hero-map .signal line {
  stroke: rgba(246, 241, 255, 0.45);
  stroke-width: 1.5;
}

.hero-map .signal circle {
  stroke: var(--ink);
  stroke-width: 2.5;
  transition: fill 0.25s ease;
}

.hero-map .signal[data-aspect="red"] circle {
  fill: var(--red);
}

.hero-map .signal[data-aspect="amber"] circle {
  fill: var(--amber);
}

.hero-map .signal[data-aspect="green"] circle {
  fill: var(--green);
}

.hero-map .glow {
  fill: url(#train-glow);
}

.hero-map .loco {
  fill: var(--pink);
  stroke: var(--moon);
  stroke-width: 1.6;
}

.hero-map .loco.switcher {
  fill: var(--amber);
  stroke: var(--ink);
}

.hero-map .car {
  fill: #c7bde6;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.hero-map .car.passenger {
  fill: #9be8f7;
}

.hero-map .train-label {
  fill: var(--moon);
  font: 700 22px var(--display);
  font-stretch: 82%;
  paint-order: stroke;
  stroke: var(--night);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.hero-map .train-label tspan.crew {
  fill: var(--haze);
  font: 600 16px var(--text);
}

.hero-map .town circle {
  fill: var(--amber);
  stroke: var(--ink);
  stroke-width: 3;
}

.hero-map .town text {
  transition: opacity 0.25s ease;
  fill: var(--moon);
  font: 600 21px var(--text);
  paint-order: stroke;
  stroke: var(--night);
  stroke-width: 6px;
  stroke-linejoin: round;
}

/* The page-load moment: the land comes up, the line is laid, the stations light, then the trains run. */
.js .hero-map .topo,
.js .hero-map .river,
.js .hero-map .towns,
.js .hero-map .parked,
.js .hero-map .signals,
.js .hero-map .blocks,
.js .hero-map .trains {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.js .hero-map .rail,
.js .hero-map .casing {
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.6s cubic-bezier(0.45, 0, 0.2, 1);
}

.js .hero-map .side,
.js .hero-map .side-casing {
  opacity: 0;
  transition: opacity 0.6s ease 1.1s;
}

.hero-map.ready .topo,
.hero-map.ready .river {
  opacity: 1;
}

.hero-map.ready .rail,
.hero-map.ready .casing {
  stroke-dashoffset: 0;
}

.hero-map.ready .side,
.hero-map.ready .side-casing,
.hero-map.ready .parked {
  opacity: 1;
}

.hero-map.ready .towns,
.hero-map.ready .signals,
.hero-map.ready .blocks,
.hero-map.ready .trains {
  opacity: 1;
  transition-delay: 1.2s;
}

/* ------------------------------------------------------------ radio card */

.radio-card {
  position: absolute;
  right: max(var(--gutter), (100% - var(--content)) / 2);
  bottom: 64px;
  width: 340px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(13, 8, 34, 0.74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

.radio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.radio-channel {
  color: var(--haze);
  font-size: 13.5px;
  font-weight: 700;
}

.radio-air {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.radio-air::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

.radio-air[data-on="true"] {
  opacity: 1;
}

.radio-line {
  display: grid;
  gap: 2px;
  min-height: 3.1em;
  font-size: 16px;
  line-height: 1.45;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.radio-line b {
  font-weight: 700;
}

.radio-line span {
  color: var(--haze);
}

.radio-line[data-changing="true"] {
  opacity: 0;
  transform: translateY(4px);
}

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

.tour,
.timetable,
.pricing,
.start {
  padding-top: clamp(88px, 11vw, 150px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.95;
  letter-spacing: -0.005em;
}

.section-head p {
  max-width: 54ch;
  margin-top: 20px;
  color: var(--haze);
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.55;
}

/* ------------------------------------------------------------ what's coming */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(44px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.feature-copy h3 {
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 750;
  font-stretch: 84%;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.feature-copy p {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--haze);
}

/* The product previews: small, real-looking screens of the site. */
.pv {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, #1f1546, #170f38);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 15px;
  line-height: 1.4;
}

.pv small {
  display: block;
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
}

.initials {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--pink), #7a2bd9);
  color: var(--moon);
  font: 800 17px/1 var(--display);
  font-stretch: 85%;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--moon);
  font-size: 14px;
  font-weight: 700;
}

.pill-accept {
  border-color: transparent;
  background: var(--green);
  color: #08241a;
}

.pill-pink {
  border-color: transparent;
  background: var(--pink-press);
}

/* Dispatcher's board */
.pv-board {
  background: linear-gradient(180deg, #0c1013, #070a0c);
  border-color: rgba(160, 255, 200, 0.16);
}

.pv-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(160, 255, 200, 0.12);
}

.pv-name {
  font-weight: 700;
}

.pv-clock {
  color: var(--green);
  font: 700 20px/1 var(--display);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(79, 227, 161, 0.4);
}

.pv-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 4px;
}

.pv-diagram .d-main {
  fill: none;
  stroke: #eef3f0;
  stroke-width: 4;
}

.pv-diagram .d-side {
  fill: none;
  stroke: #94a39b;
  stroke-width: 2.5;
}

.pv-diagram .d-occupied {
  fill: none;
  stroke: #ff3d33;
  stroke-width: 7;
}

.pv-diagram .d-signal line {
  stroke: #66756d;
  stroke-width: 1.5;
}

.pv-diagram .d-signal circle {
  stroke: #070a0c;
  stroke-width: 2;
}

.pv-diagram .red {
  fill: #ff3d33;
  filter: drop-shadow(0 0 4px rgba(255, 61, 51, 0.8));
}

.pv-diagram .amber {
  fill: #ffcf3f;
  filter: drop-shadow(0 0 4px rgba(255, 207, 63, 0.8));
}

.pv-diagram .green {
  fill: #36f07c;
  filter: drop-shadow(0 0 4px rgba(54, 240, 124, 0.8));
}

.pv-diagram .d-train {
  fill: var(--pink);
  stroke: #eef3f0;
  stroke-width: 1.5;
}

.pv-diagram .d-stopped {
  fill: #a3b3ab;
}

.pv-diagram .d-tag {
  fill: #eef3f0;
  font: 700 14px var(--display);
  text-anchor: middle;
}

.pv-diagram .d-place {
  fill: #8a9a92;
  font: 600 13px var(--text);
  text-anchor: middle;
}

.pv-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.pv-sheet th,
.pv-sheet td {
  padding: 9px 8px;
  border-top: 1px solid rgba(160, 255, 200, 0.1);
  color: #a3b3ab;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.pv-sheet thead th {
  border-top: 0;
  color: #7d8d85;
  font-size: 12.5px;
  font-weight: 700;
}

.pv-sheet tbody th {
  color: #eef3f0;
  font-weight: 700;
}

.pv-sheet tbody th small {
  color: #58d6ff;
  font-size: 12.5px;
  font-weight: 500;
}

.pv-sheet .moving {
  color: #36f07c;
  font-weight: 700;
}

/* Radio console */
.pv-keys {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.key {
  display: grid;
  gap: 3px;
  place-content: center;
  min-height: 60px;
  padding: 8px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(13, 8, 34, 0.5);
  color: var(--haze);
  font-size: 12.5px;
  text-align: center;
}

.key b {
  color: var(--moon);
  font: 800 20px/1 var(--display);
}

.key-on {
  border-color: var(--amber);
  background: rgba(255, 195, 92, 0.12);
  color: var(--amber);
}

.key-on b {
  color: var(--amber);
}

.pv-log {
  display: grid;
  gap: 2px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.pv-log li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 11px 14px;
  border-radius: 12px;
}

.pv-log li.live {
  background: rgba(240, 40, 127, 0.1);
  box-shadow: inset 3px 0 0 var(--pink);
}

.pv-log .who {
  font-weight: 700;
}

.pv-log .said {
  grid-column: 1;
  color: var(--haze);
}

.pv-log .from {
  grid-row: 1;
  grid-column: 2;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}

.pv-talk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 14px;
  background: var(--pink-press);
  font-weight: 700;
}

.talk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 0 4px rgba(246, 241, 255, 0.2);
}

/* Applications */
.pv-apply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 700;
}

.count {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 195, 92, 0.14);
  color: var(--amber);
  font-size: 13px;
}

.applicant {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}

.applicant b {
  font-size: 16px;
}

.answers {
  margin: 0;
}

.answers div {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.answers dt {
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}

.answers dd {
  margin: 2px 0 0;
  font-size: 15.5px;
}

.decide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.decide small {
  margin-left: auto;
}

/* Profile */
.pv-profile {
  padding: 0 0 20px;
  overflow: hidden;
}

.pv-banner {
  height: 118px;
  background:
    repeating-radial-gradient(ellipse at 78% 130%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1.5px 15px),
    linear-gradient(115deg, #f0287f 0%, #8d2bd9 55%, #33206e 100%);
}

.pv-who {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: -38px 20px 0;
}

.pv-who b {
  font: 800 24px/1.1 var(--display);
  font-stretch: 86%;
}

.initials-big {
  width: 84px;
  height: 84px;
  border: 4px solid #1f1546;
  font-size: 30px;
  box-shadow: 0 0 0 2px var(--amber);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 20px 0;
}

.chip {
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--haze);
  font-size: 13px;
  font-weight: 600;
}

.chip-gold {
  border-color: rgba(255, 195, 92, 0.45);
  color: var(--amber);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 20px 0;
}

.stats div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(13, 8, 34, 0.45);
}

.stats dt {
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
}

.stats dd {
  margin: 2px 0 0;
  font: 800 26px/1.1 var(--display);
  font-stretch: 84%;
  font-variant-numeric: tabular-nums;
}

.badges {
  display: flex;
  gap: 8px;
  margin: 16px 20px 0;
  padding: 0;
  list-style: none;
}

.badges li {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--haze);
}

.badges li.gold {
  border-color: rgba(255, 195, 92, 0.55);
  background: rgba(255, 195, 92, 0.12);
  color: var(--amber);
}

.badges svg {
  width: 20px;
  height: 20px;
}

/* Community page */
.pv-site {
  padding: 0;
  overflow: hidden;
}

.browser {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 8, 34, 0.55);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(196, 176, 255, 0.25);
}

.address {
  flex: 1;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(196, 176, 255, 0.08);
  color: var(--haze);
  font-size: 13px;
}

.site-hero {
  display: grid;
  gap: 4px;
  padding: 30px 26px 20px;
  background:
    repeating-radial-gradient(ellipse at 15% -20%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.5px 17px),
    linear-gradient(160deg, #23396b, #1b1446 60%, #170f38);
}

.site-est {
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
}

.site-name {
  font: 800 clamp(30px, 3.4vw, 44px)/0.95 var(--display);
  font-stretch: 75%;
  letter-spacing: -0.01em;
}

.site-tag {
  color: var(--haze);
}

.site-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}

.site-tabs i {
  padding-bottom: 6px;
  color: var(--haze);
  font-style: normal;
}

.site-tabs i.on {
  color: var(--moon);
  box-shadow: inset 0 -2px 0 var(--pink);
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px 22px;
}

.site-stats {
  display: flex;
  gap: 26px;
  margin: 0;
}

.site-stats dt {
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
}

.site-stats dd {
  margin: 0;
  font: 800 24px/1.1 var(--display);
  font-stretch: 84%;
}

.site-stats .online {
  color: var(--green);
}

/* ------------------------------------------------------------ the timetable */

.table-scroll {
  border-top: 2px solid var(--moon);
}

.schedule {
  width: 100%;
  border-collapse: collapse;
}

.schedule thead th {
  padding: 14px 16px 12px 0;
  color: var(--dim);
  font: 700 14px/1.2 var(--text);
  text-align: left;
}

.schedule tbody th,
.schedule tbody td {
  padding: 17px 16px 17px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.schedule tbody th {
  width: 26%;
  font: 750 20px/1.2 var(--display);
  font-stretch: 86%;
}

.schedule tbody td {
  color: var(--haze);
}

.schedule tbody td:last-child {
  width: 1%;
  padding-right: 0;
  white-space: nowrap;
}

.when {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dim);
  font-size: 15px;
  font-weight: 700;
}

.when::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.when-launch {
  color: var(--green);
}

.when-launch::before {
  border: 0;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.when-next {
  color: var(--amber);
}

.when-next::before {
  border: 0;
  background: currentColor;
}

/* ------------------------------------------------------------ pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(29, 19, 66, 0.9), rgba(20, 12, 46, 0.9));
}

.plan-plus {
  border-color: rgba(255, 195, 92, 0.42);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 195, 92, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(29, 19, 66, 0.9), rgba(20, 12, 46, 0.9));
}

.plan h3 {
  font-size: 26px;
  font-weight: 750;
  font-stretch: 88%;
}

.plan-plus h3 {
  color: var(--amber);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 14px;
}

.price b {
  font: 800 64px/0.9 var(--display);
  font-stretch: 80%;
  letter-spacing: -0.01em;
}

.price span {
  color: var(--haze);
  font-size: 16px;
}

.plan-for {
  margin-top: 14px;
  color: var(--haze);
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 30px;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--pink);
  border-bottom: 2.5px solid var(--pink);
  transform: rotate(-45deg);
}

.plan-plus li::before {
  border-color: var(--amber);
}

.fair {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--haze);
}

/* ------------------------------------------------------------ get started */

.route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stop;
}

.route li {
  position: relative;
  padding-top: 64px;
  counter-increment: stop;
}

.route li::before {
  /* The stop: a station dot with its number. */
  content: counter(stop);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--amber);
  border-radius: 50%;
  background: var(--night);
  color: var(--amber);
  font: 800 18px/1 var(--display);
}

.route li::after {
  /* The line between stops. */
  content: "";
  position: absolute;
  top: 18.5px;
  left: 40px;
  right: -28px;
  height: 3px;
  background: var(--moon);
  opacity: 0.85;
}

.route li:last-child::after {
  right: 0;
  background: linear-gradient(90deg, var(--moon), transparent);
}

.route h3 {
  font-size: 23px;
  font-weight: 750;
  font-stretch: 86%;
  line-height: 1.1;
}

.route p {
  margin-top: 10px;
  color: var(--haze);
  font-size: 16px;
}

.route-note {
  margin-top: 40px;
  color: var(--haze);
}

.route-actions {
  margin-top: 22px;
}

/* ------------------------------------------------------------ last call */

.final {
  padding: clamp(110px, 14vw, 190px) 0 clamp(90px, 10vw, 140px);
}

.final h2 {
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.92;
  letter-spacing: -0.008em;
}

.final p {
  max-width: 46ch;
  margin: 22px 0 32px;
  color: var(--haze);
  font-size: clamp(18px, 1.4vw, 20px);
}

/* ------------------------------------------------------------ footer */

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 40px;
  color: var(--dim);
  font-size: 15px;
}

.brand-small {
  color: var(--moon);
  font-size: 18px;
}

.brand-small svg {
  width: 26px;
  height: 26px;
}

.footer p {
  max-width: 64ch;
}

.footer-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.footer-end a {
  color: var(--haze);
  text-decoration: none;
}

.footer-end a:hover {
  color: var(--moon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signin-note {
  margin-top: 16px;
  color: var(--dim);
  font-size: 14px;
}

.signin-note a {
  color: var(--haze);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------ smaller screens */

@media (max-width: 1080px) {
  .nav-links {
    gap: 20px;
  }

  .radio-card {
    width: 300px;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }

  .route li:nth-child(2)::after {
    right: 0;
    background: linear-gradient(90deg, var(--moon), transparent);
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 60px;
  }

  body {
    font-size: 17px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: calc(var(--nav-h) + 36px) var(--gutter) 0;
  }

  .hero-copy {
    order: 1;
  }

  .hero-map-wrap {
    order: 2;
  }

  .radio-card {
    order: 3;
  }

  .hero-map .town text,
  .hero-map .train-label {
    font-size: 30px;
    stroke-width: 8px;
  }

  .hero-map .train-label tspan.crew {
    font-size: 22px;
  }

  .hero::after {
    display: none;
  }

  .hero-map-wrap {
    position: relative;
    inset: auto;
    height: 400px;
    margin: 20px calc(-1 * var(--gutter)) 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  }

  .hero-copy {
    max-width: none;
  }

  .lead {
    margin: 22px 0 28px;
  }

  .actions .button {
    flex: 1 1 100%;
  }

  .radio-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -64px 0 0;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .schedule tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }

  .schedule tbody th,
  .schedule tbody td {
    width: auto;
    padding: 0;
    border: 0;
  }

  .schedule tbody td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .schedule tbody td:last-child {
    grid-column: 2;
    grid-row: 1;
    width: auto;
  }

  .pv-keys {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats dd {
    font-size: 22px;
  }

  .decide small {
    flex-basis: 100%;
    margin-left: 0;
  }

  .route {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .route li {
    padding: 4px 0 0 64px;
  }

  .route li::after,
  .route li:nth-child(2)::after,
  .route li:last-child::after {
    top: 40px;
    bottom: -32px;
    left: 18.5px;
    right: auto;
    width: 3px;
    height: auto;
    background: var(--moon);
  }

  .route li:last-child::after {
    background: linear-gradient(180deg, var(--moon), transparent);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  /* The hero says when it opens; the nav keeps room for signing in. */
  .nav-launch {
    display: none;
  }

  /* The countdowns stack, one under the other. */
  .departures {
    flex-direction: column;
    width: 100%;
    margin-top: 28px;
  }

  .departure:not([hidden]) ~ .departure {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .departure-clock {
    font-size: 32px;
  }

  .departure-when {
    white-space: normal;
  }

  .me-button {
    padding: 3px;
  }

  .me-button span {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 19px;
  }

  .pv {
    padding: 16px;
  }

  .pv-profile,
  .pv-site {
    padding: 0;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-stats {
    gap: 18px;
  }
}

/* ------------------------------------------------------------ sign-in notice (same look as the site's toast) */

.notice {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  max-width: min(560px, calc(100% - 32px));
  padding: 13px 12px 13px 20px;
  border-radius: 14px;
  background: var(--moon);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
}

.notice[data-kind="bad"] {
  background: #ffd0d8;
  color: #3a0612;
}

.notice p {
  margin: 0;
  overflow-wrap: anywhere;
}

.notice button {
  flex: none;
  width: 28px;
  height: 28px;
  margin: -3px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 600 21px/1 var(--text);
  cursor: pointer;
}

.notice button:hover {
  background: rgba(13, 8, 34, 0.1);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
}
