/* centline.co
 *
 * The logo's green #01513A and yellow #FBB214, the app's paper and ink,
 * and Barlow and Barlow Condensed, served from this site. Nothing here
 * loads from anywhere else.
 */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- colour */

/* Every pair here clears WCAG AA: muted on paper 5.0:1, white on green
   9.4:1, the pale green on green 7.2:1, ink on yellow 9.6:1, yellow links
   on the night paper 9.9:1. */
:root {
  color-scheme: light dark;

  --paper: #fafaf9;
  --surface: #ffffff;
  --raised: #f2f1ea;
  --rule: #dcdacf;
  --ink: #1a1a18;
  --muted: #6e6c64;

  --green: #01513a;
  --green-hover: #016a4c;
  --on-green: #ffffff;
  --on-green-muted: #cfe8da;
  --yellow: #fbb214;
  --yellow-hover: #fcc245;
  --on-yellow: #1a1a18;

  --link: #01513a;
  --focus: #1f4e8c;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed",
    "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 36rem;
  --gutter: 20px;
}

/* The app's night palette, because the scene it was built around is a
   dock at two in the morning. Green panels keep their colour at night, the
   way a real guide sign does. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15161a;
    --surface: #1d1f25;
    --raised: #22252c;
    --rule: #32363f;
    --ink: #eceae3;
    --muted: #a3a199;
    --link: #fbb214;
    --focus: #fbb214;
  }
}

/* ------------------------------------------------------------------- base */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  font-synthesis: style;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 32px;
  }

  body {
    font-size: 18px;
  }
}

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

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

a:hover {
  text-decoration-thickness: 2.5px;
}

strong,
b {
  font-weight: 600;
}

code {
  font: 600 0.92em/1.2 var(--text);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--raised);
  white-space: nowrap;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
}

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

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure {
  max-width: var(--measure);
}

.band {
  padding-block: clamp(56px, 9vw, 120px);
}

.band-paper + .band-paper {
  border-top: 1px solid var(--rule);
}

.band-raised {
  background: var(--raised);
}

/* A green band re-points the tokens its children read, so a lede, a link
   or a focus ring inside it needs no rule of its own. */
.band-green {
  background: var(--green);
  color: var(--on-green);
  --ink: #ffffff;
  --muted: var(--on-green-muted);
  --link: #ffffff;
  --focus: var(--yellow);
  --rule: rgba(255, 255, 255, 0.2);
}

.split {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split-center {
    align-items: center;
  }
}

/* ------------------------------------------------------------- typography */

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

h1 {
  font-size: clamp(48px, 11vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 0.98;
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(23px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
}

.lede {
  max-width: var(--measure);
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(19px, 2.3vw, 22px);
  line-height: 1.45;
}

small,
.small {
  color: var(--muted);
  font-size: 15px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: var(--on-green);
  font: 600 17px/1.1 var(--text);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-hover);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--on-yellow);
}

.btn-yellow:hover {
  background: var(--yellow-hover);
}

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

.top {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  display: block;
  width: auto;
  height: 28px;
}

.nav-inline {
  display: none;
}

.nav-inline a,
.nav-menu a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.nav-inline a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 16px;
}

.nav-inline a:hover {
  background: var(--raised);
}

.nav-inline a[aria-current="page"] {
  border-radius: 0;
  box-shadow: inset 0 -3px 0 var(--yellow);
}

/* On a phone the links fold into a menu rather than wrapping into a
   two-row header. It is a <details>, so it opens with no script. */
.nav-menu {
  position: relative;
}

.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu > summary::before {
  content: "";
  width: 18px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
}

.nav-menu[open] > summary {
  background: var(--raised);
}

.nav-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 15rem;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(26, 26, 24, 0.18);
}

.nav-menu nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
}

.nav-menu nav a:hover,
.nav-menu nav a[aria-current="page"] {
  background: var(--raised);
}

