/* Cashoppa design system: orchid, citron, receipts and the hop. See DESIGN.md. */

@font-face {
  font-family: "Cashoppa Display";
  src: url("/static/fonts/inter-display-black.woff2") format("woff2"), url("/static/fonts/inter-display-black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Orchid and citron: the two colours no other European cashback brand uses. */
  --plum: #330f31;
  --plum-2: #4a1a47;
  --orchid: #b814ad;
  --orchid-hover: #9c0f93;
  --orchid-100: #f9e3f6;
  --orchid-300: #e88fe0;
  --citron: #dff540;
  --ink: #2b0d29;
  --muted: #6b5a68;
  --line: #eedfeb;
  --fog: #fbf6fa;
  --paper: #ffffff;
  --link: #96108d;
  --focus: #96108d;
  --soft: #f0ddee;

  /* Status */
  --ok: #0f8f5f;
  --ok-100: #dcf5e8;
  --ok-ink: #0b5e3e;
  --amber: #e0a100;
  --amber-100: #fff3c4;
  --amber-ink: #6e4e00;
  --orange: #e2661a;
  --orange-100: #ffe6d5;
  --orange-ink: #8a3a08;
  --red: #cf3a3a;
  --red-100: #fde7e7;

  --display: "Cashoppa Display", "Inter Display", "Inter", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-note: 22px;
  --r-panel: 20px;
  --r-control: 12px;
}

/* Shop tints, one per shop, picked from a hash of its name. */
.note-0 { --note: #f6ddf3; --note-ink: #6e0f67; }
.note-1 { --note: #f0f9b5; --note-ink: #4a5200; }
.note-2 { --note: #e6def7; --note-ink: #43287c; }
.note-3 { --note: #ffe3cf; --note-ink: #78380d; }
.note-4 { --note: #d8f0ec; --note-ink: #0e5a50; }
.note-5 { --note: #ffdde6; --note-ink: #84203f; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

h1, h2 { font-family: var(--display); font-weight: 900; color: var(--plum); letter-spacing: -0.035em; word-spacing: 0.06em; line-height: 1; }
/* Tight tracking eats the space before "lei"; give words back their room in every display figure. */
.receipt-amount, .rate-num, .balance-amount, .offer-amount, .purchase-amount strong, .stat strong { word-spacing: 0.1em; }
h1 { font-size: 2.8rem; margin: 28px 0 12px; }
h2 { font-size: 1.9rem; margin: 0 0 16px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; color: var(--plum); }
p { margin: 0 0 12px; }
a { color: var(--link); }
small { font-size: 0.82rem; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 660px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.inline { display: inline; margin: 0; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 50; background: var(--citron); color: var(--plum); padding: 10px 14px; border-radius: var(--r-control); font-weight: 700; }
.skip:focus { left: 16px; }

.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Brand ---------- */
.mark { width: 34px; height: 34px; flex-shrink: 0; }
.mark-bg { fill: var(--orchid); }
.mark-hop { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; }
.mark-coin { fill: var(--citron); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); }
.logo span { font-family: var(--display); font-weight: 900; font-size: 1.45rem; letter-spacing: -0.04em; line-height: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.08s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-orchid { background: var(--orchid); color: var(--paper); }
.btn-orchid:hover { background: var(--orchid-hover); }
.vault .btn-orchid { background: var(--citron); color: var(--plum); }
.vault .btn-orchid:hover { background: var(--paper); }
.btn-plum { background: var(--plum); color: var(--paper); }
.btn-plum:hover { background: var(--plum-2); }
.btn-line { background: var(--paper); color: var(--plum); border-color: var(--line); }
.btn-line:hover { border-color: var(--plum); }
.btn-quiet {
  display: inline-flex; align-items: center; padding: 8px 12px; border: 0; border-radius: 999px; background: none;
  font: inherit; font-weight: 650; color: var(--plum); text-decoration: none; cursor: pointer;
}
.btn-quiet:hover { background: var(--fog); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-strong { color: var(--link); font-weight: 700; text-decoration: none; padding-block: 2px; }
.link-strong:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--plum); text-decoration: none; font-weight: 600; }
.nav-links a:hover { background: var(--fog); }
.nav-account { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); cursor: pointer; color: var(--plum);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav {
  position: absolute; right: 0; top: 54px; min-width: 230px; display: grid; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 40px -22px rgba(51, 15, 49, 0.4);
}
.nav-mobile nav a { padding: 11px 14px; border-radius: 12px; color: var(--plum); text-decoration: none; font-weight: 650; }
.nav-mobile nav a:hover { background: var(--fog); }

/* ---------- Feedback ---------- */
.toast { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.toast-ok { background: var(--ok-100); color: var(--ok-ink); }
.toast-err { background: var(--red-100); color: var(--red); }
.toast-warn { background: var(--citron); color: var(--plum); }
.toast ul { margin: 0; padding-left: 18px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.chip-ok { background: var(--ok-100); color: var(--ok-ink); }
.chip-warn { background: var(--amber-100); color: var(--amber-ink); }
.chip-err { background: var(--red-100); color: var(--red); }
.chip-muted { background: var(--fog); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; }
.pill .i { width: 16px; height: 16px; }
.pill-bonus { background: rgba(255, 255, 255, 0.85); color: var(--note-ink, var(--plum)); }
.pill-plain { padding-left: 11px; border: 1.5px solid; border-color: color-mix(in srgb, var(--note-ink, var(--muted)) 25%, transparent); color: var(--note-ink, var(--muted)); font-weight: 600; }
.empty { display: flex; align-items: center; gap: 14px; padding: 24px; border: 2px dashed var(--line); border-radius: var(--r-panel); background: var(--paper); color: var(--muted); }
.empty p { margin: 0; }
.empty .i { width: 28px; height: 28px; color: var(--ok); }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.note p { margin: 0; }
.note .i { color: var(--orange); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding-top: 80px; }
.section-tight { padding-top: 32px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.section-head .section-title { margin: 0; }
.section-title { font-size: 2.1rem; margin: 0 0 24px; }
.page-head { padding-top: 28px; }
.page-head h1 { font-size: 3.2rem; margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.h-small { font-family: var(--text); font-weight: 750; font-size: 1.12rem; letter-spacing: 0; line-height: 1.3; color: var(--plum); margin: 32px 0 14px; }

/* ---------- Coins: a shop's initial in its note colour ---------- */
.coin {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--note); color: var(--note-ink);
  font-family: var(--display); font-weight: 900; font-size: 1.15rem; line-height: 1;
}
.coin-sm { width: 30px; height: 30px; font-size: 0.9rem; }
.coin-lg { width: 50px; height: 50px; font-size: 1.35rem; }

/* ---------- Shop tiles: small notes with an edge band and a dominant value ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 18px 62px; overflow: hidden;
  border-radius: var(--r-note); color: var(--note-ink); text-decoration: none;
  background: var(--note) url("/static/guilloche.svg") repeat-x 0 58% / 480px 96px;
  transition: box-shadow 0.15s, transform 0.2s;
}
.tile-edge {
  position: absolute; inset: 0 auto 0 0; width: 42px; display: grid; place-items: center;
  background: var(--note-ink); color: var(--paper);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--display); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.02em;
}
/* The home page shows the shops as a loose wall of notes. */
@media (min-width: 761px) {
  .page-home .tile:nth-child(3n + 1) { transform: rotate(-1.2deg); }
  .page-home .tile:nth-child(3n + 2) { transform: rotate(0.8deg); }
  .page-home .tile:nth-child(3n) { transform: rotate(-0.5deg); }
  .page-home .tile:hover, .page-home .tile:focus-visible { transform: none; }
}
.tile:hover { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--note-ink) 35%, transparent); }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tile-name { display: grid; }
.tile-name strong { font-size: 1.1rem; }
.tile-name span { font-size: 0.86rem; }
.window {
  display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.45) 62%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.95), inset 0 0 0 6px rgba(255, 255, 255, 0.28);
  font-family: var(--display); font-weight: 900; font-size: 1.2rem; color: var(--note-ink);
}
.window-xl { width: 88px; height: 88px; font-size: 2.3rem; }
.tile-rate { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.rate-num { font-family: var(--display); font-weight: 900; font-size: 3.2rem; line-height: 0.9; letter-spacing: -0.045em; }
.rate-word { font-weight: 700; }
.tile-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1.5px dashed color-mix(in srgb, var(--note-ink) 25%, transparent); font-size: 0.86rem; font-weight: 550; }
.tile-foot .i { width: 17px; height: 17px; }

/* ---------- Receipts: every purchase is a slip with a torn edge ---------- */
.receipt {
  position: relative; display: block; margin: 0 0 10px; padding: 24px;
  background: var(--paper); border-radius: 18px 18px 0 0; color: var(--ink);
  filter: drop-shadow(0 1px 1px rgba(51, 15, 49, 0.12)) drop-shadow(0 12px 22px rgba(51, 15, 49, 0.07));
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px;
  background: conic-gradient(from -45deg at 50% 100%, var(--paper) 90deg, transparent 0) 0 0 / 18px 9px repeat-x;
}
.receipt-head { display: flex; align-items: center; gap: 14px; padding-right: 112px; }
.receipt-who { display: grid; }
.receipt-who strong { font-size: 1.08rem; color: var(--plum); }
.receipt-who span { color: var(--muted); font-size: 0.9rem; }
.receipt-money { display: grid; margin-top: 20px; }
.receipt-label { color: var(--muted); font-size: 0.92rem; font-weight: 650; }
.receipt-amount { font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; color: var(--plum); }
.receipt-note { color: var(--muted); font-size: 0.86rem; margin-top: 6px; }
.hl {
  padding: 0 0.08em; margin: 0 -0.08em;
  background: linear-gradient(100deg, transparent 1%, var(--citron) 3%, var(--citron) 97%, transparent 99%) 0 78% / 100% 52% no-repeat;
}
.rule { height: 0; margin: 22px 0; border-top: 2px dashed var(--line); }
.stamp {
  position: absolute; top: 22px; right: 20px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border: 2px solid var(--ok); border-radius: 10px; color: var(--ok-ink);
  font-family: var(--display); font-weight: 900; font-size: 0.95rem; letter-spacing: -0.01em; transform: rotate(-7deg);
}
.stamp .i { width: 18px; height: 18px; }

/* ---------- Tracker ---------- */
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.st { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.st:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -14px; width: 2px; background: var(--line); }
.st-done:not(:last-child)::before { background: var(--ok); }
.st-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); color: var(--paper); }
.st-dot .i { width: 15px; height: 15px; stroke-width: 2.6; }
.st-done .st-dot { background: var(--ok); border-color: var(--ok); }
.st-now .st-dot { border-color: var(--amber); background: var(--amber-100); box-shadow: 0 0 0 4px rgba(224, 161, 0, 0.2); }
.st-now .st-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.st-late .st-dot { background: var(--orange); border-color: var(--orange); }
.st-fail .st-dot { background: var(--red); border-color: var(--red); }
.st-text { display: grid; padding-top: 3px; }
.st-label { font-weight: 700; font-size: 0.95rem; color: var(--plum); }
.st-detail { color: var(--muted); font-size: 0.85rem; }
.st-todo .st-label { color: var(--muted); font-weight: 550; }
.st-late .st-label { color: var(--orange-ink); }
.st-fail .st-label { color: var(--red); }

/* ---------- Plum vault surfaces (balance, guarantee, auth) ---------- */
.vault {
  --focus: var(--citron);
  color: var(--paper);
  background: var(--plum) url("/static/guilloche-citron.svg") repeat-x 0 calc(100% + 34px) / 480px 96px;
}
.vault h2 { color: var(--paper); }
.seal {
  position: relative; display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  background: var(--orchid); color: var(--paper);
}
.seal::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px dashed currentColor; opacity: 0.45; }
.vault .seal::after { border-color: var(--citron); }
.seal .i { width: 30px; height: 30px; }
.seal-lg { width: 84px; height: 84px; margin: 12px 0 8px 8px; }
.seal-lg .i { width: 40px; height: 40px; }

/* ---------- Home ---------- */
.hero { background: var(--paper) url("/static/guilloche.svg") repeat-x 0 calc(100% - 28px) / 480px 96px; border-bottom: 1px solid var(--line); }
.hero { overflow-x: clip; } /* The stamp's landing animation must not widen the page on phones. */
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 5.5rem); line-height: 0.92; letter-spacing: -0.045em; word-spacing: 0.1em; margin: 0 0 24px; max-width: 11ch; }
.hero-lead { color: var(--muted); font-size: 1.2rem; max-width: 44ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promises li { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.promises .i { color: var(--ok); width: 22px; height: 22px; }
.vault .promises .i { color: var(--citron); }

.hero-visual { width: 100%; max-width: 500px; justify-self: end; }
.hop-row { position: relative; aspect-ratio: 520 / 236; }
.hop { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; }
.hop-path { fill: none; stroke: var(--plum); stroke-opacity: 0.4; stroke-width: 3; stroke-dasharray: 0.1 11; stroke-linecap: round; }
.hop-coin { fill: var(--citron); stroke: var(--plum); stroke-width: 3; }
.hop-coin-still { display: none; }
.hop-end {
  position: absolute; bottom: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 700; white-space: nowrap;
}
.hop-from { left: 0; background: var(--paper); border: 1.5px solid var(--line); color: var(--plum); }
.hop-to { right: 0; background: var(--plum); color: var(--paper); }
.hop-to .i { color: var(--citron); }
.receipt-hero { margin: 18px auto 0; max-width: 420px; transform: rotate(-1.5deg); }

/* The three steps are a series of vertical notes: one colour each, the number dominant, an edge band. */
.hops { list-style: none; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hops li {
  position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 18px 24px 26px 46px; overflow: hidden;
  border-radius: var(--r-note); background: var(--orchid-100); color: var(--plum);
}
.hops li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 22px; background: var(--orchid); }
.hops li:nth-child(2) { background: var(--citron); }
.hops li:nth-child(2)::before { background: var(--plum); }
.hops li:nth-child(3) { background: var(--orchid); color: var(--paper); }
.hops li:nth-child(3)::before { background: var(--citron); }
.hops h3 { margin: auto 0 8px; color: inherit; font-size: 1.35rem; }
.hops p { margin: 0; max-width: 34ch; color: inherit; }
.hop-n { font-family: var(--display); font-weight: 900; font-size: 8.5rem; line-height: 1; letter-spacing: -0.05em; }

/* The swallow. On light surfaces the citron wing multiplies over the orchid body, like two inks on one print. */
.swallow { display: block; width: 100%; height: auto; overflow: visible; }
.sw-body { fill: var(--orchid); }
.sw-wing { fill: var(--citron); mix-blend-mode: multiply; }
.sw-eye { fill: var(--paper); }
.hero-visual { position: relative; }
.swallow-hero { position: absolute; z-index: 2; top: -6px; left: 8%; width: 132px; }
.swallow-sm { flex: none; width: 56px; }
.home-vault {
  overflow-x: clip;
  background:
    radial-gradient(52% 78% at 84% 8%, color-mix(in srgb, var(--orchid) 52%, transparent), transparent 72%),
    url("/static/guilloche-citron.svg") repeat-x 0 calc(100% + 40px) / 480px 96px,
    var(--plum);
}
.home-vault-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: center; padding-top: 44px; padding-bottom: 72px; }
.home-copy h1 { text-wrap: balance; }
.home-copy h1 em { font-style: normal; color: var(--citron); white-space: nowrap; }

/* The living receipt: pick a real shop and a basket, and it prints what comes back and by when. */
.bon { position: relative; display: grid; gap: 8px; min-width: 0; }
.bon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.bon-pick[hidden], .bon-size[hidden] { display: none; }
.bon-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--paper) 34%, transparent); background: color-mix(in srgb, var(--plum) 62%, transparent);
  color: var(--paper); font: inherit; font-size: 0.92rem; font-weight: 650;
}
.bon-chip span { color: var(--citron); font-family: var(--display); font-weight: 900; }
.bon-chip:hover { border-color: var(--citron); }
.bon-chip[aria-pressed="true"] { background: var(--citron); border-color: var(--citron); color: var(--plum); }
.bon-chip[aria-pressed="true"] span { color: var(--plum); }
.bon .hop-row { aspect-ratio: auto; height: 74px; }
.bon .hop { top: auto; bottom: -6px; height: 100px; }
.bon .hop-path { stroke: var(--citron); stroke-opacity: 0.75; }
.bon .hop-end { bottom: 6px; top: auto; }
.bon .hop-from { background: var(--paper); border-color: transparent; color: var(--plum); }
.bon .hop-to { background: var(--citron); color: var(--plum); }
.bon .hop-to .i { color: var(--plum); }
.bon .receipt-hero { --focus: var(--link); margin: 0; padding: 20px 22px; max-width: none; display: grid; gap: 12px; transform: rotate(-1deg); }
.bon .receipt-money { margin-top: 0; }
.bon .receipt-amount { font-size: clamp(2.5rem, 5vw, 3.2rem); }
.bon .track-row .st { padding-right: 10px; align-content: start; }
.bon .st-label, .bon .st-detail { font-size: 0.86rem; }
.bon-size { display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; font-weight: 650; }
.bon-size input { width: 100%; height: 28px; margin: 0; accent-color: var(--orchid); }
.bon-year { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding-top: 10px; border-top: 2px dashed var(--line); color: var(--muted); font-size: 0.92rem; font-weight: 650; }
.bon-year strong { font-family: var(--display); font-weight: 900; font-size: 1.7rem; letter-spacing: -0.03em; word-spacing: 0.1em; color: var(--plum); }
.bon-year small { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 400; }
.swallow-perch { position: absolute; top: 2px; right: 6px; width: 66px; max-width: none; pointer-events: none; }

