/* точки.бг storefront — THE BRIGHT COUNTER.
   Own brand system (registered mark точки.бг №167005): white ground,
   near-black ink, teal #05B0A0 + magenta #E6007E as the chromatic-offset
   accent device (the mark's misregistered "о"). This is NOT LootLocal's
   night/gold theme — no gradients-as-backgrounds, generous whitespace,
   system stack with first-class Cyrillic rendering. */

:root {
  --paper: #FFFFFF;
  --ground: #FAFAF8;
  --ink: #0A0A0A;
  --muted: #55555E;
  --line: rgba(10, 10, 10, .13);
  --teal: #05B0A0;
  --teal-deep: #037A6F;   /* AA-safe teal for small text on white */
  --magenta: #E6007E;
  --teal-soft: rgba(5, 176, 160, .55);
  --magenta-soft: rgba(230, 0, 126, .42);
  --radius: 18px;
  --stack: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

/* ── Type ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1em; color: var(--muted); max-width: 62ch; }
p strong, li strong { color: var(--ink); }
.kicker {
  font: 700 .78rem/1.3 var(--stack);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 14px;
}
.num { font-variant-numeric: tabular-nums; }

/* The chromatic offset lives in the registered mark itself (logo + о
   favicon) — per brand review it is identity, not decoration: no offset
   shadows on numbers, buttons or cards. Teal/magenta stay as flat accents.
   .accent is the flat emphasis fill at the former chroma sites: magenta on
   white surfaces, overridden to gold inside the night band. */
.accent { color: var(--magenta); }

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
section { padding: 76px 0; }
section.alt { background: var(--ground); }
.grid2 {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; gap: 34px; } }

/* ── Nav ────────────────────────────────────────────────────────────── */
header.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 84px; }
.nav .logo { display: inline-flex; align-items: center; }
/* the wordmark asset is ink-cropped (viewBox 159x37.8) — 60px box renders
   the script itself at ~52px, per brand review ("substantially bigger") */
.nav .logo img { height: 60px; width: auto; display: block; }
.nav nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }
.nav nav a[aria-current] { box-shadow: 0 2px 0 var(--teal); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 14px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 6px 18px rgba(10, 10, 10, .18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(10, 10, 10, .24); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent {
  background: var(--magenta); color: #fff;
  box-shadow: 0 6px 18px rgba(230, 0, 126, .28);
}
.btn-accent:hover { transform: translateY(-1px); }
/* Coming-soon App Store state — deliberately not a live store link yet. */
.btn-soon {
  background: var(--ground); color: var(--muted);
  border: 1.5px dashed rgba(10, 10, 10, .3); cursor: default; gap: 10px;
}
.btn-soon .tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--magenta);
  border-radius: 99px; padding: 3px 9px;
}
.soon-note { font-size: .84rem; color: var(--muted); margin-top: 10px; }

/* ── Hero devices ───────────────────────────────────────────────────── */
.dropcard {
  display: inline-flex; flex-direction: column; gap: 6px; align-items: center;
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(10, 10, 10, .28);
  padding: 26px 40px; margin-top: 30px;
  /* the card is a white surface — never inherit the night band's pale text */
  color: var(--ink);
}
.dropcard .pill {
  font-size: .74rem; font-weight: 800; letter-spacing: .12em;
  color: var(--magenta); text-transform: uppercase;
}
.dropcard .big {
  font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 800; letter-spacing: -0.03em;
  color: var(--magenta);
}
.dropcard .sub { font-size: .9rem; color: var(--muted); }

/* Honesty microline */
.honesty { font-size: .84rem; color: var(--muted); max-width: 54ch; margin-top: 16px; }
.honesty b { color: var(--ink); }

