/* LootLocal launch shell — THE HONEST LEDGER (docs/launch-shell.md).
   Two-staging law: business pages are DAYLIGHT paper (purple = ink,
   gold = value, mint = verified); the homepage is NIGHT (#0D0D14).
   Gradients only on loot objects, never section backgrounds. */

@font-face {
  font-family: 'Jakarta';
  src: url('/assets/jakarta-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
  /* Metric overrides pin CLS to zero while the woff2 swaps in. */
  ascent-override: 105%;
  descent-override: 28%;
}

:root {
  --paper: #F6F5FB;
  --card: #FFFFFF;
  --ink: #17151F;
  --muted: #575368;
  --line: rgba(23, 21, 31, .13);
  --purple: #4F5BD5;
  --berry: #7048E8;
  --gold: #F5A623;
  --gold-deep: #E07C05;
  --mint: #12B886;
  --night: #0D0D14;
  --radius: 18px;
  --display: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); }
main { display: block; }

/* ── Type scale ─────────────────────────────────────────────────────── */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p  { margin: 0 0 1em; color: var(--muted); max-width: 62ch; }
p strong, li strong { color: var(--ink); }
.kicker {
  font: 700 .78rem/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.num, .mono { font-variant-numeric: tabular-nums; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }
.grid2 {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; gap: 32px; } }


/* ── Nav ────────────────────────────────────────────────────────────── */
header.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.logo {
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.logo b { color: var(--purple); }
.nav nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }

/* Mobile hamburger — hidden on desktop, revealed ≤640 (dropdown below). */
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0; margin-left: 2px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink); cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; border-radius: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { content: ''; position: absolute; left: 0; top: -7px; }
.nav-toggle span::after  { content: ''; position: absolute; left: 0; top: 7px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav .wrap > a.cta { margin-left: auto; }
  /* The link list collapses into a dropdown panel under the sticky bar. */
  .nav nav {
    position: absolute; top: 100%; left: 0; right: 0; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 44px rgba(23, 21, 31, .16);
    padding: 6px 0; display: none;
  }
  .nav.open nav { display: flex; }
  .nav nav a { padding: 13px 24px; font-size: 1rem; }
  .nav nav a[aria-current] { box-shadow: inset 3px 0 0 var(--gold); }
  body.night .nav nav {
    background: #16141F; border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
  }
}

/* ── Buttons — the app's own controls (54px pill, 18px radius) ─────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; height: auto; padding: 12px 28px;
  text-align: center; border-radius: var(--radius);
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  border: 0; position: relative;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.btn:active { transform: scale(.965); }
.btn:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
/* The compact nav CTA sets its own height inline — don't let the 54px
   min-height inflate it inside the bar. */
.nav .btn { min-height: 0; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #5B6BE8, #7048E8);
  box-shadow: 0 6px 18px rgba(79, 91, 213, .32);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(79, 91, 213, .42); transform: translateY(-1px); }
.btn-gold {
  color: #3D2600;
  background: linear-gradient(135deg, #F7B733, #E07C05);
  box-shadow: 0 6px 18px rgba(224, 124, 5, .32);
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(224, 124, 5, .45); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
/* One gold ring pulse on press — playful DNA, no coin-slot pay-to-play. */
.btn-gold::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(245, 166, 35, .55); opacity: 0; pointer-events: none;
}
.btn-gold:active::after { animation: ring .5s ease-out; }
@keyframes ring {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 166, 35, .55); }
  100% { opacity: 0; box-shadow: 0 0 0 18px rgba(245, 166, 35, 0); }
}

/* ── The receipt ────────────────────────────────────────────────────── */
.receipt {
  background: #fff;
  color: var(--ink);
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 26px 26px 34px;
  font: 600 .95rem/1.5 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: .01em;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 18px 44px rgba(23, 21, 31, .16), 0 2px 8px rgba(23, 21, 31, .08);
  -webkit-mask-image: radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px);
  mask-image: radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px);
  -webkit-mask-size: 16px 100%;
  mask-size: 16px 100%;
  transform: rotate(-1.2deg);
}
.receipt .r-head {
  text-align: center; font-weight: 800; letter-spacing: .12em;
  border-bottom: 1.5px dashed var(--line); padding-bottom: 12px; margin-bottom: 12px;
}
.receipt .r-line {
  display: flex; justify-content: space-between; gap: 12px; padding: 5px 0;
}
.receipt .r-line .tick { color: var(--mint); font-weight: 800; }
.receipt .r-big {
  font-family: var(--display); font-size: 3.4rem; letter-spacing: -0.02em;
  color: var(--gold-deep); text-align: center; padding: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}