/* Three things anyone can check. */
.trust3 { display: grid; gap: 22px; justify-items: start; padding: 36px; border-radius: 28px; }
.trust3 h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.trust3-list { list-style: none; width: 100%; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trust3-list a { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; height: 100%; padding: 18px 20px; border-radius: var(--r-panel); background: color-mix(in srgb, var(--paper) 9%, var(--plum)); color: var(--paper); text-decoration: none; }
.trust3-list a:hover { background: color-mix(in srgb, var(--paper) 16%, var(--plum)); }
.trust3-list h3 { margin: 0; color: var(--citron); font-size: 1.15rem; }
.trust3-list p { margin: 0; color: var(--soft); font-size: 0.95rem; }
.trust3-list strong { font-family: var(--display); font-weight: 900; color: var(--paper); }
.trust3-list span { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.home-copy { display: grid; gap: 16px; justify-items: start; max-width: 620px; }
.home-copy h1 { font-size: clamp(3rem, 7vw, 5.2rem); line-height: 0.95; letter-spacing: -0.045em; word-spacing: 0.1em; margin: 0; color: var(--paper); }
.home-promise { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--citron); }
.home-copy .hero-lead { margin: 0; color: var(--soft); font-size: 1.08rem; }
.home-copy .searchbar { width: 100%; margin: 0; }
.home-note { margin: 0; font-size: 0.86rem; color: var(--soft); }
.home-money { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; }
.home-money dt { font-size: 0.9rem; font-weight: 600; color: var(--soft); }
.home-money dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: 2rem; letter-spacing: -0.03em; word-spacing: 0.1em; color: var(--citron); }
.swallow-vault { max-width: 340px; justify-self: end; }
.swallow-vault .sw-body { fill: var(--orchid-300); }
.swallow-vault .sw-wing { fill: var(--citron); mix-blend-mode: normal; }
.swallow-vault .sw-eye { fill: var(--plum); }
.page-home .hops li { min-height: 270px; }
.offer-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.offer-card .muted { margin: 4px 0 0; }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offer-phone { display: none; }

