/* VeltPay site styles. Velt surface grammar: dark canvas, layered cards, hairlines, mint primary. */

:root {
  color-scheme: dark;
  --canvas: #0B0F14;
  --canvas-2: #0E1319;
  --surface: #161D24;
  --surface-2: #1C242D;
  --well: #10161C;
  --line: #26303D;
  --line-soft: #1E2731;
  --text: #E8EEF3;
  --text-2: #C5CED7;
  --muted: #97A3AF;
  --mint: #8AF5C0;
  --mint-ink: #06140D;
  --mint-wash: rgba(138, 245, 192, 0.12);
  --coral: #F87185;
  --coral-wash: rgba(248, 113, 133, 0.14);
  --gold: #F5C451;
  --gold-wash: #1F1A0E;
  --safe: #12201D;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 64px;
  --brand-row: 52px;
  --badge-sm: 44px;
  --badge-lg: 52px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-variant-numeric: tabular-nums;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.has-sheet { overflow: hidden; }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 650; color: var(--text); }
.num { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(38, 48, 61, 0.7);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}
.brand__lockup { height: 26px; width: auto; aspect-ratio: 190.4 / 47; }
@media (min-width: 640px) { .brand__lockup { height: 30px; } }
.header-stores { display: flex; align-items: center; gap: 8px; }

/* Narrow screens: two rows, brand then both store buttons at full size. The brand row scrolls
   away and the store row stays pinned, so the sticky part is only one button high. */
@media (max-width: 479.98px) {
  .site-header { top: calc(-1 * var(--brand-row)); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-bottom: 10px; }
  .brand { height: var(--brand-row); }
  .header-stores { flex: 1 1 100%; flex-wrap: wrap; }
  .header-stores .store-btn { flex: 1 1 128px; justify-content: center; }
}