.receipt .r-big small { font-size: 1.2rem; color: var(--muted); }
.receipt .r-foot {
  border-top: 1.5px dashed var(--line); margin-top: 12px; padding-top: 12px;
  text-align: center; color: var(--muted); font-size: .8rem;
}
/* Self-printing: staggered line reveal, zero JS, zero CLS (space reserved). */
.receipt.print > * { opacity: 0; transform: translateY(6px); animation: rprint .45s ease-out forwards; }
.receipt.print > *:nth-child(1) { animation-delay: .15s; }
.receipt.print > *:nth-child(2) { animation-delay: .5s; }
.receipt.print > *:nth-child(3) { animation-delay: .85s; }
.receipt.print > *:nth-child(4) { animation-delay: 1.1s; }
.receipt.print > *:nth-child(5) { animation-delay: 1.35s; }
.receipt.print > *:nth-child(6) { animation-delay: 1.6s; }
.receipt.print > *:nth-child(7) { animation-delay: 1.85s; }
.receipt.print > *:nth-child(8) { animation-delay: 2.15s; }
.receipt.print > *:nth-child(9) { animation-delay: 2.4s; }
@keyframes rprint { to { opacity: 1; transform: none; } }

/* ── Monument numbers ───────────────────────────────────────────────── */
.monuments {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 820px) { .monuments { grid-template-columns: repeat(2, 1fr); } }
.monument {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.monument .val {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 3.6rem); letter-spacing: -0.03em;
  color: var(--gold-deep); font-variant-numeric: tabular-nums; line-height: 1;
}
.monument .val small { font-size: .55em; }
.monument .cap { color: var(--ink); font-weight: 700; margin-top: 10px; font-size: .95rem; }
.monument .sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.microtick {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 700; color: var(--mint); margin-top: 10px;
}
.microtick::before { content: '✓'; font-weight: 800; }

/* ── Cards / feature strip ──────────────────────────────────────────── */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .cards3 { grid-template-columns: 1fr; } }
.fcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
}
.fcard .emoji { font-size: 1.9rem; display: block; margin-bottom: 12px; }

/* Margin note — the auditor's annotation. */
.margin-note {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 16px;
  color: var(--muted); font-size: .95rem; max-width: 56ch;
}
.margin-note b { color: var(--ink); }

/* ── House rules plaque ─────────────────────────────────────────────── */
.plaque {
  background: linear-gradient(180deg, #FFFDF6, #FBF3DF);
  border: 1px solid rgba(224, 124, 5, .35);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgba(23, 21, 31, .07);
}
.plaque h3 { letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--gold-deep); }
.plaque ul { margin: 12px 0 0; padding: 0; list-style: none; }
.plaque li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); font-weight: 600; font-size: .97rem; }
.plaque li::before { content: '✓'; position: absolute; left: 0; color: var(--mint); font-weight: 800; }

