/* Perfect Start — public marketing site.
 *
 * Brand tokens (palette, typefaces, the start-light components) live in
 * brand.css and are documented in docs/BRAND.md. This file is layout and
 * page voice only: if you are about to write a hex here, check there first.
 *
 * The page is organised as a start sequence. Each numbered section owns one
 * lamp of the countdown — red, yellow, orange, green — and the rail down the
 * left edge lights the lamp for the section you are reading. Green is the
 * arrival, so it belongs to the last of the four and to nothing before it.
 */

:root {
  /* Semantic aliases over the brand palette, so page rules read as intent. */
  --ink: var(--ps-carbon);
  --surface: var(--ps-panel-2);
  --surface-2: var(--ps-panel);
  --line: var(--ps-line);
  --accent: var(--ps-green);
  --accent-deep: var(--ps-green-deep);
  --text: var(--ps-white);
  --muted: var(--ps-silver);
  --soft: var(--ps-bone);
  --radius: var(--ps-radius);
  --radius-lg: var(--ps-radius-lg);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ps-black);
  color: var(--text);
  font: 16px/1.65 var(--ps-font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(100%, var(--max)); margin: 0 auto; padding-inline: 28px; }

h1, h2, h3 {
  font-family: var(--ps-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
h1, h2, h3, p { text-wrap: pretty; }

/* Every uppercase micro-label on the page speaks with one voice. */
.status-pill,
.eyebrow,
.card-tag,
.journey-state,
.film-label,
.links a,
.section-number,
.now-status,
.rail-label {
  font-family: var(--ps-font-ui);
  font-weight: 600;
  letter-spacing: var(--ps-tracking);
  text-transform: uppercase;
}

/* ------------------------------------------------------------ header --- */

header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--ps-line-soft);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; align-items: center; min-height: 74px; gap: 28px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ps-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img { height: 20px; width: auto; }
.brand em { color: var(--accent); font-style: normal; }
.links { display: flex; gap: 30px; margin-left: auto; color: var(--muted); font-size: 13px; }
.links a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.links a:hover, .links a:focus-visible { color: var(--text); border-bottom-color: var(--accent); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid var(--ps-line-green);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--ps-glow-green);
}

/* -------------------------------------------------------- light rail --- */
/* The countdown, held at the edge of the page. It is decoration that carries
 * the section you are in, so it is hidden from assistive tech and dropped
 * entirely on narrow screens where there is no margin to hold it. */

.rail {
  position: fixed;
  top: 50%;
  left: 26px;
  z-index: 25;
  display: grid;
  gap: 22px;
  transform: translateY(-50%);
}
.rail li { display: flex; align-items: center; gap: 12px; list-style: none; }
.rail .lamp {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ps-grey);
  opacity: 0.45;
  transition: opacity 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.rail-label { color: var(--ps-grey); font-size: 10px; opacity: 0; transition: opacity 220ms ease; }
.rail li[data-lamp="1"] .lamp { background: var(--ps-red); }
.rail li[data-lamp="2"] .lamp { background: var(--ps-yellow); }
.rail li[data-lamp="3"] .lamp { background: var(--ps-orange); }
.rail li[data-lamp="4"] .lamp { background: var(--ps-green); }
.rail li.is-lit .lamp { opacity: 1; transform: scale(1.25); }
.rail li[data-lamp="4"].is-lit .lamp { box-shadow: var(--ps-glow-green); }
.rail li.is-lit .rail-label { opacity: 1; color: var(--soft); }
.rail ol { margin: 0; padding: 0; }

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

section { border-top: 1px solid var(--line); }
.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: clamp(70px, 9vw, 122px) 0 92px;
  border-top: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 6% -8%, var(--ps-wash-green), transparent 46%),
    radial-gradient(ellipse at 96% 46%, var(--ps-wash-green-faint), transparent 40%),
    var(--ps-black);
}
/* The speed slash from the jersey artwork, at wallpaper strength. */
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -30%;
  width: 62%;
  height: 120%;
  background: linear-gradient(196deg, transparent 46%, var(--ps-wash-green-faint) 47%, transparent 49%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: clamp(42px, 6.5vw, 88px);
}
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 12px; }
.eyebrow .ps-lights { font-size: 11px; }
h1 {
  max-width: 13ch;
  margin: 22px 0 0;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.005em;
}
h1 em { display: block; color: var(--accent); font-style: italic; }
.lede { max-width: 55ch; margin: 28px 0 0; color: var(--soft); font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; }
.supporting { max-width: 57ch; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.availability {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 570px;
  margin-top: 34px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  background: var(--ps-panel-2);
  color: var(--muted);
  font-size: 14px;
}
.availability strong { color: var(--text); font-weight: 700; }
.pulse {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--ps-glow-green);
}

/* The film panel: a black stage with one green edge and the mark behind it. */
.hero-film { margin: 0; }
.film-stage {
  position: relative;
  display: flex;
  min-height: 520px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 22%, var(--ps-wash-green), transparent 30%),
    linear-gradient(160deg, var(--ps-panel) 0%, var(--ps-panel-2) 58%, var(--ps-black) 100%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.film-stage::before {
  content: "";
  position: absolute;
  inset: auto -12% -22% -18%;
  height: 74%;
  background: linear-gradient(204deg, transparent 52%, var(--ps-wash-green) 53%, transparent 56%);
}
.film-stage .film-mark {
  position: absolute;
  right: -4%;
  bottom: 9%;
  width: 66%;
  opacity: 0.1;
}
.film-label {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 7px 12px;
  border: 1px solid var(--ps-line-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--muted);
  font-size: 11px;
}
.film-copy { position: relative; z-index: 1; align-self: flex-end; }
.film-kicker { display: block; margin-bottom: 10px; color: var(--accent); font-family: var(--ps-font-ui); font-size: 12px; font-weight: 600; letter-spacing: var(--ps-tracking); text-transform: uppercase; }
.film-copy strong {
  display: block;
  max-width: 14ch;
  font-family: var(--ps-font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
}
.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  border: 1px solid var(--ps-line-green);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
}
.play-mark::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 31px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 17px solid var(--accent);
}
.hero-film figcaption { margin: 14px 4px 0; color: var(--muted); font-size: 13px; }

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

