/* Public website. Colours and shapes come from DESIGN.md (the "Line" style).
   Flat: no shadows, no gradients. One accent: signal yellow. */

:root {
  --yellow: #ffd400;
  --navy: #0b1b3a;
  --mint: #9ad8c8;
  --char-ink: #22262b;

  --ground: #edf0f7;
  --raised: #ffffff;
  --ink: #0b1b3a;
  --ink-soft: #46557a;
  --rule: #cfd6e6;
  --band: #0b1b3a;
  --band-ink: #ffffff;
  --band-soft: #b7c3e2;
  --band-rule: #263a6e;
  --cell: #edf0f7;

  --pad: clamp(20px, 5vw, 56px);
  --gap-section: clamp(72px, 11vw, 144px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b1b3a;
    --raised: #16295a;
    --ink: #ffffff;
    --ink-soft: #b7c3e2;
    --rule: #263a6e;
    --band: #16295a;
    --band-rule: #34498a;
    --cell: #0b1b3a;
  }

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

  .on-yellow ::selection,
  .on-yellow::selection {
    background: var(--navy);
    color: var(--yellow);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-soft) var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  accent-color: var(--yellow);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* Short pages (help, coming soon): the footer stays at the bottom. */
body > main {
  flex: 1 0 auto;
}

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

.on-navy ::selection,
.on-navy::selection {
  background: var(--yellow);
  color: var(--navy);
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* No lone word on the last line of a paragraph. */
p,
li,
figcaption,
summary {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

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

.on-yellow :focus-visible {
  outline-color: var(--navy);
}

.on-navy :focus-visible {
  outline-color: var(--yellow);
}

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ---------- Top bar ---------- */

.top {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-block: 20px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

/* The flag from the app: a pole and a small pennant. */
.mark i {
  position: relative;
  flex: none;
  width: 19px;
  height: 26px;
}

.mark i::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
}

.mark i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 15px;
  height: 11px;
  border-radius: 0 4px 4px 0;
  background: currentColor;
}

.top-link {
  padding: 12px 4px;
  font-weight: 600;
  text-decoration: none;
}

.top-link:hover {
  text-decoration: underline;
}

.lang {
  appearance: none;
  min-height: 44px;
  padding: 0 38px 0 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230B1B3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lang option {
  background: #fff;
  color: #0b1b3a;
}

/* ---------- Buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 24px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s;
}

.pill:hover {
  background: #16295a;
}

.pill:active {
  transform: scale(0.97);
}

.pill svg {
  flex: none;
}

.pill.quiet {
  min-height: 44px;
  padding: 8px 18px;
  background: transparent;
  color: var(--navy);
}

.pill.quiet:hover {
  background: var(--navy);
  color: #fff;
}

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

/* Until the app is in the stores: a note above the buttons; the store
   buttons and "Get the app" are greyed with a "Coming soon" chip; below them
   "Do you want to be a tester?" is the one main action. All open the tester box. */
.stores-note {
  margin-top: clamp(24px, 3vw, 36px);
  font-weight: 600;
}

.stores-note + .stores {
  margin-top: 18px !important;
}

.soon-chip {
  display: none;
}

.pill.is-soon {
  gap: 8px;
  padding-right: 8px;
  border-color: rgb(11 27 58 / 0.35);
  background: transparent;
  color: rgb(11 27 58 / 0.6);
  cursor: pointer;
}

.pill.is-soon:hover {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.pill.is-soon:active {
  transform: none;
}

.pill.is-soon .soon-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.tester-cta {
  margin-top: 16px;
}

.tester-cta .pill {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 1.125rem;
}

/* In the hero the space under the buttons moves below the tester button. */
.hero .stores:has(+ .tester-cta:not([hidden])) {
  margin-bottom: 0;
}

.hero .tester-cta {
  margin-bottom: clamp(40px, 7vw, 96px);
}

/* ---------- Hero: the yellow poster ---------- */

.hero {
  background: var(--yellow);
  color: var(--navy);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(24px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 34em;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.4;
}

.hero .stores {
  margin-top: clamp(24px, 3vw, 36px);
  margin-bottom: clamp(40px, 7vw, 96px);
}

/* ---------- The phone (a drawing of the app, not a screenshot) ---------- */

.phone {
  justify-self: end;
  align-self: end;
  width: min(360px, 100%);
  border: 10px solid var(--navy);
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
  background: #edf0f7;
  color: var(--navy);
  overflow: hidden;
}

.stage {
  padding: 34px 22px 24px;
  border-radius: 0 0 32px 32px;
  background: var(--navy);
  color: #fff;
}

.stage-meta {
  color: #b7c3e2;
  font-size: 0.8125rem;
  font-weight: 600;
}

.stage-time {
  margin-top: 4px;
  font-size: 5.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* The school's own time under the departure, as in the app. */
.stage-bell {
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.8;
}

.stage-sentence {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1.5px solid var(--yellow);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
}

.chip.outline {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.stops {
  position: relative;
  margin: 0;
  padding: 22px 20px 40px;
  list-style: none;
}

.stops::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--yellow);
}

.stops li {
  position: relative;
  display: grid;
  grid-template-columns: 26px 3.4em 1fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  font-size: 0.9375rem;
}

.stops li::before {
  content: "";
  justify-self: center;
  width: 14px;
  height: 14px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: #fff;
}

.stops li.mine::before {
  width: 24px;
  height: 24px;
  background: var(--yellow);
}

.stops b {
  font-weight: 800;
}

.stops li.mine span {
  font-weight: 700;
}

/* ---------- Sections ---------- */

.band {
  background: var(--band);
  color: var(--band-ink);
  overflow-x: clip;
}

.section {
  padding-block: var(--gap-section);
}

/* Two pale sections in a row share one gap, not two. */
.section:not(.band):not(.end) + .section:not(.band):not(.end) {
  padding-top: 0;
}

.h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
}

.band .lead {
  color: var(--band-soft);
}

/* The week as a line with three stops */

.line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.line::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(50% - 50vw);
  top: 11px;
  height: 6px;
  border-radius: 3px 0 0 3px;
  background: var(--yellow);
}

.line li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 56px;
}

.line li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border: 6px solid var(--yellow);
  border-radius: 50%;
  background: var(--band);
}

.line h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.line .say {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.line .more {
  flex: 1 0 auto;
  margin-top: 8px;
  color: var(--band-soft);
}

.line-more {
  margin-top: clamp(32px, 5vw, 56px);
  font-weight: 700;
}

.demo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  min-height: 92px;
  margin-top: 28px;
}

.choice {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--band-rule);
  border-radius: 999px;
  color: var(--band-ink);
  font-weight: 600;
}