/* ---------- Store buttons ----------
   Our own neutral buttons (no Apple or Google logos). Both stores share one height token:
   --badge-sm in the header, --badge-lg everywhere else. When a store is live and config.js names its
   official badge file, the image replaces the button and is shown exactly as supplied. */

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  height: var(--badge-lg);
  margin: 0;
  padding: 0 20px 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.store-btn:hover { border-color: #3A4757; background-color: var(--surface-2); }
.store-btn:active { transform: translateY(1px); }
.store-btn__glyph { width: 24px; height: 24px; flex: 0 0 auto; color: var(--text-2); }
.store-btn__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.store-btn__kicker { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.store-btn__name { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }

.store-btn--compact {
  gap: 7px;
  height: var(--badge-sm);
  padding: 0 14px 0 11px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.store-btn--compact .store-btn__glyph { width: 18px; height: 18px; }

.store-btn--badge,
.store-btn--badge:hover {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  transform: none;
}
.store-btn--badge img { display: block; height: var(--badge-lg); width: auto; max-width: none; }
.store-btn--compact.store-btn--badge img { height: var(--badge-sm); }

/* Store groups. App Store first, Google Play second. */
.stores { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.stores--center { justify-content: center; }
.store-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; max-width: 100%; }
.store-frame { position: relative; display: flex; max-width: 100%; }

/* The visitor's store: a pill above and a ring around the frame, never on the badge itself.
   The ring sits 12px out, which keeps the badge's clear space free. */
.store-rec {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  background: var(--safe);
  box-shadow: inset 0 0 0 1px rgba(138, 245, 192, 0.35);
  color: var(--mint);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}
.store-rec__dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(138, 245, 192, 0.18); }
html[data-platform="ios"] .store-slot[data-slot="appStore"] .store-rec,
html[data-platform="android"] .store-slot[data-slot="googlePlay"] .store-rec { display: inline-flex; }
html[data-platform="ios"] .store-slot[data-slot="appStore"] .store-frame::before,
html[data-platform="android"] .store-slot[data-slot="googlePlay"] .store-frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  border: 1px solid rgba(138, 245, 192, 0.55);
  box-shadow: 0 0 30px -4px rgba(138, 245, 192, 0.35), inset 0 0 18px -6px rgba(138, 245, 192, 0.25);
  pointer-events: none;
}

@media (max-width: 479.98px) {
  .stores { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .store-slot { align-items: stretch; }
  .store-rec { align-self: flex-start; }
  .stores--center .store-rec { align-self: center; }
  .store-frame .store-btn:not(.store-btn--badge) { width: 100%; justify-content: center; }
  .store-frame:has(.store-btn--badge) { align-self: center; }
  .hero__copy .stores { align-self: stretch; }
}
.hero__copy .stores { margin-block: 2px 8px; }

/* ---------- Shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(138, 245, 192, 0.14);
}

h1 {
  font-size: clamp(1.5rem, 0.9rem + 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 750;
  text-wrap: balance;
}
h1, h2, h3 { overflow-wrap: break-word; }

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 720;
  text-wrap: balance;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 680;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 420px at 78% 40%, rgba(138, 245, 192, 0.09), transparent 70%),
    radial-gradient(700px 500px at 10% -10%, rgba(47, 208, 138, 0.06), transparent 70%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 72px;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 56px;
    padding-top: 56px;
    padding-bottom: 96px;
  }
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.lede { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 30rem; }
@media (min-width: 960px) { .lede { font-size: 21px; } }

/* Desktop (macOS included): both stores at equal weight, plus a QR code that opens veltpay.app. */
.qr-card {
  display: none;
  align-items: center;
  gap: 18px;
  max-width: 440px;
  padding: 14px 22px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--well);
}
html[data-platform="desktop"] .qr-card { display: flex; }
.qr-card__code { width: 112px; height: 112px; flex: 0 0 auto; border-radius: 12px; }
.qr-card__title { font-size: 16px; font-weight: 650; color: var(--text); }
.qr-card__text { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.hero-points svg { width: 16px; height: 16px; color: var(--mint); flex: 0 0 auto; }

.hero__demo { display: flex; flex-direction: column; align-items: center; min-width: 0; }

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  width: 318px;
  max-width: 100%;
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(155deg, #222B35 0%, #10161C 38%, #161D24 100%);
  border: 1px solid var(--line);
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.85),
    0 24px 48px -24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 632px;
  border-radius: 41px;
  background:
    radial-gradient(240px 200px at 50% 120px, rgba(138, 245, 192, 0.07), transparent 70%),
    var(--canvas);
  border: 1px solid #1A222B;
  overflow: hidden;
}
.phone__island {
  position: absolute;
  top: 11px; left: 50%;
  width: 86px; height: 25px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
}
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 4px 24px 0 30px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
.status-bar__icons { display: inline-flex; align-items: center; gap: 6px; }
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
}
.app-bar svg { width: 20px; height: 20px; color: var(--text-2); }

.receipt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
  min-height: 0;
}
.receipt[data-state="success"] [data-for]:not([data-for~="success"]),
.receipt[data-state="confirming"] [data-for]:not([data-for~="confirming"]),
.receipt[data-state="refunded"] [data-for]:not([data-for~="refunded"]) { display: none; }
.receipt.is-switching > * { animation: fade-in 220ms ease both; }

.medallion {
  position: relative;
  width: 112px;
  height: 92px;
  margin: 2px auto 0;
  flex: 0 0 auto;
}
.medallion__halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  border: 1px solid rgba(138, 245, 192, 0.22);
}
.medallion__stars { position: absolute; inset: 0; width: 112px; height: 92px; }
.medallion__disc {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(138, 245, 192, 0.22), rgba(138, 245, 192, 0.1) 70%);
  box-shadow: inset 0 0 0 1px rgba(138, 245, 192, 0.32), 0 8px 28px -8px rgba(138, 245, 192, 0.35);
}
.medallion__icon { position: absolute; inset: 0; width: 64px; height: 64px; }

