/* Абики design system: tokens, web components, app components.
   Light/dark: system by default, forced by html[data-theme].
   Language: html[lang] hides the other language's [lang] spans (RU visible without JS). */

/* ---------- Tokens ---------- */
/* Aurora glass: soft violet, cyan and pink glow behind frosted cards. --brand-grad fills the main buttons,
   --stamp is the text colour for links and icons. Text over the glow was checked at 7:1 worst case. */
:root {
  color-scheme: light;
  --paper: #FBFAFF;                    /* page base under the glow */
  --ticket: rgba(255,255,255,.65);     /* glass surface */
  --ticket-2: rgba(255,255,255,.85);   /* pressed / stronger glass */
  --ink: #15132E;                      /* text */
  --muted: #3A365C;                    /* secondary text, 8:1 worst case */
  --brand: #5B21B6;                    /* solid brand: checkboxes, switches, selected */
  --brand-grad: linear-gradient(120deg, #155E75, #5B21B6);  /* main buttons, white text 7.3:1+ */
  --accent: #EC4899;
  --stamp: #4C1D95;                    /* link and icon text, 7.8:1 worst case */
  --on-stamp: #FFFFFF;
  --stamp-soft: #EDE7FF;
  --edge: #6E6A92;                     /* input borders, 3:1+ */
  --rule: #E4E1F2;                     /* dividers */
  --glass-border: rgba(255,255,255,.9);
  --aurora: radial-gradient(70% 45% at 8% 0%, #C4B5FD8C, transparent 70%), radial-gradient(60% 45% at 100% 30%, #A5F3FC80, transparent 70%), radial-gradient(70% 50% at 35% 100%, #FBCFE880, transparent 70%);
  --go: #0B5E2E;  --on-go: #FFFFFF;  --go-soft: #ECF8F0;  --go-text: #0B5E2E;
  --wait: #FFD23F; --on-wait: #15132E; --wait-soft: #FFF1B8; --wait-text: #15132E;
  --stop: #A3112A; --on-stop: #FFFFFF; --stop-soft: #FDEFF1; --stop-text: #A3112A;
  --qr-plate: #FFFFFF;
  --shadow: 0 1px 0 rgba(21,19,46,.04), 0 18px 40px -24px rgba(60,40,120,.35);
  --focus: #0E7490;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0B0B1E; --ticket: rgba(255,255,255,.06); --ticket-2: rgba(255,255,255,.10);
    --ink: #F6F5FF; --muted: #E4E2FA;
    --brand: #67E8F9; --brand-grad: linear-gradient(120deg, #67E8F9, #C4B5FD); --accent: #F0ABFC;
    --stamp: #A5F3FC; --on-stamp: #0B0B1E; --stamp-soft: #1E2147;
    --edge: #8C88B8; --rule: #2A2850; --glass-border: rgba(255,255,255,.16);
    --aurora: radial-gradient(70% 45% at 8% 0%, #7C3AED47, transparent 70%), radial-gradient(60% 45% at 100% 30%, #06B6D42E, transparent 70%), radial-gradient(70% 50% at 35% 100%, #EC489933, transparent 70%);
    --go-soft: #143A25; --go-text: #7BE0A2;
    --wait-soft: #3A3115; --wait-text: #FFD23F;
    --stop-soft: #43161F; --stop-text: #FF9AA8;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 18px 40px -20px rgba(0,0,0,.8);
    --focus: #67E8F9;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0B0B1E; --ticket: rgba(255,255,255,.06); --ticket-2: rgba(255,255,255,.10);
  --ink: #F6F5FF; --muted: #E4E2FA;
  --brand: #67E8F9; --brand-grad: linear-gradient(120deg, #67E8F9, #C4B5FD); --accent: #F0ABFC;
  --stamp: #A5F3FC; --on-stamp: #0B0B1E; --stamp-soft: #1E2147;
  --edge: #8C88B8; --rule: #2A2850; --glass-border: rgba(255,255,255,.16);
  --aurora: radial-gradient(70% 45% at 8% 0%, #7C3AED47, transparent 70%), radial-gradient(60% 45% at 100% 30%, #06B6D42E, transparent 70%), radial-gradient(70% 50% at 35% 100%, #EC489933, transparent 70%);
  --go-soft: #143A25; --go-text: #7BE0A2;
  --wait-soft: #3A3115; --wait-text: #FFD23F;
  --stop-soft: #43161F; --stop-text: #FF9AA8;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 18px 40px -20px rgba(0,0,0,.8);
  --focus: #67E8F9;
}
/* Mascot and logo: headphones follow the brand colour */
.mascot, .brand-mark { --m-accent: var(--brand); flex: none; }
.mascot { display: block; width: 120px; height: 120px; }

/* ---------- Language pairs ---------- */
html[lang="ru"] body [lang="en"],
html[lang="en"] body [lang="ru"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.55;
  font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--stamp); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--brand); color: var(--on-stamp); padding: 12px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; flex: none; fill: currentColor; stroke: none; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 56px; height: 56px; stroke-width: 1.75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: var(--r-md);
  border: 2px solid transparent; font-size: 18px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .15s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand-grad); color: var(--on-stamp); }
.btn-primary:hover { filter: brightness(1.08) saturate(1.1); }
.btn-secondary { background: var(--ticket); color: var(--ink); border-color: var(--edge); }
.btn-secondary:hover { background: var(--ticket-2); }
.btn-ghost { background: transparent; color: var(--stamp); padding: 0 12px; }
.btn-ghost:hover { background: var(--stamp-soft); }
.btn-danger { background: transparent; color: var(--stop-text); border-color: currentColor; }
.btn-block { display: flex; width: 100%; }
.btn-xl { min-height: 72px; font-size: 22px; border-radius: var(--r-lg); }

/* ---------- Form fields ---------- */
.field { display: grid; gap: 8px; }
.field > label, .label { font-weight: 700; font-size: 18px; }
.hint { color: var(--muted); font-size: 16px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 56px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 2px solid var(--edge); background: var(--paper); font-size: 20px;
}
textarea.input { min-height: 112px; resize: vertical; }
.input:focus-visible { outline-offset: 0; border-color: var(--stamp); }
.input-phone { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 14px 0; }
.check input { appearance: none; flex: none; width: 32px; height: 32px; margin: 0; border: 2px solid var(--edge); border-radius: 8px; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 16px; height: 9px; border: solid var(--on-stamp); border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px,-2px); opacity: 0; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { opacity: 1; }
.check span { padding-top: 2px; }

/* Choice cards: radio as big tappable rows */
.choices { display: grid; gap: 12px; }
.choice { position: relative; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px 18px; border: 2px solid var(--rule); border-radius: var(--r-md); background: var(--paper); cursor: pointer; }
.choice input { appearance: none; flex: none; margin: 0; width: 28px; height: 28px; border: 2px solid var(--edge); border-radius: 50%; display: grid; place-items: center; }
.choice input::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .15s var(--ease); }
.choice input:checked { border-color: var(--stamp); }
.choice input:checked::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--stamp); background: var(--stamp-soft); }
.choice strong { display: block; font-size: 20px; }
.choice small { display: block; color: var(--muted); font-size: 16px; }

