/* Generated from apps/mobile/src/ds/tokens.ts by apps/site/src/css.ts. */
:root {
  --night: #0b0f17;
  --night-raised: #161c27;
  --on-night: #f2f5f7;
  --on-night-secondary: #aeb8c6;
  --on-night-line: rgba(242, 245, 247, 0.55);
  --on-night-track: rgba(242, 245, 247, 0.1);
  --caliper: #fc9d51;
  --caliper-soft: #ffe2d5;
  --on-caliper: #0b0f17;
  --ink: #0f1521;
  --ink-2: #43515e;
  --ink-3: #5b6874;
  --page: #f3f5f7;
  --card: #ffffff;
  --sunken: #e7ecf0;
  --steel: #d5dce6;
  --line: #dae1e7;
  --line-strong: #7a8894;
  --above: #8a4f00;
  --above-soft: #fbefd9;
  --add-on: #e3ebff;
  --not-allowed: #b42318;
  --not-allowed-soft: #fdecea;
  --scrim: rgba(5, 8, 12, 0.5);
  --shadow-card: 0 1px 2px rgba(14, 22, 32, 0.06), 0 4px 14px rgba(14, 22, 32, 0.05);
  --shadow-card-sm: 0 1px 2px rgba(14, 22, 32, 0.06), 0 2px 8px rgba(14, 22, 32, 0.04);
  --shadow-bar: 0 -1px 0 rgba(14, 22, 32, 0.08), 0 -4px 16px rgba(14, 22, 32, 0.05);
  --shadow-tap: 0 6px 16px rgba(227, 119, 37, 0.38);
  --shadow-tap-raised: 0 8px 20px rgba(227, 119, 37, 0.45);
  --radius-sm: 12px;
  --radius-tile: 14px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 22px;
  --radius-sheet: 24px;
  --radius-frame: 28px;
  --radius-pill: 999px;
  --font-display: "Gabarito";
  --font-text: "DM Sans";
}

/* The site (#69) in the Carcenzus brand: light content in a night frame,
   caliper orange only for what you tap and the logo, Gabarito for headlines
   and figures, DM Sans for everything you read, tabular numbers. Every
   colour is a token; tokens.ts's are above. */

@font-face {
  font-family: Gabarito;
  src: url("/assets/gabarito.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --display:
    var(--font-display), "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --text: var(--font-text), "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* A braked wheel: fast, then slowing hard to a stop. */
  --brake: cubic-bezier(0.1, 0.62, 0.22, 1);
}

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

html {
  color-scheme: light;
  background: var(--night);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--caliper-soft);
  color: var(--ink);
}

.night ::selection {
  background: var(--caliper);
  color: var(--on-caliper);
}

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

main:focus {
  outline: none;
}

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

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

p {
  margin: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--caliper);
  color: var(--on-caliper);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ── The night frame ───────────────────────────────────────────────────── */

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

.frame {
  border-radius: 0 0 var(--radius-frame) var(--radius-frame);
  padding-bottom: 8px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--on-night);
  text-decoration: none;
}

.logo span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.035em;
  line-height: 1;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.arc {
  stroke: var(--on-night);
  stroke-linecap: butt;
}

.cal {
  stroke: var(--caliper);
  stroke-linecap: butt;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--on-night-secondary);
  text-decoration: none;
  transition: color 150ms;
}

.nav a:hover {
  color: var(--on-night);
}

.nav a.button {
  color: var(--on-caliper);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--caliper);
  color: var(--on-caliper);
  font-family: var(--text);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-tap);
  transition:
    background 150ms,
    transform 150ms var(--ease-out);
}

.button:hover {
  background: color-mix(in srgb, var(--caliper) 90%, var(--night));
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: none;
}

.cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.soon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--on-night-secondary);
}

.soon svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--on-night);
  stroke-width: 1.8;
}

/* ── The landing page's hero ───────────────────────────────────────────── */

.hero {
  overflow: hidden;
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(28px, 5vw, 64px);
}

