/* Pasada livery. Tokens mirror DESIGN.md. */
:root {
  --livery: #2A327B;
  --night: #161A47;
  --night-2: #1E2360;
  --sky: #5BB8F0;
  --rose: #E0708F;
  --paper: #F3F4F8;
  --paper-raised: #FFFFFF;
  --ink: #14163A;
  --ink-soft: #4A4F75;
  --on-night: #F3F4F8;
  --on-night-soft: #B9BEE8;
  --chrome-light: #F4F6FB;
  --chrome-mid: #A9AFC2;
  --chrome-dark: #6F768D;
  --success: #2E9E6A;

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --plate: 6px;
  --panel: 14px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 11vw, 144px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sheet: 0 1px 0 rgba(20, 22, 58, .06), 0 10px 24px -12px rgba(20, 22, 58, .35);
  --sheet-night: 0 1px 0 rgba(0, 0, 0, .2), 0 18px 36px -18px rgba(0, 0, 0, .7);
}

@property --sweep {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
.tab { font-variant-numeric: tabular-nums lining-nums; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: var(--plate);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.night { background: var(--night); color: var(--on-night); position: relative; }
.paper { background: var(--paper); color: var(--ink); position: relative; }
section { padding: var(--section) 0; }

/* Livery band: three equal stripes */
.band {
  position: absolute; left: 0; right: 0; top: 0; height: 18px;
  background: linear-gradient(var(--livery) 0 33.33%, var(--sky) 0 66.66%, var(--rose) 0);
}
.band--on-night { background: linear-gradient(var(--sky) 0 33.33%, var(--rose) 0 66.66%, var(--paper) 0); height: 12px; }

/* Type roles */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.03em;
  word-spacing: .04em;
 
  text-wrap: balance;
}
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.03em;
 
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: 28px;
}
.lede, .section-lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 60ch; }
.night .lede, .night .section-lede { color: var(--on-night-soft); }
.section-lede { margin-bottom: 56px; }
p + p { margin-top: 1em; }
.fine { font-size: .875rem; color: var(--ink-soft); margin-top: 24px; }
.night .fine, .fine--night { color: var(--on-night-soft); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(22, 26, 71, .96);
  color: var(--on-night);
  border-bottom: 1px solid rgba(185, 190, 232, .14);
}
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; text-decoration: none; color: inherit; line-height: 1; }
.wordmark__one { color: var(--sky); }
.topnav { display: flex; gap: 28px; }
.topnav a { color: var(--on-night-soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
.topnav a:hover { color: var(--on-night); }
@media (max-width: 860px) { .topnav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 999px;
  background: var(--livery); color: var(--on-night);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease-out), background-color .2s;
}
.btn:hover { background: #343d92; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--on-night { background: var(--paper); color: var(--night); }
.btn--on-night:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--livery); box-shadow: inset 0 0 0 2px var(--livery); }
.btn--ghost:hover { background: rgba(42, 50, 123, .07); }
.btn--ghost-night { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 2px rgba(243, 244, 248, .5); }
.btn--ghost-night:hover { background: rgba(243, 244, 248, .08); }
.btn--block { width: 100%; }
.textlink { font-weight: 600; text-underline-offset: 4px; }
.textlink--on-night { color: var(--sky); }