.receipt[data-state="confirming"] .medallion__halo { border-color: rgba(151, 163, 175, 0.22); }
.receipt[data-state="confirming"] .medallion__disc {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.receipt[data-state="refunded"] .medallion__halo { border-color: rgba(248, 113, 133, 0.24); }
.receipt[data-state="refunded"] .medallion__disc {
  background: radial-gradient(circle at 35% 30%, rgba(248, 113, 133, 0.22), rgba(248, 113, 133, 0.1) 70%);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 133, 0.32);
}

.receipt__biller { text-align: center; font-size: 13px; color: var(--muted); margin-top: -2px; }
.receipt__amount {
  text-align: center;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 720;
  letter-spacing: -0.02em;
  margin-top: -6px;
}
.receipt__pill-row { display: flex; justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--mint-wash); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(138, 245, 192, 0.25); }
.pill--pending { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.pill--pending .pill__dot { background: var(--mint); }
.pill--neutral { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.pill--neutral .pill__dot { background: var(--muted); }

/* Stepper */
.stepper-card {
  padding: 12px 4px 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.step + .step::before {
  content: "";
  position: absolute;
  top: 10px;
  right: calc(50% + 15px);
  width: calc(100% - 30px);
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
}
.step.step--waiting::before,
.step.step--failed::before { background: var(--line); }
.step.step--active::before { background: linear-gradient(90deg, var(--mint), rgba(138, 245, 192, 0.35)); }
.node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
}
.node svg { width: 14px; height: 14px; }
.step--done .node { background: var(--mint); color: var(--mint-ink); }
.step--active .node { box-shadow: inset 0 0 0 2px var(--mint); }
.node__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.step--waiting .node { box-shadow: inset 0 0 0 2px #3A4654; }
.step--failed .node { background: var(--coral); color: #2A0B12; }
.step__label { font-size: 11px; line-height: 1.3; color: var(--text-2); padding-inline: 2px; }
.step--waiting .step__label { color: var(--muted); }

/* Token card */
.token {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(138, 245, 192, 0.05), rgba(138, 245, 192, 0) 60%), var(--surface);
  border: 1px solid var(--line);
}
.token__head {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.disco {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.token__meter {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.token__meter span:first-child { color: var(--text); font-weight: 600; }
.token__digits {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text);
}
.token__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.token__foot svg { width: 14px; height: 14px; color: var(--mint); }

/* In-progress guard */
.guard { display: flex; flex-direction: column; gap: 8px; }
.guard__note {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--well);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.guard__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px dashed #34404E;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.guard__btn strong { color: var(--text-2); font-weight: 650; }
.guard__btn svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }

/* Safe panel: refund complete */
.safe-panel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--safe);
  border: 1px solid rgba(138, 245, 192, 0.45);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.safe-panel strong { color: var(--mint); }
.safe-panel__icon { width: 20px; height: 20px; flex: 0 0 auto; color: var(--mint); margin-top: 1px; }

/* After a refund the payment can be tried again. */
.phone-action { display: flex; }
.phone-action__btn {
  flex: 1;
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 14px;
  font-weight: 700;
}

/* Where your money went */
.money {
  margin-top: auto;
  margin-bottom: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--well);
  border: 1px solid var(--line-soft);
}
.money__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.money__title svg { width: 14px; height: 14px; color: var(--mint); }
.money__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text);
}
.money__row span:last-child { font-weight: 650; white-space: nowrap; }

.phone__home {
  flex: 0 0 auto;
  width: 108px; height: 4px;
  margin: 6px auto 8px;
  border-radius: 4px;
  background: #3A4654;
}