/* ── Reveal on scroll ───────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }

/* ── Phone frame + stamp card (how-it-works) ────────────────────────── */
.phone {
  width: 290px; border-radius: 40px; background: var(--night);
  padding: 14px; box-shadow: 0 24px 60px rgba(23, 21, 31, .28);
  margin: 0 auto;
}
.phone .screen {
  border-radius: 28px; background: #17151F; padding: 18px; min-height: 420px;
  display: flex; flex-direction: column; gap: 14px;
}
.lootcard {
  border-radius: var(--radius); padding: 18px;
  background: linear-gradient(135deg, #5B6BE8, #7048E8);
  color: #fff; font-weight: 800; font-family: var(--display);
}
.lootcard .t { font-size: 1.05rem; }
.lootcard .s { font-weight: 600; font-family: var(--body); font-size: .8rem; opacity: .85; }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stamp {
  aspect-ratio: 1; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .35);
  display: grid; place-items: center; font-size: 1.2rem;
  color: transparent; transform: scale(.9);
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.phone .bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.phone .bar i {
  display: block; height: 100%; width: 8%; border-radius: 99px;
  background: linear-gradient(90deg, #F7B733, #E07C05);
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.phone .pts { color: var(--gold); font: 800 1rem var(--display); font-variant-numeric: tabular-nums; }
[data-step="1"] .stamp:nth-child(-n+2),
[data-step="2"] .stamp:nth-child(-n+4),
[data-step="3"] .stamp:nth-child(-n+6),
[data-step="4"] .stamp:nth-child(-n+6) {
  color: #fff; border-style: solid; border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 2px 6px -2px rgba(245,166,35,.7);
  transform: scale(1);
}
[data-step="1"] .bar i { width: 30%; }
[data-step="2"] .bar i { width: 62%; }
[data-step="3"] .bar i { width: 99%; }
[data-step="4"] .bar i { width: 99%; }
.sticky-col { position: sticky; top: 90px; align-self: start; }
@media (max-width: 860px) {
  .sticky-col { position: static; transform: scale(.92); transform-origin: top center; }
}

/* ── Homepage audit theatre — the nightly machine, on screen ───────────
   A sticky dark terminal (the NIGHT world inset into the daylight page)
   whose five checks flip PENDING → PASS as the five .check beats scroll
   past. Same driver as the stamp card: IntersectionObserver sets
   .terminal[data-step]; CSS reveals rows nth-child(-n+step). */
/* Minimal audit beats: a gold numeral + a 3-word label, no prose. Tall
   enough that one terminal row clears per screen-scroll on desktop. */
.audit-beats { display: grid; }
.check { display: flex; align-items: baseline; gap: 16px;
  padding: 22px 0; min-height: 20vh;
  border-bottom: 1px dashed var(--line); }
.check:first-child { border-top: 1px dashed var(--line); }
.check .kn { display: inline-block; flex: none;
  font: 800 .82rem/1 var(--display); letter-spacing: .14em; color: var(--gold-deep); }
.check h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em;
  font-size: clamp(1.35rem, 4.4vw, 2rem); }

.terminal {
  background: var(--night); color: #E9E7F2; border-radius: 18px;
  padding: 20px 20px 22px; border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 26px 54px -26px rgba(13, 13, 20, .7);
}
.t-head {
  display: flex; align-items: center; gap: 10px;
  font: 800 .8rem/1 var(--display); letter-spacing: .14em;
  text-transform: uppercase; color: #B9B4CC;
  padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.t-head .t-clock { margin-left: auto; color: var(--gold);
  font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.t-head .dot { width: 8px; height: 8px; border-radius: 99px;
  background: var(--gold); animation: tpulse 2.4s ease-in-out infinite; }
@keyframes tpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .5); }
  50% { box-shadow: 0 0 0 7px rgba(245, 166, 35, 0); }
}
.t-rows { display: grid; margin-top: 6px; }
.t-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px;
  font-size: .95rem; border-bottom: 1px dashed rgba(255, 255, 255, .1);
  opacity: .34; transition: opacity .45s ease;
}
.t-row:last-child { border-bottom: 0; }
.t-row .t-lbl { color: #CFCBDE; font-variant-numeric: tabular-nums; }
.t-row .t-state { margin-left: auto; font: 800 .74rem/1 var(--display);
  letter-spacing: .1em; }
.t-row .t-state .wait { color: #6E6982; letter-spacing: .16em; }
.t-row .t-state .pass { display: none; color: var(--mint); }
/* a check clears: row lights up, "•••" flips to "PASS ✓" */
.terminal[data-step="1"] .t-row:nth-child(-n+1),
.terminal[data-step="2"] .t-row:nth-child(-n+2),
.terminal[data-step="3"] .t-row:nth-child(-n+3),
.terminal[data-step="4"] .t-row:nth-child(-n+4),
.terminal[data-step="5"] .t-row:nth-child(-n+5) { opacity: 1; }
.terminal[data-step="1"] .t-row:nth-child(-n+1) .wait,
.terminal[data-step="2"] .t-row:nth-child(-n+2) .wait,
.terminal[data-step="3"] .t-row:nth-child(-n+3) .wait,
.terminal[data-step="4"] .t-row:nth-child(-n+4) .wait,
.terminal[data-step="5"] .t-row:nth-child(-n+5) .wait { display: none; }
.terminal[data-step="1"] .t-row:nth-child(-n+1) .pass,
.terminal[data-step="2"] .t-row:nth-child(-n+2) .pass,
.terminal[data-step="3"] .t-row:nth-child(-n+3) .pass,
.terminal[data-step="4"] .t-row:nth-child(-n+4) .pass,
.terminal[data-step="5"] .t-row:nth-child(-n+5) .pass { display: inline; }
/* The audit deliberately fills its five rows but WITHHOLDS the verdict —
   "All checks passed" lands later, as the opening beat of the finish, so the
   price reads as the machine's final printed line. (Hence: no stamp here.) */

/* Mobile: pin a compact terminal below the nav, same as the stamp card. */
@media (max-width: 860px) {
  .terminal { padding: 13px 15px 14px; transform: none; }
  .t-head { padding-bottom: 10px; font-size: .72rem; }
  .t-row { padding: 7px 2px; font-size: .84rem; }
  .check { min-height: 0; padding: 16px 0; }
}

/* ── The finish: the mic drop ──────────────────────────────────────────
   The withheld verdict lands, then €3.99 is the hero — the brand's one
   honest number, counting itself up. One gold CTA, one whisper link. */
.finish { padding: clamp(72px, 12vh, 132px) 0; }
.verdict { margin-bottom: 2px; }
.verdict-stamp {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  transform: rotate(-1.5deg); border: 2px solid var(--gold);
  border-radius: 12px; padding: 11px 22px 13px; color: var(--gold-deep);
  font: 800 1.02rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
}
.verdict-stamp small { font: 700 .6rem/1 var(--body); letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase; }
.finish-line { font-size: clamp(1.9rem, 6vw, 3.4rem); letter-spacing: -.02em;
  margin: 22px auto 0; max-width: 15ch; }
.finish-price { position: relative; margin: 28px 0 4px;
  display: inline-flex; flex-direction: column; align-items: center; }
.fp-money { font: 800 clamp(4rem, 17vw, 8.4rem)/.9 var(--display);
  color: var(--gold-deep); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fp-money .fp-cur { font-size: .5em; vertical-align: .38em; margin-right: .02em; }
.fp-money small { font: 800 1rem var(--display); color: var(--muted); letter-spacing: .04em; }
.firststamp { margin-top: 16px; display: inline-block;
  background: rgba(18, 184, 134, .12); color: #0E9E77;
  border: 1px solid rgba(18, 184, 134, .4); border-radius: 99px;
  padding: 5px 14px; font: 800 .76rem/1 var(--display); letter-spacing: .03em; }
.fp-sub { margin-top: 15px; color: var(--muted); font-size: .92rem; }
/* override the base `p { max-width: 62ch }` which would left-anchor the
   button inside a narrow box instead of centering it under the price */
.finish-cta { max-width: none; margin: 30px 0 12px; }
.finish .btn-gold { font-size: 1.05rem; padding: 16px 32px; }
.finish-fine { display: inline-block; color: var(--muted); font-size: .86rem;
  text-decoration: underline; text-underline-offset: 3px; }
.finish-fine:hover { color: var(--ink); }
@media (max-width: 520px) {
  .finish .btn-gold { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
}

/* ── Homepage bottom section: staggered reveal + centered CTA ──────────── */
.wf-badges { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
/* override the base p{max-width:62ch} that would left-anchor the button */
.winfin .wf-cta { max-width: none; }
.winfin .rv { transition-duration: .6s; }
.winfin .confetti-zone > .rv:nth-child(1) { transition-delay: .04s; }
.winfin .confetti-zone > .rv:nth-child(2) { transition-delay: .14s; }
.winfin .confetti-zone > .rv:nth-child(3) { transition-delay: .26s; }
.winfin .confetti-zone > .rv:nth-child(4) { transition-delay: .38s; }
.step { padding: 34px 0; border-bottom: 1px dashed var(--line); }
.step .n {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--ink); color: var(--gold);
  font: 800 1.1rem var(--display); margin-bottom: 12px;
}

/* ── NIGHT staging (homepage — customer POV) ─────────────────────────────────── */
body.night { background: var(--night); color: #ECEAF4; }
body.night p { color: #A7A3B8; }
body.night .kicker { color: var(--gold); }
body.night header.nav {
  background: color-mix(in srgb, var(--night) 82%, transparent);
  border-color: rgba(255, 255, 255, .09);
}
body.night .logo, body.night .nav nav a:hover, body.night .nav nav a[aria-current] { color: #fff; }
body.night .nav nav a { color: #A7A3B8; }
body.night .nav-toggle { color: #fff; }
body.night .fcard { background: #16141F; border-color: rgba(255, 255, 255, .08); }
body.night .fcard b, body.night .fcard h3 { color: #fff; }
body.night .microtick { color: var(--mint); }

/* The street: six shop windows glowing in the app's card gradients. */
.street { display: flex; gap: 14px; justify-content: center; align-items: flex-end; padding: 30px 0 0; }
.window {
  width: clamp(40px, 9vw, 86px); height: clamp(64px, 14vw, 128px);
  border-radius: 14px 14px 4px 4px; opacity: .9;
  transform-origin: bottom;
  animation: winbreathe 6s ease-in-out infinite;
}
.window:nth-child(1) { background: linear-gradient(160deg, #5B6BE8, #7048E8); animation-delay: 0s; }
.window:nth-child(2) { background: linear-gradient(160deg, #EC4899, #8B5CF6); animation-delay: -.5s; height: clamp(80px, 16vw, 150px); }
.window:nth-child(3) { background: linear-gradient(160deg, #0EA5E9, #6366F1); animation-delay: -1s; }
.window:nth-child(4) { background: linear-gradient(160deg, #F59E0B, #EF4444); animation-delay: -1.5s; height: clamp(76px, 15vw, 142px); }
.window:nth-child(5) { background: linear-gradient(160deg, #14B8A6, #22C55E); animation-delay: -2s; }
.window:nth-child(6) { background: linear-gradient(160deg, #8B5CF6, #EC4899); animation-delay: -2.5s; height: clamp(70px, 14.5vw, 136px); }
/* Harmonious breathing skyline: each window grows up from the pavement and
   settles back — glow brightest at its tallest — staggered into a gentle wave. */
@keyframes winbreathe {
  0%, 100% { transform: scaleY(.85); filter: brightness(.82); box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  50% { transform: scaleY(1.08); filter: brightness(1.12); box-shadow: 0 0 38px rgba(255, 255, 255, .26); }
}
.pavement {
  height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  margin-top: 0;
}

/* ── Hero: a skewed "art map" of the neighbourhood, behind everything ─────
   A few streets intertwine; a point travels forward (bottom → into the map)
   past the cafés. Starts ~250px down, tilted forward, and kept transparent
   so the UI always leads. */
.hero-night { position: relative; overflow: hidden; }
.hero-night > .wrap { position: relative; z-index: 1; }
.hero-artmap {
  position: absolute; left: -10%; right: -10%; top: 240px; bottom: -40px;
  z-index: 0; pointer-events: none; opacity: .66;
  transform: perspective(900px) rotateX(32deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 130px, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 130px, #000 88%, transparent);
}
.artmap-svg { width: 100%; height: 100%; display: block; }
/* the neighbourhood street grid: uniform, faint — every line is a real street */
.artmap-grid line { stroke: rgba(245, 166, 35, .16); stroke-width: 2; }
/* the one street the point is travelling: brighter + solid, dashed pellets on top */
.artmap-main { fill: none; stroke: rgba(247, 183, 51, .5); stroke-width: 5;
  stroke-linecap: round; stroke-linejoin: round; }
.artmap-ring { fill: rgba(245, 166, 35, .04); stroke: rgba(245, 166, 35, .26); stroke-width: 1.5; }
.artmap-shop { font-size: 34px; text-anchor: middle; dominant-baseline: central; }
.artmap-tree { font-size: 30px; text-anchor: middle; dominant-baseline: central; opacity: .9; }
.artmap-traveler {
  animation: artmap-fade 13s linear infinite;
}
@keyframes artmap-fade { 0% { opacity: 0; } 5% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }
/* Points win: a +score fades up as the dot reaches each café (synced to the loop) */
.artmap-win {
  fill: #FFE9A8; font: 800 25px var(--display); text-anchor: middle;
  paint-order: stroke; stroke: rgba(13, 13, 20, .55); stroke-width: 3.5px;
  transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: artmap-win 13s linear infinite; animation-delay: var(--t);
}
@keyframes artmap-win {
  0%   { opacity: 0; transform: translateY(2px); }
  5%   { opacity: 1; transform: translateY(-5px); }   /* fade in, just above */
  13%  { opacity: 1; transform: translateY(-9px); }   /* hold, drift up a touch */
  20%  { opacity: 0; transform: translateY(-14px); }  /* fade out */
  100% { opacity: 0; transform: translateY(-14px); }
}
/* Points win a plant: at the ice cream, a seedling fades up as the dot passes
   — same gentle fade-in/fade-out as the points, never a pop-in. */
.artmap-plant {
  font-size: 30px; text-anchor: middle; dominant-baseline: central; opacity: 0;
  animation: artmap-plant 13s linear infinite; animation-delay: var(--t);
}
@keyframes artmap-plant {
  0%   { opacity: 0; transform: translateY(2px); }
  5%   { opacity: 1; transform: translateY(-5px); }
  13%  { opacity: 1; transform: translateY(-9px); }
  20%  { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 0; transform: translateY(-14px); }
}
.superwin {
  margin: 34px auto 0; width: min(340px, 92%);
  border-radius: var(--radius); padding: 24px;
  background: linear-gradient(135deg, #5B6BE8, #7048E8);
  box-shadow: 0 18px 60px rgba(112, 72, 232, .45);
  color: #fff; text-align: center;
  animation: spring .9s cubic-bezier(.22, 1.6, .36, 1) .4s backwards;
}
.superwin .pill {
  display: inline-block; font: 700 .72rem/1 var(--body); letter-spacing: .16em;
  background: rgba(255, 255, 255, .18); border-radius: 99px; padding: 7px 12px;
}
.superwin .big {
  font: 800 clamp(2.8rem, 9vw, 4rem) var(--display); letter-spacing: -0.03em;
  color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.05;
}
@keyframes spring { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Confetti (one-shot, JS-spawned spans) */
.confetti-zone { position: relative; }
.cf {
  position: absolute; top: 40%; left: 50%; width: 9px; height: 14px;
  border-radius: 2px; pointer-events: none; opacity: 0;
  animation: cf 1.3s ease-out forwards;
}
@keyframes cf {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}
.store-badge {
  display: inline-flex; flex-direction: row; align-items: center; gap: 12px;
  border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 14px;
  padding: 11px 22px; color: #fff; text-decoration: none;
}
.badge-mark { width: 26px; height: 26px; flex: none; fill: currentColor; }
.badge-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.store-badge small { font-size: .72rem; color: #A7A3B8; letter-spacing: .08em; text-transform: uppercase; }
.store-badge b { font-family: var(--display); font-size: 1.05rem; line-height: 1; }

/* ── Footer + solvency pulse ────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--line); padding: 44px 0 70px; margin-top: 40px;
  font-size: .92rem;
}
body.night footer.site { border-color: rgba(255, 255, 255, .09); }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
body.night footer.site a:hover { color: #fff; }
.solvency {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(18, 184, 134, .4); border-radius: 99px;
  padding: 8px 16px; color: var(--mint); font-weight: 700; font-size: .85rem;
  text-decoration: none;
}
.solvency i {
  width: 8px; height: 8px; border-radius: 99px; background: var(--mint);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(18,184,134,.5); } 50% { box-shadow: 0 0 0 7px rgba(18,184,134,0); } }

/* ── Language switcher (footer; also inline on 404) ─────────────────── */
nav.langs, footer.site nav.langs {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .85rem; font-weight: 700; letter-spacing: .05em;
}
.langs a { color: var(--muted); text-decoration: none; padding: 2px 7px; border-radius: 8px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--gold-deep); }
body.night .langs a:hover, body.night .langs a[aria-current] { color: var(--gold); }
.langs span { color: var(--line); user-select: none; }
body.night .langs span { color: rgba(255, 255, 255, .25); }

/* Honesty microline under hero CTAs */
.honesty { font-size: .84rem; color: var(--muted); max-width: 52ch; margin-top: 16px; }
.honesty b { color: var(--ink); }
body.night .honesty b { color: #ECEAF4; }
/* the art-map runs behind this line — give it a soft dark cushion so it reads */
body.night .honesty {
  background: radial-gradient(ellipse 130% 160% at 50% 50%, rgba(13,13,20,.92), rgba(13,13,20,.62) 52%, transparent 82%);
  text-shadow: 0 1px 8px rgba(13,13,20,.95);
  padding: 10px 22px; border-radius: 14px;
}

/* FAQ */
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 20px; margin-bottom: 10px;
}
details.faq summary { font-weight: 700; cursor: pointer; padding: 14px 0; color: var(--ink); }
details.faq p { padding-bottom: 14px; }

/* Wide content scrolls inside its own box, never the page. */
.table-scroll { overflow-x: auto; }

/* Pricing receipt table */
table.rtable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.rtable th, table.rtable td { text-align: left; padding: 10px 8px; border-bottom: 1.5px dashed var(--line); }
table.rtable td.n { text-align: right; font-weight: 800; font-family: var(--display); }
table.rtable tr.total td { border-bottom: 0; color: var(--gold-deep); font-size: 1.15rem; }

/* ── Mobile hardening ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 48px 0; }
  .grid2 { gap: 26px; }
  /* The rotated receipt clips at the viewport edge on small screens. */
  .receipt { transform: none; }
}
/* The how-it-works phone on mobile: the device becomes a compact loyalty
   card PINNED below the nav (order:-1 lifts it above the steps), and the
   steps scroll underneath — so the "fills as you scroll" theatre works on
   a phone too, not just desktop. */
@media (max-width: 860px) {
  .desk-only { display: none; }
  .sticky-col {
    display: block;
    order: -1;                 /* pin the card ABOVE the steps in the stack */
    position: sticky;
    top: 56px;                 /* just under the sticky nav */
    z-index: 5;
    margin: 0 -22px;           /* full-bleed so the header reads as a bar */
    padding: 12px 22px 14px;
    background: var(--paper);
    box-shadow: 0 10px 14px -10px rgba(23, 21, 31, .3);
  }
  /* Strip the device frame — show just the card + points + bar. */
  .phone { width: 100%; background: transparent; padding: 0;
    border-radius: 0; box-shadow: none; }
  .phone .screen { min-height: 0; background: transparent; padding: 0;
    gap: 8px; }
  .phone .stamps { grid-template-columns: repeat(6, 1fr); gap: 6px;
    margin-top: 10px; }
  .stamp { aspect-ratio: 1; }
  .phone .screen > div:last-child { display: none; } /* drop caption for height */
  /* Breathing room so step 1 isn't jammed under the pinned card. */
  .step:first-child { padding-top: 18px; }
}
.mobile-only { display: none; }
@media (max-width: 860px) { .mobile-only { display: inline; } }
@media (max-width: 520px) {
  .nav .wrap { gap: 12px; height: 56px; }
  .logo { font-size: 1.05rem; }
  .nav a.cta { padding: 0 14px !important; font-size: .82rem !important; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
}
@media (max-width: 430px) {
  /* One monument per row: 77.7% at display size needs the full width. */
  .monuments { grid-template-columns: 1fr !important; }
  .monument .val { font-size: 2.8rem; }
  .receipt { padding: 20px 18px 28px; font-size: .88rem; }
  .receipt .r-big { font-size: 2.9rem; }
  .plaque { padding: 22px 18px; }
  .superwin .big { font-size: 2.6rem; }
}

/* ── Reduced motion: everything lands lit, printed, and still ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .receipt.print > * { animation: none; opacity: 1; transform: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .window, .superwin, .solvency i, .btn { animation: none !important; transition: none; }
  .artmap-traveler, .artmap-win, .artmap-plant { animation: none !important; opacity: 0; }
  .stamp { transition: none; }
  .t-row { transition: none; }
  .cf { display: none; }
}

/* ── tochki.bg addendum (the only lines not verbatim from lootlocal):
   the точки.бг wordmark image in the LootLocal header. Ink-cropped SVG
   (viewBox 159x37.8); white silhouette on the night pages. ── */
.logo img { height: 44px; width: auto; display: block; }
/* night pages use tochki-logo-night.svg: white letterform, original о echoes */
@media (max-width: 520px) { .logo img { height: 36px; } }