.hero h1 {
  font-size: clamp(46px, 6.4vw, 90px);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.lead {
  margin-top: 26px;
  font-size: clamp(18px, 1.5vw, 20px);
  color: var(--on-night-secondary);
  max-width: 34em;
}

.lead strong {
  color: var(--on-night);
  font-weight: 600;
}

/* The stage: the caliper C as a brake disc, its open side holding a quote
   being read. On load the disc spins and brakes to a stop, each line is
   read and marked in turn, and the caliper clamps as "To push back on"
   counts up. Every part comes to rest as the still page. */
.stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 0 0 auto;
  padding-top: 7%;
}

.disc {
  display: block;
  overflow: visible;
}

.stage .disc {
  position: absolute;
  left: -7%;
  top: 50%;
  translate: 0 -54%;
  width: 94%;
  height: auto;
}

.holes,
.pin {
  fill: var(--night);
  stroke: none;
}

.hub {
  fill: var(--night-raised);
  stroke: none;
}

.lugs {
  fill: var(--on-night-track);
  stroke: none;
}

.slot {
  stroke: var(--night);
}

.stage .rotor {
  transform-box: view-box;
  transform-origin: 20.5px 20px;
  animation: brake 2.3s var(--brake) both;
}

.stage .caliper {
  animation: clamp 2.3s linear both;
}

