/**
 * FRƐTAXI, on the web.
 *
 * This is not the build-status document. That one is a broadsheet for a
 * partner, set in IBM Plex with blue as structure. This is the product
 * speaking for itself: Archivo, the plate, and one yellow that appears where
 * something is live or needs a tap, exactly as in the apps.
 *
 * Every value comes from tokens.css, which `npm run web:tokens` writes from
 * /packages/tokens. There is no build step and no JavaScript, because the
 * reader is a driver at a rank on a data bundle they paid for.
 *
 * CONSTITUTION.md §4: no gradients, no shadows, no blur, no illustration.
 * Depth is flat planes separated by hairlines.
 */

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

html { color-scheme: light; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body, Archivo), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* 560px is the content max in the tokens. A measure, not a layout. */
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------ the mark -- */

header { padding: clamp(2rem, 7vw, 3.5rem) 0 0; }
.mark { display: block; width: min(100%, 17rem); height: auto; }
.mark-note {
  font-size: 13px; color: var(--faint); margin: 0.9rem 0 0;
  letter-spacing: 0.01em;
}
.mark-note em { font-style: normal; color: var(--mist); }

/* -------------------------------------------------------------- typing -- */

h1 {
  font-family: var(--font-display, inherit);
  font-weight: 600;
  font-size: clamp(2rem, 7.5vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: clamp(2rem, 6vw, 2.75rem) 0 0;
  text-wrap: balance;
}
h2 {
  font-family: var(--font-display, inherit);
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 0.75rem;
}
h3 { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; margin: 0 0 0.3rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.0625rem, 3vw, 1.1875rem); color: var(--mist); margin-top: 1.1rem; }
.small { font-size: 15px; color: var(--mist); }
strong { font-weight: 600; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

section { padding: clamp(2.5rem, 8vw, 4rem) 0 0; }
section > p, section > h2 { max-width: 38rem; }

.rule { height: 1px; background: var(--rule); border: 0; margin: clamp(2.5rem, 8vw, 4rem) 0 0; }

/* ------------------------------------------------------------ the price -- */

/* The one number a driver came for, and the only place a figure is set this
   large. It is not in yellow: yellow is rationed to the thing you press. */
.price {
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  margin: 0 0 0.6rem;
}
.price b {
  font-weight: 600; font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
}
.price span { font-size: 17px; color: var(--mist); }

/* ------------------------------------------------------------- the list -- */

.steps { margin: 0; padding: 0; counter-reset: s; }
.steps li {
  list-style: none; counter-increment: s;
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 0 0.9rem;
  padding: 0.85rem 0; border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(s);
  font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--faint); font-size: 15px; line-height: 1.6;
}
.steps b { font-weight: 600; }
.steps span { color: var(--mist); display: block; font-size: 15px; }

/* A list of things the product does NOT do. It is the most persuasive thing
   on the page, so it gets the same weight as the list of things it does. */
.nots { margin: 0; padding: 0; }
.nots li {
  list-style: none; padding: 0.7rem 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1.3rem 1fr; gap: 0 0.7rem;
  align-items: baseline;
}
.nots li:last-child { border-bottom: 1px solid var(--rule); }
.nots li::before { content: "—"; color: var(--rule-strong); }

/* ------------------------------------------------------------ the plate -- */

.plate-note {
  background: var(--ground2); padding: clamp(1.1rem, 4vw, 1.5rem);
  border-radius: var(--radius); margin-top: 1.5rem;
}
.plate-note p { font-size: 15px; }

/* ------------------------------------------------------------- the ask --- */

/* Signal yellow, on the one thing you press — CONSTITUTION.md §4. There is
   one on this page, and it is honest about not existing yet. */
.get { margin-top: 1.5rem; display: grid; gap: 0.6rem; max-width: 22rem; }
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--touch-primary);
  border-radius: var(--radius-pill);
  background: var(--signal); color: var(--signal-ink);
  font-weight: 600; font-size: var(--size-motion); text-decoration: none;
  padding: 0 1.25rem; text-align: center;
}
.btn[aria-disabled="true"] { background: var(--ground2); color: var(--mist); }
.btn-note { font-size: 14px; color: var(--faint); margin: 0; }

/* --------------------------------------------------------------- foot ---- */

footer {
  margin-top: clamp(3rem, 9vw, 5rem);
  border-top: 1px solid var(--ink);
  padding: 1.25rem 0 clamp(2.5rem, 8vw, 4rem);
  font-size: 14px; color: var(--mist);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between;
}
footer a { color: var(--mist); }

/* Marks a fact that does not exist yet, so nobody publishes it by accident. */
/* A blank still to fill. Its ground is fixed, so its ink is too: on Chale's
   navy page --ink is cream, and cream on this yellow could not be read. */