@media (min-width: 56rem) {
  .top {
    position: sticky;
    top: 0;
  }
}

/* Three links fit in one row once there is room for them. */
@media (min-width: 30rem) {
  .nav-inline {
    display: flex;
    gap: 2px;
  }

  .nav-menu {
    display: none;
  }
}

/* ------------------------------------------------------ the road, the hero */

.road {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(40rem, 92svh, 52rem);
  overflow: hidden;
  background: #0f1d18;
  color: #ffffff;
  --muted: rgba(255, 255, 255, 0.92);
  --link: #ffffff;
  --focus: var(--yellow);
}

.road-photo,
.road-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.road-photo {
  z-index: -2;
}

.road-photo img {
  object-fit: cover;
  object-position: 50% 62%;
}

/* Only so the headline reads over the clouds. It fades out well above the
   truck. */
.road::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(6, 14, 11, 0.7) 0%,
    rgba(6, 14, 11, 0.42) 36%,
    rgba(6, 14, 11, 0) 62%
  );
}

.road-copy {
  width: 100%;
  padding-block: clamp(44px, 10vh, 112px) 48px;
}

.road h1 {
  max-width: 9ch;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.road .lede {
  max-width: 31rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.road-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------------------- the line */

.stages {
  display: grid;
  gap: 4px;
  max-width: 34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 8px 14px 38px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.stage::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 6px;
  width: 10px;
  height: 38px;
  border-radius: 5px;
  background: var(--yellow);
  transition: background-color 0.3s ease, height 0.3s ease;
}

.stage b {
  display: block;
  margin-bottom: 4px;
  font: 800 clamp(34px, 5vw, 46px)/1 var(--display);
}

.stage span {
  display: block;
  max-width: 30rem;
  color: var(--muted);
}

button.stage:enabled {
  cursor: pointer;
}

button.stage:enabled:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* Once the simulator is running, the line is its progress: stages the
   load has passed are lit, the one it is in is lit and longer, and the
   ones ahead are faint. Without the script every dash is simply lit. */
.is-live .stage::before {
  background: rgba(255, 255, 255, 0.24);
}

.is-live .stage.is-past::before,
.is-live .stage.is-now::before {
  background: var(--yellow);
}

.is-live .stage.is-now::before {
  height: 44px;
}

/* On a phone the line runs across, the way it does on the road: five
   dashes in a row directly over the simulator, each with its stage under
   it. The sentences under each stage are the simulator's captions, so
   they are not said twice. */
@media (max-width: 59.99rem) {
  .stages {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    max-width: none;
  }

  .stage {
    min-height: 48px;
    padding: 16px 0 6px;
    border-radius: 6px;
  }

  .stage::before,
  .is-live .stage.is-now::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    border-radius: 4px;
  }

  .stage b {
    margin: 0;
    font-size: clamp(13px, 3.9vw, 19px);
    font-weight: 700;
    white-space: nowrap;
  }

  .stage span {
    display: none;
  }
}

/* ----------------------------------------------------------- the packet */

.checks {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 18px;
  font: 700 clamp(26px, 3.4vw, 34px)/1.1 var(--display);
}

.tick {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green);
}

.tick::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 15px;
  width: 11px;
  height: 20px;
  border: solid #ffffff;
  border-width: 0 4.5px 4.5px 0;
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ----------------------------------------------------------- the record */

.panel-green {
  padding: clamp(18px, 4vw, 40px);
  border-radius: 26px;
  background: var(--green);
}

.record {
  padding: 4px clamp(18px, 3vw, 28px);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
}

.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid var(--rule);
}

.record-row:last-child {
  border-bottom: 0;
}

.record-row b {
  font: 800 clamp(22px, 2.8vw, 28px)/1 var(--display);
}

.record-row span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  text-align: right;
}