/* "Money back" in the alphabets of Europe. */
.tongues { background: var(--citron); color: var(--plum); }
.tongues-in { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.tongues p { margin: 0; font-size: 0.86rem; font-weight: 650; line-height: 1.5; }
.tongues .sw-body { fill: var(--plum); }
.tongues .sw-wing { fill: var(--orchid); mix-blend-mode: normal; }
.tongues .sw-eye { fill: var(--citron); }


/* ---------- Catalogue ---------- */
.searchbar {
  display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 24px 0 16px; padding: 6px 6px 6px 18px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
}
.searchbar:focus-within { border-color: var(--link); outline: 3px solid var(--focus); outline-offset: 2px; }
.searchbar .i { color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; border: 0; padding: 10px 4px; font-size: 1.05rem; background: transparent; }
.searchbar input:focus-visible { outline: none; box-shadow: none; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { padding: 8px 15px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--plum); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.cat:hover { border-color: var(--plum); }
.cat.is-on { background: var(--plum); border-color: var(--plum); color: var(--paper); }

/* ---------- Merchant page ---------- */
.m-band { color: var(--note-ink); background: var(--note) url("/static/guilloche.svg") repeat-x 0 100% / 480px 96px; }
.m-band-in { padding-top: 26px; padding-bottom: 150px; }
.crumbs { display: flex; gap: 8px; font-size: 0.9rem; font-weight: 600; margin: 0; }
.crumbs a { color: inherit; padding-block: 3px; }
.merchant-title { display: flex; align-items: center; gap: 22px; margin-top: 22px; max-width: 640px; }
.merchant-title h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 0 0 6px; color: var(--note-ink); letter-spacing: -0.045em; }
.merchant-title .lead { margin: 0; color: var(--note-ink); opacity: 0.85; }
.merchant { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }
.merchant-main { padding-top: 28px; grid-column: 1; grid-row: 1; }
.howto { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 60ch; }
.howto li { counter-increment: how; position: relative; padding-left: 46px; }
.howto li::before {
  content: counter(how); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--orchid); color: var(--paper); font-family: var(--display); font-weight: 900; font-size: 0.9rem;
}
.offer { position: sticky; top: 92px; grid-column: 2; grid-row: 1; margin-top: -118px; padding: 24px 24px 44px; border-radius: var(--r-panel); display: flex; flex-direction: column; gap: 14px; background-position: 0 calc(100% + 52px); }
.offer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.offer-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--soft); }
.offer-rate { display: block; font-family: var(--display); font-weight: 900; font-size: 5rem; line-height: 1; letter-spacing: -0.05em; color: var(--citron); }
.offer-example { text-align: right; }
.offer-amount { display: block; font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--citron); white-space: nowrap; }
.offer-bonus { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.92rem; color: var(--soft); }
.offer-bonus .i { flex: none; color: var(--citron); }
.offer-facts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; color: var(--soft); }
.offer-facts li { display: flex; gap: 10px; align-items: flex-start; }
.offer-facts .i { flex: none; color: var(--citron); }
.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; max-width: 60ch; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .i { flex: none; color: var(--ok); }
.shop-bar { display: none; }
.offer .stamp { top: 22px; right: 20px; bottom: auto; border-color: var(--citron); color: var(--citron); }
.page-merchant .offer { margin-top: -300px; }
.offer-example { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; }
.offer-size { display: block; margin-top: -6px; }
.offer-size[hidden] { display: none; }
.offer-size input { width: 100%; height: 28px; margin: 0; accent-color: var(--citron); }
.offer-history { margin: 0; padding: 10px 12px; border-radius: var(--r-control); background: color-mix(in srgb, var(--paper) 10%, var(--plum)); font-size: 0.92rem; color: var(--soft); }
.offer-history strong { color: var(--citron); }
.offer-alert { margin: 0; padding: 10px 12px; border-radius: var(--r-control); background: var(--amber-100); color: var(--amber-ink); font-size: 0.92rem; font-weight: 650; }
.offer-alert[hidden] { display: none; }
.offer-login, .offer-small { margin: 0; font-size: 0.86rem; color: var(--soft); }
.offer-login { text-align: center; font-size: 0.95rem; }
.offer-login a, .offer-codes { color: var(--citron); font-weight: 700; }
.offer-codes { font-size: 0.95rem; }
.m-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; }
.m-facts li { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 62%, transparent); color: var(--note-ink); font-size: 0.86rem; font-weight: 650; }
.preflight-ok { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-control); background: var(--ok-100); color: var(--ok-ink); font-weight: 650; }
.preflight-ok[hidden] { display: none; }
.preflight-ok .i { flex: none; }
.preflight-bait { position: absolute; left: -999px; top: 0; width: 10px; height: 10px; }