.todo {
  background: #FFF4CC; color: #0E1012;
  padding: 0.05em 0.35em; border-radius: 2px;
  font-size: 0.9em; box-decoration-break: clone;
}

/* ------------------------------------------------------------- privacy --- */

.policy h2 { margin-top: clamp(2rem, 6vw, 2.75rem); }
.policy h2:first-of-type { margin-top: clamp(1.5rem, 5vw, 2rem); }
.policy dl { margin: 0; }
.policy dt {
  font-weight: 600; padding-top: 0.85rem; border-top: 1px solid var(--rule);
}
.policy dd { margin: 0.2rem 0 0.85rem; color: var(--mist); font-size: 15px; }
.policy dl div:last-child dd { border-bottom: 1px solid var(--rule); padding-bottom: 0.85rem; }

/* Photographs. Flat: no shadow, no overlay, no caption chrome. The column is
   560px, so a 1120px file is exactly twice what it ever shows. */
.photo { margin: 1.75rem 0 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--ground2); }
.photo--band { margin-top: 2.5rem; }

/* ------------------------------------------------------------ the pulse -- */

/* A diagram, not an illustration: a ring widening from a pin, the taxis inside
   it told, one arriving, the rest told to stand down. Built from the locked
   colours only, flat, no shadow, and no JavaScript: it is CSS keyframes on
   one inline SVG. With reduced motion it stands still on the "told" moment.

   Loop is 10s. Percentages below are of that loop:
     3-30    the ring goes out        10   taxis inside it are told
     14-48   they drive               48   the first arrives
     52      everyone else is told to stand down
     94-99   it all fades, and begins again */
.pulse { margin: 2rem 0 0; }
.pulse svg { display: block; width: 100%; height: auto; }

.pulse .ring { fill: none; stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pulse .halo { fill: var(--signal); opacity: .35; }
.pulse .pin  { fill: var(--signal); stroke: var(--ink); stroke-width: 3; }
.pulse .car  { color: var(--rule-strong); }
.pulse .car use { fill: currentColor; }
.pulse .told { color: var(--ink); }
.pulse .wave { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; transform-origin: 280px 190px; }

@media (prefers-reduced-motion: no-preference) {
  .pulse .rings { animation: p-rings var(--loop, 10s) linear infinite; }
  .pulse .wave  { animation: p-wave var(--loop, 10s) ease-out infinite; }
  .pulse .wave.w2 { animation-name: p-wave2; }
  .pulse .halo  { animation: p-halo var(--loop, 10s) ease-out infinite; transform-origin: 280px 190px; }
  .pulse .car   { animation: p-fade var(--loop, 10s) linear infinite; }
  .pulse .car > g { animation: p-drive var(--loop, 10s) cubic-bezier(.45,.05,.4,1) infinite; }
  .pulse .told  { animation: p-fade var(--loop, 10s) linear infinite, p-told var(--loop, 10s) linear infinite; }
  .pulse .first { animation: p-fade var(--loop, 10s) linear infinite, p-first var(--loop, 10s) linear infinite; }
}
@keyframes p-rings { 0%, 2% { opacity: 0 } 6%, 50% { opacity: 1 } 54%, 100% { opacity: 0 } }
@keyframes p-wave  { 0%, 3% { opacity: .9; transform: scale(.03) } 30% { opacity: 0; transform: scale(1) } 100% { opacity: 0; transform: scale(1) } }
@keyframes p-wave2 { 0%, 14% { opacity: .9; transform: scale(.03) } 40% { opacity: 0; transform: scale(1) } 100% { opacity: 0; transform: scale(1) } }
@keyframes p-halo  { 0%, 3% { opacity: .35; transform: scale(1) } 12% { opacity: 0; transform: scale(2.6) } 100% { opacity: 0; transform: scale(2.6) } }
@keyframes p-fade  { 0% { opacity: 0 } 4%, 94% { opacity: 1 } 99%, 100% { opacity: 0 } }
@keyframes p-drive { 0%, 14% { transform: translate(0, 0) } 48%, 100% { transform: translate(var(--dx), var(--dy)) } }
@keyframes p-told  { 0%, 9% { color: var(--rule-strong) } 12%, 50% { color: var(--ink) } 54%, 100% { color: var(--rule-strong) } }
@keyframes p-first { 0%, 9% { color: var(--rule-strong) } 12%, 94% { color: var(--ink) } 100% { color: var(--rule-strong) } }

/* Two screens, side by side, exactly as they are in the app. Flat: a hairline
   and a radius, no frame, no shadow. Driver dark, passenger light, because they
   are different people in different places (CONSTITUTION.md §4b). */
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.75rem 0 0; }
.screens figure { margin: 0; }
.screens img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--rule-strong); }
.screens figcaption { font-size: 14px; color: var(--mist); margin-top: .6rem; }