.record .tick {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.record .tick::after {
  top: 5px;
  left: 11px;
  width: 8px;
  height: 15px;
  border-width: 0 3.5px 3.5px 0;
}

/* Nothing to score is a grey dash: never a colour, never a mark. */
.nil {
  flex: none;
  width: 30px;
  height: 5px;
  border-radius: 3px;
  background: #c9c6ba;
}

.record-foot {
  margin: 16px 4px 0;
  color: var(--on-green-muted);
  font-size: 15px;
}

/* ------------------------------------------------------------ the facts */

.facts {
  display: grid;
  gap: 0 56px;
  margin-top: 36px;
}

@media (min-width: 48rem) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

.fact {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.fact p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
}

.duo {
  display: grid;
  gap: 56px;
}

@media (min-width: 56rem) {
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.duo h2 {
  font-size: clamp(30px, 4.2vw, 42px);
}

.app-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
}

/* ------------------------------------------------------ the inner pages */

.intro {
  padding-block: clamp(48px, 8vw, 104px) 0;
}

.intro h1 {
  max-width: 15ch;
  font-size: clamp(46px, 8.6vw, 90px);
}

.intro + .band {
  padding-top: clamp(24px, 4vw, 48px);
}

/* The column keeps the page's left edge, so a reading page lines up with
   its headline; only what is in it is held to a reading measure. */
.prose > * {
  max-width: var(--measure);
}

.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(30px, 4.4vw, 42px);
}

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

.prose h3 {
  margin-top: 32px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 8px;
}

dl.qa {
  margin: 0;
}

dl.qa dt {
  margin: 30px 0 6px;
  font: 700 clamp(21px, 2.4vw, 24px)/1.2 var(--display);
}

dl.qa dt:first-child {
  margin-top: 0;
}

dl.qa dd {
  margin: 0;
  color: var(--muted);
}

dl.qa dd p {
  margin: 0 0 10px;
}

.note {
  margin: 0 0 24px;
  padding: 18px 22px;
  border-left: 6px solid var(--green);
  border-radius: 0 14px 14px 0;
  background: var(--raised);
}

.note p:last-child,
.note ul:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------- drawings of the app */

/* Copies of the app's screens drawn in HTML, in the app's own day palette
   whatever the page around them is doing: they are pictures of a phone.
   Every broker, load and figure in them is invented, and every page that
   carries one says so. */
.phone {
  width: 100%;
  max-width: 304px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 48px;
  background: #1a1a18;
  box-shadow:
    inset 0 0 0 1.5px #3a3a36,
    0 30px 60px -28px rgba(0, 0, 0, 0.55);
}

.ph {
  --ph-ink: #1a1a18;
  --ph-muted: #6e6c64;
  --ph-rule: #dcdacf;
  --ph-raised: #f2f1ea;
  --ph-accent: #1f4e8c;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 604px;
  padding: 10px 16px 0;
  overflow: hidden;
  border-radius: 38px;
  background: #fafaf9;
  color: var(--ph-ink);
  font: 400 13.5px/1.35 var(--text);
  text-align: left;
}

.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.ph-island {
  width: 78px;
  height: 22px;
  border-radius: 12px;
  background: #1a1a18;
}

.ph-batt {
  position: relative;
  width: 23px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3.5px;
}