.choice.on {
  border-color: #fff;
  background: var(--yellow);
  color: var(--navy);
}

.mini {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 5px;
}

.mini i {
  height: 18px;
  border-radius: 6px;
  background: var(--band-rule);
}

.mini i.on {
  background: var(--yellow);
}

.mini i.off {
  background: transparent;
  border: 1.5px solid var(--band-rule);
}

.demo .chip {
  margin-left: 10px;
}

/* ---------- The characters (same construction as the app's) ---------- */

.cast {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.buddy {
  --s: 56px;
  --c: #a9d4f5;
  --key: var(--navy);
  --foot: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.buddy .bob {
  position: relative;
  display: block;
}

.buddy .body {
  position: relative;
  display: block;
  width: var(--s);
  height: calc(var(--s) * 1.06);
  border: max(2px, calc(var(--s) * 0.05)) solid var(--key);
  border-radius: 50%;
  background: var(--c);
}

.buddy.bean .body {
  border-radius: calc(var(--s) * 0.5) calc(var(--s) * 0.5) calc(var(--s) * 0.3) calc(var(--s) * 0.3);
}

.buddy.drop .body {
  border-radius: calc(var(--s) * 0.22) calc(var(--s) * 0.55) calc(var(--s) * 0.45) calc(var(--s) * 0.45);
}

/* two eyes */
.buddy .body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--s) * 0.29);
  width: calc(var(--s) * 0.42);
  height: calc(var(--s) * 0.11);
  transform: translateX(-50%);
  background:
    radial-gradient(circle at calc(var(--s) * 0.055) 50%, var(--char-ink) calc(var(--s) * 0.05), transparent calc(var(--s) * 0.056)),
    radial-gradient(circle at calc(100% - var(--s) * 0.055) 50%, var(--char-ink) calc(var(--s) * 0.05), transparent calc(var(--s) * 0.056));
}

/* a small smile */
.buddy .body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--s) * 0.45);
  width: calc(var(--s) * 0.2);
  height: calc(var(--s) * 0.1);
  transform: translateX(-50%);
  border-bottom: max(1.5px, calc(var(--s) * 0.035)) solid var(--char-ink);
  border-radius: 0 0 calc(var(--s) * 0.1) calc(var(--s) * 0.1);
}

