/* ============================================================
   BCNLOOP — styles
   Palette sampled from the final printed stickers.
   ============================================================ */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0B132B;
  --navy-deep: #070D20;
  --navy-2: #121C3A;
  --navy-3: #1A2548;
  --line: #26325A;
  --orange: #E54817;
  --orange-press: #C93D10;
  --orange-text: #FF7A4D;   /* orange for small text on navy: 6.4:1 (brand orange is 3.9:1, buttons/large only) */
  --white: #FFFFFF;
  --logo-white: #E8E8E8;
  --text: #E9ECF5;
  --muted: #A9B1C7;         /* 8.9:1 on navy */
  --radius: 22px;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, .micro, .lead { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 8px; }

/* ---------- shared bits ---------- */
.wordmark { direction: ltr; unicode-bidi: isolate; font-family: var(--display); font-weight: 400; line-height: .92; letter-spacing: .005em; margin: 0; text-transform: uppercase; display: block; }
.wordmark .bcn { color: var(--logo-white); }
.wordmark .loop { color: var(--orange); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 380px; min-height: 56px; margin: 0 auto;
  padding: 17px 26px; border-radius: 999px; border: 0;
  background: var(--orange); color: var(--white);
  font: 700 19px/1.2 var(--body); text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 12px 34px rgba(229, 72, 23, .32), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #F0541F; }
.btn:active { transform: scale(.98); background: var(--orange-press); }
.btn.ghost { background: transparent; border: 2px solid var(--line); color: var(--white); box-shadow: none; font-weight: 600; font-size: 16px; padding: 14px 22px; min-height: 48px; }
.btn.ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.04); }
.micro { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); text-wrap: balance; }

.rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rings circle { fill: none; stroke: #7C8BC0; stroke-opacity: .16; stroke-width: 1.2; }

/* ---------- water (water.js) — fades in over the static rings, which stay as the fallback ---------- */
[data-water] { position: relative; isolation: isolate; overflow: hidden; }
[data-water] > .rings { z-index: -2; transition: opacity .9s ease; }
.water { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.fx-on > .water { opacity: 1; }
.fx-on > .rings { opacity: 0; }
.water-hint {
  position: absolute; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); margin: 0;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-align: center;
  color: var(--muted); opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.fx-on:not(.fx-touched) > .water-hint { opacity: .75; }

/* ============================================================
   LANDING (mobile-first)
   ============================================================ */
.landing { position: relative; }

/* First viewport: wordmark + one line + one button + trust line */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(36px + env(safe-area-inset-top)) 22px calc(92px + env(safe-area-inset-bottom));
  text-align: center; touch-action: pan-y;
  background: radial-gradient(120% 70% at 50% 36%, #141E3C 0%, var(--navy) 70%);
}
.hero-inner { width: 100%; max-width: 420px; margin: 0 auto; text-shadow: 0 2px 22px rgba(7, 13, 32, .55); }
.lockup { margin: 0; font-weight: 400; }
.lockup .wordmark { font-size: clamp(80px, 27vw, 132px); }
.tagline {
  display: block; margin-top: 16px;
  font: 400 clamp(24px, 7.2vw, 32px)/1.05 var(--display); letter-spacing: .015em; color: var(--white);
}
.promise { margin: 16px auto 30px; max-width: 300px; font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
.promise.context { font-weight: 600; color: #FF9A74; }
.hero .btn { max-width: 340px; }
.hero .micro.trust { margin-top: 14px; font-size: 12.5px; max-width: 280px; margin-inline: auto; }
.is-buyer .hero .micro.trust, .is-buyer .final > p:not(.micro):not(.proof), .is-buyer .final .micro.trust { display: none; }
.returning {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(7, 13, 32, .78); border: 1px solid rgba(229, 72, 23, .55); color: var(--text); font-size: 13.5px; text-decoration: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.returning b { color: var(--orange-text); font-weight: 700; }
.how-link {
  position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.how-link span { display: inline-block; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }
.how-link:hover { color: var(--white); }

/* Below the fold: open sections, hairline dividers, left-aligned reading */
.section { max-width: 520px; margin: 0 auto; padding: 56px 24px; border-top: 1px solid var(--line); scroll-margin-top: 8px; }
.kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-text); }
.section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 9.4vw, 40px); line-height: 1.02; letter-spacing: .01em; margin: 0 0 26px; color: var(--white); }
.section-lede { margin: -14px 0 20px; color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 30px/1 var(--display); color: var(--orange); padding-top: 2px; }
.steps b { display: block; color: var(--white); font-weight: 600; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }

.vs { display: grid; gap: 12px; }
.card { border-radius: 20px; padding: 18px 20px; border: 1px solid var(--line); }
.card .tag { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card .claim { margin: 0; font-size: 17px; line-height: 1.45; }
.card.trap { background: transparent; }
.card.trap .tag { color: var(--muted); }
.card.trap .claim { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(229, 72, 23, .75); text-decoration-thickness: 2px; }
.card.loop { background: var(--navy-2); border-color: rgba(229, 72, 23, .55); }
.card.loop .tag { color: var(--white); }
.card.loop .claim { color: var(--white); font-weight: 500; }
.icon { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; line-height: 1; flex: none; text-decoration: none; }
.card.trap .icon { background: rgba(169, 177, 199, .14); color: var(--muted); }
.card.loop .icon { background: var(--orange); color: var(--white); }

.inside { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.inside li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.inside .ic { width: 48px; height: 48px; border-radius: 16px; background: var(--navy-2); border: 1px solid var(--line); display: grid; place-items: center; }
.inside .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--orange-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inside b { display: block; color: var(--white); font-weight: 600; font-size: 17px; }
.inside span:not(.ic) { color: var(--muted); font-size: 15px; }

.gallery { max-width: 520px; margin: 0 auto; padding: 0 0 48px; }
.gallery ul { list-style: none; margin: 0; padding: 0 24px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery ul::-webkit-scrollbar { display: none; }
.gallery li { flex: 0 0 68%; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: var(--navy-2); aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.spots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.spot { border-radius: 18px; padding: 18px 20px; background: var(--navy-2); border: 1px solid var(--line); }
.spot h3 { margin: 0; font-size: 18px; color: var(--white); }
.spot .area { margin: 2px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #FF9A74; }
.spot dl { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; }
.spot dt { color: var(--muted); }
.spot dd { margin: 0; color: var(--text); }
.spot a { font-size: 14px; font-weight: 600; color: var(--white); text-underline-offset: 3px; }

.who { display: flex; gap: 16px; align-items: flex-start; }
.who img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); flex: none; }
.section .who-name { margin: 0; font-family: var(--body); font-weight: 600; font-size: 18px; color: var(--white); }
.who .role { margin: 2px 0 8px; font-size: 13px; color: #FF9A74; font-weight: 600; }
.who p { margin: 0; color: var(--muted); font-size: 15px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding-block: 16px; padding-inline: 0 32px; min-height: 44px; font-weight: 600; color: var(--white); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--orange-text); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.final { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.section.final h2 { font-size: clamp(38px, 11vw, 52px); margin-bottom: 14px; }
.final > p:not(.micro):not(.proof) { margin: 0 auto 26px; max-width: 300px; color: var(--muted); }
.proof { margin: 14px auto 0; font-size: 13.5px; font-weight: 600; color: var(--white); text-align: center; }

.foot { padding: 36px 24px calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.foot .wordmark { font-size: 34px; margin-bottom: 12px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--white); text-underline-offset: 3px; }

/* sticky CTA (mobile landing only) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(7, 13, 32, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease; }
.sticky.show { transform: none; }
.sticky .btn { max-width: 480px; padding: 15px 22px; font-size: 18px; min-height: 52px; }

/* ============================================================
   HANDOFF (desktop + tablet) — shown instead of the landing
   ============================================================ */
.handoff { display: none; }
@media (min-width: 810px) and (min-height: 560px) {
  html:not(.view-landing) .landing, html:not(.view-landing) .sticky { display: none !important; }
  html:not(.view-landing) .handoff { display: flex; }
}
.handoff { min-height: 100vh; align-items: center; justify-content: center; text-align: center; padding: 48px 24px;
  background: radial-gradient(90% 80% at 50% 50%, #141E3C 0%, var(--navy) 70%); }
.handoff .rings circle { stroke-opacity: .2; }
.handoff-inner { display: flex; flex-direction: column; align-items: center; }
.handoff .wordmark { font-size: clamp(88px, 11vw, 150px); }
.handoff .lead { margin: 26px 0 32px; font-size: clamp(18px, 1.8vw, 24px); color: var(--muted); max-width: 520px; text-shadow: 0 2px 22px rgba(7, 13, 32, .6); }
.qr-card { background: var(--white); border-radius: 24px; padding: clamp(14px, 1.6vw, 20px); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 80px rgba(229, 72, 23, .22); }
.qr-card img, .qr-card svg { width: clamp(220px, 22vw, 280px); height: auto; aspect-ratio: 1; }
/* With JS, the static QR (→ bcnloop.com) is never shown: handoff.js draws the right one into the same box.
   If that never happens (script blocked/failed), the static one appears after 2.5 s as a fallback. */
.js .qr-card img { visibility: hidden; animation: qr-fallback 0s 2.5s forwards; }
@keyframes qr-fallback { to { visibility: visible; } }
.qr-card svg { animation: qr-in .35s ease both; }
@keyframes qr-in { from { opacity: 0; } }
.handoff .support { margin: 26px 0 6px; font-size: 14px; color: var(--muted); }
.handoff .domain { margin: 0; font-size: 13px; letter-spacing: .24em; font-weight: 600; color: var(--orange-text); }

/* ============================================================
   WELCOME (post-purchase unlock)
   ============================================================ */
.welcome { max-width: 480px; margin: 0 auto; padding: 22px 16px 48px; }
.panel { border-radius: 28px; background: var(--navy-2); border: 1px solid var(--line); padding: 28px 20px 26px; text-align: center; }
.badge { display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.welcome .wordmark { font-size: clamp(54px, 17vw, 76px); margin: 22px 0 14px; }
.welcome h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 9vw, 40px); line-height: 1.05; margin: 0 0 12px; color: var(--white); }
.welcome .lede { margin: 0 auto 22px; max-width: 340px; color: var(--muted); font-size: 15.5px; }
.map { text-align: start; border-radius: 20px; background: var(--navy); border: 1px solid var(--line); padding: 14px; margin: 0 0 22px; }
.map header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.map header span:last-child { color: #FF7A4D; }
.map svg { width: 100%; height: auto; border-radius: 14px; background: #070D20; }
.map p { margin: 12px 4px 2px; font-size: 14.5px; color: var(--muted); }
.rules-title { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 6px 0 12px; text-align: start; color: var(--white); }
.rule { text-align: start; border-radius: 18px; background: var(--navy); border: 1px solid var(--line); padding: 16px 18px; margin: 0 0 12px; }
.rule .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--navy-3); display: grid; place-items: center; margin-bottom: 10px; font-size: 18px; }
.rule h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.rule p { margin: 0; font-size: 15px; color: var(--muted); }
/* welcome hierarchy: 1 main map (orange) · 2 bonuses (warm outline, soft buttons) · 3 rules (neutral) · 4 utility */
.return-tip { margin: 12px 4px 0; font-size: 13px; color: var(--muted); text-align: center; }
.bonuses { margin: 52px 0 34px; padding-top: 30px; border-top: 1px solid var(--line); text-align: start; }
.bonuses .kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-text); }
.bonuses .rules-title { margin-top: 0; }
.bonus-card {
  margin: 0 0 14px; padding: 20px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(229, 72, 23, .10), rgba(229, 72, 23, .02) 55%), var(--navy);
  border: 1px solid rgba(229, 72, 23, .45);
}
.bonus-head { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; margin-bottom: 12px; }
.bonus-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(229, 72, 23, .14); }
.bonus-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--orange-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bonus-head > div { min-width: 0; }
.chip { display: block; margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.bonus-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; letter-spacing: .01em; color: var(--white); }
.bonus-card > p { margin: 0; font-size: 15px; color: var(--muted); }
.btn.soft {
  margin: 16px 0 0; max-width: none; min-height: 48px; padding: 12px 20px; font-size: 16px; font-weight: 600;
  background: rgba(229, 72, 23, .14); border: 1px solid rgba(229, 72, 23, .6); color: var(--white); box-shadow: none;
}
.btn.soft:hover { background: rgba(229, 72, 23, .24); }
.btn.soft:active { background: rgba(229, 72, 23, .32); }
.keep { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.keep .tip a { color: var(--white); text-underline-offset: 3px; }
.actions { margin-top: 22px; display: grid; gap: 12px; }
.actions .btn { max-width: none; }
.tip { margin: 16px 6px 0; font-size: 12.5px; color: #8A94B2; }
.copy { margin: 14px auto 0; max-width: none; }
.state { text-align: center; padding: 40px 12px; }
.state .wordmark.wm-state { font-size: 64px; margin: 20px 0 8px; }
.hl { color: var(--white); }
.state h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 10px; color: var(--white); }
.state p { color: var(--muted); max-width: 320px; margin: 0 auto 22px; }
.spinner { width: 34px; height: 34px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dot-pulse { animation: dp 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes dp { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.5); } }

/* ---------- access recovery (/recover/) ---------- */
.recover form { display: grid; gap: 10px; text-align: start; margin: 0 auto 18px; max-width: 340px; }
.recover label { font-size: 13px; font-weight: 600; color: var(--muted); }
.recover input[type=email] { min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--navy); color: var(--white); font: 16px/1.3 var(--body); }
.recover input[type=email]:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.recover .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.recover .btn.ghost { margin-top: 8px; }
.recover-msg { max-width: 340px; margin: 0 auto 16px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; text-align: start; }
.recover-msg.ok { background: rgba(61, 220, 132, .10); border: 1px solid rgba(61, 220, 132, .45); color: var(--text); }
.recover-msg.warn { background: rgba(229, 72, 23, .10); border: 1px solid rgba(229, 72, 23, .5); color: var(--text); }
.recover-link { margin: -6px auto 18px; font-size: 14px; }
.recover-link a { color: var(--white); text-underline-offset: 3px; }

/* ---------- languages (i18n.js) ---------- */
.i18n-pending body { visibility: hidden; animation: i18n-reveal 0s 1.2s forwards; }   /* no flash of English; safety reveal */
@keyframes i18n-reveal { to { visibility: visible; } }
.lang { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 30; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(7, 13, 32, .72); border: 1px solid var(--line); color: var(--text); font: 600 12.5px/1 var(--body); letter-spacing: .06em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-btn:hover { border-color: var(--muted); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; margin: 0; padding: 6px; list-style: none; min-width: 168px;
  background: var(--navy-deep); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.lang-menu button { display: block; width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: var(--text);
  font: 500 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: start; cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--navy-2); }
.lang-menu button[aria-checked="true"] { color: var(--white); font-weight: 700; }
.lang-menu button[aria-checked="true"]::after { content: " ✓"; color: var(--orange-text); }
/* Anton/Poppins have no Cyrillic/CJK glyphs: use the phone's own fonts for those languages (no web-font download) */
html:lang(uk), html:lang(ko), html:lang(zh), html:lang(ja) {
  --body: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", "Noto Sans CJK SC", "Noto Sans", Roboto, sans-serif;
}
html:lang(ko) .wordmark, html:lang(zh) .wordmark, html:lang(ja) .wordmark, html:lang(uk) .wordmark { font-family: "Anton", "Impact", sans-serif; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .qr-card img { animation: qr-fallback 0s 2.5s forwards !important; }
  .i18n-pending body { animation: i18n-reveal 0s 1.2s forwards !important; }   /* not motion: keeps the no-JS fallback */
}

/* welcome: task-first onboarding */
/* welcome: task-first onboarding */
.onboard { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: o; display: grid; gap: 16px; text-align: start; }
.onboard li { counter-increment: o; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; }
.onboard li::before { content: counter(o); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-3); color: var(--white); font-weight: 700; font-size: 15px; }
.onboard b { display: block; color: var(--white); font-weight: 600; line-height: 34px; }   /* = circle height: number and title share one centre line */
.onboard span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.cta-block { margin: 0 0 22px; }
.cta-block .btn { max-width: none; }


.context { overflow-wrap: anywhere; }
/* robustness: long unbroken strings (names, URLs, bios) must never widen the page */
.spot, .who, .faq p, .card p, .onboard span, .rule p, .proof, .micro, .promise { overflow-wrap: anywhere; }
.spot dd, .who > div, .onboard li > div { min-width: 0; }

/* ============================================================
   LEGAL PAGES (/privacy/, /terms/) — plain reading layout
   ============================================================ */
.legal { max-width: 680px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 24px 64px; }
.legal-home { display: table; font-size: 30px; text-decoration: none; margin-bottom: 22px; }
.draft { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 8px; border: 1px dashed var(--orange-text); color: var(--orange-text); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 10vw, 52px); line-height: 1.02; margin: 0 0 6px; color: var(--white); }
.legal .updated { margin: 0 0 28px; font-size: 13px; color: var(--muted); }
.legal h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 600; color: var(--white); }
.legal h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 600; color: var(--white); }
.legal p, .legal li { color: var(--text); font-size: 15.5px; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-inline-start: 20px; }
.legal li { margin-bottom: 6px; }
.legal em { color: var(--muted); font-style: normal; font-weight: 600; }
.legal a { color: var(--white); text-underline-offset: 3px; }
.legal-foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.legal-links { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.legal-links a { color: var(--muted); text-underline-offset: 3px; }
.legal, .legal p, .legal li { overflow-wrap: anywhere; }

/* ---------- Arabic (right-to-left) ----------
   Layout mirrors via dir="rtl" (set by boot.js / i18n.js) + logical properties above (text-align: start, padding-inline…).
   Anton/Poppins have no Arabic glyphs: use the phone's own Arabic fonts (no web-font download). Arabic letters join,
   so letter-spacing must be 0 and uppercase/tight line-heights don't apply. The wordmark and numbers stay Anton, LTR. */
html:lang(ar) {
  --body: system-ui, -apple-system, "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --display: system-ui, -apple-system, "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
html:lang(ar) body *:not(.wordmark):not(.wordmark *) { letter-spacing: 0 !important; }
html:lang(ar) .wordmark, html:lang(ar) .steps li::before { font-family: "Anton", "Impact", sans-serif; }
html:lang(ar) :is(.tagline, .section h2, .welcome h1, .rules-title, .bonus-card h3, .state h2, .legal h1) { font-weight: 800; line-height: 1.35; }
html[dir="rtl"] .recover input[type=email] { direction: ltr; text-align: right; }

/* ============================================================
   OUR TOP 3 (/favorites/) — three expandable cards; the perk "ticket" is the page's one memorable element
   ============================================================ */
.favs { max-width: 520px; padding-top: calc(22px + env(safe-area-inset-top)); }
.favs-home { display: table; font-size: 30px; text-decoration: none; margin: 4px 0 26px; }
.favs-head { margin-bottom: 22px; }
.favs h1 { font-size: clamp(40px, 12vw, 56px); margin: 0 0 10px; }
.favs .lede { margin: 0; max-width: 380px; }
.fav-sample-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255, 122, 77, .6); font-size: 13px; color: var(--muted); }
.fav-badge { display: inline-block; padding: 2px 8px; margin-inline-end: 4px; border-radius: 6px; border: 1px dashed var(--orange-text); color: var(--orange-text); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; vertical-align: 1px; }

.fav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fav details { border-radius: 22px; background: var(--navy-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s ease; }
.fav details[open] { border-color: rgba(229, 72, 23, .55); }
.fav summary { list-style: none; cursor: pointer; display: grid; gap: 6px; padding: 18px 18px 16px; -webkit-tap-highlight-color: transparent; }
.fav summary::-webkit-details-marker { display: none; }
.fav summary:focus-visible { outline-offset: -3px; border-radius: 22px; }
.fav-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fav-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.fav-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(229, 72, 23, .14); }
.fav-ico svg, .fav-ph svg { width: 18px; height: 18px; fill: none; stroke: var(--orange-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fav-num { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--line); }
.fav-name { font-family: var(--display); font-size: 30px; line-height: 1.05; letter-spacing: .01em; color: var(--white); }
.fav summary .fav-badge { justify-self: start; }
.fav-tag { font-size: 15px; color: var(--text); }
.fav-pill { justify-self: start; display: inline-flex; align-items: baseline; gap: 8px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(229, 72, 23, .12); font-size: 13.5px; color: var(--white); }
.fav-pill-k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.fav-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fav-more::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.fav details[open] .fav-more { visibility: hidden; height: 0; margin: 0; }

.fav-body { padding: 0 18px 20px; display: grid; gap: 16px; }
.fav details[open] .fav-body { animation: fav-in .28s ease-out; }
@keyframes fav-in { from { opacity: 0; transform: translateY(-6px); } }
.fav-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.fav-photo img { width: 100%; height: 100%; object-fit: cover; }
.fav-photo.is-empty { display: grid; place-content: center; justify-items: center; gap: 10px; border: 1px dashed var(--line); }
.fav-ph svg { width: 40px; height: 40px; stroke: var(--line); stroke-width: 1.4; }
.fav-photo figcaption { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fav-desc { margin: 0; font-size: 15px; color: var(--muted); }
.fav-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.fav-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); padding-top: 3px; }
.fav-facts dd { margin: 0; color: var(--text); min-width: 0; }

/* the ticket: dashed tear line + punched notches (navy circles on the card edge) */
.ticket { position: relative; padding: 16px 18px; border-radius: 14px; background-color: var(--orange-press); color: var(--white); text-align: center;   /* white on #C93D10 = 5:1 (AA for small text) */
  background-image: radial-gradient(circle at 0 50%, var(--navy-2) 9px, transparent 10px), radial-gradient(circle at 100% 50%, var(--navy-2) 9px, transparent 10px); }
.ticket::before { content: ""; position: absolute; inset: 8px 22px; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 8px; pointer-events: none; }
.ticket p { margin: 0; position: relative; }
.ticket-k { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ticket-v { margin: 4px 0 6px !important; font-family: var(--display); font-size: 24px; line-height: 1.1; letter-spacing: .01em; }
.ticket-how { font-size: 12.5px; line-height: 1.4; }

.fav-actions { display: grid; gap: 10px; }
.fav-actions .btn.soft { margin: 0; }
.fav-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fav-row .btn { max-width: none; margin: 0; }
.btn.is-off { opacity: .45; cursor: default; pointer-events: none; }
.fav-off-note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

.favs-foot { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.favs-foot .rules-title { text-align: center; margin: 0 0 8px; }
.favs-foot > p:not(.micro) { margin: 0 auto 20px; max-width: 360px; color: var(--muted); font-size: 15px; }
.favs-entry .btn .arrow { display: inline-block; }
html[dir="rtl"] .favs-entry .btn .arrow { transform: scaleX(-1); }
.favs-bonus { margin: 0 0 34px; text-align: start; }
html:lang(ar) :is(.fav-name, .ticket-v, .favs h1) { font-weight: 800; line-height: 1.35; }