.ph-batt::after {
  content: "";
  position: absolute;
  inset: 1.5px 6px 1.5px 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.screens {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.screen {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.screen[hidden] {
  display: none;
}

.ph p {
  margin: 0;
}

.ph-title {
  margin: 2px 0;
  font: 700 21px/1.1 var(--display);
}

.ph-sub {
  margin-top: -8px;
  color: var(--ph-muted);
  font-size: 12px;
}

.ph-sign {
  padding: 3px;
  border-radius: 10px;
  background: #01513a;
  color: #ffffff;
}

.ph-sign-in {
  padding: 8px 10px 9px;
  border: 2px solid #ffffff;
  border-radius: 7px;
}

.ph-eyebrow {
  margin-bottom: 4px !important;
  color: #cfe8da;
  font: 700 10px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph-sign-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.ph-dest {
  font: 700 24px/1 var(--display);
  text-transform: uppercase;
}

.ph-from {
  margin-top: 2px !important;
  color: #cfe8da;
  font: 600 12px/1.2 var(--display);
  text-transform: uppercase;
}

.ph-fig {
  text-align: right;
}

.ph-fig b {
  display: block;
  font: 700 24px/1 var(--display);
}

.ph-fig span {
  color: #cfe8da;
  font: 700 9.5px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph-dash {
  flex: none;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #fbb214 0 16px,
    transparent 16px 29px
  );
}

.ph-answer {
  font: 800 34px/1 var(--display);
  font-variant-numeric: tabular-nums;
}

.ph-cap {
  color: var(--ph-muted);
  font-size: 12px;
}

.ph-muted {
  color: var(--ph-muted);
}

.ph-rows {
  border-top: 1px solid var(--ph-rule);
}

.ph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  border-bottom: 1px solid var(--ph-rule);
}

.ph-row > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ph-muted);
  font-size: 12px;
  text-align: right;
}

.ph-row b {
  font-weight: 600;
}

.ph-grow {
  flex: 1;
}

.ph-btn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--ph-accent);
  color: #ffffff;
  font: 600 15px/1 var(--text);
}

.ph-btn-alt {
  min-height: 40px;
  background: var(--ph-raised);
  color: var(--ph-ink);
}

button.ph-btn:enabled,
button.ph-tile:enabled {
  cursor: pointer;
}

.ph-field {
  display: grid;
  gap: 3px;
}

/* The label only: the value box is a span in the same field. */
.ph-field > span:first-child {
  color: var(--ph-muted);
  font-size: 11px;
  font-weight: 600;
}

.ph-box {
  display: block;
  padding: 7px 10px;
  border: 1px solid var(--ph-rule);
  border-radius: 9px;
  background: #ffffff;
  font-size: 13.5px;
}

.ph-pair {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 6px;
}

.ph-hint {
  margin-top: -1px !important;
  color: var(--ph-muted);
  font-size: 11.5px;
}

.ph-fold {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid var(--ph-rule);
  border-bottom: 1px solid var(--ph-rule);
  font-size: 13px;
  font-weight: 600;
}

/* Status pills print in capitals, as they do in the app. */
.ph-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ph-raised);
  color: var(--ph-ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ph-pill-pending {
  background: transparent;
  box-shadow: inset 0 0 0 1.2px var(--ph-muted);
  color: var(--ph-muted);
}

.ph-pill-paid {
  background: #e3f1e9;
  color: #067a48;
}

.ph-tile {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ph-rule);
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  font: inherit;
  text-align: left;
}

.ph-tile-pending {
  border: 1.5px solid var(--ph-muted);
  background: transparent;
}

.ph-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ph-muted);
  font-size: 11.5px;
}

.ph-tile-lane {
  margin: 4px 0 1px !important;
  font: 700 16px/1.2 var(--display);
}

.ph-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ph-cell {
  padding: 8px;
  border: 1px solid var(--ph-rule);
  border-radius: 10px;
  background: #ffffff;
}

.ph-cell b {
  display: block;
  font: 800 17px/1.1 var(--display);
  font-variant-numeric: tabular-nums;
}

.ph-cell span {
  color: var(--ph-muted);
  font-size: 10.5px;
}

.ph-tick {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #01513a;
}

.ph-tick::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5.5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ph-nil {
  flex: none;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #c9c6ba;
}

.ph-scrim {
  position: absolute;
  inset: -10px -16px 0;
  background: rgba(26, 26, 24, 0.45);
}

.ph-sheet {
  position: absolute;
  right: -16px;
  bottom: 0;
  left: -16px;
  display: grid;
  gap: 10px;
  padding: 20px 16px 22px;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}