/* ── Cards ──────────────────────────────────────────────────────────── */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.fcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 18px;
  box-shadow: 0 10px 30px rgba(10, 10, 10, .06);
}
.fcard .emoji { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.fcard p { font-size: .95rem; margin-bottom: 0; }

.margin-note {
  border-left: 3px solid var(--teal); background: var(--ground);
  border-radius: 0 14px 14px 0; padding: 14px 18px;
  font-size: .95rem; color: var(--muted);
}
.margin-note b { color: var(--ink); }

.plaque {
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(10, 10, 10, .08); padding: 26px 28px;
}
.plaque ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plaque li { margin-bottom: 9px; }

/* ── Receipt (the honest bill) ──────────────────────────────────────── */
.receipt {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(10, 10, 10, .12);
  padding: 26px 24px 30px; max-width: 420px; margin: 0 auto;
  font-variant-numeric: tabular-nums;
}
.receipt .r-head {
  text-align: center; font-weight: 800; letter-spacing: .1em; font-size: .8rem;
  border-bottom: 2px dashed var(--line); padding-bottom: 12px; margin-bottom: 12px;
}
.receipt .r-big {
  text-align: center; font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em;
  margin: 8px 0 14px; color: var(--magenta);
}
.receipt .r-big small { font-size: 1.1rem; color: var(--muted); font-weight: 700; }
.receipt .r-line {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: .82rem; letter-spacing: .04em; padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.receipt .tick { color: var(--teal-deep); font-weight: 800; }
.receipt .r-foot {
  text-align: center; font-size: .72rem; letter-spacing: .09em; color: var(--muted);
  padding-top: 14px;
}

/* ── Monuments (the numbers) ────────────────────────────────────────── */
.monuments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .monuments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px) { .monuments { grid-template-columns: 1fr; } }
.monument {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px;
}
.monument .val { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--magenta); }
.monument .val small { font-size: .55em; color: var(--muted); }
.monument .cap { font-weight: 800; margin-top: 6px; }
.monument .sub { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.monument .microtick {
  display: inline-block; margin-top: 12px; font-size: .72rem; font-weight: 700;
  color: var(--teal-deep); border: 1px solid rgba(5, 176, 160, .4);
  border-radius: 99px; padding: 3px 10px;
}

/* ── Steps (how-it-works) ───────────────────────────────────────────── */
.step { border-bottom: 1px dashed var(--line); padding: 26px 0; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step p { margin-bottom: 0; }

/* Static demo loyalty card */
.democard {
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(10, 10, 10, .1); padding: 24px; max-width: 360px; margin: 0 auto;
}
.democard .t { font-weight: 800; }
.democard .s { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.democard .stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.democard .stamp {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--ground); border: 1px dashed var(--line); border-radius: 10px;
  font-size: 1.2rem;
}
.democard .stamp.on { background: rgba(5, 176, 160, .14); border-style: solid; border-color: var(--teal); }
.democard .bar {
  height: 9px; border-radius: 99px; background: var(--ground);
  border: 1px solid var(--line); margin: 16px 0 8px; overflow: hidden;
}
.democard .bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--teal), var(--magenta)); }
.democard .cap { font-size: .78rem; color: var(--muted); }

/* ── Audit checklist ────────────────────────────────────────────────── */
.audit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 24px; max-width: 460px;
}
.audit .row {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .95rem;
}
.audit .row:last-child { border-bottom: 0; }
.audit .ok { color: var(--teal-deep); font-weight: 800; font-size: .82rem; letter-spacing: .06em; white-space: nowrap; }

/* ── FAQ + tables ───────────────────────────────────────────────────── */
details.faq {
  background: #fff; 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; }

.table-scroll { overflow-x: auto; }
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; }
table.rtable tr.total td { border-bottom: 0; color: var(--magenta); font-size: 1.12rem; }

/* ── Solvency pill + footer ─────────────────────────────────────────── */
.solvency {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(5, 176, 160, .45); border-radius: 99px;
  padding: 8px 16px; color: var(--teal-deep); font-weight: 700; font-size: .85rem;
  text-decoration: none;
}
.solvency i { width: 8px; height: 8px; border-radius: 99px; background: var(--teal); }

footer.site {
  border-top: 1px solid var(--line); padding: 44px 0 70px; margin-top: 40px;
  font-size: .92rem;
}
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); }
footer.site .fine { color: var(--muted); font-size: .84rem; }

/* Language switcher (БГ · EN) */
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(--magenta); }
.langs span { color: var(--line); user-select: none; }

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .nav .wrap { gap: 12px; height: 64px; }
  .nav .logo img { height: 44px; }
  .nav nav { gap: 12px; }
  .nav nav a { font-size: .88rem; }
  .dropcard { padding: 20px 26px; }
}

/* ── NIGHT BAND — lifted 1:1 from site/assets/site.css ────────────────
   Rami: "do not try to replicate them, copy them 1:1". The art-map
   (site.css 499-551) and the breathing street windows (site.css 474-497)
   are copied verbatim below. The LootLocal originals sit on body.night;
   here the same declarations are scoped to .night-band — the element's
   dark container carried along as a contained band inside the white page
   (that scoping, plus the two var aliases, is the only integration glue). */
.night-band {
  --night: #0D0D14; --gold: #F5A623; --display: var(--stack);
  background: var(--night); color: #ECEAF4;
}
.night-band h1, .night-band h2, .night-band h3 { color: #fff; }
.night-band p { color: #A7A3B8; }
.night-band .kicker { color: var(--gold); }
.night-band .honesty b { color: #ECEAF4; }
/* emphasis fills, audited per surface: gold on the night band (9.4:1),
   magenta on white surfaces (4.5:1; former chroma sites) */
.night-band p strong { color: var(--gold); }
.night-band .accent { color: var(--gold); }
/* the art-map runs behind this line — same soft dark cushion as the source */
.night-band .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;
}

/* 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); }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .window { animation: none !important; }
  .artmap-traveler, .artmap-win, .artmap-plant { animation: none !important; opacity: 0; }
}