/* ---------- Auth ---------- */
.auth {
  display: grid; grid-template-columns: 0.9fr 1.1fr; max-width: 1000px; margin: 40px auto 0; padding: 0;
  border-radius: 28px; overflow: hidden; background: var(--paper); border: 1px solid var(--line);
}
.auth-side { padding: 40px; }
.auth-side .mark { width: 52px; height: 52px; }
.auth-side .mark-bg { fill: var(--orchid); }
.auth-side h2 { font-size: 2rem; margin: 24px 0 26px; }
.auth-form { padding: 40px 44px; }
.auth-form h1 { margin-top: 0; font-size: 2.3rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; margin-bottom: 16px; }
label { display: grid; gap: 6px; font-weight: 650; font-size: 0.92rem; color: var(--plum); }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-control); transition: border-color 0.15s;
}
input:hover, select:hover, textarea:hover { border-color: #cdbcca; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(184, 20, 173, 0.16); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 450; color: var(--ink); }
label.check input { width: 20px; height: 20px; accent-color: var(--plum); }
.input-suffix { position: relative; display: block; }
.input-suffix input { padding-right: 48px; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 650; }

/* ---------- Wallet ---------- */
.balance { display: grid; grid-template-columns: 1.4fr 1fr; border-radius: 28px; overflow: hidden; }
.balance-main { padding: 34px 38px 38px; }
.balance-label { color: #f0ddee; font-weight: 650; }
.balance-amount { display: block; margin: 6px 0 24px; font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 0.95; letter-spacing: -0.045em; color: var(--citron); }
.balance-bar { display: block; width: 100%; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.seg-avail { fill: var(--citron); }
.seg-pend { fill: var(--orchid-300); }
.seg-paid { fill: rgba(255, 255, 255, 0.35); }
.balance-legend { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 30px; margin: 16px 0 0; }
.balance-legend dt { display: flex; align-items: center; gap: 7px; color: #f0ddee; font-size: 0.86rem; }
.balance-legend dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.key { width: 10px; height: 10px; border-radius: 50%; }
.key-avail { background: var(--citron); }
.key-pend { background: var(--orchid-300); }
.key-paid { background: rgba(255, 255, 255, 0.45); }
.balance-side { display: flex; align-items: center; padding: 34px 38px; background: rgba(255, 255, 255, 0.05); border-left: 2px dashed rgba(255, 255, 255, 0.16); }
.withdraw { display: grid; gap: 12px; width: 100%; }
.withdraw label { color: var(--paper); }
.withdraw small { color: #f0ddee; }
.withdraw p { margin: 0; color: #f6e9f4; }
.withdraw > .i { width: 30px; height: 30px; color: var(--citron); }

.purchases { display: grid; gap: 22px; }
.purchase { display: grid; gap: 20px; margin: 0; padding: 22px 24px; }
.purchase-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.purchase-who { display: grid; min-width: 0; }
.purchase-who a { color: var(--plum); font-weight: 750; font-size: 1.05rem; text-decoration: none; }
.purchase-who a:hover { text-decoration: underline; }
.purchase-who span { color: var(--muted); font-size: 0.88rem; }
.purchase-amount { display: grid; text-align: right; }
.purchase-amount strong { font-family: var(--display); font-weight: 900; font-size: 1.75rem; letter-spacing: -0.03em; color: var(--plum); line-height: 1.05; }
.purchase-amount span { color: var(--muted); font-size: 0.8rem; }
.purchase.is-late { box-shadow: inset 0 4px 0 var(--orange); }
.purchase.is-void .purchase-amount strong { color: var(--muted); text-decoration: line-through; }
.purchase-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--orange-100); }
.purchase-action p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--orange-ink); font-weight: 650; }

.visits { list-style: none; margin: 12px 0 0; padding: 0; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); }
.visits li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.visits li:last-child { border-bottom: 0; }
.visit-name { flex: 1; font-weight: 700; color: var(--plum); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 26px; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); }
.panel .h-small { margin-top: 0; }
.panel-danger { border-color: var(--red); }
.btn-danger { background: var(--red); color: var(--paper); }
.btn-danger:hover { filter: brightness(0.92); }
.facts { display: grid; gap: 12px; margin: 0 0 16px; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.facts-row { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.facts-row dd { font-family: var(--display); font-weight: 900; font-size: 1.3rem; color: var(--plum); }
.legal h2 { margin-top: 28px; }
.install-steps { margin-top: 24px; }
.install-steps ol { margin: 0; padding-left: 20px; }
.legal ul { padding-left: 20px; }
.steps-list { margin: 0 0 12px; padding-left: 20px; }
.setup-form { margin-top: 16px; margin-bottom: 0; }
.recovery { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 16px; padding: 0; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orchid); color: var(--paper); font-size: 0.75rem; font-weight: 700; }
.nav-mobile summary { position: relative; }
.badge-menu { position: absolute; top: -4px; right: -4px; }
.news { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.news li.is-milestone { background: var(--citron); color: var(--plum); }
.proof-mine { display: grid; gap: 12px; justify-items: start; }
.proof-mine p { margin: 0; }
.proof-result:empty { display: none; }
.proof-result { font-weight: 650; color: var(--plum); }
.proof-result.is-good { color: var(--ok-ink); }
.proof-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.proof-history li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-control); background: var(--paper); border: 1px solid var(--line); }
.proof-history code { font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }
.quick-title { margin: 18px 0 8px; font-size: 1rem; font-weight: 650; color: inherit; }
.quick { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.quick a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: var(--r-control); background: var(--paper); color: var(--plum); text-decoration: none; }
.quick-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.quick-go { font-size: 0.86rem; font-weight: 650; color: var(--link, #96108D); }
.auth-next { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-control); background: var(--orchid-100); color: var(--plum); font-weight: 650; }
.searchbar { position: relative; }
.search-hits { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; border-radius: var(--r-panel); background: var(--paper); border: 1.5px solid var(--line); color: var(--plum); box-shadow: 0 14px 30px rgba(51, 15, 49, 0.22); }
.search-hits[hidden] { display: none; }
.search-hits a { --focus: var(--link); display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: var(--r-control); color: var(--plum); text-decoration: none; }
.search-hits a:hover, .search-hits a:focus-visible { background: var(--orchid-100); }
.search-hits span { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.search-hits small { color: var(--muted); }
.search-hits strong { font-family: var(--display); font-weight: 900; }
.search-none { padding: 12px; color: var(--muted); }
.offer-live { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r-control); background: var(--citron); color: var(--plum); font-size: 0.92rem; }
.offer-live .i { flex: none; }
.quick-on { display: inline-flex; align-items: center; gap: 3px; color: var(--ok-ink); }
.quick-on .i { width: 15px; height: 15px; }
.voucher-go { justify-self: start; }
.voucher-go[hidden] { display: none; }
.tabbar { display: none; }
.purchase-more { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.purchase-more summary { min-height: 32px; cursor: pointer; }
.purchase-more .track { margin-top: 10px; color: var(--ink); }
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 76px; }
.pw button { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--link); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.bank-off { margin-top: 14px; }
.purchase-early { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; }
.purchase-early .i, .purchase-early-offer .i { flex: none; color: var(--link); }
.purchase-early-offer { background: var(--orchid-100); }
.purchase-early-offer p { display: flex; align-items: flex-start; gap: 8px; color: var(--plum); font-weight: 400; }
.from-badge { background: var(--citron); color: var(--plum); }
.from-badge p { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 0; font-weight: 650; }
.from-badge .i { flex: none; margin-top: 2px; }
.badge-preview { display: block; max-width: 100%; height: auto; }
.visit-promise { display: grid; justify-items: end; gap: 2px; text-align: right; }
.visit-promise small { color: var(--muted); font-size: 0.8rem; }
.choices { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.choices legend { font-weight: 650; margin-bottom: 4px; }
.no-fees { margin: 10px 0 0; font-size: 0.86rem; color: var(--soft); }
.goal { display: grid; gap: 8px; }
.goal label { font-weight: 650; color: var(--plum); }
.goal progress { width: 100%; height: 12px; accent-color: var(--orchid); }
.goal .muted { margin: 0; font-size: 0.86rem; }
.next-money { margin: 12px 0 0; }
.journey-bonus { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-control); background: var(--citron); color: var(--plum); font-weight: 650; }
.journey-follow { display: flex; flex-wrap: wrap; gap: 8px; }
.news li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-control); background: var(--orchid-100); color: var(--plum); }
.score { margin-top: 28px; }
.score-rate { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; font-family: var(--display); font-weight: 900; font-size: 2.6rem; color: var(--plum); }
.score-rate span { font-family: var(--text); font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.trust-wait { color: var(--muted); }
.ticks-plain { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.faq { display: grid; gap: 8px; }
.faq details { padding: 14px 16px; border-radius: var(--r-control); background: var(--paper); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; color: var(--plum); }
.faq p { margin: 10px 0 0; }
.ticket { margin-top: 12px; }
.vouchers { list-style: none; margin: 12px 0 24px; padding: 0; display: grid; gap: 10px; }
.vouchers li { display: grid; gap: 6px; padding: 16px; overflow-wrap: anywhere; }
.journey { margin-top: 12px; }
.journey li { display: grid; gap: 2px; }
.journey li.is-done strong { text-decoration: line-through; opacity: 0.6; }
.journey li.is-done span { opacity: 0.6; }
.alert-list { margin-bottom: 16px; border-left: 4px solid var(--red); }
.alert-list ul { margin: 8px 0 0; padding-left: 20px; }
.ticket-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.share-label { margin: 16px 0 6px; font-weight: 700; color: var(--plum); }
.share-link { margin: 0; padding: 12px 14px; border-radius: var(--r-control); background: var(--fog); color: var(--plum); font-weight: 650; overflow-wrap: anywhere; user-select: all; }
.note { margin: 0; padding: 10px 12px; border-radius: var(--r-control); background: var(--orchid-100); color: var(--plum); font-size: 0.92rem; }
.payouts { list-style: none; margin: 0; padding: 0; }
.payouts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.payouts li:last-child { border-bottom: 0; }
.payouts span { display: grid; }
.payouts strong { font-variant-numeric: tabular-nums; color: var(--plum); }
.payouts small { color: var(--muted); }

/* ---------- Guarantee ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rule-col { padding: 26px; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); }
.rule-yes { background: var(--orchid-100); border-color: transparent; }
.rule-col .h-small { margin-top: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--ok); margin-top: 2px; }
.ticks-no .i { color: var(--red); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); }
.steps p { margin: 0; }
.step-n {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--orchid); color: var(--paper); font-family: var(--display); font-weight: 900;
}

/* ---------- Footer ---------- */
.footer { margin-top: 104px; background: var(--plum); color: #f0ddee; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 30px; padding-bottom: 30px; }
.footer .logo { color: var(--paper); }
.footer .mark { width: 28px; height: 28px; }
.footer .mark-bg { fill: var(--orchid); }
.footer .logo span { font-size: 1.2rem; }
.footer p { margin: 0; font-size: 0.9rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer nav a { color: var(--paper); font-size: 0.9rem; display: inline-block; padding-block: 3px; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
.footer { --focus: var(--citron); }
.message { text-align: left; }

/* ---------- Admin ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 4px; }
.subnav a { padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--plum); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.subnav a[aria-current="page"] { background: var(--plum); border-color: var(--plum); color: var(--paper); }
.admin h1 { font-size: 2.2rem; margin: 18px 0 8px; }
.admin .row-between h1 { margin-bottom: 8px; }
.admin .cats { margin: 4px 0 12px; }
.admin .table-wrap { margin-top: 12px; }
.admin .empty { margin-top: 12px; }
.admin-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.stat { display: grid; align-content: start; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.stat span { color: var(--muted); font-size: 0.86rem; }
.stat strong { font-family: var(--display); font-weight: 900; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--plum); line-height: 1.2; }
.stat small { color: var(--muted); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-wrap { overflow-x: auto; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data th, .data td { padding: 12px; white-space: nowrap; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data th { background: #fcf8fb; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.data tr:last-child td { border-bottom: 0; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.data td.actions { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.data td.actions form { margin: 0; }
.data td.actions input { padding: 6px 10px; font-size: 0.85rem; }
.row { display: flex; gap: 8px; align-items: flex-end; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Motion: one moment on the home page. The coin hops back, the wallet chip lands, the amount gets marked, the stamp hits. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hop-show.play .hop-to { animation: land 0.45s 1.4s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
  .hop-show.play .receipt-hero .hl { animation: mark 0.5s 1.7s ease-out both; }
  .hop-show.play .stamp { animation: stamp 0.45s 2.1s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .hop-coin-fly { display: none; }
  .hop-coin-still { display: inline; }
}
@keyframes land { from { opacity: 0; transform: translateY(8px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes mark { from { background-size: 0% 52%; } to { background-size: 100% 52%; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-7deg) scale(1.7); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .track-row { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .track-row .st { grid-template-columns: 1fr; gap: 10px; padding-right: 16px; }
  .track-row .st:not(:last-child)::before { left: 32px; right: 4px; top: 13px; bottom: auto; width: auto; height: 2px; }
}
@media (max-width: 980px) {
  .hero-in, .merchant, .balance, .split, .rules, .auth, .steps, .hops, .home-vault-in { grid-template-columns: 1fr; }
  .swallow-vault { display: none; }
  .trust3-list { grid-template-columns: 1fr; }
  .offer-phone { display: block; }
  .offer-phone[hidden], .offer-desktop { display: none; }
  .home-vault-in { padding-top: 28px; padding-bottom: 56px; }
  .hops li, .page-home .hops li { min-height: 0; }
  .hop-n { font-size: 3.6rem; }
  .hops h3 { margin: 6px 0 4px; }
  .hero-in { gap: 40px; padding-top: 44px; padding-bottom: 64px; }
  .hero-visual { justify-self: center; }
  .offer, .page-merchant .offer { position: relative; top: auto; margin-top: -110px; grid-column: 1; grid-row: auto; }
  .merchant { gap: 24px; }
  .merchant-main { grid-column: 1; grid-row: auto; padding-top: 0; }
  .shop-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--paper); border-top: 1px solid var(--line); }
  .shop-bar[hidden] { display: none; }
  .shop-bar strong { font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--plum); }
  .shop-bar .btn { flex: 1; }
  .page-merchant { padding-bottom: 72px; }
  html:has(.page-merchant) { scroll-padding-bottom: 88px; }
  .balance-side { border-left: 0; border-top: 2px dashed rgba(255, 255, 255, 0.16); }
  .hops { gap: 12px; }
  .hops li { min-height: 260px; }
  .hop-n { font-size: 6rem; }
  .swallow-hero { width: 96px; left: 2%; }
  .auth-side { display: none; }
}
@media (max-width: 820px) {
  .nav-links, .nav-account .btn-quiet:not(button) { display: none; }
  .nav-mobile { display: block; }
  .has-tabs { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 60px; color: var(--muted); font-size: 0.74rem; font-weight: 650; text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--link); }
  .tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
  .page-merchant .tabbar { display: none; }
  .topbar-in { gap: 12px; }
}
@media (max-width: 560px) {
  .page-catalog .page-head .lead { display: none; }
  .page-catalog .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .page-catalog .cat { flex: none; }
  .page-auth .auth-form h1 { font-size: 1.9rem; }
  .page-home .hero-lead { display: none; }
  .page-merchant .merchant-title .lead { display: none; }
  .page-merchant .merchant-title form { display: none; }
  .bon .hop-row { display: none; }
  .bon .receipt-hero { transform: none; padding: 18px; }
  .bon .st:first-child { display: none; }
  .bon-pick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .bon-chip { flex: none; }
  .trust3 { padding: 24px 16px; gap: 16px; }
  .trust3-list a { padding: 14px 16px; gap: 4px; }
  .trust3-list p { font-size: 0.9rem; }
  .page-home .home-vault-in { padding-bottom: 44px; gap: 24px; }
  .page-home .tiles, .page-catalog .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .page-home .tile:nth-child(n + 5) { display: none; }
  .page-home .tile .pill, .page-home .tile .tile-foot, .page-home .tile .rate-word, .page-home .tile .window, .page-home .tile-edge,
  .page-catalog .tile .pill, .page-catalog .tile .tile-foot, .page-catalog .tile .rate-word, .page-catalog .tile .window, .page-catalog .tile-edge { display: none; }
  .page-home .tile, .page-catalog .tile { padding: 14px; min-height: 0; }
  .page-home .tile-name strong, .page-catalog .tile-name strong { font-size: 1rem; overflow-wrap: anywhere; }
  .page-home .tile .rate-num, .page-catalog .tile .rate-num { font-size: 2rem; }
  .page-home .section { padding-top: 48px; }
  .home-copy .searchbar .btn { display: none; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 3.4rem; }
  .receipt { padding: 20px; }
  .receipt-head { padding-right: 0; }
  .stamp { top: auto; bottom: 20px; right: 16px; padding: 4px 9px; font-size: 0.82rem; }
  .stamp .i { width: 15px; height: 15px; }
  .receipt-amount { font-size: 2.9rem; }
  .hop-end { padding: 6px 11px; font-size: 0.8rem; gap: 6px; }
  .hop-end .i { width: 16px; height: 16px; }
  .purchase-head { grid-template-columns: auto 1fr; }
  .purchase-amount { grid-column: 1 / -1; text-align: left; }
  .purchase-action { flex-direction: column; align-items: stretch; }
  .balance-main, .balance-side { padding: 26px 24px; }
  .balance-legend { gap: 16px; }
  .auth-form { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 2.5rem; }
  .section { padding-top: 64px; }
  .section-title { font-size: 1.8rem; }
  .window-xl { width: 68px; height: 68px; font-size: 1.8rem; }
  .merchant-title { gap: 16px; }
}