.ph-sheet-title {
  font: 700 21px/1.15 var(--display);
}

.ph-tabs {
  display: grid;
  flex: none;
  grid-template-columns: repeat(5, 1fr);
  margin: auto -16px 0;
  padding: 9px 4px 16px;
  border-top: 1px solid var(--ph-rule);
  background: #fafaf9;
  color: var(--ph-muted);
  font-size: 10px;
  text-align: center;
}

.ph-tabs .on {
  color: var(--ph-ink);
  font-weight: 600;
}

.ph-section {
  margin-top: 4px !important;
  color: var(--ph-muted);
  font-size: 12px;
  font-weight: 600;
}

.ph-tile-foot {
  display: flex;
  justify-content: space-between;
  color: var(--ph-muted);
  font-size: 12px;
}

/* The buttons in the drawings and the stages beside the simulator are
   disabled until the script runs, so a page without it has nothing that
   looks tappable and does nothing. Disabled must not mean greyed. */
.stage:disabled,
.ph-tile:disabled {
  color: inherit;
  opacity: 1;
}

.ph-btn:disabled {
  color: #ffffff;
  opacity: 1;
}

.drawn {
  max-width: 26rem;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.updated {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* ------------------------------------------------ what each role sees */

.drawing {
  margin: 0;
}

.drawing > figcaption {
  margin: 14px auto 0;
  text-align: center;
}

.phone-sm {
  zoom: 0.82;
}

/* A link page, drawn as a phone opening it: the address bar, then the page
   on its own paper, as the carrier's link shows it to a broker. */
.ph-web {
  padding: 8px 10px 0;
  background: #f4f5f7;
}

.ph-url {
  margin: 4px 6px 8px !important;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e4e7ec;
  color: #475467;
  font-size: 11.5px;
  text-align: center;
}

.ph-page {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 4px;
  overflow: hidden;
}

.ph-web-brand {
  color: #101828;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.ph-web-h1 {
  color: #101828;
  font: 600 19px/1.15 var(--text);
}

.ph-web-for,
.ph-web-sub,
.ph-note {
  color: #475467;
  font-size: 11px;
}

.ph-web-for b {
  color: #101828;
}

.ph-card {
  padding: 8px 10px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #ffffff;
}

.ph-card-label {
  margin-bottom: 4px !important;
  color: #101828;
  font-size: 11.5px;
  font-weight: 600;
}

.ph-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  font-size: 11px;
}

.ph-line > span:first-child {
  color: #475467;
}

.ph-line b {
  color: #101828;
  font-weight: 600;
}

.ph-link {
  color: #01513a;
  font-weight: 600;
  text-decoration: underline;
}

/* A number the drawing does not print, so it is never a real carrier's. */
.ph-bar {
  display: inline-block;
  width: 64px;
  height: 8px;
  border-radius: 4px;
  background: #d0d5dd;
  vertical-align: middle;
}

.ph-bar-light {
  background: rgba(255, 255, 255, 0.45);
}

.ph-pass {
  padding: 12px;
  border-radius: 16px;
  background: #01513a;
  color: #ffffff;
}

.ph-rail {
  display: flex;
  gap: 5px;
}

.ph-rail i {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(232, 237, 243, 0.25);
}

.ph-rail i.done {
  background: #ffffff;
}

.ph-rail i.now {
  background: #fbb214;
}

.ph-rail-labels {
  display: flex;
  margin: 4px 0 8px;
  color: #cfe8da;
  font-size: 10px;
}

.ph-rail-labels span {
  flex: 1;
}

.ph-rail-labels .now {
  color: #ffffff;
  font-weight: 600;
}

.ph-pass-lane {
  font: 600 17px/1.15 var(--text);
}

.ph-pass-says {
  color: #cfe8da;
  font-size: 11px;
}

.ph-act {
  display: block;
  padding: 10px;
  border-radius: 10px;
  background: #01513a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

/* The broker's side of the app: the week, the name plate, and who is
   waiting on them. */
.ph-week {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--ph-muted);
  font-size: 11px;
}

.ph-week b {
  color: var(--ph-ink);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.ph-door {
  position: relative;
  padding: 12px 12px 16px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #3561a0, #1f4e8c 50%, #173b69);
  color: #ffffff;
}

.ph-door::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: #fbb214;
}

.ph-door-kind,
.ph-door-base,
.ph-door-nums {
  color: rgba(255, 255, 255, 0.72);
  font: 700 9.5px/1 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ph-door-name {
  margin: 4px 0 3px !important;
  font: 700 22px/1 var(--display);
  text-transform: uppercase;
}

.ph-door-nums {
  margin-top: 8px !important;
}

.ph-ruled {
  margin-top: 4px !important;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ph-rule);
  color: var(--ph-ink);
  font: 700 11px/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ph-wait {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ph-rule);
}

.ph-mono {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1a1a18;
  color: #ffffff;
  font: 700 12px/1 var(--display);
}

.ph-wait-who {
  display: grid;
  flex: 1;
  min-width: 0;
  font-size: 12px;
}

.ph-wait-who > span {
  color: var(--ph-muted);
  font-size: 10.5px;
}

.ph-verb {
  color: var(--ph-accent);
  font-size: 12px;
  font-weight: 600;
}

.ph-pill-coming {
  background: #fbb214;
  color: #1a1a18;
}

/* Who it is for: three roles, each with what it sees. On a phone they sit
   in one row that swipes, so three phones are not one long scroll. */
.roles {
  display: grid;
  gap: 40px;
  margin-top: 36px;
}

@media (max-width: 59.99rem) {
  .roles {
    grid-auto-columns: min(82%, 20rem);
    grid-auto-flow: column;
    gap: 20px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    overflow-x: auto;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
  }

  .role {
    scroll-snap-align: start;
  }
}

@media (min-width: 60rem) {
  .roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.role .drawing {
  margin-bottom: 22px;
}

/* The line under each role, and only that: a drawing's own text sits
   inside the same card and keeps its colours. */
.role > p {
  margin: 0;
  color: var(--muted);
}

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  font: 600 13px/1.2 var(--text);
  vertical-align: middle;
}

/* ---------------------------------------------------------- the simulator */

.sim {
  display: grid;
  gap: 16px;
  justify-items: center;
  border-radius: 24px;
}

.sim:focus-visible {
  outline-offset: 10px;
}

@media (min-width: 60rem) {
  .sim {
    position: sticky;
    top: 96px;
  }
}

.sim-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-controls[hidden] {
  display: none;
}

.sim-controls button {
  min-width: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  font: 600 16px/1 var(--text);
  cursor: pointer;
}

.sim-controls button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sim-count {
  min-width: 4.5em;
  color: var(--on-green-muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.sim-caption {
  max-width: 26rem;
  min-height: 4.7em;
  margin: 0;
  color: #ffffff;
  text-align: center;
}

.sim .drawn {
  text-align: center;
}

.screen.is-entering {
  animation: screen-in 0.28s ease-out both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* A short phone keeps the simulator and the buttons that drive it on one
   screen. */
@media (max-height: 760px) and (max-width: 59.99rem) {
  .sim .phone {
    zoom: 0.86;
  }
}

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

.foot {
  padding-block: 64px 40px;
  background: var(--green);
  color: var(--on-green-muted);
  --link: #ffffff;
  --focus: var(--yellow);
}

.foot .brand img {
  height: 42px;
}

.foot-line {
  margin: 12px 0 30px;
  color: #ffffff;
  font: 700 24px/1.1 var(--display);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin-bottom: 22px;
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.foot nav a:hover,
.foot nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.foot p {
  max-width: 42rem;
}

.foot small {
  color: var(--on-green-muted);
  font-size: 14.5px;
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