/* Toggle switch with words */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; cursor: pointer; }
.switch input { appearance: none; flex: none; margin: 0; width: 64px; height: 36px; border-radius: 18px; background: var(--ticket-2); border: 2px solid var(--edge); position: relative; cursor: pointer; transition: background-color .15s var(--ease); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background-color .2s; }
.switch input:checked { background: var(--brand); border-color: var(--brand); }
.switch input:checked::after { transform: translateX(28px); background: var(--on-stamp); }

/* ---------- Ticket: the pass (signature element) ---------- */
.ticket {
  --hole: 16px; --stub: 180px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub);
  background: var(--ticket); color: var(--ink); border-radius: var(--r-md);
  filter: drop-shadow(0 14px 22px rgba(60,40,120,.16)); isolation: isolate;
  /* half-circle notches top and bottom where the stub tears off */
  -webkit-mask: radial-gradient(circle var(--hole) at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--hole) at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--hole) at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--hole) at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { padding: 24px 28px 24px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.ticket-stub { padding: 24px 0; border-left: 2px dashed var(--edge); display: grid; place-items: center; align-content: center; gap: 10px; }
.ticket .qr { width: calc(var(--stub) - 48px); }
.ticket-venue { font-size: 16px; font-weight: 600; color: var(--muted); }
.ticket-name { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.ticket-type { font-size: 18px; font-weight: 600; }
.ticket-until { font-size: 16px; color: var(--muted); margin-top: 6px; }
.ticket-serial { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .08em; }
/* Visits bar: one segment per visit; used visits fill with the brand gradient */
.punches { list-style: none; margin: 14px 0 4px; padding: 0; display: flex; gap: 5px; width: 100%; max-width: 360px; }
.punches li { flex: 1; height: 12px; border-radius: 999px; background: var(--ticket-2); box-shadow: inset 0 0 0 1px var(--rule); }
.punches li.used { background: var(--brand-grad); box-shadow: none; }
.punches li.punch-now { animation: punch .5s var(--ease); }
@keyframes punch { 0% { transform: scaleY(1.8); filter: brightness(1.3); } 100% { transform: none; } }
.ticket-count { font-size: 16px; color: var(--muted); }

/* QR plate: always dark-on-white with a quiet zone */
.qr { background: var(--qr-plate); border-radius: var(--r-sm); padding: 0; width: 132px; aspect-ratio: 1; }
.qr svg { width: 100%; height: 100%; }
.qr-xl { width: min(78vw, 320px); border-radius: var(--r-md); }

/* ---------- Status lines (offline, sync) ---------- */
.syncline { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--ticket); font-size: 18px; font-weight: 600; }
.syncline .icon { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 16px; font-weight: 700; background: var(--ticket); }
.badge-go { background: var(--go-soft); color: var(--go-text); }
.badge-wait { background: var(--wait-soft); color: var(--wait-text); }
.badge-stop { background: var(--stop-soft); color: var(--stop-text); }

/* ---------- WEB ---------- */
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.brand-mark { width: 48px; height: 38px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: var(--r-sm); }
.site-nav a:hover { background: var(--ticket); }
.site-nav a[aria-current="page"] { color: var(--stamp); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.prefs { display: flex; gap: 6px; align-items: center; }
.pref-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--rule); background: transparent; cursor: pointer; font-weight: 700; font-size: 16px; }
.pref-btn:hover { background: var(--ticket); }
.pref-btn .icon { width: 20px; height: 20px; }
[data-theme-label="dark"] { display: none; }
:root[data-effective-theme="dark"] [data-theme-label="light"] { display: none; }
:root[data-effective-theme="dark"] [data-theme-label="dark"] { display: inline; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header .wrap { gap: 12px; }
  .prefs { margin-left: auto; }
  .site-header .btn { display: none; }
}

.section { padding-block: var(--s9); }
.section-tight { padding-block: var(--s8); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: var(--s7); }
.h1 { font-size: clamp(40px, 5.4vw, 66px); letter-spacing: -0.03em; line-height: 1.04; }
.h2 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -0.03em; }
.h3 { font-size: 24px; letter-spacing: -0.015em; }
.lead { font-size: 22px; line-height: 1.5; color: var(--muted); max-width: 40ch; }
.prose { max-width: 68ch; }
.prose p + p, .prose ul, .prose ol { margin-top: 16px; }
.prose h2 { font-size: 28px; margin-top: 48px; margin-bottom: 12px; }
.prose h3 { font-size: 22px; margin-top: 32px; margin-bottom: 8px; }
.prose li + li { margin-top: 8px; }

/* Hero */
.hero { padding-block: var(--s8) var(--s9); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s7); align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.airplane { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); }
.airplane .icon { color: var(--stamp); }
/* Demo: the ticket on top, the staff phone overlapping its lower edge */
.demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 200px; grid-template-areas: "ticket ticket" "controls phone"; gap: 0 28px; }
.demo .ticket { grid-area: ticket; --stub: 160px; }
.demo .phone { grid-area: phone; margin-top: -56px; position: relative; z-index: 2; }
.demo-controls { grid-area: controls; display: grid; gap: 12px; align-content: start; justify-items: start; padding-top: 28px; }
.demo-controls p { font-size: 17px; color: var(--muted); max-width: 30ch; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ticket { --stub: 124px; }
  .ticket-main { padding: 20px 18px; }
  .ticket-name { font-size: 24px; }
  .demo { grid-template-columns: minmax(0, 1fr) 140px; gap: 0 16px; }
  .demo .phone { width: 140px; border-radius: 26px; padding: 6px; margin-top: -32px; }
  .demo .phone-screen { border-radius: 21px; }
  .demo .phone-word { font-size: 22px; }
  .demo .phone-line { font-size: 12px; }
  .ticket-serial { display: none; }
}