/* Demo control */
.demo-caption { margin-top: 24px; font-size: 13px; color: var(--muted); }
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 318px;
  max-width: 100%;
  margin-top: 10px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.segmented button {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px #33404F, 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.section { padding-block: 72px; border-top: 1px solid var(--line-soft); }
@media (min-width: 960px) { .section { padding-block: 104px; } }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 44rem;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head p:not(.eyebrow) { font-size: 17px; color: var(--muted); }
.section-head--left { align-items: flex-start; text-align: left; margin: 0 0 32px; }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) and (max-width: 1039.98px) {
  .card--assure, .card--bills { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .card--assure { grid-column: span 7; }
  .card--vault { grid-column: span 5; }
  .card--snap { grid-column: span 5; }
  .card--bills { grid-column: span 7; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px 16px 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .card { padding: 20px 20px 28px; } }
.card > h3 { margin-top: 12px; padding-inline: 4px; }
.card > p { padding-inline: 4px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 36rem; }

.card__visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(360px 200px at 85% 0%, rgba(138, 245, 192, 0.05), transparent 70%),
    var(--well);
  border: 1px solid var(--line-soft);
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}
@media (max-width: 379.98px) { .card__visual { padding: 14px; } }

/* Vault */
.vault__meters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.meter-tab {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}
.meter-tab.is-active { color: var(--mint-ink); background: var(--mint); border-color: var(--mint); font-weight: 650; }
.vault__count { margin-left: auto; font-size: 12px; color: var(--muted); }
.vault__stack { position: relative; padding-bottom: 10px; }
.vault__stack::before,
.vault__stack::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  opacity: 0.7;
}
.vault__stack::after { left: 28px; right: 28px; bottom: -2px; opacity: 0.4; }
.token--large { position: relative; z-index: 1; padding: 16px 18px; container-type: inline-size; }
.token--large .token__digits { font-size: 20px; font-size: clamp(18px, 10cqi, 30px); margin-top: 8px; }
.token__digits span { white-space: nowrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.badge svg { width: 16px; height: 16px; flex: 0 0 auto; }
.badge--mint { background: var(--safe); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(138, 245, 192, 0.3); }

/* VeltSnap */
.snap__view {
  container-type: inline-size;
  position: relative;
  display: grid;
  place-items: center;
  height: 188px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.4)),
    repeating-linear-gradient(115deg, #141B22 0 14px, #121920 14px 28px);
  border: 1px solid var(--line-soft);
}
.snap__reticle {
  position: relative;
  display: grid;
  place-items: center;
  min-width: min(200px, 100%);
  min-height: 104px;
  padding: 16px 18px;
}
.corner { position: absolute; width: 20px; height: 20px; border: 0 solid var(--mint); }
.corner--tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.corner--tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.corner--bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.corner--br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }
.snap__target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(232, 238, 243, 0.06);
  box-shadow: inset 0 0 0 1px rgba(232, 238, 243, 0.08);
}
.snap__label { font-size: 11px; color: var(--muted); }
.snap__value { font-size: 20px; font-size: clamp(16px, 7.5cqi, 22px); font-weight: 650; letter-spacing: 0.05em; color: var(--text); white-space: nowrap; }
.snap__target--tag { flex-direction: row; gap: 12px; padding: 8px 12px 8px 8px; }
.snap__target--tag .snap__value { font-size: 18px; letter-spacing: 0; }
.snap__qr { width: 52px; height: 52px; border-radius: 6px; }
.snap[data-mode="meter"] [data-for-mode]:not([data-for-mode="meter"]),
.snap[data-mode="account"] [data-for-mode]:not([data-for-mode="account"]),
.snap[data-mode="tag"] [data-for-mode]:not([data-for-mode="tag"]) { display: none; }
.snap__scan {
  position: absolute;
  left: 10px; right: 10px; top: 50%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(138, 245, 192, 0.85), transparent);
  box-shadow: 0 0 12px rgba(138, 245, 192, 0.6);
  opacity: 0.8;
}
.snap__result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.snap__result svg {
  width: 20px; height: 20px;
  padding: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
}
.snap__modes { display: flex; flex-wrap: wrap; gap: 6px; }
.snap__modes button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.snap__modes button::after {
  /* Keeps a 44px touch target around the 36px chip. */
  content: "";
  position: absolute;
  inset: -4px 0;
}
.snap__modes button:hover { color: var(--text); }
.snap__modes button[aria-pressed="true"] { color: var(--mint); border-color: rgba(138, 245, 192, 0.5); background: var(--safe); }

