/* Pisteday — pisteday.app
   One stylesheet for every page. No web fonts, no third-party anything. */

:root {
  color-scheme: light dark;

  /* Brand, from the app icon */
  --orange: #FF6A3D;
  --orange-deep: #E5532A;
  --blue: #1A5FC4;
  --blue-bright: #1E6FD9;
  --navy: #0B2E6B;
  --snow: #EEF5FF;
  --white: #FFFFFF;

  /* Roles (light) */
  --ground: var(--snow);
  --sheet: var(--white);
  --ink: var(--navy);
  --ink-soft: #3B5482;
  --ink-faint: #5D7299;
  --line: #D3E1F5;
  --link: var(--blue);
  --button: var(--blue);
  --button-hover: #144FA6;
  --button-ink: var(--white);
  --track: var(--orange);
  --mountain: #D9E7FB;
  --shadow: 0 1px 2px rgb(11 46 107 / 0.06), 0 12px 32px -8px rgb(11 46 107 / 0.18);
  --shadow-lift: 0 2px 4px rgb(11 46 107 / 0.08), 0 24px 56px -12px rgb(11 46 107 / 0.28);

  /* Type: the app's own rounded face for display and numbers, the system face for text */
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Space and shape */
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
  --radius-sheet: clamp(24px, 3vw, 36px);
  --radius-card: 22px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #061733;
    --sheet: #0D2752;
    --ink: #EEF5FF;
    --ink-soft: #B8C9E6;
    --ink-faint: #93A8CC;
    --line: #1D3B6E;
    --link: #8FBEFF;
    --button: var(--blue-bright);
    --button-hover: #1A5FC4;
    --mountain: #12305F;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -8px rgb(0 0 0 / 0.5);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.3), 0 24px 56px -12px rgb(0 0 0 / 0.6);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2.5px; }

::selection { background: var(--orange); color: var(--navy); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 800 1.3125rem/1 var(--display);
  letter-spacing: -0.02em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgb(11 46 107 / 0.2);
}

.site-nav ul {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 8px 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* ---------- Buttons and the launch slot ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--button);
  color: var(--button-ink);
  font: 700 1.0625rem/1 var(--text);
  text-decoration: none;
  box-shadow: 0 1px 1px rgb(11 46 107 / 0.2), 0 8px 20px -8px rgb(11 46 107 / 0.45);
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.btn:hover { background: var(--button-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.0625rem/1.2 var(--display);
  color: var(--ink);
}
.soon svg { width: 22px; height: 22px; color: var(--orange); flex: none; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(16px, 4vw, 48px) clamp(40px, 7vw, 96px); }

.hero .wrap {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
  .stage { justify-self: end; }
}

.hero h1 {
  font-size: clamp(2.875rem, 10.5vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.hero h1 span { display: block; }

.lede {
  margin-top: 22px;
  max-width: 34ch;
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero .actions { margin-top: 30px; }

/* The day page: the icon's calendar sheet, holding the day */
.stage {
  position: relative;
  padding-top: 18px;            /* room for the rings */
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

.daypage {
  position: relative;
  border-radius: var(--radius-sheet);
  background: var(--sheet);
  box-shadow: var(--shadow-lift);
}

.daypage-head {
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 26px clamp(20px, 4vw, 32px) 18px;
  background: var(--blue-bright);
  color: var(--white);
}
.daypage-head .day { font: 800 clamp(1.125rem, 2.6vw, 1.375rem)/1.1 var(--display); }
.daypage-head .where { font-size: 0.875rem; font-weight: 600; text-align: right; }
@media (max-width: 560px) {
  .daypage-head { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 30px; }
  .daypage-head .where { text-align: left; }
}
@media (max-width: 440px) {
  .site-header .wrap { min-height: 64px; }
  .brand { font-size: 1.125rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: 0.875rem; }
}

.rings {
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}
.rings i {
  width: clamp(16px, 2.6vw, 22px);
  height: clamp(38px, 6vw, 50px);
  border-radius: var(--radius-pill);
  background: var(--navy);
}
@media (prefers-color-scheme: dark) {
  .rings i { background: #031028; }
  .btn { box-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 8px 20px -8px rgb(0 0 0 / 0.6); }
}

.daypage-body {
  position: relative;
  aspect-ratio: 1 / 1.02;
}

.daypage-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-sheet) var(--radius-sheet);
}

.daypage-body .peaks {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 78%;
  color: var(--mountain);
}

.daypage-body .route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.route path {
  fill: none;
  stroke: var(--track);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route .lift {
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-dasharray: 2 7;
}
@media (prefers-color-scheme: dark) { .route .lift { stroke: #8FBEFF; } }

/* Run and lift name tags, set like a piste map */
.tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: var(--radius-pill);
  background: var(--sheet);
  color: var(--ink);
  font: 700 0.8125rem/1.1 var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow);
  z-index: 3;
}
.tag.t1 { left: 22%; top: 3%; }
.tag.t2 { left: 4%; top: 21%; }
.tag.t3 { left: 20%; top: 41%; }
.tag.t4 { left: 3%; top: 55%; }

.tag small { font-weight: 500; color: var(--ink-faint); font-size: 0.75rem; }
.tag .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tag svg { width: 16px; height: 16px; flex: none; color: var(--ink); }
/* With room around the sheet, the left-hand tags hang over its edge */
@media (min-width: 600px) {
  .tag.t2, .tag.t4 { left: -6%; }
}
@media (min-width: 960px) {
  .daypage-head { padding-top: 36px; }
}
@media (max-width: 560px) {
  .tag { font-size: 0.75rem; padding: 6px 10px 6px 8px; gap: 6px; }
  .tag small { font-size: 0.6875rem; }
  .tag .dot { width: 10px; height: 10px; }
}

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.blue { background: #1E6FD9; }
.dot.red { background: #D7263D; }
.dot.black { background: #111827; box-shadow: 0 0 0 1.5px var(--sheet), 0 0 0 2.5px #111827; }
.dot.green { background: #16A34A; }

.device {
  position: absolute;
  z-index: 4;
}
.phone {
  right: -2%;
  bottom: -16%;
  width: 52%;
  padding: 2.2%;
  border-radius: 15% / 7%;
  background: #0B1220;
  box-shadow: var(--shadow-lift);
}
.phone img { border-radius: 12.5% / 5.8%; }

.watch {
  left: 4%;
  bottom: 6%;
  width: 26%;
  padding: 3.5%;
  border-radius: 30%;
  background: #0B1220;
  box-shadow: var(--shadow-lift);
}
.watch img { border-radius: 24%; }

.stage-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  text-align: center;
}

/* The hero's one authored moment: the day's track draws itself */
@media (prefers-reduced-motion: no-preference) {
  .route .run {
    stroke-dasharray: 1;
    animation: draw 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
  }
  .daypage .tag {
    animation: settle 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .daypage .tag:nth-of-type(1) { animation-delay: 0.45s; }
  .daypage .tag:nth-of-type(2) { animation-delay: 0.65s; }
  .daypage .tag:nth-of-type(3) { animation-delay: 0.85s; }
  .daypage .tag:nth-of-type(4) { animation-delay: 1.05s; }
  .phone, .watch {
    animation: settle 900ms cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
  }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes settle { from { opacity: 0; } }

/* ---------- Sections and the day's route down the page ---------- */

.stop {
  position: relative;
  padding-block: clamp(64px, 10vw, 128px);
}

.stop-head { max-width: 40rem; }
.stop-head h2 { font-size: clamp(2.125rem, 6vw, 3.75rem); }
.stop-head p {
  margin-top: 16px;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38ch;
}

/* The route runs in a left rail on wide screens */
.leg { display: none; }

@media (min-width: 1180px) {
  .stop .wrap { position: relative; padding-left: calc(var(--gutter) + 132px); }
  .leg {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--gutter) + 40px);
    width: 64px;
    pointer-events: none;
  }
  .leg-in {
    position: absolute;
    left: 31px;
    top: calc(-1 * clamp(64px, 10vw, 128px));
    height: calc(clamp(64px, 10vw, 128px) + 18px);
    border-left: 2.5px solid var(--track);
  }
  .leg svg {
    position: absolute;
    top: 18px;
    left: 0;
    width: 64px;
    height: calc(100% + clamp(64px, 10vw, 128px) - 18px);
    overflow: visible;
  }
  .leg path {
    fill: none;
    stroke: var(--track);
    stroke-width: 2.5;
    stroke-linecap: round;
  }
  .leg .stop-dot {
    position: absolute;
    top: 8px;
    left: 21px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--ground);
    border: 3px solid var(--track);
  }
  .leg time {
    position: absolute;
    top: 6px;
    right: calc(100% + 6px);
    width: 96px;
    text-align: right;
    font: 800 1rem/1.15 var(--display);
    font-variant-numeric: tabular-nums;
    color: var(--ink);
  }
  .leg time span {
    display: block;
    font: 600 0.8125rem/1.3 var(--text);
    color: var(--ink-faint);
  }
  .on-navy .leg .stop-dot { background: var(--navy); }
  .on-navy .leg time { color: var(--white); }
  .on-navy .leg time span { color: #B8C9E6; }
}

/* On phones a short piece of track marks each new stop */
.trail {
  width: 44px;
  height: 56px;
  margin-bottom: 18px;
  color: var(--track);
}
.trail path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.trail-stop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.trail-stop .trail { margin-bottom: 0; flex: none; }
.trail-stop time {
  font: 800 1rem/1.2 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.trail-stop time span { font: 600 0.875rem/1.2 var(--text); color: var(--ink-faint); }
.on-navy .trail-stop time { color: var(--white); }
.on-navy .trail-stop time span { color: #B8C9E6; }
@media (min-width: 1180px) { .trail, .trail-stop { display: none; } }

/* ---------- Features ---------- */

.feature-lead {
  display: grid;
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
}

.sheet {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--sheet);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
}

.sheet h3, .feature h3 {
  font-size: clamp(1.375rem, 2.6vw, 1.625rem);
  letter-spacing: -0.02em;
}
.sheet p, .feature p {
  margin-top: 10px;
  color: var(--ink-soft);
  max-width: 42ch;
}

.icon {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  color: var(--blue-bright);
}
.icon path, .icon circle, .icon rect, .icon line, .icon polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-color-scheme: dark) { .icon { color: #8FBEFF; } }

/* Just press Start: live numbers, real screenshot */
.f-start { display: grid; gap: 24px; align-content: start; }
.f-start figure {
  margin: 0 -8px -40px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
}

/* Every run has a name: the day, as a list of names */
.daylog {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.daylog li {
  display: grid;
  grid-template-columns: 3.4em 22px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.daylog li:first-child { border-top: 0; }
.daylog time {
  font: 700 0.9375rem/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.daylog .dot { justify-self: center; }
.daylog svg { width: 18px; height: 18px; justify-self: center; color: var(--ink); }
.daylog small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.8125rem; }
.daylog-note { margin-top: 14px; font-size: 0.8125rem; color: var(--ink-faint); }

/* Works without signal: the switch is on, the names are still there */
.f-offline { display: flex; flex-direction: column; }
.offline-demo {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 10px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ground);
  font-weight: 600;
}
.toggle-row span { display: inline-flex; align-items: center; gap: 10px; }
.toggle-row .plane {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--navy);
}
.toggle-row .plane svg { width: 18px; height: 18px; }
.switch {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: var(--radius-pill);
  background: #34C759;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.2);
}
.offline-demo .tag { position: static; justify-self: start; }

/* The rest of the features: a quiet grid, no boxes */
.feature-grid {
  display: grid;
  gap: 0 40px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.feature .icon { margin-bottom: 14px; }
.feature h3 { font-size: 1.25rem; }
.feature p { margin-top: 6px; font-size: 1rem; }

/* Apple Watch: the watch itself, live */
.f-watch { display: grid; gap: 20px; align-content: start; }
.f-watch .watch-face {
  justify-self: center;
  width: min(190px, 70%);
  padding: 14px;
  border-radius: 30%;
  background: #0B1220;
  box-shadow: var(--shadow-lift);
}
.f-watch .watch-face img { border-radius: 22%; }

@media (min-width: 720px) {
  .feature-lead { grid-template-columns: 1fr 1fr; }
  .f-start { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .feature-lead {
    grid-template-columns: 1fr 1fr 1.05fr;
    grid-template-rows: auto auto;
  }
  .f-start { grid-column: 1 / 3; grid-template-columns: 1fr 1.15fr; align-items: start; }
  .f-start figure { margin: 0 -32px -40px 0; }
  .f-name { grid-column: 3; grid-row: 1 / 3; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Private by design ---------- */

.on-navy {
  background: var(--navy);
  color: var(--white);
  --ink-soft: #C9D7EE;
  --link: #A9CBFF;
}
@media (prefers-color-scheme: dark) { .on-navy { background: #0B2E6B; } }

.private-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.on-navy h2 { color: var(--white); }

.checks {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  font-size: 1.125rem;
  font-weight: 600;
}
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg { width: 26px; height: 26px; flex: none; color: var(--orange); margin-top: -1px; }
.checks path { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

.private-link { margin-top: 30px; font-weight: 700; }

.private-art { width: min(100%, 420px); justify-self: center; color: #2C5BA8; }
.private-art .ridge { fill: #123B80; }
.private-art .snowcap { fill: #EEF5FF; }
.private-art .lock-body { fill: var(--orange); }
.private-art .lock-hole { fill: var(--navy); }
.private-art .shackle { fill: none; stroke: #EEF5FF; stroke-width: 10; stroke-linecap: round; }
.private-art .trackline { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; }

@media (min-width: 900px) {
  .private-grid { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- Premium ---------- */

.plans {
  display: grid;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
  align-items: start;
}
@media (min-width: 840px) { .plans { grid-template-columns: 1fr 1fr; } }

.plan {
  border-radius: var(--radius-sheet);
  background: var(--sheet);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plan-head { padding: 28px clamp(22px, 3vw, 34px) 22px; }
.plan-head h3 { font-size: clamp(1.625rem, 3vw, 2rem); }
.plan-head p { margin-top: 8px; color: var(--ink-soft); }

.plan-premium { box-shadow: var(--shadow-lift); }
.plan-premium .plan-head { background: var(--blue-bright); color: var(--white); }
.plan-premium .plan-head h3 { color: var(--white); }

.price { margin-top: 14px; display: grid; gap: 4px; }
.price strong { font: 800 clamp(2.25rem, 5vw, 2.75rem)/1 var(--display); letter-spacing: -0.03em; }
.price strong small { font: 700 1.125rem/1 var(--display); letter-spacing: 0; }
.price span { font-weight: 600; color: var(--white); }
.price .free-week {
  justify-self: start;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.875rem;
}

.plan ul {
  margin: 0;
  padding: 8px clamp(22px, 3vw, 34px) 30px;
  list-style: none;
}
.plan li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.plan li:first-child { border-top: 0; }
.plan li svg { width: 22px; height: 22px; flex: none; color: var(--blue-bright); }
.plan li path { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.plan-premium li svg { color: var(--orange); }

.plans-note {
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--ink-faint);
  max-width: 60ch;
}

/* ---------- Languages ---------- */

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  font: 800 clamp(1.625rem, 4.6vw, 3rem)/1.2 var(--display);
  letter-spacing: -0.02em;
}
.languages li:nth-child(3n+2) { color: var(--blue-bright); }
.languages li:nth-child(5n) { color: var(--orange-deep); }
@media (prefers-color-scheme: dark) {
  .languages li:nth-child(3n+2) { color: #8FBEFF; }
  .languages li:nth-child(5n) { color: var(--orange); }
}

/* ---------- Closing: the bottom of the mountain ---------- */

.closing {
  position: relative;
  background: var(--orange);
  color: var(--navy);
  padding-top: clamp(72px, 11vw, 140px);
  overflow: hidden;
}
.closing h2 {
  font-size: clamp(2.75rem, 9vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 11ch;
}
.closing .actions { margin-top: 32px; }
.closing .soon { color: var(--navy); }
.closing .soon svg { color: var(--navy); }
.closing .btn { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px -10px rgb(11 46 107 / 0.8); }
.closing .btn:hover { background: #072251; }
.closing :focus-visible { outline-color: var(--navy); }

.closing-peaks {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(40px, 7vw, 80px);
}
.closing-peaks .m1 { fill: var(--blue-bright); }
.closing-peaks .m2 { fill: var(--blue); }
.closing-peaks .t { fill: none; stroke: var(--white); stroke-width: 7; stroke-linecap: round; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #C9D7EE;
  font-size: 0.875rem;
  padding-block: 44px 56px;
}
@media (prefers-color-scheme: dark) { .site-footer { background: #041127; } }
.site-footer a { color: #FFFFFF; }
.site-footer :focus-visible { outline-color: #8FBEFF; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid #23498A;
}
.footer-top .brand { color: var(--white); font-size: 1.125rem; }
.footer-top .brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.footer-legal { display: grid; gap: 10px; margin-top: 24px; max-width: 80ch; line-height: 1.5; }

/* ---------- Text pages: privacy, support, press, terms ---------- */

.doc { padding-block: clamp(28px, 6vw, 72px) clamp(64px, 10vw, 120px); }

.doc-sheet {
  max-width: 50rem;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 64px);
  border-radius: var(--radius-sheet);
  background: var(--sheet);
  box-shadow: var(--shadow);
}

.doc h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
.doc .updated { margin-top: 12px; color: var(--ink-faint); font-weight: 600; }
.doc .intro { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-soft); }

.prose { margin-top: 36px; max-width: 68ch; }
.prose h2 { font-size: 1.625rem; margin-top: 44px; }
.prose h3 { font-size: 1.1875rem; margin-top: 28px; }
.prose h2 + p, .prose h2 + ul, .prose h3 + p { margin-top: 12px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--ink); }

.fill {
  background: #FFE3D9;
  color: #6B1E05;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95em;
}
@media (prefers-color-scheme: dark) { .fill { background: #5A2312; color: #FFD9CC; } }

.paste-here {
  margin-top: 28px;
  padding: 18px 20px;
  border: 2px dashed var(--orange);
  border-radius: 16px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Support: questions that open */
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  font: 700 1.125rem/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--blue-bright); transition: transform 200ms ease-out; }
.faq summary path { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 2px 22px; color: var(--ink-soft); max-width: 62ch; }
.faq details > div p + p { margin-top: 10px; }

.contact-card {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--ground);
  font-size: 1.125rem;
}
.contact-card strong { display: block; font: 800 1.375rem/1.2 var(--display); margin-bottom: 6px; }

.safety-note { margin-top: 36px; font-size: 0.875rem; color: var(--ink-faint); }

/* Press */
.downloads {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-top: 18px;
}
.download {
  display: grid;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
}
.download img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--ground);
}
.download span { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; }
.download small { display: block; color: var(--ink-faint); font-weight: 500; }
.download.icon-dl img { border-radius: 22%; }

.facts { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-soft); }

.notice {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ground);
  font-weight: 600;
}

/* ---------- Print ---------- */
@media print {
  .site-header nav, .closing, .stage, .leg, .trail { display: none; }
  body { background: #fff; color: #000; }
  .doc-sheet { box-shadow: none; padding: 0; }
}

/* Press: the watch screenshot sits in the same frame as the iPhone ones */
.download.watch-dl img { aspect-ratio: 1206 / 2622; object-fit: contain; background: #0B1220; padding: 12px; }