/* HERO */
.hero { padding-top: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__copy .lede { margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 40px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.rack { position: relative; }
.rack__caption { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--on-night-soft); margin-bottom: 14px; }
.rack__list { display: grid; gap: 14px; }

/* Signboard */
.signboard {
  position: relative;
  background: var(--paper-raised); color: var(--ink);
  border-radius: var(--plate);
  padding: 22px 20px 18px;
  box-shadow: var(--sheet-night);
  overflow: hidden;
}
.paper .signboard { box-shadow: var(--sheet); }
.signboard__band { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: linear-gradient(var(--livery) 0 33.33%, var(--sky) 0 66.66%, var(--rose) 0); }
.signboard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.signboard__name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.05; letter-spacing: -.015em; }
.signboard__count { font-family: var(--display); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.signboard__next { margin-top: 6px; font-weight: 500; color: var(--ink-soft); }
.signboard__next.is-close { color: #A23657; font-weight: 600; }
.signboard--large { padding: 30px 28px 24px; }
.signboard--large .signboard__name { font-size: clamp(1.7rem, 3.4vw, 2.2rem); letter-spacing: -.025em; }
.signboard--large .signboard__count { font-size: 1.35rem; }

.slots { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.slot {
  width: 20px; height: 20px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px #C9CCE0;
  display: grid; place-items: center;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.slot.is-filled { background: var(--livery); box-shadow: inset 0 0 0 2px var(--livery); }
.slot.is-reward { box-shadow: inset 0 0 0 2px var(--rose); }
.slot.is-reward.is-filled { background: var(--rose); box-shadow: inset 0 0 0 2px var(--rose); }
.slot.is-new { transform: scale(1.25); }
.slots--large { gap: 10px; margin-top: 22px; }
.slots--large .slot { width: 34px; height: 34px; }
.slots--large .slot.is-reward::after { content: "★"; font-size: .9rem; color: var(--rose); }
.slots--large .slot.is-reward.is-filled::after { color: #fff; }

.points-chip {
  position: relative; margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 20px; border-radius: var(--plate);
  background: linear-gradient(105deg, var(--chrome-dark), var(--chrome-light) 22%, var(--chrome-mid) 40%, #fff 52%, var(--chrome-mid) 66%, var(--chrome-light) 84%, var(--chrome-dark));
  color: var(--night);
  box-shadow: var(--sheet-night);
}
.points-chip__label { font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.points-chip__value { letter-spacing: -.02em; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; }

/* Hero entrance: boards slide into the rack */
@media (prefers-reduced-motion: no-preference) {
  .rack__list:not(.is-settled) .signboard { animation: rack-in .9s var(--ease-out) backwards; animation-delay: calc(120ms + var(--i) * 90ms); }
  .points-chip { animation: rack-in .9s var(--ease-out) both; animation-delay: 520ms; }
  @keyframes rack-in { from { transform: translateX(56px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* PROBLEM */
.problem__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.problem__copy p { max-width: 58ch; color: var(--ink-soft); font-size: 1.125rem; }
.problem__pile { position: relative; height: 320px; max-width: 420px; }
.papercard {
  position: absolute; left: var(--x); top: var(--y);
  width: min(340px, 82%); aspect-ratio: 1.62;
  background: #FBFAF6;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(20,22,58,.05), 0 16px 28px -16px rgba(20,22,58,.45);
  transform: rotate(var(--r));
  padding: 18px 20px;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto 1fr 1fr; gap: 10px;
}
.papercard span { grid-column: 1 / -1; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #8B8FA8; }
.papercard i, .papercard b { border-radius: 50%; border: 2px dashed #C9CCE0; aspect-ratio: 1; align-self: center; width: 70%; justify-self: center; }
.papercard i { border: 0; background: radial-gradient(circle at 40% 40%, rgba(160, 60, 80, .55), rgba(160, 60, 80, .25) 60%, transparent 62%); }
@media (max-width: 820px) { .problem__grid { grid-template-columns: 1fr; } .problem__pile { height: 260px; } }

/* COUNTER */
.stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); max-width: 880px; margin: 0 auto; }
.stage__arrow { width: 64px; height: 12px; background: linear-gradient(var(--sky) 0 33.33%, var(--rose) 0 66.66%, var(--paper) 0); border-radius: 2px; }
@media (max-width: 760px) { .stage { grid-template-columns: 1fr; } .stage__arrow { width: 12px; height: 48px; margin: 0 auto; background: linear-gradient(90deg, var(--sky) 0 33.33%, var(--rose) 0 66.66%, var(--paper) 0); } }

.phone { justify-self: center; width: min(320px, 100%); }
.phone__cap { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--on-night-soft); margin-bottom: 12px; text-align: center; }
.phone__screen {
  position: relative; aspect-ratio: 9 / 17.5;
  border-radius: 36px; padding: 18px;
  background: var(--night-2);
  box-shadow: inset 0 0 0 2px rgba(185, 190, 232, .22), var(--sheet-night);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.phone__screen--biz { background: #0F1235; }

.plate {
  position: relative; border-radius: var(--panel); padding: 26px 18px 18px;
  background: var(--night); text-align: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(185, 190, 232, .25);
}
.plate__band { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: linear-gradient(var(--sky) 0 33.33%, var(--rose) 0 66.66%, var(--paper) 0); }
.plate__label { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--on-night-soft); }
.plate__name { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; line-height: 1; margin-top: 6px; }
.plate__qr { background: #fff; border-radius: 10px; padding: 12px; width: fit-content; margin: 16px auto 10px; }
.plate__qr canvas { width: 148px; height: 148px; image-rendering: pixelated; }
.plate__code { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--on-night-soft); }

/* Earned: the chrome moment */
.earned {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  border-radius: var(--panel); padding: 18px;
  color: var(--night);
  background: linear-gradient(105deg, var(--chrome-dark) 0%, var(--chrome-light) 18%, var(--chrome-mid) 34%, #fff 50%, var(--chrome-mid) 66%, var(--chrome-light) 82%, var(--chrome-dark) 100%);
  background-size: 300% 100%;
  background-position: var(--sweep) 0;
  transform: translateY(calc(100% + 24px));
  transition: transform .6s var(--ease-out);
}
.earned.is-on { transform: none; animation: sweep 1.4s var(--ease-out) .15s both; }
@keyframes sweep { from { --sweep: 100%; } to { --sweep: 0%; } }
.earned__title { font-weight: 600; font-size: .875rem; }
.earned__stamp { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.05; letter-spacing: -.03em; margin-top: 4px; }
.earned__points { font-weight: 600; }

.scan { display: flex; flex-direction: column; gap: 22px; }
.scan__frame {
  position: relative; aspect-ratio: 1; border-radius: 18px;
  background:
    linear-gradient(var(--sky), var(--sky)) top left / 28px 3px no-repeat,
    linear-gradient(var(--sky), var(--sky)) top left / 3px 28px no-repeat,
    linear-gradient(var(--sky), var(--sky)) top right / 28px 3px no-repeat,
    linear-gradient(var(--sky), var(--sky)) top right / 3px 28px no-repeat,
    linear-gradient(var(--sky), var(--sky)) bottom left / 28px 3px no-repeat,
    linear-gradient(var(--sky), var(--sky)) bottom left / 3px 28px no-repeat,
    linear-gradient(var(--sky), var(--sky)) bottom right / 28px 3px no-repeat,
    linear-gradient(var(--sky), var(--sky)) bottom right / 3px 28px no-repeat,
    #0A0C28;
  overflow: hidden;
}
.scan__line { position: absolute; left: 10%; right: 10%; top: 12%; height: 2px; background: var(--rose); box-shadow: 0 0 0 1px rgba(224, 112, 143, .3); opacity: 0; }
.scan.is-scanning .scan__line { opacity: 1; animation: scanline .7s var(--ease-out) both; }
@keyframes scanline { from { top: 12%; } to { top: 86%; } }

.confirm, .done { display: flex; flex-direction: column; gap: 10px; }
.confirm__who { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; }
.confirm__card { color: var(--on-night-soft); font-weight: 500; }
.confirm__label { margin-top: 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--on-night-soft); }
.confirm__amount { display: flex; align-items: baseline; gap: 6px; border-bottom: 2px solid var(--sky); padding-bottom: 6px; }
.confirm__cur { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--on-night-soft); }
.confirm__amount input { width: 100%; background: transparent; border: 0; font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--on-night); padding: 0; }
.confirm__amount input:focus { outline: none; }
.confirm__amount:focus-within { border-bottom-color: var(--rose); }
.confirm__stamps { color: var(--on-night-soft); margin-bottom: 12px; }
.done__title { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.035em; line-height: 1; color: var(--sky); }
.done__text { color: var(--on-night-soft); margin-bottom: 14px; }
.done__text strong { color: var(--rose); }

/* CURRENCIES */
.cur { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--panel); overflow: hidden; box-shadow: var(--sheet); }
.cur__side { background: var(--paper-raised); padding: clamp(28px, 4vw, 48px); position: relative; }
.cur__side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: linear-gradient(var(--livery) 0 33.33%, var(--sky) 0 66.66%, var(--rose) 0); }
.cur__side--points { background: var(--livery); color: var(--on-night); }
.cur__side--points::before { background: linear-gradient(90deg, var(--chrome-dark), var(--chrome-light) 30%, #fff 50%, var(--chrome-mid) 70%, var(--chrome-dark)); }
.cur__title { letter-spacing: -.03em; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.cur__who { margin-top: 6px; font-weight: 600; color: var(--ink-soft); }
.cur__side--points .cur__who { color: var(--on-night-soft); }
.cur__facts { margin-top: 28px; display: grid; gap: 18px; }
.cur__facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(20, 22, 58, .12); }
.cur__side--points .cur__facts div { border-top-color: rgba(243, 244, 248, .18); }
.cur__facts dt { font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: var(--ink-soft); }
.cur__side--points .cur__facts dt { color: var(--on-night-soft); }
@media (max-width: 760px) { .cur { grid-template-columns: 1fr; } .cur__facts div { grid-template-columns: 1fr; gap: 4px; } }

/* STAMP CARD */
.cardsec { padding-top: 0; }
.cardsec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.cardsec__copy > p { color: var(--ink-soft); font-size: 1.125rem; max-width: 52ch; }
.rules { margin-top: 28px; display: grid; gap: 14px; }
.rules li { position: relative; padding-left: 30px; max-width: 54ch; }
.rules li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--livery); }
.demo-card__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.dc-rewards { display: grid; gap: 10px; margin-top: 20px; }
.dc-reward { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--plate); background: #FCEEF2; }
.dc-reward__name { font-weight: 600; color: #7E2440; }
.dc-reward .btn { min-height: 40px; padding: 8px 16px; font-size: .9rem; background: var(--rose); color: #2A0C17; }
.dc-reward .btn:hover { background: #E88AA4; }
.dc-cards { margin-top: 16px; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 900px) { .cardsec__grid { grid-template-columns: 1fr; } }

/* DISCOVERY */
.discover__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.discover__copy p { color: var(--on-night-soft); font-size: 1.125rem; max-width: 52ch; }
.map { position: relative; aspect-ratio: 600 / 440; border-radius: var(--panel); background: #1B2058; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(185, 190, 232, .16); }
.map__streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__street { stroke: rgba(185, 190, 232, .16); stroke-width: 10; fill: none; }
.map__avenue { stroke: rgba(185, 190, 232, .22); stroke-width: 16; fill: none; }
.map__river { stroke: rgba(91, 184, 240, .28); stroke-width: 28; fill: none; stroke-linecap: round; }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -100%);
  background: var(--paper-raised); color: var(--ink);
  border-radius: var(--plate); padding: 12px 12px 8px; min-width: 132px; max-width: 176px;
  box-shadow: var(--sheet-night);
}
.pin::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: var(--plate) var(--plate) 0 0; background: var(--livery); }
.pin--rose::before { background: var(--rose); }
.pin--sky::before { background: var(--sky); }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--paper-raised); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.pin__name { display: block; font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1.05; }
.pin__deal { display: block; font-size: .8125rem; line-height: 1.3; color: var(--ink-soft); margin-top: 2px; position: relative; z-index: 1; }
.you { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; border-radius: 50%; background: var(--sky); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(91, 184, 240, .25); }
@media (prefers-reduced-motion: no-preference) { .you { animation: ping 2.4s var(--ease-out) infinite; } @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91, 184, 240, .5); } 100% { box-shadow: 0 0 0 26px rgba(91, 184, 240, 0); } } }
@media (max-width: 900px) { .discover__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pin { min-width: 0; padding: 8px 9px 6px; } .pin__deal { display: none; } .pin__name { font-size: .85rem; } }

/* SHOPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 12px; border-top: 3px solid var(--ink); }
.step { padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid rgba(20, 22, 58, .14); }
.step__title { letter-spacing: -.025em; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; margin-bottom: 12px; }
.step p { color: var(--ink-soft); max-width: 36ch; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { padding: 24px 0; border-left: 0; } .step + .step { border-top: 1px solid rgba(20, 22, 58, .14); } }

.loop { margin-top: clamp(64px, 8vw, 104px); }
.loop--first { margin: 0 0 clamp(72px, 9vw, 120px); }
.loop__title { letter-spacing: -.025em; font-family: var(--display); font-weight: 800; font-size: 2rem; margin-bottom: 24px; }
.loop__stops { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; counter-reset: stop; }
.loop__stops::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 6px; background: linear-gradient(var(--sky) 0 33.33%, var(--rose) 0 66.66%, var(--paper) 0); }
.loop__stops li { position: relative; padding: 44px 16px 0 0; font-weight: 600; font-size: 1.1rem; }
.loop__stops li::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 5px var(--paper); }
.loop__note { margin-top: 28px; color: var(--on-night-soft); max-width: 60ch; }
@media (max-width: 760px) {
  .loop__stops { grid-template-columns: 1fr; }
  .loop__stops::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 6px; height: auto; background: linear-gradient(90deg, var(--sky) 0 33.33%, var(--rose) 0 66.66%, var(--paper) 0); }
  .loop__stops li { padding: 2px 0 26px 48px; }
}

/* TRUST */
.trust__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.trust__list { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.trust__list div { padding: 22px 0; border-bottom: 1px solid rgba(20, 22, 58, .14); display: grid; grid-template-columns: 15rem 1fr; gap: 24px; }
.trust__list dt { letter-spacing: -.02em; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.05; }
.trust__list dd { color: var(--ink-soft); }
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr; } .trust__list div { grid-template-columns: 1fr; gap: 6px; } }

/* ROUTE */
.line { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 8px; }
.line::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 8px; background: linear-gradient(var(--sky) 0 33.33%, var(--rose) 0 66.66%, var(--paper) 0); }
.stop { position: relative; padding: 56px 28px 0 0; }
.stop::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 6px var(--paper); }
.stop--now::before { background: var(--rose); box-shadow: inset 0 0 0 6px var(--paper), 0 0 0 6px rgba(224, 112, 143, .3); }
.stop__when { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--sky); }
.stop__title { letter-spacing: -.03em; font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1; margin: 6px 0 12px; }
.stop p:last-child { color: var(--on-night-soft); max-width: 30ch; }
@media (max-width: 900px) {
  .line { grid-template-columns: 1fr; }
  .line::before { left: 13px; right: auto; top: 16px; bottom: 16px; width: 8px; height: auto; background: linear-gradient(90deg, var(--sky) 0 33.33%, var(--rose) 0 66.66%, var(--paper) 0); }
  .stop { padding: 0 0 40px 60px; }
}