.buddy .feet {
  display: flex;
  gap: calc(var(--s) * 0.14);
  margin-top: calc(var(--s) * -0.05);
}

.buddy .feet i {
  width: calc(var(--s) * 0.26);
  height: calc(var(--s) * 0.14);
  border-radius: calc(var(--s) * 0.07);
  background: var(--foot);
}

.buddy .pole {
  position: absolute;
  right: calc(var(--s) * -0.16);
  top: calc(var(--s) * -0.42);
  width: max(2px, calc(var(--s) * 0.035));
  height: calc(var(--s) * 0.7);
  border-radius: 2px;
  background: var(--foot);
}

.buddy .pole::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 2px;
  width: calc(var(--s) * 0.34);
  height: calc(var(--s) * 0.24);
  border-radius: 0 4px 4px 0;
  background: var(--yellow);
}

.buddy.has-flag {
  margin-right: calc(var(--s) * 0.42);
  padding-top: calc(var(--s) * 0.42);
}

.walking .buddy:not(.has-flag) {
  --s: 42px;
}

.walking .bob {
  animation: bob 0.64s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: calc(var(--i, 0) * 140ms);
}

@keyframes bob {
  50% {
    transform: translateY(calc(var(--s) * -0.09));
  }
}

/* ---------- Two-column feature rows ---------- */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.duo.flip > :first-child {
  order: 2;
}

/* The week grid */

.grid-card {
  padding: clamp(16px, 2.5vw, 28px);
  border-radius: 20px;
  background: var(--raised);
}

.week {
  display: grid;
  grid-template-columns: 3.6em repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.week .day,
.week .time {
  font-size: 0.8125rem;
  font-weight: 700;
}

.week .day {
  padding-bottom: 4px;
  text-align: center;
}

.week .cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 6px;
  border-radius: 12px;
  background: var(--cell);
}

.week .cell.free {
  border: 1.5px dashed var(--rule);
  background: transparent;
}

.week .cell b {
  width: 14px;
  height: 14px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--c);
}

.caption {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Tell the group */

.tell {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 32px;
  background: var(--mint);
  color: var(--char-ink);
}

.tell .buddy {
  --s: 112px;
  --foot: var(--char-ink);
  --key: var(--char-ink);
}

.balloon {
  position: relative;
  padding: 10px 18px;
  border: 2px solid var(--char-ink);
  border-radius: 20px;
  background: #fff;
  font-weight: 700;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  border: solid var(--char-ink);
  border-width: 0 2px 2px 0;
  background: #fff;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 14px;
  border: 2px solid var(--char-ink);
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  text-align: center;
}

.tile:first-child {
  background: var(--char-ink);
  color: #fff;
}

/* Screenshots of the app, each in a flat navy phone */

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  margin-top: clamp(36px, 5vw, 64px);
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 7px solid var(--navy);
  border-radius: 36px;
  background: var(--navy);
}

.shot figcaption {
  margin-top: 14px;
  font-weight: 700;
  line-height: 1.3;
}

@media (prefers-color-scheme: dark) {
  /* On the navy page the phone's edge needs its own tone. */
  .shot img {
    border-color: var(--rule);
  }
}

/* ---------- "Do you want to be a tester?" ---------- */

.tester {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border: 0;
  border-radius: 24px;
  background: var(--raised);
  color: var(--ink);
}

.tester .tester-opt {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.tester .field input::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

.tester::backdrop {
  background: rgb(11 27 58 / 0.55);
}

.tester h2 {
  padding-right: 8px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}

.tester p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
}

.field input:focus-visible {
  border-color: var(--ink);
}

.phone-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.phone-pick legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.phone-pick label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--rule);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.phone-pick label:has(input:checked) {
  border-color: var(--ink);
  background: var(--yellow);
  color: var(--navy);
}

.phone-pick label:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.phone-pick input {
  margin: 0;
  accent-color: var(--navy);
}

/* The field only robots fill in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tester .tester-msg {
  color: #b3261e;
  font-weight: 600;
}

.tester .tester-msg:empty {
  display: none;
}

.tester .tester-note {
  font-size: 0.875rem;
}

.tester-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

button.pill {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.pill:disabled {
  opacity: 0.6;
  cursor: progress;
}

.text-btn {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .tester .pill {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--navy);
  }

  .tester .tester-msg {
    color: #ffb4ab;
  }
}

/* Two looks */