@keyframes brake {
  from {
    transform: rotate(-600deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes clamp {
  0%,
  76% {
    transform: translateX(-1.6px);
  }

  84% {
    transform: translateX(0.5px);
  }

  90%,
  100% {
    transform: translateX(0);
  }
}

.quote {
  position: relative;
  width: 63%;
  margin-left: 37%;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-xl);
  rotate: -1.6deg;
  overflow: hidden;
}

.quote-head {
  padding: 18px 20px 14px;
  border-bottom: 1px dashed var(--line);
}

.quote-kind {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.quote-car {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lines {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
}

.lines li {
  --d: 0s;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 10px;
  font-size: 14.5px;
  line-height: 1.3;
  border-radius: 10px;
}

.lines li:nth-child(1) {
  --d: 0.45s;
}
.lines li:nth-child(2) {
  --d: 0.72s;
}
.lines li:nth-child(3) {
  --d: 0.99s;
}
.lines li:nth-child(4) {
  --d: 1.26s;
}
.lines li:nth-child(5) {
  --d: 1.53s;
}
.lines li:nth-child(6) {
  --d: 1.8s;
}

/* The reader passing over the line. */
.lines li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--sunken);
  transform-origin: left center;
  opacity: 0;
  animation: read 0.62s var(--ease-out) both;
  animation-delay: var(--d);
}

@keyframes read {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }

  55% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

.lines .amt {
  font-weight: 600;
  text-align: right;
  min-width: 5.6em;
}

.lines .others {
  grid-column: 1 / -1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--above);
  animation: rise 0.4s var(--ease-out) both;
  animation-delay: calc(var(--d) + 0.3s);
}

.mark {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  animation: stamp 0.42s var(--ease-out) both;
  animation-delay: calc(var(--d, 0s) + 0.26s);
}

.mark.req {
  background: var(--sunken);
  color: var(--ink);
}

.mark.neg {
  background: var(--above-soft);
  color: var(--above);
}

.mark.add {
  background: var(--add-on);
  color: var(--ink);
}

.mark.blank {
  visibility: hidden;
  animation: none;
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(1.6) rotate(-6deg);
    filter: blur(2px);
  }

  60% {
    opacity: 1;
    transform: scale(0.94);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

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

.total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 20px 0;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 14.5px;
}

.verdict {
  background: var(--night);
  color: var(--on-night);
  padding: 16px 20px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 16px;
  animation: verdict 0.7s var(--ease-out) both;
  animation-delay: 2.05s;
}

@keyframes verdict {
  from {
    clip-path: inset(100% 0 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.verdict .label,
.verdict .why {
  font-size: 13px;
  color: var(--on-night-secondary);
}

.verdict .why {
  grid-column: 1;
  font-size: 12.5px;
}

.verdict .push {
  grid-row: 1 / 3;
  grid-column: 2;
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* The amount counts up as the caliper clamps: an integer property animated
   from 0 and written out with a thousands comma. Its resting value is the
   amount, so a browser without the animation shows it still. */
@property --n {
  syntax: "<integer>";
  inherits: true;
  initial-value: 2193;
}

@property --k {
  syntax: "<integer>";
  inherits: true;
  initial-value: 2;
}

@property --r {
  syntax: "<integer>";
  inherits: true;
  initial-value: 193;
}

@counter-style pad3 {
  system: extends decimal;
  pad: 3 "0";
}

.count {
  --k: calc((var(--n) - 500) / 1000);
  --r: calc(var(--n) - var(--k) * 1000);
  counter-reset: k var(--k) r var(--r);
  animation: count 0.95s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 2.15s;
}

.count::after {
  content: "C$" counter(k) "," counter(r, pad3);
}

@keyframes count {
  from {
    --n: 0;
  }

  to {
    --n: 2193;
  }
}

.stage figcaption {
  margin-top: 18px;
  text-align: right;
  font-size: 12.5px;
  color: var(--on-night-secondary);
}

/* ── Landing sections ──────────────────────────────────────────────────── */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.sub {
  margin-top: 18px;
  font-size: 19px;
  color: var(--ink-2);
  max-width: 36em;
}

/* The problem, said plainly. */
.facts {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.fact {
  padding: 28px 40px 8px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink-3);
  max-width: 24ch;
  box-sizing: content-box;
}

.fact + .fact {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.fact b {
  font-weight: 800;
  color: var(--ink);
}

.source {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* How a check works: a real sequence, so the steps are numbered. */
.how {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  min-width: 0;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--night);
  color: var(--on-night);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
}

.steps h3 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

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

.legend {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.legend div {
  display: grid;
  grid-template-columns: 7.2em minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}

.legend dt,
.legend dd {
  margin: 0;
}

.legend .mark {
  animation: none;
}

.private {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--page);
  color: var(--ink-2);
  font-size: 16px;
}

.private svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--ink);
  stroke-width: 1.8;
}

.private strong {
  color: var(--ink);
  font-weight: 600;
}

/* The rest of the app, each part beside a piece of it. */
.rows {
  margin-top: 64px;
  display: grid;
  gap: clamp(64px, 8vw, 104px);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.row:nth-child(even) .row-text {
  order: 2;
}

.row h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.row p {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 30em;
}

.ticks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

.ticks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.ticks svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--ink);
}

.panel {
  position: relative;
  min-width: 0;
  background: var(--sunken);
  border-radius: var(--radius-frame);
  padding: clamp(22px, 3.4vw, 40px);
}

.sample {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.feed {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin-inline: auto;
}

.paid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.paid:nth-child(2) {
  margin-left: 28px;
  margin-right: -14px;
}

.paid .car {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.paid .trim {
  font-size: 13.5px;
  color: var(--ink-3);
}

.paid .price {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.paid .price small {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-3);
}

.paid .meta {
  grid-column: 1 / -1;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--sunken);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.chip svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.rating {
  display: grid;
  justify-items: center;
}

.hex {
  width: min(100%, 360px);
  height: auto;
  overflow: visible;
}

.hex .grid {
  stroke: var(--steel);
  stroke-width: 1;
}

.hex .scores {
  fill: color-mix(in srgb, var(--night) 10%, transparent);
  stroke: var(--ink);
}

.hex .dots {
  fill: var(--ink);
  stroke: none;
}

.hex text {
  font-family: var(--text);
  font-size: 12.5px;
  fill: var(--ink-2);
  stroke: none;
}

.hex .score {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  fill: var(--ink);
}

.ask {
  max-width: 420px;
  margin-inline: auto;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.ask .q {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ask .hint {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-3);
}

.opts {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: 14.5px;
  font-weight: 500;
}

.opt.on {
  background: var(--caliper);
  border-color: var(--caliper);
  color: var(--on-caliper);
  font-weight: 600;
}

.ask-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-3);
}

.ask .dots {
  display: flex;
  gap: 6px;
}

.ask .dots i {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--steel);
}

.ask .dots i.done {
  background: var(--ink);
}

/* About us. */
.about {
  background: var(--card);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.story {
  margin-top: 26px;
  display: grid;
  gap: 18px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 34em;
}

.story strong {
  color: var(--ink);
  font-weight: 600;
}

.team {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.person {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--page);
}

.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--steel);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.person h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.person .role {
  margin-top: 1px;
  font-size: 14px;
  color: var(--ink-3);
}

.person p:not(.role) {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.promises {
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.promises li {
  min-width: 0;
  padding: 24px 28px 0 0;
}

.promises li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.promises h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.promises p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* The close. */
.close {
  overflow: hidden;
}

.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.close h2 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.close-lead {
  margin-top: 20px;
  font-size: 19px;
  color: var(--on-night-secondary);
  max-width: 32em;
}

.address {
  color: var(--on-night);
  font-weight: 600;
  user-select: all;
}

.close .disc {
  width: clamp(160px, 22vw, 300px);
  height: auto;
}

/* ── Text pages: support, the legal pages, the dealership list, 404 ────── */

.page {
  max-width: 760px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 9vw, 112px);
}

.page h1 {
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page .lead {
  margin-top: 0;
  color: var(--ink-2);
}

.prose {
  font-size: 17px;
  line-height: 1.65;
}

.prose a {
  color: var(--ink);
  font-weight: 600;
}

.prose h2 {
  margin-top: 44px;
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 4px;
}

.prose blockquote {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--sunken);
  color: var(--ink-2);
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.prose th {
  background: var(--sunken);
  font-weight: 600;
}

.prose code {
  font-size: 0.9em;
}

/* A review note left in a draft ([pending #24], [to fill]): words, marked. */
mark.marker {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--above-soft);
  color: var(--above);
  font-weight: 700;
}

.draft {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--card);
}

.draft p {
  color: var(--ink-2);
}

.prose .steps-list {
  padding-left: 24px;
}

.actions {
  margin-top: 28px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer {
  background: var(--night);
  color: var(--on-night-secondary);
  border-top: 1px solid var(--on-night-track);
  padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px));
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 32px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer a:hover {
  color: var(--on-night);
}

/* ── Narrow screens ────────────────────────────────────────────────────── */

/* Two columns, but a narrow one: the quote takes more of the stage so its
   lines stay on one line each. */
@media (min-width: 961px) and (max-width: 1180px) {
  .quote {
    width: 80%;
    margin-left: 20%;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .row,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    margin-inline: auto;
  }

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

  .row:nth-child(even) .row-text {
    order: 0;
  }

  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promises li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .nav a:not(.button) {
    display: none;
  }

  .stage {
    max-width: 460px;
    padding-top: 30%;
  }

  .stage .disc {
    left: -20%;
    top: -6%;
    translate: none;
    width: 72%;
  }

  .quote {
    width: 100%;
    margin-left: 0;
    rotate: -1deg;
  }

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

  .fact {
    padding-right: 0;
  }

  .fact + .fact {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .close .disc {
    width: 120px;
    order: -1;
  }

  .paid:nth-child(2) {
    margin-left: 14px;
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  .lines li {
    font-size: 13.5px;
    padding-inline: 8px;
    gap: 4px 8px;
  }

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

  .promises li,
  .promises li + li {
    padding-left: 0;
    border-left: 0;
  }

  .promises li + li {
    margin-top: 22px;
    border-top: 1px solid var(--line);
  }

  .lines .amt {
    min-width: 0;
  }

  .verdict .push {
    font-size: 28px;
  }

  .logo span {
    font-size: 24px;
  }
}

/* With Reduce Motion nothing spins or stamps: the check is shown read. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stage .rotor,
  .stage .caliper,
  .mark,
  .lines .others,
  .lines li::before,
  .count {
    animation: none;
  }

  .verdict {
    animation: fade 0.4s ease-out 0.2s both;
  }

  .button {
    transition: none;
  }

  .button:hover,
  .button:active {
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