/* Certainty & funds assurance */
.assure { gap: 14px; }
.assure__receipt {
  padding: 14px 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.assure__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 4px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.assure__biller { font-size: 14px; color: var(--muted); }
.assure__amount { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.assure .step__label { font-size: 12px; }
.assure__moment { display: flex; flex-direction: column; gap: 6px; }
.assure__when { font-size: 12px; font-weight: 600; color: var(--muted); padding-left: 2px; }
.safe-panel--large { padding: 16px; font-size: 15px; border-radius: var(--radius); }
.safe-panel--large .safe-panel__icon { width: 24px; height: 24px; }
.guard__btn--large { font-size: 14px; padding: 12px 16px; border-radius: var(--radius); }
.guard__btn--large svg { width: 18px; height: 18px; }

/* Bills */
.chip-group { display: flex; flex-direction: column; gap: 8px; }
.chip-group__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.chip img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }
.chip__dot { width: 10px; height: 10px; margin-inline: 3px; border-radius: 50%; background: var(--muted); }
.chip__dot--dstv { background: #0B63C5; box-shadow: 0 0 0 3px rgba(11, 99, 197, 0.28); }
.chip__dot--gotv { background: #3BA935; box-shadow: 0 0 0 3px rgba(59, 169, 53, 0.28); }
.chip__dot--startimes { background: #F29A1F; box-shadow: 0 0 0 3px rgba(242, 154, 31, 0.28); }
.chip__mono {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 5px;
  border-radius: 7px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px #34404E;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.chips > .chip:not(:has(img, .chip__dot, .chip__mono)) { padding-left: 12px; }
.chip--more { color: var(--muted); padding-left: 12px; }

.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(245, 196, 81, 0.12), rgba(245, 196, 81, 0.03) 60%), var(--gold-wash);
  border: 1px solid rgba(245, 196, 81, 0.45);
}
.perk__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold);
}
.perk__icon svg { width: 22px; height: 22px; }
.perk__text { min-width: 0; line-height: 1.45; }
.perk__title { display: block; font-size: 16px; font-weight: 680; color: var(--gold); }
.perk__meta { display: block; font-size: 14px; color: var(--muted); }
.nowrap { white-space: nowrap; }
.perk__meta a { color: var(--text-2); text-underline-offset: 3px; text-decoration-color: rgba(245, 196, 81, 0.6); border-radius: 4px; }
.perk__meta a:hover { color: var(--gold); }

/* ---------- VeltTag ---------- */

.section--tags {
  background:
    radial-gradient(600px 360px at 85% 50%, rgba(138, 245, 192, 0.06), transparent 70%),
    var(--canvas-2);
}
.tags {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .tags { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 64px; }
}
.tag-steps { display: grid; gap: 12px; }
@media (min-width: 640px) and (max-width: 899.98px) {
  .tag-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tag-steps li { flex-direction: column; }
}
.tag-steps li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tag-steps__n {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint-wash);
  color: var(--mint);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(138, 245, 192, 0.3);
}
.tag-steps h3 { font-size: 17px; }
.tag-steps p { margin-top: 4px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.url {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}
.soon__badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.pass {
  justify-self: center;
  width: min(300px, 100%);
  padding: 20px 20px 18px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(138, 245, 192, 0.16), rgba(138, 245, 192, 0) 45%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}
.pass__head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.pass__mark { width: 28px; height: 26px; }
.pass__tag { margin-top: 18px; font-size: 26px; font-weight: 720; letter-spacing: -0.02em; }
.pass__qr { width: min(176px, 100%); height: auto; aspect-ratio: 1; margin: 16px auto 0; border-radius: 14px; }
.pass__url { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- CTA ---------- */

.section--cta { padding-block: 64px; }
@media (min-width: 960px) { .section--cta { padding-block: 88px; } }
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(138, 245, 192, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .cta { padding: 56px 32px; } }
.cta__mark { width: 52px; height: 48px; }
.cta p { color: var(--muted); font-size: 17px; max-width: 30rem; }
.cta .stores { margin-top: 12px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #090C10;
  padding-block: 48px 40px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-legal { grid-column: 1 / -1; }
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-brand__lockup { height: 28px; width: auto; aspect-ratio: 190.4 / 47; color: var(--text); margin-bottom: 8px; }
.footer-brand__name { color: var(--text); font-weight: 600; }
.footer-trust { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--text-2); }
.footer-trust svg { width: 18px; height: 18px; color: var(--mint); flex: 0 0 auto; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 4px; }
@media (min-width: 760px) { .footer-nav ul { justify-content: flex-end; } }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  text-decoration: none;
}
@media (max-width: 759.98px) { .footer-nav a { padding: 0 20px 0 0; } }
.footer-nav a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Motion ---------- */

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
@keyframes halo { from { transform: scale(0.84); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes twinkle { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes scan { 0% { top: 18%; } 50% { top: 82%; } 100% { top: 18%; } }

.check-path { stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .receipt.is-entering .medallion__disc { animation: pop 520ms cubic-bezier(.2, .8, .2, 1) both; }
  .receipt.is-entering .medallion__halo { animation: halo 700ms 160ms ease-out both; }
  .receipt.is-entering .check-path { animation: draw 560ms 300ms cubic-bezier(.65, 0, .35, 1) both; }
  .receipt.is-entering .medallion__stars path { transform-box: fill-box; transform-origin: center; animation: twinkle 520ms ease-out both; }
  .receipt.is-entering .medallion__stars path:nth-child(1) { animation-delay: 620ms; }
  .receipt.is-entering .medallion__stars path:nth-child(2) { animation-delay: 740ms; }
  .receipt.is-entering .medallion__stars path:nth-child(3) { animation-delay: 840ms; }
  .medallion__spin { animation: spin 1.1s linear infinite; }
  .step--active .node__dot,
  .pill--pending .pill__dot { animation: pulse 1.4s ease-in-out infinite; }
  .snap__scan { animation: scan 3.2s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- VeltTag fallback page (/t/{tag}) ---------- */

.tag-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.tag-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
  background:
    radial-gradient(520px 360px at 50% 20%, rgba(138, 245, 192, 0.08), transparent 70%);
}
/* Dark-emerald pass card. */
.tag-card {
  --emerald-deep: #0D1D18;
  width: min(440px, 100%);
  padding: 28px 20px 24px;
  border-radius: 28px;
  background:
    radial-gradient(360px 220px at 50% 0%, rgba(138, 245, 192, 0.16), transparent 70%),
    linear-gradient(170deg, #12302A 0%, var(--emerald-deep) 46%, #0B1714 100%);
  border: 1px solid rgba(138, 245, 192, 0.24);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}
.tag-card .store-btn:not(.store-btn--badge) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), rgba(9, 16, 14, 0.7);
  border-color: rgba(138, 245, 192, 0.2);
}
.tag-card .store-btn:not(.store-btn--badge):hover { border-color: rgba(138, 245, 192, 0.4); }
@media (min-width: 480px) { .tag-card { padding: 32px 32px 28px; } }
.tag-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 650;
}
.tag-card__mark { width: 22px; height: 20px; flex: 0 0 auto; }
.tag-card[data-state="valid"] [data-show]:not([data-show~="valid"]),
.tag-card[data-state="invalid"] [data-show]:not([data-show~="invalid"]),
.tag-card[data-state="loading"] [data-show]:not([data-show~="loading"]) { display: none; }
.tag-card__title {
  font-size: clamp(1.5rem, 0.9rem + 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.tag-card[data-state="invalid"] .tag-card__title { font-size: clamp(1.375rem, 0.9rem + 3vw, 2rem); }
.tag-handle { color: var(--mint); }
.tag-card__lede { margin: 10px auto 0; max-width: 30ch; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.tag-card .stores { margin-top: 26px; flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.tag-card .store-slot { align-items: stretch; }
.tag-card .store-rec { align-self: center; }
.tag-card .store-frame .store-btn:not(.store-btn--badge) { width: 100%; justify-content: center; }
.tag-card .store-frame:has(.store-btn--badge) { align-self: center; }
.tag-card__note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.tag-card__note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; color: var(--mint); }
.tag-card__foot { margin-top: 10px; font-size: 14px; color: var(--muted); }
.tag-card__foot a {
  display: inline-block;
  padding-block: 12px;
  line-height: 20px;
  color: var(--mint);
  font-weight: 600;
  text-underline-offset: 4px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.tag-footer { padding-block: 24px 32px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); text-align: center; }
.tag-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tag-footer__tm { max-width: 60ch; margin-block: 6px; font-size: 12px; line-height: 1.55; }
.tag-footer__home { display: inline-flex; align-items: center; min-height: 44px; color: var(--mint); font-weight: 600; text-underline-offset: 4px; border-radius: 8px; }
.tag-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; }
.tag-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-2); text-decoration: none; border-radius: 8px; }
.tag-footer nav a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Store status sheet ---------- */

.sheet {
  width: min(420px, calc(100% - 24px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.sheet::backdrop { background: rgba(4, 7, 10, 0.72); }
.sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 24px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  text-align: center;
}
@media (max-width: 599.98px) {
  .sheet { width: 100%; margin: auto 0 0; }
  .sheet__panel { border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}
.sheet__x {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.sheet__x:hover { background: var(--surface-2); color: var(--text); }
.sheet__x svg { width: 20px; height: 20px; }
.sheet__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint-wash);
  box-shadow: inset 0 0 0 1px rgba(138, 245, 192, 0.3);
  color: var(--mint);
}
.sheet__icon svg { width: 26px; height: 26px; }
.sheet__title { margin-top: 4px; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.sheet__text { max-width: 32ch; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.sheet__ok {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.sheet__ok:hover { background: #A2F8CF; }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] .sheet__panel { animation: sheet-in 220ms cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Very narrow layouts (small phones at 200% zoom and below) ---------- */

.stepper-card, .assure__receipt { container-type: inline-size; }
@container (max-width: 199.98px) {
  .stepper { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .step { flex-direction: row; text-align: left; }
  .step + .step::before { display: none; }
}
@container (max-width: 199.98px) {
  .token__digits span { white-space: normal; overflow-wrap: anywhere; }
}
@container (max-width: 219.98px) {
  .snap__value { white-space: normal; overflow-wrap: anywhere; }
  .snap__reticle { padding: 10px; }
}
@media (max-width: 299.98px) {
  /* The store buttons stack here, so a pinned header would cover too much of the screen. */
  .site-header { position: relative; top: 0; }
  .wrap { padding-inline: 12px; }
  .card .safe-panel, .card .guard__btn { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; }
  .hero__demo { zoom: 0.5; }
  .card { padding: 12px 12px 18px; }
  .card__visual { padding: 10px; }
  .perk { flex-direction: column; align-items: flex-start; padding: 12px; }
  .perk .nowrap { white-space: normal; }
  .tag-steps li { flex-direction: column; }
  .store-btn { height: auto; min-height: var(--badge-lg); padding: 4px 12px; gap: 8px; }
  .store-btn--compact { min-height: var(--badge-sm); }
  .store-btn:not(.store-btn--compact) .store-btn__glyph { display: none; }
  .store-btn__glyph { width: 20px; height: 20px; }
  .store-btn__name { font-size: 15px; }
  .store-btn__kicker, .store-btn__name { white-space: normal; }
  .tag-main { padding-inline: 12px; }
  .tag-card { padding: 22px 14px 18px; }
  .cta { padding: 28px 14px; }
  .qr-card { flex-direction: column; align-items: flex-start; }
}