/* FOOTER */
.foot { padding: 76px 0 48px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: linear-gradient(var(--livery) 0 33.33%, var(--sky) 0 66.66%, var(--rose) 0); }
.foot__grid { display: grid; gap: 8px; }
.foot__mark { letter-spacing: -.04em; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 9vw, 6rem); line-height: .9; color: var(--livery); }
.foot__mark .wordmark__one { color: var(--rose); }
.foot__line { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Signboards as buttons in the hero rack */
.signboard--button {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.signboard--button:hover { transform: translateX(-6px); }
.signboard--button:active { transform: translateX(-3px) scale(.99); }
.signboard__band, .signboard__row, .signboard__next { display: block; }
.signboard__row { display: flex; }

/* Shop detail: the signboard the customer tapped, opened up */
.shop { display: grid; gap: 14px; }
.shop__back {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px 8px 12px; border: 0; border-radius: 999px;
  background: rgba(243, 244, 248, .1); color: var(--on-night); font-weight: 600; cursor: pointer;
}
.shop__back::before { content: ""; width: 9px; height: 9px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-left: 4px; }
.shop__back:hover { background: rgba(243, 244, 248, .18); }
.shop__heading { margin-top: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--on-night-soft); }
.shop__rewards { display: grid; gap: 8px; }
.shop__rewards li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: var(--plate); background: rgba(243, 244, 248, .07); }
.shop__rewards .shop__slot { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--on-night-soft); white-space: nowrap; }
.shop__rewards .is-ready { background: var(--rose); color: #2A0C17; }
.shop__rewards .is-ready .shop__slot { color: #2A0C17; }
.shop__promo { padding: 14px 16px; border-radius: var(--plate); background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(185, 190, 232, .2); font-weight: 500; }

/* View transitions: the tapped board keeps its identity while it opens */
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
::view-transition-old(shop-board), ::view-transition-new(shop-board) { height: 100%; object-fit: none; object-position: left top; }
::view-transition-old(carry-name), ::view-transition-new(carry-name) { height: 100%; object-fit: none; }
::view-transition-group(carry-name) { animation-duration: .7s; z-index: 5; }
.shop .slots--large { gap: 8px; }
.shop .slots--large .slot { width: 26px; height: 26px; }
.shop .slots--large .slot.is-reward::after { font-size: .75rem; }
.confirm__amount input::-webkit-outer-spin-button, .confirm__amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.confirm__amount input { -moz-appearance: textfield; appearance: textfield; }
