/* go.perkonova.com: the customer pages (functions/src/lib/webPage.ts) and the static ones here.
   No inline styles, no trackers, nothing from another site: the fonts are our own files (/fonts/, OFL; as WOFF2 from
   2026-11-17, the same glyphs in less than half the bytes) and the pictures are /art/ and /brand/ (2026-11-16,
   decisions.md §13). The customer pages' one script is their own and inline (functions/src/lib/pageScript.ts,
   2026-11-17): a picture's box shimmers until it loads, and a tapped button says it's working (.pic, .busy). The shop comes first: its card colour is the
   hero, and the page around it stays black and white with a small orange accent, as the Business app does.
   Layout: one column of 480 (a white sheet on a sky ground from 640 wide); logical properties, so Arabic reads right to
   left. */

@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/Figtree-Regular.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600 700; font-style: normal; font-display: swap; src: url(/fonts/Figtree-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/BricolageGrotesque-ExtraBold.woff2) format("woff2"); }

:root {
  color-scheme: light;
  /* The Business app's own tokens (design-prototype/src/design-a.css). */
  --ink: #0A0A0A;
  --ink-2: #404040;
  --muted: #6B6B6B;
  --line: #E5E5E5;
  --control: #737373;
  /* A field's edge (2026-11-22, design Version 56: "the fields should stand out"). */
  --field-line: #525252;
  --wash: #F5F5F5;
  --peach: #FFF3EB;
  --sky: #EDF4FC;
  --accent: #EA580C;
  --accent-ink: #C2410C;
  --ok: #15803D;
  --ok-wash: #E9F6EE;
  --error: #B91C1C;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --col: 480px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
::selection { background: var(--ink); color: #FFFFFF; }
input { caret-color: var(--ink); }

/* ── The top bar: our wordmark, small. The shop is the page's hero. ── */
.top { max-width: var(--col); margin: 0 auto; padding: 16px var(--gutter) 0; }
.wordmark { margin: 0; line-height: 0; }
.wordmark img { display: block; width: auto; height: 18px; }
/* The links page and older pages say it in words. */
.wordmark:not(:has(img)) { font: 800 20px/1 var(--display); letter-spacing: -0.02em; color: var(--accent-ink); line-height: 1.2; }
/* A static page in English and French (delete-account, 2026-11-27, the audit's F-100): the other language at the bar's
   end. The page's own language is the black one. The customer pages keep their language button in the foot. */
.top:has(.lang) { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.top .lang a, .top .lang [aria-current] {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 34px; padding: 0 10px;
  border-radius: 999px; font: 600 13px/1 var(--text); letter-spacing: .02em; text-decoration: none;
}
.top .lang a { color: var(--ink-2); }
.top .lang a:hover { background: var(--wash); color: var(--ink); }
.top .lang [aria-current] { background: var(--ink); color: #FFFFFF; }

/* ── The column ── */
main { max-width: var(--col); margin: 0 auto; padding: 20px var(--gutter) 28px; }
main > :last-child { margin-bottom: 0; }

h1 { margin: 0 0 12px; font: 800 30px/1.12 var(--display); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
h2 { margin: 32px 0 12px; font: 800 20px/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 12px; color: var(--ink-2); }
li { color: var(--ink-2); }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.note a { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* A picture over a page that has no shop: the app's own illustrations. */
.art { display: block; width: 112px; height: 112px; margin: 0 0 16px; border-radius: 22px; }

/* ── A picture in its own box (lib/webPage.ts picHtml), which shimmers until the picture is in (2026-11-17,
   lib/pageScript.ts). The picture stays hidden until it's whole, so a see-through logo never shows the shimmer through
   it. With reduced motion, a still tint. Apple's and Google's badges keep their own size and never fade. ── */
.pic { overflow: hidden; }
.pic:not(.badge) > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: opacity .2s ease-out; }
.pic.ld { background-color: rgba(10, 10, 10, .07); background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .62) 50%, transparent 70%); background-size: 250% 100%; background-repeat: no-repeat; animation: pic-shine 1.5s ease-in-out infinite; }
.pic.ld > img { opacity: 0; transition: none; }
.band.ink-w .pic.ld { background-color: rgba(255, 255, 255, .16); background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .34) 50%, transparent 70%); }
.reward-row .tile.pic.ld { background-color: var(--peach); }
@keyframes pic-shine { from { background-position: 120% 0; } to { background-position: -20% 0; } }

/* ── The shop: its card colour, as the hero ── */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  min-height: 104px; padding: 20px; margin: 0 0 24px;
  border-radius: 24px;
  background-color: var(--p, var(--wash));
}
/* Two soft discs of the band's own ink: depth, with no second colour. */
.band::before, .band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: currentColor; }
.band::before { width: 220px; height: 220px; inset-inline-end: -72px; top: -96px; opacity: .10; }
.band::after { width: 120px; height: 120px; inset-inline-end: 52px; bottom: -84px; opacity: .07; }
.band.ink-w { color: #FFFFFF; }
.band.ink-b { color: var(--ink); }
.band.p-0, .band.p-none { box-shadow: inset 0 0 0 1px var(--line); }
.band .shop-id { min-width: 0; }
.band .shop-name { margin: 0; font: 800 24px/1.15 var(--display); letter-spacing: -0.01em; color: inherit; overflow-wrap: anywhere; }
.band .shop-address { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: inherit; opacity: .9; overflow-wrap: anywhere; }
/* The logo (2026-11-17): no tile and no shadow, so a see-through logo sits on the shop's colour, and a box of the
   logo's own shape (lib/webPage.ts), so a wide one is whole and never in a square. Never stretched: `contain` (.pic). */
.band .logo { flex: none; display: block; width: 64px; height: 64px; border-radius: 12px; }
.band .logo.a-wide { width: 84px; height: 63px; }
.band .logo.a-landscape { width: 112px; height: 63px; }
.band .initials {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 16px; font: 800 22px/1 var(--display);
}
.band.ink-w .initials { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30); }
.band.ink-b .initials { background: rgba(10, 10, 10, .06); box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .10); }
/* A card on My cards: the same band, smaller. */
.mini .band { min-height: 0; padding: 14px 16px; margin: 0 0 14px; border-radius: 18px; gap: 12px; }
.mini .band::before { width: 150px; height: 150px; top: -70px; inset-inline-end: -50px; }
.mini .band::after { display: none; }
.mini .band .logo, .mini .band .initials { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.mini .band .logo { border-radius: 9px; }
.mini .band .logo.a-wide { width: 58px; height: 44px; }
.mini .band .logo.a-landscape { width: 78px; height: 44px; }
.mini .band .shop-name { font-size: 19px; }
.mini .band .shop-address { margin-top: 2px; font-size: 13px; }
.p-0 { --p: #FFFFFF; }
.p-1 { --p: #A3A3A3; }
.p-2 { --p: #0A0A0A; }
.p-3 { --p: #E2E8F0; }
.p-4 { --p: #64748B; }
.p-5 { --p: #0F172A; }
.p-6 { --p: #FECACA; }
.p-7 { --p: #DC2626; }
.p-8 { --p: #7F1D1D; }
.p-9 { --p: #FED7AA; }
.p-10 { --p: #F97316; }
.p-11 { --p: #9A3412; }
.p-12 { --p: #FEF08A; }
.p-13 { --p: #CA8A04; }
.p-14 { --p: #78350F; }
.p-15 { --p: #D9F99D; }
.p-16 { --p: #65A30D; }
.p-17 { --p: #365314; }
.p-18 { --p: #A7F3D0; }
.p-19 { --p: #059669; }
.p-20 { --p: #064E3B; }
.p-21 { --p: #A5F3FC; }
.p-22 { --p: #0891B2; }
.p-23 { --p: #164E63; }
.p-24 { --p: #BFDBFE; }
.p-25 { --p: #2563EB; }
.p-26 { --p: #1E3A8A; }
.p-27 { --p: #C7D2FE; }
.p-28 { --p: #4F46E5; }
.p-29 { --p: #312E81; }
.p-30 { --p: #E9D5FF; }
.p-31 { --p: #9333EA; }
.p-32 { --p: #581C87; }
.p-33 { --p: #FBCFE8; }
.p-34 { --p: #DB2777; }
.p-35 { --p: #831843; }

/* ── Where a sign-in is: Step 2 of 3 ── */
.steps { display: flex; gap: 6px; margin: 0 0 20px; }
.steps > span[aria-hidden] { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.steps > span.done[aria-hidden] { background: var(--ink); }
.steps > span.now[aria-hidden] { background: var(--accent); }

/* ── Buttons: black, one per page; the rest outlined ── */
.btn, .sheet-ok {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 14px 20px; margin: 0 0 10px;
  border: 0; border-radius: 14px; background: var(--ink); color: #FFFFFF;
  font: 600 17px/1.2 var(--text); text-align: center; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, transform .15s ease;
}
.btn:hover, .sheet-ok:hover { background: #262626; }
.btn:active, .sheet-ok:active { background: #2A2A2A; transform: scale(.985); }
.btn-2 { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1.5px #D4D4D4; }
.btn-2:hover { background: var(--wash); }
.btn-2:active { background: #EDEDED; }
.btn:focus-visible, .sheet-ok:focus-visible, .chip:focus-visible, .badge:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px;
}
form { margin: 0 0 12px; }
form .btn { margin: 8px 0 0; }
/* A tap that waits for its answer (2026-11-17, lib/pageScript.ts): the button shows a spinner and what it's doing, and
   the page's other buttons stop, dimmed. Apple's and Google's badges are never dimmed or covered: the line under them
   says it (.add-wait). The spinner is the shimmer's soft gradient, turning; with reduced motion, still. */
.spin {
  display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 15%, currentColor);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.btn.busy { cursor: progress; }
.btn.busy:active { transform: none; }
.btn:disabled:not(.busy), .waiting a.btn:not(.busy) { opacity: .45; cursor: default; }
.waiting a.btn, .waiting a.badge, .waiting button { pointer-events: none; }
.badge:disabled { opacity: 1; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
/* Apple's and Google's store badges (hosting/public/store-badges, 2026-11-16): the same height, side by side. They're as tall as
   the row allows, up to 44: 6.358 is the two badges' widths over their height (App Store 119.66 × 40, Google Play 478 × 142). Both
   companies ask for 40 at least, so below that they wrap instead (store-badges/README.md). */
.store-badges { container-type: inline-size; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 4px; }
.store-badges a { display: inline-flex; line-height: 0; border-radius: 9px; }
.store-badges img { display: block; width: auto; height: clamp(40px, calc((100cqw - 12px) / 6.358), 44px); }
.stores .btn { width: auto; flex: 1 1 220px; margin: 0; }

/* ── Fields: a strong edge and a clear label (2026-11-22, design Version 56; the user: "the fields should stand out") ── */
.field { margin: 0 0 16px; }
.field label, legend { display: block; margin: 0 0 8px; font: 600 16px/1.35 var(--text); color: var(--ink); }
.field input, .field select {
  display: block; width: 100%; height: 56px; padding: 0 16px;
  border: 2px solid var(--field-line); border-radius: 12px; background: #FFFFFF; color: var(--ink);
  font: 400 17px/1.3 var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 10, 10, .14); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field select {
  -webkit-appearance: none; appearance: none; padding-inline-end: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
[dir="rtl"] .field select { background-position: 16px 50%, 22px 50%; }
/* A code from an email or an authenticator: big digits, spaced like the app's boxes. */
.field input[autocomplete="one-time-code"] {
  height: 64px; text-align: center; padding-inline-start: calc(16px + .4em);
  font: 800 30px/1 var(--display); letter-spacing: .4em; font-variant-numeric: tabular-nums;
}
.help { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.error { margin: 8px 0 0; font: 600 14px/1.45 var(--text); color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.web details { margin: 0 0 16px; }
.web summary {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; margin: 0 0 8px;
  list-style: none; cursor: pointer; font: 600 15px/1.4 var(--text); color: var(--ink);
}
.web summary::-webkit-details-marker { display: none; }
.web summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); font: 600 17px/1 var(--text);
}
.web details[open] > summary::before { content: "\2212"; }
/* Where someone lives, folded away with the shop's country chosen (2026-11-16): a plain line that opens the list. */
.web details.country { margin: -4px 0 16px; }
.web details.country > summary { gap: 6px; padding: 2px 0; margin: 0 0 10px; font: 400 15px/1.45 var(--text); color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.web details.country > summary::before { content: none; }
.web details.country[open] > summary { text-decoration: none; }
/* What a person fills in, in one panel (lib/webPage.ts fieldsPanel, 2026-11-22): the white fields on a grey ground. The
   notice, the line that names the button and the button stay under it. */
.fields { margin: 4px 0 18px; padding: 18px 16px 2px; border-radius: 20px; background: var(--wash); }
.fields > :last-child { margin-bottom: 16px; }

/* ── Who is signed in, and the way out ── */
.who {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin: 0 0 20px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--wash); font-size: 14px;
}
.who p { margin: 0; min-width: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.who form { margin: 0; }
.who form .btn { width: auto; min-height: 36px; padding: 6px 14px; margin: 0; border-radius: 10px; font-size: 14px; }

/* ── Points, and the way to the next reward ── */
.points {
  margin: 4px 0 10px; font: 800 clamp(36px, 11vw, 48px)/1.05 var(--display); letter-spacing: -0.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.goal { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--peach); }
.goal progress {
  display: block; width: 100%; height: 10px; -webkit-appearance: none; appearance: none;
  border: 0; border-radius: 999px; background: rgba(10, 10, 10, .08); color: var(--ink); overflow: hidden;
}
.goal progress::-webkit-progress-bar { background: rgba(10, 10, 10, .08); border-radius: 999px; }
.goal progress::-webkit-progress-value { background: var(--bar, var(--ink)); border-radius: 999px; }
.goal progress::-moz-progress-bar { background: var(--bar, var(--ink)); border-radius: 999px; }
.goal .note { margin: 10px 0 0; font-weight: 600; color: var(--ink-2); }
/* A dark card colour fills the bar; a light one leaves it black, so it always shows. */
.web.ink-w { --bar: var(--p); }

/* ── The shop's buttons on a card's page, and states ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink);
  font: 600 14px/1.2 var(--text); text-decoration: none;
}
.chip:hover { background: var(--wash); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--wash); color: var(--ink-2); font: 600 13px/1.3 var(--text);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.warning { background: var(--peach); color: var(--accent-ink); }

/* ── Rewards, bonuses and places ── */
.reward-row {
  display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 12px 14px;
  border-radius: 18px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line);
}
.reward-row .tile { flex: none; display: block; width: 52px; height: 52px; padding: 4px; border-radius: 14px; background: var(--peach); }
.reward-text { flex: 1; min-width: 0; }
.reward-title { margin: 0; font: 600 16px/1.35 var(--text); color: var(--ink); overflow-wrap: anywhere; }
.reward-row .note, .bonus .note, .place .note { margin: 2px 0 0; }
.status {
  flex: none; margin: 0; padding: 5px 10px; border-radius: 999px; background: var(--wash);
  color: var(--ink-2); font: 600 13px/1.2 var(--text); white-space: nowrap;
}
.status.ready { background: var(--ok-wash); color: var(--ok); }
.bonus, .place { margin: 0 0 10px; padding: 14px 16px; border-radius: 18px; }
.bonus { background: var(--sky); }
.place { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.places .chips { margin: 10px 0 0; }

/* ── My cards: each card as a card ── */
.card-row {
  margin: 0 0 20px; padding: 12px; border-radius: 26px; background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -16px rgba(10, 10, 10, .22);
}
.card-row > :not(.mini):not(.qr-box):not(.account):not(.btn):not(form):not(.receipts) { margin-inline: 4px; }
.card-row .points { margin-top: 0; font-size: clamp(30px, 9vw, 40px); }
.card-row h2 { margin: 20px 4px 10px; font-size: 17px; }
.card-row .btn { min-height: 48px; font-size: 16px; }
.qr-box { display: flex; justify-content: center; margin: 0 0 16px; padding: 16px; border-radius: 20px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.qr-box .qr { display: block; width: 100%; max-width: 220px; height: auto; }

/* ── The Add buttons, everywhere a page has them (2026-11-17, lib/cardSheet.ts addBlockHtml): the page's one action.
   Apple's and Google's badges at 56: above Google's 48 dp minimum and at least as big as the page's buttons (54), as
   Google asks, with more clear space than either company asks (Apple 0.1 of the height, Google 8 dp), on white. On a
   phone its own badge; the other behind "Using a different phone?". On a computer both, side by side, wrapping when
   the row is narrow. The line under them fills when one is tapped (.add-wait). ── */
.add { margin: 4px 0 16px; text-align: center; }
.add-line { margin: 0 0 4px; text-align: start; }
.add-hero .add-line { text-align: center; }
.add-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin: 0; padding: 10px 0; }
.add-hero .add-cta { padding: 14px 0 12px; }
.add-cta form { margin: 0; }
.add-cta .btn { width: 100%; margin: 0; }
.badge { display: inline-flex; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; line-height: 0; border-radius: 10px; }
.badge img { display: block; width: auto; height: 56px; max-width: 100%; }
.add-wait { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 22px; margin: 0 0 8px; font: 600 15px/1.4 var(--text); color: var(--ink-2); }
.add-wait:empty { display: none; }
.web .add-other { margin: 2px 0 0; }
.web .add-other > summary { margin: 0 auto 4px; font-size: 14px; color: var(--ink-2); }
.add-note { margin: 0 auto 4px; max-width: 34em; text-align: center; }
/* A computer's other way, to the phone's camera: under the badges, smaller and grey. */
.add-qr { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--wash); text-align: start; }
.add-code { justify-content: center; }
.add-qr form { margin: 0; }
.add-qr .btn { width: auto; min-height: 44px; margin: 0; font-size: 15px; }
.add-qr-code { flex: none; width: 112px; padding: 6px; border-radius: 10px; background: #FFFFFF; }
.add-qr-code .qr { display: block; width: 100%; height: auto; }
.add-qr-text p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
.add-qr-text .note { margin: 0; font-size: 13px; }
/* The request's page (2026-11-22, lib/cardSheet.ts handOverHtml): its line over the card at the counter, and under the
   Add buttons, how the owner's yes comes. */
.web .hand-line { margin: 4px auto 14px; max-width: 26em; text-align: center; font: 600 17px/1.4 var(--text); color: var(--ink); }
.web .join-email { margin: 0 auto 16px; max-width: 30em; text-align: center; color: var(--ink-2); }
/* The request's page's own "Check again" (2026-11-22): a plain link under how the yes comes. */
.web .join-again { margin: -8px auto 16px; text-align: center; font-weight: 600; }
/* From the card at the counter down to the button. */
.add-arrow { display: block; width: 14px; height: 14px; margin: 2px auto 0; border: solid var(--muted); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ── The audit's findings on the pages (2026-11-18, decisions.md §13, "Design Version 53") ──
   F-003: a join form's short notice over the button, and the line that names the button, in the page's own size and
   colour with its link underlined. F-004: the shop's program rules, before anyone joins. F-027: "Report this shop",
   quiet, at the foot of the shop's pages. F-198: a shop Perkonova paused says so in the warning colours. F-055: whose
   points they are, under the card at the counter. */
.web .notice { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.web .notice a, .web .agree a { color: var(--ink); text-decoration: underline; }
/* The line that names the button keeps the page's own size and colour (F-003). */
.web .agree { margin: 0 0 4px; color: var(--ink-2); }
/* The rules and the notice are plain text since 2026-11-22 (design Version 56; the user: "the rules and the notice come
   out of their boxes"): smaller, with no box, the words as they were. */
.rules { margin: 8px 0 22px; }
.rules h2 { margin: 0 0 6px; font-size: 17px; }
.rules h3 { margin: 12px 0 2px; font: 600 14px/1.35 var(--text); color: var(--ink); }
.web .rules-earn { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.rules-rewards, .rules-lines { margin: 0; padding-inline-start: 18px; font-size: 14px; line-height: 1.45; }
.rules-rewards li, .rules-lines li { margin: 2px 0; }
.rules-lines { margin-top: 10px; font-size: 13px; }
.web .rules-more { margin: 4px 0 0; }
.web .rules-more > summary { margin: 0 0 2px; font-size: 13px; }
/* A page with a Join form (lib/webPage.ts `look`, 2026-11-22): its body text a size smaller, its notes too. */
.web.join { font-size: 15px; }
.web.join .note { font-size: 13px; }
.report { margin: 18px 0 0; font-size: 13px; text-align: center; }
.report a { color: var(--muted); }
.web .paused { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--peach); color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.web .sheet-only { margin: 2px auto 0; max-width: 30em; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ── Blocks that sit apart ── */
.account { margin: 20px 0 0; }
section.account { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.receipts { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--wash); }
.receipts .note { margin: 0 0 4px; }
.receipts form { margin: 4px 0 0; }
.receipts .btn { min-height: 44px; background: #FFFFFF; }
/* A new card's three lines, each with a tick. */
.lines { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.lines li { position: relative; margin: 0; padding: 12px 14px; padding-inline-start: 48px; border-radius: 14px; background: var(--sky); color: var(--ink); }
.lines li::before { content: ""; position: absolute; inset-inline-start: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--ink); }
.lines li::after {
  content: ""; position: absolute; inset-inline-start: 22px; top: 50%; width: 6px; height: 11px; margin-top: -7px;
  border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ── The sheet after joining (2026-11-17, lib/cardSheet.ts): the next step for this device, over the page as it loads.
   No script: its ×, "Not now" and the dim behind it are links to #sheet-off, and :target hides it. A bottom sheet on a
   phone, a dialog in the middle on a computer. ── */
.sheet-off { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.sheet-off:target ~ .sheet { display: none; }
body:has(.sheet-off:not(:target) ~ .sheet) { overflow: hidden; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, .5); }
.sheet-panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) max(18px, env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #FFFFFF;
  box-shadow: 0 -18px 48px -14px rgba(10, 10, 10, .3);
}
.sheet-grab { display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: #D4D4D4; }
.sheet-x {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--wash);
}
.sheet-x::before, .sheet-x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: var(--ink);
  transform: rotate(45deg);
}
.sheet-x::after { transform: rotate(-45deg); }
/* Its one step (2026-11-17, the user: "add to wallet doesnt feel like the cta"): the join went through, the step as the
   title, the card at the counter with an arrow down to the button, the button. The rest is small and grey. */
.sheet-done { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding-inline-end: 44px; font: 600 14px/1.4 var(--text); color: var(--ok); }
.sheet-done::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); }
.sheet-done::after {
  content: ""; position: absolute; inset-inline-start: 6.5px; top: 50%; width: 5px; height: 9px; margin-top: -6px;
  border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sheet-panel h2 { margin: 0 0 14px; padding-inline-end: 40px; font-size: 24px; line-height: 1.2; }
.sheet .demo { margin-bottom: 10px; }
.web .sheet-why { margin: 0 auto 2px; max-width: 30em; text-align: center; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.web .sheet-wait { margin: 2px auto 0; max-width: 30em; text-align: center; }
.sheet-later { display: block; margin: 6px 0 0; padding: 12px; text-align: center; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.sheet-later:hover { color: var(--ink); text-decoration: underline; }
/* A request that waits (2026-11-22, design Version 56; lib/cardSheet.ts sentSheetHtml): a tick, "Request sent", the one
   thing to do at the counter, and Okay, which closes it. All in the middle. */
.sheet-sent .sheet-panel { text-align: center; }
.sheet-tick { position: relative; display: block; width: 56px; height: 56px; margin: 4px auto 14px; border-radius: 50%; background: var(--ok); }
.sheet-tick::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 13px; height: 24px;
  border: solid #FFFFFF; border-width: 0 3.5px 3.5px 0; transform: translateY(-2px) rotate(45deg);
}
.sheet-sent .sheet-panel h2 { margin: 0 0 8px; padding-inline-end: 0; }
/* The request's sheet comes first in the document, outside the column, since 2026-11-22: so not under .web. */
.sheet .sheet-ask { margin: 0 auto 22px; max-width: 24em; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.sheet-ok { margin: 0; }
@media (min-width: 640px) {
  .sheet { justify-content: center; padding: 16px; }
  .sheet-sent .sheet-panel { max-width: 420px; padding-bottom: 24px; }
  .sheet-panel { max-height: 100%; padding: 20px 28px 16px; border-radius: 28px; }
  .sheet-grab { display: none; }
  /* A computer's dialog fits a laptop's 768: the picture a little smaller, the camera's code under the badges. */
  .sheet-wide .sheet-panel { max-width: 560px; }
  .sheet-wide .demo { padding-block: 4px 0; }
  .sheet-wide .demo-stage { zoom: .85; }
}

/* ── The card at the counter (2026-11-17, the user: "show animation of card being used at checkout, so they
   understand"): the customer's phone shows the card, a staff phone scans it, and the points arrive. Drawn here, with no
   script and no picture but our wordmark. It loops gently; with reduced motion it's the last frame.
   The card is Version 53's (2026-11-18, decisions.md §13): the shop's colour, Perkonova's logo, the shop's name on
   cards, "Member" and the QR, and no shop logo. Perkonova's logo is the Business app icon's look, the wordmark on
   black (the user, 2026-11-18). Apple's (.demo-apple, an iPhone or a computer): a black badge top left, the name top
   right, as Wallet's header field. Google's (.demo-google, Android): the logo round, with "Perkonova" beside it, then
   the name as the card's title. The box clips the staff phone as it slides in, so the sheet never scrolls sideways. ── */
.demo { margin: 0 0 16px; padding: 10px 12px 6px; border-radius: 22px; background: var(--peach); overflow: hidden; }
.demo-stage { position: relative; height: 206px; max-width: 320px; margin: 0 auto; }
.demo-phone {
  position: absolute; left: 50%; bottom: 4px; width: 120px; height: 176px; margin-left: -118px; padding: 6px;
  border-radius: 21px; background: var(--ink); box-shadow: 0 12px 24px -14px rgba(10, 10, 10, .55);
}
.demo-card {
  display: flex; flex-direction: column; height: 100%; padding: 8px 8px 9px;
  border-radius: 15px; background: var(--p, var(--wash)); color: #FFFFFF;
}
.demo-card.ink-b { color: var(--ink); }
.demo-card.p-0, .demo-card.p-none { box-shadow: inset 0 0 0 1px var(--line); }
/* A card as dark as the phone around it keeps its edge. */
.demo-card.p-2, .demo-card.p-5 { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }
/* Perkonova's logo: the wordmark on black, a badge on Apple's card. */
.demo-pk { flex: none; display: block; padding: 3px 3.5px; border-radius: 4px; background: #0A0A0A; line-height: 0; }
.demo-pk img { display: block; width: auto; height: 5px; }
.demo-name { min-width: 0; padding-top: 1px; font: 700 8px/1.2 var(--text); text-align: end; overflow-wrap: anywhere; text-wrap: balance; }
.demo-google .demo-head { align-items: center; justify-content: flex-start; gap: 4px; }
/* Round on Google's: the wordmark at the icon's own 78% of the circle's width, clear of its edge. */
.demo-round { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; border-radius: 50%; }
.demo-round img { width: 12.5px; height: auto; }
.demo-issuer { font: 600 7px/1 var(--text); }
.demo-title { display: block; margin: 7px 0 0; font: 700 10.5px/1.2 var(--text); overflow-wrap: anywhere; }
.demo-field { display: block; margin: 9px 0 0; }
.demo-apple .demo-field { margin-top: 13px; }
.demo-label { display: block; font: 600 5.5px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.demo-member { display: block; width: 44px; height: 6px; margin-top: 3px; border-radius: 3px; background: currentColor; opacity: .8; }
.demo-qr { position: relative; display: block; margin: auto auto 0; width: 54px; height: 54px; padding: 5px; border-radius: 8px; background: #FFFFFF; }
/* A white card's code keeps its edge while the scan's ring (a box-shadow) plays: a border, the code the same size. */
.demo-card.p-0 .demo-qr { border: 1px solid var(--line); padding: 4px; }
.demo-qr svg { display: block; width: 100%; height: 100%; }
.demo-beam {
  position: absolute; left: 2px; right: 2px; top: 50%; height: 3px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(234, 88, 12, .55); opacity: 0;
}
.demo-staff {
  position: absolute; left: 50%; bottom: 14px; width: 72px; height: 118px; margin-left: 34px; padding: 5px;
  border-radius: 17px; background: #2A2A2A; transform: rotate(-12deg); transform-origin: 50% 100%;
  box-shadow: 0 12px 24px -14px rgba(10, 10, 10, .55);
}
.demo-staff::before { content: ""; position: absolute; inset: 5px; border-radius: 12px; background: #0A0A0A; }
.demo-ok {
  position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--ok);
}
.demo-ok svg { display: block; width: 20px; height: 20px; }
.demo-points { position: absolute; left: 50%; top: 0; width: 140px; margin: 0 0 0 -128px; text-align: center; }
.demo-points bdi {
  display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #FFFFFF;
  font: 700 13px/1.2 var(--text); white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(10, 10, 10, .6);
}
@media (prefers-reduced-motion: no-preference) {
  .add-arrow { animation: add-nudge 1.8s ease-in-out infinite; }
  .sheet-panel { animation: sheet-up .38s cubic-bezier(.2, .8, .2, 1) both; }
  .sheet-scrim { animation: sheet-fade .3s ease-out both; }
  /* "Request sent" loading itself again while the request waits (2026-11-25, lib/cardSheet.ts): it's there already. */
  .sheet-still .sheet-panel, .sheet-still .sheet-scrim { animation: none; }
  .demo-staff { animation: demo-staff 7s ease-in-out infinite; }
  .demo-beam { animation: demo-beam 7s linear infinite; }
  .demo-ok { animation: demo-ok 7s ease-out infinite; }
  .demo-points bdi { animation: demo-points 7s ease-out infinite; }
  .demo-qr { animation: demo-read 7s ease-out infinite; }
}
@keyframes add-nudge { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(5px) rotate(45deg); } }
@keyframes sheet-up { from { transform: translateY(48px); opacity: 0; } }
@keyframes sheet-fade { from { opacity: 0; } }
@keyframes demo-staff {
  0%, 8% { transform: translateX(84px) rotate(6deg); opacity: 0; }
  24%, 78% { transform: rotate(-12deg); opacity: 1; }
  92%, 100% { transform: translateX(84px) rotate(6deg); opacity: 0; }
}
@keyframes demo-beam { 0%, 28% { top: 6%; opacity: 0; } 30% { top: 6%; opacity: 1; } 46% { top: 88%; opacity: 1; } 48%, 100% { top: 88%; opacity: 0; } }
@keyframes demo-ok {
  0%, 47% { transform: scale(.3); opacity: 0; } 53% { transform: scale(1.12); opacity: 1; }
  57%, 80% { transform: scale(1); opacity: 1; } 88%, 100% { transform: scale(.6); opacity: 0; }
}
@keyframes demo-points {
  0%, 54% { transform: translateY(18px) scale(.9); opacity: 0; } 62%, 84% { transform: none; opacity: 1; }
  96%, 100% { transform: translateY(-8px); opacity: 0; }
}
@keyframes demo-read { 0%, 47%, 64%, 100% { box-shadow: none; } 52% { box-shadow: 0 0 0 4px rgba(21, 128, 61, .6); } }

/* ── The foot: language and the legal pages ── */
.foot {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px;
  max-width: var(--col); margin: 0 auto; padding: 8px var(--gutter) 40px; font-size: 13px; color: var(--muted);
}
.foot a { color: var(--ink-2); }
.foot .legal { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding-top: 9px; }
.foot .tm { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); }
.langs { margin: 0; }
.langs summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  list-style: none; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 13px/1.2 var(--text); color: var(--ink);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::before {
  content: ""; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 1.5px 100% no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 100% 1.5px no-repeat;
}
.langs nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 2px 12px; margin: 10px 0 0; }
.langs nav a, .langs nav strong { display: block; padding: 6px 2px; font-size: 14px; }
.langs nav strong { color: var(--ink); }
.langs nav a { text-decoration: none; }
.langs nav a:hover { text-decoration: underline; }
/* Older pages: the languages as one line of links. */
nav.note.langs, main > nav.note { margin-top: 28px; }

/* ── The home page (index.html) ── */
.home h1 { font-size: clamp(32px, 9vw, 40px); line-height: 1.05; }
.home .lede { font-size: 17px; color: var(--ink-2); }
.home .how { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; counter-reset: how; }
.home .how li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--sky); color: var(--ink); counter-increment: how; }
.home .how li::before {
  content: counter(how); flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #FFFFFF; font: 800 16px/1 var(--display);
}
.home .shop-owner { margin: 32px 0 0; padding: 20px; border-radius: 24px; background: var(--peach); }
.home .shop-owner h2 { margin-top: 0; }
.home .shop-owner .btn { margin-bottom: 0; }

/* ── From 640 wide: the column becomes a sheet ── */
@media (min-width: 640px) {
  body { background: var(--sky); }
  main { margin-top: 12px; margin-bottom: 8px; padding: 36px 40px 40px; border-radius: 32px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(10, 10, 10, .04), 0 24px 60px -28px rgba(10, 10, 10, .22); }
  .top { padding-top: 28px; padding-inline: 40px; }
  .foot { padding-inline: 40px; }
  h1 { font-size: 34px; }
}

/* ── Small phones: a 16 gutter, a smaller title ── */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  h1 { font-size: 27px; }
  .band { padding: 16px; gap: 14px; }
  .band .logo, .band .initials { width: 56px; height: 56px; }
  .band .logo.a-wide { width: 74px; height: 56px; }
  .band .logo.a-landscape { width: 96px; height: 54px; }
  .card-row { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .sheet-ok, .field input, .field select { transition: none; }
  .btn:active, .sheet-ok:active { transform: none; }
  /* Still, not moving (2026-11-17): a picture's box is a plain tint, and the spinner a still ring. */
  .pic.ld { animation: none; background-image: none; }
  .pic > img { transition: none; }
  .spin { animation: none; }
}