/* Phone mock (web) */
.phone { width: 200px; aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 8px; background: #0B0B1E; box-shadow: 0 0 0 1.5px var(--rule), var(--shadow); }
.phone-screen { height: 100%; border-radius: 27px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--paper); transition: background-color .25s var(--ease), color .25s var(--ease); }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 4px; font-size: 12px; font-weight: 700; }
.phone-bar .icon { width: 14px; height: 14px; }
.phone-body { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 16px; }
.phone-word { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.phone-line { font-size: 14px; font-weight: 600; line-height: 1.3; }
.phone-screen.is-go { background: var(--go); color: var(--on-go); }
.phone-screen.is-wait { background: var(--wait); color: var(--on-wait); }
.phone-screen.is-stop { background: var(--stop); color: var(--on-stop); }

/* Feature trio (not a sequence: no numbers) */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.trio > div { padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.trio > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.trio .icon { width: 36px; height: 36px; color: var(--stamp); }
@media (max-width: 800px) {
  .trio { grid-template-columns: 1fr; }
  .trio > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--brand-grad); color: var(--on-stamp); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Verdict bands */
.bands { display: grid; gap: 12px; }
.band { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 24px 28px; border-radius: var(--r-md); }
.band-word { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.band-go { background: var(--go); color: var(--on-go); }
.band-wait { background: var(--wait); color: var(--on-wait); }
.band-stop { background: var(--stop); color: var(--on-stop); }
@media (max-width: 640px) { .band { grid-template-columns: 1fr; gap: 6px; } }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.ticklist .icon { color: var(--go-text); margin-top: 2px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 28px 24px; border-radius: var(--r-md); border: 2px solid var(--rule); background: var(--paper); }
.plan-featured { border-color: var(--stamp); background: var(--stamp-soft); }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.plan li .icon { width: 20px; height: 20px; color: var(--go-text); margin-top: 3px; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 21px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--stamp); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: 68ch; color: var(--muted); }

/* CTA strip */
.cta-strip { background: var(--brand-grad); color: var(--on-stamp); border-radius: var(--r-lg); padding: var(--s7); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-strip .btn-secondary { background: var(--on-stamp); color: var(--brand); border-color: transparent; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--s7); margin-top: var(--s8); font-size: 16px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

/* Card blocks for web forms */
.panel { border: 2px solid var(--rule); border-radius: var(--r-lg); padding: 32px; background: var(--paper); }
.stack { display: grid; gap: 20px; }
.stack-sm { display: grid; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { padding: 16px 20px; border-radius: var(--r-sm); background: var(--ticket); font-size: 17px; }
.note-warn { background: var(--wait-soft); color: var(--wait-text); }
.placeholder-legal { border-left: 4px solid var(--wait); padding: 12px 16px; background: var(--wait-soft); color: var(--wait-text); font-size: 16px; }

/* Stores */
.stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.store { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 20px 24px; border: 2px solid var(--rule); border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.store:hover { border-color: var(--stamp); }
.store-mark { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--ticket); color: var(--stamp); }
.store strong { font-size: 21px; display: block; }
.store small { color: var(--muted); font-size: 16px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; background: var(--ticket); padding: 10px 14px; border-radius: var(--r-sm); overflow-wrap: anywhere; display: block; }
@media (max-width: 760px) { .stores { grid-template-columns: 1fr; } }

/* Print (help guide) */
@media print {
  .site-header, .site-footer, .prefs, .no-print, .devbar { display: none !important; }
  body { font-size: 14pt; }
}

/* ---------- PUBLIC PASS PAGE (/p/…) ---------- */
.pass-page { min-height: 100dvh; display: grid; justify-items: center; align-content: start; gap: 24px; padding: 24px 16px 48px; }
.pass-card { width: min(100%, 420px); background: var(--ticket); border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid; gap: 0; overflow: hidden; }
.pass-card-head { padding: 24px 24px 20px; display: grid; gap: 6px; }
.pass-card-qr { padding: 24px; border-top: 2px dashed var(--edge); display: grid; justify-items: center; gap: 12px; }
.pass-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 18px; }
.pass-card dt { color: var(--muted); }
.pass-card dd { margin: 0; font-weight: 700; }
.pass-card-qr .btn { padding-inline: 16px; font-size: 20px; }
.pass-hint { font-size: 18px; color: var(--muted); text-align: center; max-width: 32ch; }
.consent { width: min(100%, 420px); display: grid; gap: 12px; padding: 20px; border: 2px solid var(--rule); border-radius: var(--r-md); }

/* ---------- APP (phone screens) ---------- */
body.app { background: var(--paper); font-size: 20px; line-height: 1.45; }
.screen { width: 100%; max-width: 430px; min-height: 100dvh; margin-inline: auto; display: flex; flex-direction: column; background: var(--paper); position: relative; }
@media (min-width: 600px) {
  body.app:not(.in-frame) { background: var(--ticket); }
  body.app:not(.in-frame) .screen { box-shadow: 0 0 0 1px var(--rule); }
}
.statusbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 6px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.statusbar span:last-child { display: inline-flex; gap: 8px; align-items: center; }
.statusbar .icon { width: 18px; height: 18px; }
.battery { width: 26px; height: 13px; border: 2px solid currentColor; border-radius: 4px; position: relative; padding: 1.5px; }
.battery::before { content: ""; display: block; height: 100%; width: 70%; background: currentColor; border-radius: 1px; }
.battery::after { content: ""; position: absolute; right: -5px; top: 3px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }

.appbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px 0; min-height: 64px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 14px 0 8px; border-radius: var(--r-md); color: var(--stamp); font-weight: 700; font-size: 20px; text-decoration: none; }
.back:hover { background: var(--stamp-soft); }
.back .icon { width: 28px; height: 28px; }
.app-title { padding: 8px 24px 16px; display: grid; gap: 6px; }
.app-title h1 { font-size: 32px; }
.app-title p { color: var(--muted); font-size: 18px; }
.content { padding: 0 24px 24px; display: grid; gap: 20px; align-content: start; flex: 1; }
.bottom { position: sticky; bottom: 0; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 75%, transparent); display: grid; gap: 10px; }
.group-title { font-size: 18px; font-weight: 700; color: var(--muted); margin-top: 8px; }

/* Home: three big words */
.homebtns { display: grid; gap: 14px; }
.homebtn { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 16px; min-height: 104px; padding: 18px 22px; border-radius: var(--r-lg); text-decoration: none; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.homebtn small { display: block; font-size: 17px; font-weight: 600; letter-spacing: 0; margin-top: 4px; }
.homebtn .icon { width: 44px; height: 44px; }
.homebtn-main { background: var(--brand-grad); color: var(--on-stamp); min-height: 160px; }
.homebtn-alt { background: var(--ticket); color: var(--ink); border: 2px solid var(--rule); }

/* Stats */
.stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.stat { background: var(--ticket); border-radius: var(--r-md); padding: 12px 18px; min-height: 64px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.stat b { font-size: 36px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { font-size: 18px; line-height: 1.25; font-weight: 600; }

/* Rows / lists */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.list > li { border-bottom: 1px solid var(--rule); }
.rowlink { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 4px; color: var(--ink); text-decoration: none; }
.rowlink:hover { background: var(--ticket); }
.rowlink .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rowlink strong { font-size: 20px; line-height: 1.25; }
.rowlink small { font-size: 17px; color: var(--muted); }
.rowlink > .icon:last-child { color: var(--muted); }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--stamp-soft); color: var(--stamp); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.tile-btn { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; min-height: 64px; padding: 12px 18px; border-radius: var(--r-md); background: var(--ticket); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; border: 0; width: 100%; text-align: left; cursor: pointer; }
.tile-btn .icon { color: var(--stamp); width: 28px; height: 28px; }
.tile-btn small { display: block; font-weight: 500; font-size: 17px; color: var(--muted); }
.tiles { display: grid; gap: 10px; }

/* Scanner */
.camera { position: relative; flex: 1; min-height: 360px; margin: 0 16px; border-radius: var(--r-lg); overflow: hidden; background:
  radial-gradient(120% 80% at 30% 20%, #2A2550 0%, #15132E 55%, #0B0B1E 100%); color: #fff; display: grid; place-items: center; }
.camera::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px); }
.viewfinder { position: relative; width: 62%; aspect-ratio: 1; border-radius: 18px; }
.viewfinder i { position: absolute; width: 44px; height: 44px; border: 5px solid #fff; }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.viewfinder .qr { position: absolute; inset: 18%; width: auto; opacity: .9; transform: rotate(-4deg); }
.scanline { position: absolute; left: 8%; right: 8%; height: 3px; top: 50%; background: #67E8F9; border-radius: 2px; animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { from { top: 14%; } to { top: 86%; } }
.camera-hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 20px; font-weight: 700; }
.scan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scan-actions .btn { min-height: 72px; flex-direction: column; gap: 4px; font-size: 18px; }

/* Verdict screens */
body.app.v-go, body.app.v-go .screen { background: var(--go); color: var(--on-go); }
body.app.v-wait, body.app.v-wait .screen { background: var(--wait); color: var(--on-wait); }
body.app.v-stop, body.app.v-stop .screen { background: var(--stop); color: var(--on-stop); }
.verdict { flex: 1; display: grid; align-content: center; gap: 18px; padding: 16px 28px 24px; }
.verdict-icon { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; border: 6px solid currentColor; }
.verdict-icon .icon { width: 64px; height: 64px; stroke-width: 3; }
.verdict-word { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: .95; }
.verdict-name { font-size: 30px; font-weight: 800; line-height: 1.15; }
.verdict-facts { font-size: 22px; font-weight: 600; display: grid; gap: 4px; }
.verdict-big { font-size: 26px; font-weight: 800; }
.verdict .punches { margin-top: 4px; }
.verdict .punches { max-width: none; }
.verdict .punches li { height: 14px; background: rgba(255,255,255,.28); box-shadow: none; }
.verdict .punches li.used { background: currentColor; }
.v-wait .verdict .punches li { background: rgba(21,19,46,.18); }
.sound { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.btn-on-verdict { background: transparent; color: inherit; border-color: currentColor; }
.btn-solid-verdict { background: #fff; color: var(--go); }
.v-wait .btn-solid-verdict { background: var(--on-wait); color: var(--wait); }
.v-stop .btn-solid-verdict { color: var(--stop); }
.v-go .bottom, .v-wait .bottom, .v-stop .bottom { background: none; }
.undo-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }

/* Keypad */
.digits-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.digits-slots span { height: 76px; border-radius: var(--r-md); border: 2px solid var(--edge); display: grid; place-items: center; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.digits-slots span.filled { border-color: var(--stamp); background: var(--stamp-soft); }
.digits-slots span.cursor { border-color: var(--stamp); border-width: 3px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { min-height: 68px; border-radius: var(--r-md); border: 0; background: var(--ticket); font-size: 32px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.key:active { background: var(--ticket-2); }
.key-word { font-size: 18px; color: var(--stamp); background: transparent; }

/* Sheet-like section card */
.card { background: var(--ticket); border-radius: var(--r-md); padding: 18px 20px; display: grid; gap: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
.history li:last-child { border-bottom: 0; }

/* Bill preview */
.bill { background: #fff; color: #0A1A33; border-radius: var(--r-sm); padding: 20px; font-size: 15px; line-height: 1.45; box-shadow: var(--shadow); display: grid; gap: 10px; }
.bill h3 { font-size: 20px; letter-spacing: -0.01em; }
.bill table { width: 100%; border-collapse: collapse; }
.bill td { padding: 4px 0; border-bottom: 1px solid #DCE7EE; }
.bill td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bill .bill-flag { font-weight: 700; color: #A3112A; font-size: 14px; }

/* Dev preview strip (standalone app screens only) */
.devbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 6px; padding: 8px 10px; overflow-x: auto; white-space: nowrap; background: #0B0B1E; color: #F6F5FF; font-size: 14px; font-family: var(--font); }
.devbar a { color: #67E8F9; font-weight: 700; margin-right: auto; }
.devbar button { min-height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid #2A2850; background: transparent; color: inherit; cursor: pointer; font-weight: 700; font-size: 14px; }
.devbar button[aria-pressed="true"] { background: #67E8F9; color: #0B0B1E; border-color: #67E8F9; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* App text floor: 18px everywhere on phone screens (older staff). */
body.app .hint, body.app .choice small, body.app .badge, body.app .ticket-venue, body.app .ticket-until,
body.app .ticket-count, body.app .tile-btn small, body.app .rowlink small, body.app .homebtn small, body.app .note, body.app .placeholder-legal { font-size: 18px; }
/* App touch floor: the two-option control is 52px on the web and 56px on phone screens. */
body.app .seg2 span { min-height: 56px; }
body.app .ticket-serial { display: none; }

/* Mascot placements */
.demo { margin-top: 84px; }
.demo-buddy { position: absolute; z-index: 3; left: 22px; top: -98px; width: 112px; height: 112px; }
.cta-strip { position: relative; }
.cta-buddy { --m-accent: var(--on-stamp); width: 132px; height: 132px; margin: -36px 0 -24px; }
@media (max-width: 560px) { .demo-buddy { width: 92px; height: 92px; top: -80px; } .demo { margin-top: 70px; } .cta-buddy { width: 104px; height: 104px; } }

/* ---------- Aurora glass ---------- */
body { background: var(--aurora), var(--paper); background-attachment: fixed; }
.screen { background: var(--aurora), var(--paper); }
.site-header { background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.card, .tile-btn, .stat, .syncline, .homebtn-alt, .key, .note, .panel, .plan, .store, .consent, .pass-card, .ticket, .badge, .phone-screen {
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.card, .tile-btn, .stat, .syncline, .homebtn-alt, .note, .panel, .plan, .store, .consent { border: 1px solid var(--glass-border); }
.panel, .plan, .store, .consent { background: var(--ticket); }
.plan-featured { border: 2px solid var(--stamp); background: var(--ticket-2); }
.cta-strip .btn-secondary { background: var(--on-stamp); color: var(--ink); }

/* ---------- Landing ---------- */
/* Reveal on scroll: only when JS is running (html.js), so content is visible without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ticket); border: 1px solid var(--glass-border); font-weight: 700; font-size: 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chip .icon { width: 20px; height: 20px; color: var(--stamp); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero: its own drifting glow behind the visual only (text sits on the calm page aurora). */
.hero2 { position: relative; isolation: isolate; padding-block: 48px 88px; overflow: hidden; }
.hero2-glow { position: absolute; inset: 0 0 0 48%; z-index: -1; pointer-events: none; }
.hero2-glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.hero2-glow i:nth-child(1) { width: 380px; height: 380px; left: 6%; top: 4%; background: #7C3AED; }
.hero2-glow i:nth-child(2) { width: 320px; height: 320px; right: 2%; top: 30%; background: #06B6D4; animation-duration: 19s; }
.hero2-glow i:nth-child(3) { width: 300px; height: 300px; left: 26%; bottom: 0; background: #EC4899; animation-duration: 22s; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.15); } }
.hero2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
.hero2-copy { display: grid; gap: 24px; justify-items: start; }
.stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.stage .phone { width: 250px; animation: float 7s ease-in-out infinite; }
.stage .phone-word { font-size: 34px; }
.stage .phone-line { font-size: 15px; }
.float-card { position: absolute; z-index: 2; padding: 14px 16px; border-radius: var(--r-md); background: var(--ticket-2); border: 1px solid var(--glass-border); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; gap: 4px; font-size: 16px; animation: float 8s ease-in-out infinite; }
.float-card b { font-size: 18px; }
.fc-a { left: 0; top: 64px; animation-delay: -2s; }
.fc-b { right: 0; bottom: 70px; animation-delay: -4s; }
.fc-c { right: 6%; top: 10px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
@keyframes float { 50% { transform: translateY(-12px); } }
.cycle .st { display: none; }
.cycle[data-state="go"] .st-go, .cycle[data-state="wait"] .st-wait, .cycle[data-state="stop"] .st-stop { display: grid; }
@media (max-width: 960px) { .hero2-grid { grid-template-columns: 1fr; } .hero2-glow { inset: 40% 0 0 0; } }
@media (max-width: 560px) {
  .stage { min-height: 470px; }
  .stage .phone { width: 210px; }
  .fc-a { top: 20px; } .fc-b { bottom: 30px; }
  .float-card { font-size: 15px; padding: 10px 12px; }
}

/* Marquee of venue types */
.marquee { overflow: hidden; padding-block: 18px; border-block: 1px solid var(--rule); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Glass banner (fact with a source) */
.fact { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 40px; border-radius: var(--r-lg); background: var(--ticket); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fact .fact-big { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact p { font-size: 21px; max-width: 52ch; }
.fact small { display: block; margin-top: 10px; font-size: 16px; color: var(--muted); }
@media (max-width: 760px) { .fact { grid-template-columns: 1fr; padding: 28px; } }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.b { padding: 28px; border-radius: var(--r-lg); background: var(--ticket); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; gap: 12px; align-content: start; }
.b h3 { font-size: 22px; }
.b p { color: var(--muted); }
.b > .icon { width: 36px; height: 36px; color: var(--stamp); }
.b-wide { grid-column: span 2; }
.b-tall { grid-row: span 2; }
.ways { display: grid; gap: 10px; margin-top: 6px; }
.ways span { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ticket-2); font-weight: 700; }
.ways .icon { color: var(--stamp); }
.signals { display: flex; gap: 8px; margin-top: 4px; }
.signals i { flex: 1; height: 44px; border-radius: 12px; }
.mini-qr { width: 112px; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .b-wide { grid-column: auto; } .b-tall { grid-row: auto; } }

/* Offline flow: a real sequence */
.flow { display: grid; grid-template-columns: 1fr 72px 1fr 72px 1fr; align-items: center; gap: 12px; }
.flow-step { padding: 24px; border-radius: var(--r-lg); background: var(--ticket); border: 1px solid var(--glass-border); display: grid; gap: 10px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.flow-step .icon { width: 36px; height: 36px; color: var(--stamp); }
.flow-step h3 { font-size: 21px; }
.flow-step p { color: var(--muted); font-size: 17px; }
.flow-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: var(--on-stamp); font-weight: 800; }
.flow-line { height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--stamp) 0 8px, transparent 8px 16px); background-size: 16px 4px; animation: dash .8s linear infinite; }
@keyframes dash { to { background-position: 16px 0; } }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow-line { width: 4px; height: 40px; justify-self: center; background: repeating-linear-gradient(180deg, var(--stamp) 0 8px, transparent 8px 16px); background-size: 4px 16px; animation-name: dash-v; } }
@keyframes dash-v { to { background-position: 0 16px; } }

/* Live screen frames (iframes of the real pages) */
.frames { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 22px; }
.frame-phone { --sc: .55; flex: none; padding: 8px; border-radius: 34px; background: #0B0B1E; box-shadow: 0 0 0 1.5px var(--rule), var(--shadow); }
.frame-phone .vp { position: relative; width: calc(390px * var(--sc)); height: calc(844px * var(--sc)); border-radius: 27px; overflow: hidden; }
.frame-phone iframe, .browser iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: var(--paper); }
.frame-phone iframe { width: 390px; height: 844px; transform: scale(var(--sc)); }
.frame-phone.up { margin-bottom: 36px; }
.frame-cap { text-align: center; font-weight: 700; margin-top: 10px; font-size: 17px; }
.browser { --sc: .44; flex: none; border-radius: 16px; overflow: hidden; background: var(--ticket-2); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--edge); opacity: .5; }
.browser-url { flex: 1; padding: 5px 12px; border-radius: 999px; background: var(--paper); font-size: 14px; color: var(--muted); }
.browser .vp { position: relative; width: calc(1280px * var(--sc)); height: calc(800px * var(--sc)); overflow: hidden; }
.browser iframe { width: 1280px; height: 800px; transform: scale(var(--sc)); }
.split-show { display: grid; grid-template-columns: auto 1fr; gap: var(--s7); align-items: center; }
@media (max-width: 1100px) { .split-show { grid-template-columns: 1fr; justify-items: center; } }
@media (max-width: 700px) { .browser { --sc: .26; } .frame-phone { --sc: .4; padding: 6px; border-radius: 26px; } .frame-phone .vp { border-radius: 21px; } .frame-phone.up { margin-bottom: 0; } }

/* Gradient banner */
.banner { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 36px 40px; border-radius: var(--r-lg); background: var(--brand-grad); color: var(--on-stamp); }
.banner .h2 { font-size: clamp(30px, 3.6vw, 44px); }
.banner p { font-size: 20px; }
.banner .mascot { --m-accent: var(--on-stamp); width: 140px; height: 140px; margin: -20px 0 -36px; }
.banner .btn-secondary { background: var(--on-stamp); color: var(--ink); border-color: transparent; }
:root[data-effective-theme="dark"] .banner .btn-secondary { color: #F6F5FF; }
@media (max-width: 860px) { .banner { grid-template-columns: 1fr; padding: 28px; } .banner .mascot { margin: 0; width: 110px; height: 110px; } }

/* Billing period toggle and pricing (CSS only, :has) */
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: var(--r-md); background: var(--ticket); border: 1px solid var(--glass-border); max-width: 460px; }
.seg2 label { position: relative; cursor: pointer; }
.seg2 input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg2 span { display: grid; place-items: center; min-height: 52px; padding: 6px 10px; border-radius: 12px; font-weight: 700; text-align: center; }
.seg2 input:checked + span { background: var(--brand-grad); color: var(--on-stamp); }
.seg2 input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.p-month { display: none; }
.billing:has(.per-month:checked) .p-month { display: inline; }
.billing:has(.per-month:checked) .p-year { display: none; }
.plans3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; align-items: stretch; }
.plans3 .plan { grid-template-rows: auto auto auto 1fr auto; }
.plan-tag { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--brand-grad); color: var(--on-stamp); font-weight: 800; font-size: 16px; }
.plan-note { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .plans3 { grid-template-columns: 1fr; } }

/* Store chips (not official badges) */
.store-chip { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 18px; border-radius: var(--r-md); background: var(--ticket-2); border: 1px solid var(--glass-border); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; }
.store-chip small { display: block; font-weight: 600; font-size: 14px; color: var(--muted); }
.store-chip .icon { color: var(--stamp); width: 28px; height: 28px; }
.cycle { transition: background-color .35s var(--ease), color .35s var(--ease); }
.cycle[data-state="go"] { background: var(--go); color: var(--on-go); }
.cycle[data-state="wait"] { background: var(--wait); color: var(--on-wait); }
.cycle[data-state="stop"] { background: var(--stop); color: var(--on-stop); }
.cycle .st .icon { width: 40px; height: 40px; stroke-width: 3; }
.mini-punches { display: flex; gap: 4px; margin-top: 6px; }
.mini-punches i { flex: none; width: 18px; height: 8px; border-radius: 999px; background: var(--ticket-2); box-shadow: inset 0 0 0 1px var(--rule); }
.mini-punches i.u { background: var(--brand-grad); box-shadow: none; }
.site-header .btn, .pref-btn, .site-nav a { white-space: nowrap; }
@media (max-width: 1180px) { .site-nav a { padding-inline: 8px; } .site-header .wrap { gap: 14px; } }
/* Hero cards and chips sit over the strong hero glow: near-solid backing keeps text at 7:1 */
.float-card:not(.mascot), .hero2 .chip { background: color-mix(in srgb, var(--paper) 84%, transparent); }
@media (max-width: 700px) { .frames { gap: 12px; } .frame-phone { --sc: .38; } }

/* ---------- Official store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store-badges a, .store-badges .soon { display: inline-grid; justify-items: center; gap: 4px; border-radius: 9px; }
.store-badges img { height: 48px; width: auto; display: block; }
.store-badges .soon img { opacity: .55; }
.store-badges .soon small { font-size: 14px; font-weight: 700; color: var(--muted); }

/* ---------- Web dashboard (owner, signed in) ---------- */
.dash { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100dvh; }
.dash-side { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 20px 16px; border-right: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 70%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 18px; }
.dash-venue { padding: 14px 16px; border-radius: var(--r-md); background: var(--ticket); border: 1px solid var(--glass-border); display: grid; gap: 6px; }
.dash-venue b { font-size: 18px; line-height: 1.2; }
.dash-venue .plan-tag { font-size: 14px; padding: 2px 10px; }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700; }
.dash-nav a:hover { background: var(--ticket); }
.dash-nav a .icon { color: var(--stamp); }
.dash-nav a[aria-current="page"] { background: var(--brand-grad); color: var(--on-stamp); }
.dash-nav a[aria-current="page"] .icon { color: inherit; }
.dash-nav hr { border: 0; border-top: 1px solid var(--rule); margin: 8px 4px; }
.dash-side .help-link { margin-top: auto; }
.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 32px; min-height: 76px; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.dash-top .grow { flex: 1; min-width: 0; }
.dash-search { display: flex; align-items: center; gap: 10px; max-width: 420px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--edge); background: var(--paper); }
.dash-search input { border: 0; background: none; flex: 1; min-width: 0; font-size: 18px; outline: none; }
.dash-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px 0 6px; border-radius: 999px; border: 1.5px solid var(--rule); cursor: pointer; font-weight: 700; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .avatar { width: 36px; height: 36px; font-size: 15px; }
.user-menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; padding: 8px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); display: grid; gap: 2px; }
.user-menu-pop p { padding: 8px 12px; color: var(--muted); font-size: 16px; }
.user-menu-pop a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.user-menu-pop a:hover { background: var(--ticket); }
.user-menu-pop a.out { color: var(--stop-text); }
.dash-body { padding: 28px 32px 72px; display: grid; gap: 24px; align-content: start; width: 100%; max-width: 1280px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.dash-head h1 { font-size: clamp(30px, 3vw, 40px); }
.dash-head p { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 20px; border-radius: var(--r-lg); background: var(--ticket); border: 1px solid var(--glass-border); display: grid; gap: 6px; text-decoration: none; color: var(--ink); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.kpi b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .icon { color: var(--stamp); width: 28px; height: 28px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cols-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.box { padding: 24px; border-radius: var(--r-lg); background: var(--ticket); border: 1px solid var(--glass-border); display: grid; gap: 14px; align-content: start; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); min-width: 0; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.box-head h2 { font-size: 22px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; }
.tbl th { text-align: left; font-size: 16px; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--ticket-2) 60%, transparent); }
.tbl .who { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.tbl .num { font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); font-weight: 700; text-decoration: none; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.feed li:last-child { border-bottom: 0; }
.feed time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); }
.dropzone { display: grid; place-items: center; gap: 10px; padding: 36px; border-radius: var(--r-lg); border: 2px dashed var(--edge); background: var(--ticket); text-align: center; }
.dropzone .icon { width: 48px; height: 48px; color: var(--stamp); }
.menu-toggle { display: none; }
.out-note { display: none; }
.out-note:target { display: block; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols, .cols-even { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule); padding: 12px 16px; gap: 12px; }
  .dash-side .dash-nav, .dash-side .help-link { display: none; }
  .dash:has(#nav-toggle:checked) .dash-side .dash-nav, .dash:has(#nav-toggle:checked) .dash-side .help-link { display: grid; }
  .menu-toggle { display: inline-flex; }
  .dash-top { position: static; padding: 10px 16px; flex-wrap: wrap; }
  .dash-top .dash-search { order: 3; flex-basis: 100%; max-width: none; }
  .dash-body { padding: 20px 16px 56px; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 14px; } .kpi b { font-size: 32px; } .user-menu summary .who-name { display: none; } }

/* ---------- Hero v3: copy on top, app + web dashboard below ---------- */
.hero3 { position: relative; isolation: isolate; padding-block: 56px 40px; overflow: hidden; }
.hero3 .hero2-glow { inset: 42% 0 0 0; }
.hero3-copy { display: grid; justify-items: center; text-align: center; gap: 22px; max-width: 920px; }
.hero3-copy .lead { max-width: 58ch; margin-inline: auto; }
.hero3-copy .hero-actions, .hero3-copy .store-badges { justify-content: center; }
.hero3-stage { position: relative; margin-top: 56px; display: grid; justify-items: center; padding-bottom: 40px; }
.hero-browser { --sc: .6; position: relative; z-index: 1; }
.hero-phone { position: absolute; z-index: 3; left: calc(50% - 480px); bottom: 0; width: 220px; animation: float 7s ease-in-out infinite; }
.hero-phone .phone-word { font-size: 30px; }
.hero-phone .phone-line { font-size: 14px; }
.hero3 .fc-a { left: auto; right: calc(50% - 540px); top: 40px; }
.hero3 .fc-b { left: auto; right: calc(50% - 520px); top: auto; bottom: 70px; }
.hero-mascot { position: absolute; z-index: 2; top: -78px; right: calc(50% - 330px); width: 110px; height: 110px; }
@media (max-width: 1100px) { .hero-browser { --sc: .5; } .hero-phone { left: calc(50% - 400px); width: 190px; } .hero3 .fc-a, .hero3 .fc-b { right: 0; } }
@media (max-width: 760px) {
  .hero-browser { --sc: .27; }
  .hero3-stage { margin-top: 70px; padding-bottom: 150px; }
  .hero-phone { left: 6px; bottom: 0; width: 140px; border-radius: 26px; padding: 6px; }
  .hero-phone .phone-screen { border-radius: 21px; }
  .hero-phone .phone-word { font-size: 20px; }
  .hero-phone .phone-line { font-size: 11px; }
  .hero3 .fc-a { display: none; }
  .hero3 .fc-b { right: 0; bottom: 30px; font-size: 14px; }
  .hero-mascot { top: -64px; right: 12px; width: 84px; height: 84px; }
  .store-badges img { height: 42px; }
}
.site-header .pref-theme [lang] { display: none !important; }
.store-mark.official { overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); }
.store-mark.official img { width: 100%; height: 100%; }
a.pref-btn { color: var(--ink); text-decoration: none; }
@media (max-width: 560px) {
  .site-header a.pref-btn [lang] { display: none !important; }
  .hero3 .fc-b { display: none; }
  .hero3-stage { padding-bottom: 120px; }
  .hero-phone { width: 118px; left: 4px; }
  .hero-phone .phone-word { font-size: 17px; }
  .hero-phone .phone-line { font-size: 10px; }
}
/* Duotone icons carry their own soft shape: no outer ring on the verdict icon */
.verdict-icon { border: 0; width: auto; height: auto; justify-content: start; }
.verdict-icon .icon { width: 96px; height: 96px; }
.dash-body > *, .box > * { min-width: 0; }
.dash-search input { width: 100%; }
.b h2 { font-size: 22px; }
.bill h2 { font-size: 20px; letter-spacing: -0.01em; }
.dash-venue .plan-tag { padding: 5px 12px; }

/* ---------- Sign-in providers (official colours and wording) ---------- */
.id-buttons { display: grid; gap: 10px; }
.id-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 20px; color: #fff; text-decoration: none; border: 0; }
.id-btn:hover { filter: brightness(1.08); }
.id-btn img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.id-btn i { flex: none; width: 26px; height: 26px; background: #fff; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.id-yandex { background: #000; }
.id-vk { background: #0077FF; }
.id-vk i { -webkit-mask-image: url(../brand/id/si-vk.svg); mask-image: url(../brand/id/si-vk.svg); }
.id-sber { background: #21A038; }
.id-sber i { -webkit-mask-image: url(../brand/id/sber-mark-white-on-black.png); mask-image: url(../brand/id/sber-mark-white-on-black.png); mask-mode: luminance; width: 30px; height: 30px; }
.id-apple { background: #000; }
.id-apple i { -webkit-mask-image: url(../brand/id/si-apple.svg); mask-image: url(../brand/id/si-apple.svg); }
:root[data-effective-theme="dark"] .id-yandex, :root[data-effective-theme="dark"] .id-apple { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; font-size: 17px; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.platform-note { font-size: 16px; color: var(--muted); text-align: center; }
.methods .rowlink { min-height: 64px; }
.methods .id-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.methods .id-dot i, .methods .id-dot img { width: 24px; height: 24px; }
.methods .id-dot i { background: #fff; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }

/* ---------- Motion tokens ---------- */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- Hero v4: the offline story ---------- */
.hero4 { position: relative; isolation: isolate; overflow: hidden; padding-block: 56px 72px; }
.hero4-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero4-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
.hero4-bg i:nth-child(1) { width: 520px; height: 520px; right: -60px; top: -120px; background: #7C3AED; }
.hero4-bg i:nth-child(2) { width: 420px; height: 420px; right: 22%; bottom: -160px; background: #06B6D4; animation-duration: 22s; }
.hero4-bg i:nth-child(3) { width: 360px; height: 360px; right: 4%; top: 38%; background: #EC4899; animation-duration: 26s; }
.grid-dots { position: absolute; inset: 0; background: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px; -webkit-mask: radial-gradient(70% 60% at 70% 40%, #000, transparent); mask: radial-gradient(70% 60% at 70% 40%, #000, transparent); }
.hero4-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.hero4-copy { display: grid; gap: 24px; justify-items: start; }
/* Load sequence: words of the headline, then the rest */
.hero-title .w { display: inline-block; }
.js .hero-title .w { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px); animation: word-in .9s var(--ease-out) forwards; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
.js .hero-in { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 140ms + 200ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.story { position: relative; min-height: 560px; display: grid; place-items: center; }
.story-phone { position: relative; z-index: 2; width: 300px; border-radius: 40px; padding: 18px 16px 16px; background: var(--ticket-2); border: 1px solid var(--glass-border); box-shadow: 0 40px 80px -40px rgba(40,20,90,.55), 0 0 0 8px #0B0B1E; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: grid; gap: 12px; }
.story-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
.net { position: relative; display: inline-flex; }
.net > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 14px; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.net .icon { width: 18px; height: 18px; }
.net-on { background: var(--go-soft); color: var(--go-text); }
.net-off { position: absolute; right: 0; background: var(--stamp-soft); color: var(--stamp); opacity: 0; transform: translateY(6px); }
.story.is-off .net-on { opacity: 0; transform: translateY(-6px); }
.story.is-off .net-off { opacity: 1; transform: none; }
.story-title { font-weight: 700; color: var(--muted); }
.story-title b { color: var(--ink); font-size: 28px; margin-left: 6px; display: inline-block; }
.story-title b.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.25); } }
.story-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 176px; align-content: start; }
.story-feed li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--paper); font-weight: 700; font-size: 16px; }
.story-feed li .icon { color: var(--go-text); width: 24px; height: 24px; }
.story-feed li time { color: var(--muted); font-weight: 600; }
.story-feed li.new { animation: feed-in .6s var(--ease-out); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.story-sync { position: relative; min-height: 44px; }
.story-sync > span { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: opacity .4s var(--ease-out); }
.story-sync .icon { width: 20px; height: 20px; }
.story-sync .pending { background: var(--wait-soft); color: var(--wait-text); opacity: 0; }
.story-sync .synced { background: var(--go-soft); color: var(--go-text); }
.story.is-off .story-sync .pending { opacity: 1; }
.story.is-off .story-sync .synced { opacity: 0; }
.vstack { position: absolute; z-index: 3; right: -8px; top: 36px; display: grid; gap: 10px; }
.vcard { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); font-size: 15px; animation: float 7s ease-in-out infinite; }
.vcard .icon { width: 30px; height: 30px; }
.vcard b { display: block; font-size: 16px; }
.vcard small { display: block; font-size: 13px; font-weight: 600; opacity: .95; }
.vcard-go { background: var(--go); color: var(--on-go); }
.vcard-wait { background: var(--wait); color: var(--on-wait); margin-left: 28px; animation-delay: -2.3s; }
.vcard-stop { background: var(--stop); color: var(--on-stop); animation-delay: -4.6s; }
.story-mascot { position: absolute; z-index: 3; left: 0; bottom: 10px; width: 130px; height: 130px; }
.orbit { position: absolute; z-index: 1; width: 470px; height: 470px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--stamp) 35%, transparent); animation: spin 40s linear infinite; }
.orbit span { position: absolute; width: 46px; height: 46px; margin: -23px; border-radius: 14px; display: grid; place-items: center; background: var(--ticket-2); border: 1px solid var(--glass-border); color: var(--stamp); box-shadow: var(--shadow); animation: spin 40s linear infinite reverse; }
.orbit span:nth-child(1) { left: 50%; top: 0; } .orbit span:nth-child(2) { left: 100%; top: 50%; } .orbit span:nth-child(3) { left: 50%; top: 100%; } .orbit span:nth-child(4) { left: 0; top: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .hero4-grid { grid-template-columns: minmax(0, 1fr); } .story { min-height: 520px; } }
@media (max-width: 560px) {
  .story { min-height: 470px; }
  .story-phone { width: 250px; padding: 14px 12px 12px; }
  .orbit { width: 340px; height: 340px; }
  .vstack { right: -4px; top: 4px; transform: scale(.82); transform-origin: top right; }
  .story-mascot { width: 92px; height: 92px; left: -6px; bottom: 0; }
}

/* ---------- Smart "Get the app" button ---------- */
.gp { display: none; }
:root:not([data-platform]) .gp-none, [data-platform="ios"] .gp-ios, [data-platform="android"] .gp-android, [data-platform="huawei"] .gp-huawei, [data-platform="web"] .gp-web { display: inline; }
[data-platform="ios"] .sb-ios, [data-platform="android"] .sb-android, [data-platform="huawei"] .sb-huawei { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Get section ---------- */
.get-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.dl-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-feat { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.dl-feat .icon { width: 32px; height: 32px; color: var(--stamp); }
.get-visual { position: relative; display: grid; justify-items: center; min-height: 520px; }
.get-phone { --sc: .58; }
.qr-card { position: absolute; left: 0; bottom: 30px; z-index: 2; width: 220px; padding: 16px; border-radius: var(--r-lg); background: var(--ticket-2); border: 1px solid var(--glass-border); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; gap: 10px; justify-items: center; text-align: center; font-weight: 700; font-size: 16px; }
.qr-card .qr { width: 150px; }
@media (max-width: 900px) { .get-grid { grid-template-columns: minmax(0, 1fr); } .get-visual { min-height: 0; padding-bottom: 20px; } .qr-card { position: static; margin-top: -60px; } }
@media (max-width: 560px) { .get-phone { --sc: .42; } }

/* ---------- Scroll reveals for every landing block ---------- */
.js .landing .rv { opacity: 0; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); will-change: opacity, transform; }
.js .landing .rv[data-anim="up"] { transform: translateY(36px); }
.js .landing .rv[data-anim="zoom"] { transform: translateY(20px) scale(.94); }
.js .landing .rv[data-anim="left"] { transform: translateX(-40px); }
.js .landing .rv[data-anim="right"] { transform: translateX(40px); }
.js .landing .rv[data-anim="blur"] { transform: translateY(12px); filter: blur(10px); }
.js .landing .rv.in { opacity: 1; transform: none; filter: none; }

/* ---------- Hover and ambient motion ---------- */
.landing .b, .landing .plan, .landing .flow-step, .landing .store-badges a, .landing .vcard, .landing .frame-phone { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.landing .b:hover, .landing .plan:hover, .landing .flow-step:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -28px rgba(60,40,140,.5); }
.landing .store-badges a:hover { transform: translateY(-3px) scale(1.03); }
.btn-primary { background-size: 200% 100%; transition: background-position .6s var(--ease-out), transform .2s var(--ease-out), filter .2s; }
.landing .btn-primary { background-image: linear-gradient(120deg, #155E75, #5B21B6 45%, #155E75 90%); }
:root[data-effective-theme="dark"] .landing .btn-primary { background-image: linear-gradient(120deg, #67E8F9, #C4B5FD 45%, #67E8F9 90%); }
.landing .btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); }
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.landing .plan-featured { border: 2px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, conic-gradient(from var(--spin), #67E8F9, #C4B5FD, #F0ABFC, #67E8F9) border-box; animation: border-spin 6s linear infinite; }
@keyframes border-spin { to { --spin: 360deg; } }
.landing .b > svg.icon { transition: transform .5s var(--ease-spring); }
.landing .b:hover > svg.icon { transform: scale(1.15) rotate(-6deg); }
.icon-color { color: inherit; }
.b > svg.icon-color, .flow-step > svg.icon-color { width: 44px; height: 44px; }
.tile-btn > svg.icon-color { width: 32px; height: 32px; }
.kpi > svg.icon-color { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) {
  .js .landing .rv, .js .hero-title .w, .js .hero-in { opacity: 1 !important; transform: none !important; filter: none !important; }
}
.site-footer .credit { flex-basis: 100%; order: 3; font-size: 14px; }
.site-header .wrap > :not(.site-nav) { flex-shrink: 0; }
.site-nav a { padding-inline: 9px; }
@media (max-width: 1240px) { .site-nav a[href="help.html"] { display: none; } }
/* Story: phone left of centre so the verdict cards don't cover its counter */
@media (min-width: 961px) { .story-phone { margin-right: 150px; } .vstack { right: 0; top: 70px; } .story-mascot { left: 4%; } }
@media (max-width: 560px) {
  .vstack { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; transform: none; margin-top: 18px; z-index: 3; }
  .vcard { padding: 6px 10px 6px 6px; gap: 6px; border-radius: 12px; }
  .vcard .icon { width: 22px; height: 22px; }
  .vcard b { font-size: 14px; }
  .vcard small { display: none; }
  .vcard-wait { margin-left: 0; }
  .story { min-height: 0; padding-block: 24px 90px; }
}
.landing main { overflow-x: clip; }
.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > *, .panel { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1100px) { .story-phone { margin-right: 200px; } }
/* Featured plan: animated gradient ring on a pseudo-element; the card itself stays solid paper behind the text */
.landing .plan-featured { position: relative; border: 2px solid transparent; background: var(--paper); animation: none; }
.landing .plan-featured::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--spin), #67E8F9, #C4B5FD, #F0ABFC, #67E8F9); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: border-spin 6s linear infinite; pointer-events: none; }
:root:not([data-platform]) .gp-none, [data-platform="ios"] .gp-ios, [data-platform="android"] .gp-android, [data-platform="huawei"] .gp-huawei, [data-platform="web"] .gp-web { display: inline-flex; align-items: center; gap: 10px; }
.get-app .icon { width: 26px; height: 26px; }