.vision, .experience, .measurement, .routes, .now { padding: clamp(78px, 10vw, 132px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(44px, 8vw, 116px); }
.section-number {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
}
.section-number::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lamp, var(--ps-grey));
}
.vision { --lamp: var(--ps-red); }
.experience { --lamp: var(--ps-yellow); }
.measurement { --lamp: var(--ps-orange); }
.routes { --lamp: var(--ps-green); }
.routes .section-number::before { box-shadow: var(--ps-glow-green); }

h2 { max-width: 18ch; margin: 0; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; }
h2 em { color: var(--accent); font-style: normal; }
.vision-copy p, .measurement-grid p, .now-inner p { max-width: 58ch; margin: 0 0 20px; color: var(--muted); }
.large-copy, .vision-copy .large-copy, .measurement-grid .large-copy {
  color: var(--soft);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.5;
}

.experience { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr); column-gap: 72px; align-items: end; }
.section-heading .section-number { grid-column: 1 / -1; }
.section-heading > p { margin: 0; color: var(--muted); }

.journey { margin: 58px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.journey li {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.journey-state { display: flex; align-items: center; gap: 10px; padding-top: 6px; color: var(--muted); font-size: 11px; }
.journey-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--state, var(--ps-grey)); }
.journey li:nth-child(1) { --state: var(--ps-green); }
.journey li:nth-child(1) .journey-state { color: var(--accent); }
.journey li:nth-child(2) { --state: var(--ps-orange); }
.journey li:nth-child(3) { --state: var(--ps-grey); }
.journey h3, .route-card h3 { margin: 0; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.15; }
.journey p { max-width: 62ch; margin: 10px 0 0; color: var(--muted); }

/* ------------------------------------------------------- measurement --- */

.measurement-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(50px, 8vw, 108px); align-items: center; }
.measurement-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    var(--surface);
  background-size: 46px 46px;
}
.measurement-visual svg { width: 100%; height: auto; }
.measurement-visual figcaption {
  margin-top: 16px;
  color: var(--ps-grey);
  font-family: var(--ps-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--ps-tracking);
  text-align: center;
  text-transform: uppercase;
}
.frame-corner { position: absolute; width: 46px; height: 46px; }
.frame-corner-a { top: 20px; left: 20px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.frame-corner-b { right: 20px; bottom: 20px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }

/* ------------------------------------------------------------ routes --- */

.routes { background: var(--surface); }
.section-heading.compact h2 { max-width: 15ch; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.route-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: clamp(26px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.route-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
}
.rider-card { background: radial-gradient(circle at 100% 0, var(--ps-wash-green), transparent 40%), var(--surface-2); }
.card-tag { display: block; margin-bottom: 30px; color: var(--accent); font-size: 11px; }
.club-card .card-tag { color: var(--muted); }
.club-card::after { background: linear-gradient(90deg, var(--ps-grey), transparent 72%); }
.route-card p { margin: 18px 0 0; color: var(--muted); }
.route-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--soft);
  font-size: 14px;
}
.route-card li { position: relative; padding-left: 20px; }
.route-card li::before { content: ""; position: absolute; top: 0.72em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.club-card li::before { background: var(--ps-grey); }
.pricing-note { max-width: 70ch; margin: 26px 0 0; color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- now --- */

.now { background: radial-gradient(ellipse at 10% 50%, var(--ps-wash-green), transparent 42%), var(--ps-black); }
.now-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr); gap: clamp(48px, 8vw, 108px); align-items: end; }
.now .eyebrow { color: var(--muted); }
.now h2 { margin-top: 16px; }
.now-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid var(--ps-line-green);
  border-radius: 999px;
  color: var(--accent) !important;
  font-size: 11px;
}

footer { padding: 34px 0 52px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-inner > :first-child { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--ps-font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-inner img { height: 15px; width: auto; }
.footer-status { margin-left: auto; color: var(--accent); font-family: var(--ps-font-ui); font-weight: 600; letter-spacing: var(--ps-tracking); text-transform: uppercase; font-size: 11px; }

/* ------------------------------------------------------------ layout --- */

@media (max-width: 1360px) {
  .rail { display: none; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid, .split, .measurement-grid, .now-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-film { max-width: 680px; }
  .film-stage { min-height: 430px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .measurement-visual { min-height: 360px; }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 20px; }
  .header-inner { min-height: 62px; gap: 12px; }
  .links { display: none; }
  .brand { font-size: 16px; }
  .status-pill { margin-left: auto; padding: 6px 10px; font-size: 10px; }
  .hero { padding-top: 62px; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .film-stage { min-height: 340px; padding: 22px; border-radius: var(--radius); }
  .play-mark { width: 60px; height: 60px; }
  .play-mark::after { top: 20px; left: 25px; border-top-width: 10px; border-bottom-width: 10px; border-left-width: 15px; }
  .journey li { grid-template-columns: 1fr; gap: 12px; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 0; }
  .measurement-visual { min-height: 280px; }
  .footer-status { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail .lamp, .rail-label { transition: none; }
}

.footer-legal { display: flex; gap: 1rem; }
.footer-legal a { color: var(--muted); text-underline-offset: 0.2em; }