.looks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(36px, 5vw, 64px);
}

.look {
  margin: 0;
}

.look .stage {
  min-height: 300px;
  padding: 28px;
  border-radius: 32px;
}

.look .stage-time {
  font-size: clamp(3.5rem, 8vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  /* On the navy page the navy block needs its own tone to stay a block. */
  .look .stage:not(.is-cast) {
    background: var(--raised);
  }

  .look .rail i {
    background: var(--raised);
  }
}

.look .stage.is-cast {
  background: var(--mint);
  color: var(--char-ink);
}

.look .stage.is-cast .buddy {
  --foot: var(--char-ink);
  --key: var(--char-ink);
  --s: clamp(40px, 6vw, 64px);
}

.look .rail {
  position: relative;
  height: 28px;
  margin-top: 46px;
}

.look .rail::before {
  content: "";
  position: absolute;
  inset: 11px 0 auto;
  height: 6px;
  border-radius: 3px;
  background: var(--yellow);
}

.look .rail i {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 20px;
  border: 4px solid var(--yellow);
  border-radius: 50%;
  background: var(--navy);
}

.look .rail i:first-child {
  top: 0;
  width: 28px;
  height: 28px;
  border-color: #fff;
  background: var(--yellow);
}

.look .cast {
  margin-top: 26px;
}

.look figcaption {
  margin-top: 14px;
  font-weight: 700;
}

/* Trust */

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.trust-grid .h2 {
  max-width: 15ch;
}

.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain li {
  padding: 18px 0;
  border-top: 1px solid var(--band-rule);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.plain li:last-child {
  border-bottom: 1px solid var(--band-rule);
}

.trust-note {
  max-width: 36em;
  margin-top: 28px;
  color: var(--band-soft);
}

/* Questions */

.faq {
  max-width: 820px;
  margin-top: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 14px 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* a drawn plus that turns into a minus */
.faq summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(90deg);
  background: linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat;
}

.faq details p {
  max-width: 38em;
  padding: 0 0 22px;
  color: var(--ink-soft);
}

/* The end, and the footer */

.end {
  background: var(--yellow);
  color: var(--navy);
}

.end .h2 {
  max-width: none;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
}

.end .stores {
  margin-top: clamp(24px, 3vw, 40px);
}

.foot {
  padding-block: 32px;
  border-top: 1px solid #263a6e;
  background: var(--navy);
  color: #b7c3e2;
  font-size: 0.9375rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.foot .mark {
  color: #fff;
  font-size: 1.125rem;
}

.foot a:not(.mark) {
  display: inline-block;
  padding: 11px 0;
}

/* ---------- The explainer page ---------- */

.page-head {
  background: var(--yellow);
  color: var(--navy);
}

.page-head .intro {
  padding-block: clamp(32px, 6vw, 80px) clamp(48px, 8vw, 104px);
}

.page-head h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-head .hero-sub {
  max-width: 32em;
}

.route {
  position: relative;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 0;
  width: 6px;
  border-radius: 3px;
  background: var(--yellow);
}

.route li {
  position: relative;
  padding: 0 0 clamp(36px, 5vw, 56px) 60px;
}

.route li:last-child {
  padding-bottom: 0;
}

.route li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border: 6px solid var(--yellow);
  border-radius: 50%;
  background: var(--ground);
}

.route h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.route p {
  max-width: 36em;
  margin-top: 8px;
  color: var(--ink-soft);
}

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(28px, 4vw, 48px);
}

.roles h3 {
  padding-top: 18px;
  border-top: 1px solid var(--band-rule);
  font-size: 1.375rem;
  font-weight: 800;
}

.roles p {
  margin-top: 8px;
  color: var(--band-soft);
}

/* ---------- Reading pages: privacy and help ---------- */

.doc {
  max-width: 34rem;
}

.doc > :first-child {
  margin-top: 0;
}

.doc .updated {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
}

.doc h2 {
  margin-top: clamp(40px, 6vw, 64px);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.doc p,
.doc ul {
  margin-top: 14px;
}

.doc ul {
  margin-bottom: 0;
  padding-left: 1.25em;
}

.doc li {
  padding-left: 4px;
}

.doc li + li {
  margin-top: 10px;
}

.doc li::marker {
  color: var(--ink-soft);
}

.doc address {
  margin-top: 14px;
  font-style: normal;
  font-weight: 600;
  white-space: pre-line;
}

/* Shown only while the name and address are still to be filled in. */
.doc address.missing {
  padding: 14px 16px;
  border: 2px dashed #b3261e;
  border-radius: 14px;
  color: #b3261e;
}

@media (prefers-color-scheme: dark) {
  .doc address.missing {
    border-color: #ffb4ab;
    color: #ffb4ab;
  }
}

.doc .mail {
  font-weight: 700;
}

.doc .faq {
  margin-top: 0;
}

.doc .pill {
  margin-top: 20px;
}

@media (prefers-color-scheme: dark) {
  .doc .pill {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--navy);
  }

  .doc .pill:hover {
    background: #ffe04d;
  }
}

/* ---------- "Coming soon": the home page until the stores have the app ---------- */

.soon {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--yellow);
  color: var(--navy);
}

.soon-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 48px;
}

.soon-main h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.soon-cast {
  margin-top: clamp(32px, 5vw, 56px);
}

.soon .buddy {
  --foot: var(--navy);
}

.soon .buddy .pole::after {
  background: var(--navy);
}

.soon-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-block: 24px;
  font-weight: 600;
}

.soon-foot a {
  display: inline-block;
  padding: 11px 0;
}

/* ---------- Justified reading text ----------
   Paragraphs of reading width are justified, without hyphenation: the owner
   does not want words split at the end of a line.
   Narrow columns (the three moves, captions, buttons) stay left-aligned: in
   lines of 30 characters justification opens holes. On phones everything is
   left-aligned for the same reason. Titles stay left-aligned on the same edge
   as the text under them. */
@media (min-width: 561px) {
  .hero-sub,
  .lead,
  .trust-note,
  .roles p,
  .route p,
  .doc p,
  .doc li,
  .faq details p {
    text-align: justify;
    text-align-last: left;
    /* No word split by a hyphen (owner's choice, 2026-11-28). */
    hyphens: manual;
    -webkit-hyphens: manual;
  }

  .doc .updated {
    text-align: left;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero-grid,
  .duo,
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .duo.flip > :first-child {
    order: 0;
  }

  .hero .stores {
    margin-bottom: 8px;
  }

  .hero .tester-cta {
    margin-bottom: 8px;
  }

  /* Two whole stops, then the line runs off: clean in every language. */
  .phone {
    justify-self: center;
  }

  .stops {
    padding-bottom: 28px;
  }

  .stops li:nth-child(n + 3) {
    display: none;
  }

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

  .line::before {
    left: 11px;
    right: auto;
    top: 6px;
    bottom: 0;
    width: 6px;
    height: auto;
    border-radius: 3px;
  }

  .line li {
    padding: 0 0 44px 56px;
  }

  .line li:last-child {
    padding-bottom: 0;
  }

  .demo {
    min-height: 0;
    margin-top: 20px;
  }

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

  .shot img {
    border-width: 5px;
    border-radius: 26px;
  }
}

@media (max-width: 560px) {
  .top .pill.quiet,
  .top .top-link {
    display: none;
  }

  .foot .mark {
    flex-basis: 100%;
  }

  .stores .pill {
    flex: 1 1 140px;
    padding-inline: 14px;
    white-space: nowrap;
  }

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

  .look .stage {
    min-height: 0;
  }

  .stage-time {
    font-size: 4.5rem;
  }

  .week {
    grid-template-columns: 2.9em repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .week .cell {
    min-height: 48px;
    padding: 4px;
    gap: 3px;
  }

  .week .cell b {
    width: 11px;
    height: 11px;
  }

  .tell {
    padding: 24px 16px;
  }

  .faq summary {
    font-size: 1.125rem;
  }
}

/* Narrow phones (320 to 400): the three dots of a cell stay on one line,
   and the four walkers on the line fit beside each other. */
@media (max-width: 400px) {
  .week {
    grid-template-columns: 2.6em repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .week .cell {
    flex-wrap: nowrap;
    padding: 2px;
    gap: 2px;
  }

  .week .cell b {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
  }

  .grid-card {
    padding: 12px;
  }

  .demo.cast {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .demo.cast .buddy.has-flag {
    --s: 46px;
  }

  .demo.cast .buddy:not(.has-flag) {
    --s: 34px;
  }
}

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

  .walking .bob {
    animation: none;
  }

  .pill,
  .faq summary::after {
    transition: none;
  }
}
