/* ==========================================================================
   Punchly design system
   Type: Geist + Geist Mono. One accent (tangerine). Light + dark via prefers-color-scheme.
   Shape rule: buttons and chips are full pills, cards are 24px, inputs are 12px.
   ========================================================================== */

:root {
  --bg: #f4f4f5;
  --bg-2: #ebebed;
  --surface: #fcfcfc;
  --surface-2: #f7f7f8;
  --shell: rgba(15, 15, 16, .035);
  --line: rgba(15, 15, 16, .08);
  --line-2: rgba(15, 15, 16, .14);
  --ink: #0f0f10;
  --ink-2: #52525b;
  --ink-3: #6b6b74;
  --accent: #ff5b1f;
  --accent-ink: #1c0a02;
  --accent-soft: rgba(255, 91, 31, .12);
  --btn: #0f0f10;
  --btn-ink: #fafafa;
  --ok: #047857;
  --ok-soft: #dcfce7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --warn: #92400e;
  --warn-soft: #fef3c7;
  --shadow: 0 1px 1px rgba(24, 24, 27, .04), 0 18px 40px -18px rgba(24, 24, 27, .18);
  --shadow-lg: 0 30px 80px -30px rgba(24, 24, 27, .35);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r-card: 24px;
  --r-input: 12px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-2: #111113;
    --surface: #151517;
    --surface-2: #1b1b1e;
    --shell: rgba(255, 255, 255, .03);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --ink: #f4f4f5;
    --ink-2: #a1a1aa;
    --ink-3: #8f8f99;
    --accent: #ff6a33;
    --accent-soft: rgba(255, 106, 51, .14);
    --btn: #f4f4f5;
    --btn-ink: #0b0b0c;
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, .12);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, .12);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .12);
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .9);
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
p a, .small a, .muted a, .banner a, .link-accent { color: var(--accent); font-weight: 500; }
p a:hover, .small a:hover, .banner a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; margin: 0; font-weight: 650; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5rem; }
h2 { font-size: 1.08rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
img { max-width: 100%; }
code { font-family: var(--mono); background: var(--shell); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Film grain on a fixed layer only (never on scrolling content). */
.grain { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { .grain { mix-blend-mode: screen; opacity: .05; } }

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 32px 0 72px; }
.narrow { width: min(480px, 100% - 32px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 6px; min-width: 0; flex: 1; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .02em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin: 0 0 14px; }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.pill-tag i { color: var(--accent); font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn { --b: var(--btn); --bi: var(--btn-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  background: var(--b); color: var(--bi); border: 0; border-radius: 999px; padding: 11px 20px;
  font: inherit; font-weight: 600; font-size: .95rem; letter-spacing: -0.01em; cursor: pointer;
  transition: transform .5s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), opacity .2s; }
.btn:hover { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--b) 70%, transparent); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { --b: var(--btn); --bi: var(--btn-ink); }
.btn-accent { --b: var(--accent); --bi: var(--accent-ink); }
.btn-ghost { --b: transparent; --bi: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--shell); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-xl { padding: 20px 28px; font-size: 1.15rem; flex: 1; }
.btn-block { width: 100%; }
.btn.has-icon { padding-right: 6px; }
.btn.has-icon.btn-sm { padding-right: 4px; }
.btn-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--bi) 14%, transparent); transition: transform .5s var(--ease); font-size: 1rem; }
.btn-primary .btn-icon { background: var(--accent); color: var(--accent-ink); }
.btn-lg .btn-icon { width: 38px; height: 38px; }
.btn.has-icon:hover .btn-icon { transform: translate(2px, -1px) scale(1.06); }
.btn-reward { --b: var(--accent); --bi: var(--accent-ink); padding: 16px; font-size: 1.05rem; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; cursor: pointer; }
.link:hover { color: var(--ink); }

/* ---------- Forms ---------- */
input, textarea, select { font: inherit; color: var(--ink); width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-input);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s var(--ease); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, textarea:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
input:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
input[type=range] { padding: 0; box-shadow: none; accent-color: var(--accent); background: transparent; }
input[type=checkbox], input[type=radio] { width: auto; box-shadow: none; accent-color: var(--accent); }
input[type=file] { padding: 10px; font-size: .88rem; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 7px 14px; margin-right: 12px; background: var(--btn); color: var(--btn-ink); cursor: pointer; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 550; font-size: .88rem; }
.field small { color: var(--ink-3); font-size: .8rem; }
.check { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--ink-2); }

.alert, .success, .banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; margin-bottom: 18px; font-size: .92rem; }
.alert i, .success i, .banner i { font-size: 1.15rem; flex: none; margin-top: 1px; }
.alert { background: var(--bad-soft); color: var(--bad); }
.success { background: var(--ok-soft); color: var(--ok); }
.banner { background: var(--accent-soft); color: var(--ink); }
.banner i { color: var(--accent); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.warn i { color: var(--warn); }

/* ---------- Floating island nav ---------- */
.nav-wrap { position: sticky; top: 14px; z-index: 40; padding: 0 16px; }
.nav { width: min(1180px, 100%); margin: 14px auto 0; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 10px 0 20px;
  border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px var(--line), var(--shadow); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.03em; flex: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; }
.brand-mark::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--shell); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions form { margin: 0; }
.nav-login { font-size: .9rem; color: var(--ink-2); padding: 8px 10px; }
.nav-login:hover { color: var(--ink); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 550; color: var(--ink-2); padding: 7px 10px; border-radius: 999px; }
.lang-switch:hover { color: var(--ink); background: var(--shell); }
.lang-switch i { font-size: 1rem; }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--shell); position: relative; cursor: pointer; margin-left: auto; }
.nav-burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease); }
.nav-burger span:first-child { transform: translateY(-4px); }
.nav-burger span:last-child { transform: translateY(4px); }
.nav-open .nav-burger span:first-child { transform: rotate(45deg); }
.nav-open .nav-burger span:last-child { transform: rotate(-45deg); }
.nav-sheet { position: fixed; inset: 0; z-index: -1; padding: 110px 24px 32px; display: flex; flex-direction: column; gap: 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  opacity: 0; transition: opacity .4s var(--ease); }
.nav-open .nav-sheet { opacity: 1; }
.nav-sheet-links { display: grid; gap: 4px; }
.nav-sheet-links a { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; padding: 6px 0; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.nav-open .nav-sheet-links a { opacity: 1; transform: none; }
.nav-sheet-links a:nth-child(2) { transition-delay: .05s; }
.nav-sheet-links a:nth-child(3) { transition-delay: .1s; }
.nav-sheet-links a:nth-child(4) { transition-delay: .15s; }
.nav-sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nav-sheet-actions form { margin: 0; }

/* ---------- Motion primitives ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-split] .word { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(14px); transition: opacity .8s var(--ease-out), filter .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 80ms); }
[data-split].in .word { opacity: 1; filter: none; transform: none; }
[data-split] .word.accent { color: var(--accent); }
[data-rotate] { display: inline-block; transition: opacity .28s var(--ease), transform .28s var(--ease); }
[data-rotate].out { opacity: 0; transform: translateY(-40%); }
.spark-layer { position: fixed; z-index: 90; pointer-events: none; width: 0; height: 0; }
.spark-layer span { position: absolute; width: 2px; height: 12px; margin: -6px -1px; border-radius: 2px; background: currentColor; transform: rotate(var(--a)) translateY(-6px); animation: spark .6s var(--ease-out) forwards; }
@keyframes spark { to { transform: rotate(var(--a)) translateY(-44px); opacity: 0; height: 2px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-split] .word { opacity: 1; transform: none; filter: none; }
}

/* ---------- Aurora background (port of React Bits "Aurora", CSS-only) ---------- */
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after, .aurora span { content: ''; position: absolute; border-radius: 50%; will-change: transform; }
.aurora::before { width: 62vw; height: 62vw; left: 38%; top: -10%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 62%); animation: drift-a 18s var(--ease) infinite alternate; }
.aurora::after { width: 48vw; height: 48vw; left: 62%; top: 22%; background: radial-gradient(circle, rgba(251, 191, 36, .22) 0%, transparent 60%); animation: drift-b 22s var(--ease) infinite alternate; }
.aurora span { width: 40vw; height: 40vw; left: 4%; top: 30%; background: radial-gradient(circle, rgba(244, 63, 94, .12) 0%, transparent 60%); animation: drift-a 26s var(--ease) infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(-8%, 10%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(10%, -6%) scale(.9); } }

/* ---------- Landing ---------- */
.landing section { position: relative; }
.l-hero { position: relative; isolation: isolate; overflow-x: clip; min-height: min(88dvh, 860px); display: grid; align-items: center; padding: 48px 0 40px; }
.l-hero-grid { width: min(1180px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.l-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.05em; margin: 18px 0 22px; font-weight: 650; max-width: 14ch; text-wrap: balance; }
.l-hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34ch; margin: 0 0 32px; }
.l-hero-stage { position: relative; display: grid; place-items: center; min-height: 520px; perspective: 1400px; }
.phone { position: relative; width: 300px; aspect-ratio: 9 / 19; border-radius: 52px; padding: 10px; background: linear-gradient(145deg, #2a2a2e, #0c0c0d); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), var(--shadow-lg);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); transform-style: preserve-3d; }
.phone.tilting { transition: transform .12s linear; }
.phone-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #f2f2f4; padding: 54px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
@media (prefers-color-scheme: dark) { .phone-screen { background: #000; } }
.phone-screen::before { content: ''; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #0c0c0d; }
.phone-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.22), transparent 45%); }
.phone.tilting .phone-glare { opacity: 1; }
.phone-label { font-size: .7rem; font-weight: 600; color: #8e8e93; letter-spacing: .02em; padding: 0 4px; display: flex; justify-content: space-between; }
.phone .pcard { border-radius: 16px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); padding: 12px 0 10px; }
.phone .pcard-top { padding: 0 12px 8px; }
.phone .pcard-bottom { padding: 8px 12px 0; }
.phone .pcard-logo { height: 26px; }
.phone .pcard-initial { width: 26px; font-size: .8rem; }
.phone .pcard-name b { font-size: .8rem; }
.phone .pcard-count b, .phone .pcard-bottom b { font-size: .82rem; }
.phone .pcard-ready { margin: 8px 12px 0; padding: 7px; font-size: .74rem; }
.phone-qr { margin-top: auto; display: grid; justify-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: 18px; background: #fff; color: #111827; box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.phone-qr img { width: 112px; height: 112px; }
.phone-qr b { font-family: var(--mono); letter-spacing: .28em; font-size: .9rem; }
.phone-qr small { font-size: .66rem; color: #6b7280; text-align: center; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; font-size: .84rem; font-weight: 550;
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px var(--line), var(--shadow); animation: bob 6s var(--ease) infinite alternate; white-space: nowrap; }
.float-chip i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 1.05rem; }
.float-chip small { display: block; color: var(--ink-3); font-weight: 450; font-size: .74rem; }
.chip-a { right: calc(50% + 118px); top: 34%; }
.chip-b { left: calc(50% + 118px); bottom: 16%; animation-delay: -3s; }
@keyframes bob { to { transform: translateY(-10px); } }

.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 550; color: var(--ink-2); white-space: nowrap; letter-spacing: -0.02em; }
.marquee-track i { color: var(--accent); font-size: 1.3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.l-section { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 120px 0; }
.l-title { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.045em; line-height: 1.04; max-width: 20ch; margin-bottom: 18px; text-wrap: balance; font-weight: 650; }
.l-sub { color: var(--ink-2); font-size: 1.1rem; max-width: 52ch; margin: 0; }

.how-list { margin-top: 64px; display: grid; }
.how-row { display: grid; grid-template-columns: 240px 1fr auto; gap: 40px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.how-row:last-child { border-bottom: 1px solid var(--line); }
.how-verb { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 650; letter-spacing: -0.05em; }
.how-row p { margin: 0; color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
.how-visual { width: 132px; height: 88px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.swatches { display: flex; padding-left: 8px; }
.swatches span { width: 30px; height: 30px; border-radius: 50%; margin-left: -8px; box-shadow: 0 0 0 3px var(--surface); animation: swatch 4s var(--ease) infinite; }
.swatches span:nth-child(2) { animation-delay: .3s; } .swatches span:nth-child(3) { animation-delay: .6s; } .swatches span:nth-child(4) { animation-delay: .9s; }
@keyframes swatch { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-6px); } }
.how-visual > i { font-size: 2.6rem; color: var(--ink); }
.stamp-btn { border: 0; cursor: pointer; font: inherit; font-weight: 650; font-size: .95rem; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); transition: transform .4s var(--ease); }
.stamp-btn:active { transform: scale(.92); }

.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 18px; }
.cell { position: relative; overflow: hidden; border-radius: 28px; padding: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); display: flex; flex-direction: column; isolation: isolate; }
.cell::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); }
.cell:hover::before { opacity: 1; }
.cell h3 { font-size: 1.35rem; margin-bottom: 8px; letter-spacing: -0.03em; }
.cell p { margin: 0; color: var(--ink-2); max-width: 38ch; }
.cell-text { margin-top: auto; }
.cell-wallet { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 55%); }
.cell-scan { grid-column: span 2; grid-row: span 2; background: #0f0f10; color: #f4f4f5; }
.cell-scan p { color: #a1a1aa; }
.cell-lang, .cell-stats, .cell-guard { grid-column: span 2; }
.cell-guard { background: var(--surface-2); }
.cell-icon { font-size: 2rem; color: var(--accent); margin-bottom: 18px; }
.fan { position: relative; flex: 1; min-height: 300px; display: grid; place-items: center; margin-bottom: 24px; }
.fan .card-mount { position: absolute; width: min(330px, 70%); transition: transform .9s var(--ease); }
.fan .card-mount:nth-child(1) { transform: translate(-30%, 4%) rotate(-9deg); }
.fan .card-mount:nth-child(2) { transform: translate(30%, 2%) rotate(8deg); }
.fan .card-mount:nth-child(3) { transform: translateY(-6%); z-index: 2; }
.cell-wallet:hover .fan .card-mount:nth-child(1) { transform: translate(-42%, 6%) rotate(-12deg); }
.cell-wallet:hover .fan .card-mount:nth-child(2) { transform: translate(42%, 4%) rotate(11deg); }
.scan-visual { flex: 1; display: grid; place-items: center; position: relative; margin-bottom: 18px; }
.scan-frame { width: 150px; height: 150px; border-radius: 28px; position: relative; display: grid; place-items: center; }
.scan-frame::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: conic-gradient(var(--accent) 0 25%, transparent 0 50%, var(--accent) 0 75%, transparent 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.scan-frame i { font-size: 4.2rem; color: #f4f4f5; }
.scan-line { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--accent); box-shadow: 0 0 18px var(--accent); animation: scanline 2.4s var(--ease) infinite alternate; }
@keyframes scanline { from { top: 18%; } to { top: 82%; } }
.lang-word { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 650; letter-spacing: -0.05em; margin-bottom: 14px; color: var(--accent); height: 1.15em; overflow: hidden; }

.pricing-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.bezel { padding: 7px; border-radius: 32px; background: var(--shell); box-shadow: 0 0 0 1px var(--line); }
.bezel-core { border-radius: 26px; background: var(--surface); padding: 32px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), var(--shadow); }
@media (prefers-color-scheme: dark) { .bezel-core { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow); } }
.price-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.price-big b { font-size: 3.4rem; font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; }
.checklist i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .8rem; flex: none; }

.faq { margin-top: 48px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 1.15rem; font-weight: 550; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--shell); transition: transform .5s var(--ease), background .3s; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq details p { margin: -8px 0 24px; color: var(--ink-2); max-width: 60ch; }

.final-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 40px; padding: clamp(56px, 9vw, 110px) clamp(24px, 6vw, 80px); background: #0f0f10; color: #f4f4f5; }
.final-cta .aurora { inset: -40% -20% -40%; height: auto; }
.final-cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1.02; max-width: 14ch; margin-bottom: 30px; font-weight: 650; }
.final-cta .btn-primary { --b: #f4f4f5; --bi: #0f0f10; }
.l-footer { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 36px 0 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: .88rem; }
.l-footer nav { display: flex; gap: 18px; align-items: center; }
.l-footer a:hover { color: var(--ink); }

/* ---------- Auth ---------- */
.auth-page { position: relative; isolation: isolate; min-height: calc(100dvh - 90px); display: grid; place-items: center; padding: 40px 16px 72px; overflow: hidden; }
.auth-page .aurora { opacity: .7; }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { font-size: 2rem; letter-spacing: -0.04em; }
.auth-card .bezel-core { padding: 36px; }
.auth-card .muted { margin: 0 0 24px; }
.auth-foot { text-align: center; margin-top: 20px; }

/* ---------- App shell ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.045em; margin-bottom: 4px; }
.page-head .muted { margin: 0; }
/* Double-bezel panel: the outer ring is a box-shadow "tray" so no extra markup is needed. */
.panel { background: var(--surface); border-radius: var(--r-card); padding: 24px; min-width: 0;
  box-shadow: 0 0 0 6px var(--shell), 0 0 0 7px var(--line), var(--shadow); }
.panel h2 { display: flex; align-items: center; gap: 8px; }
.panel h2 i { color: var(--ink-3); font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--r-card); padding: 20px 22px; display: grid; gap: 2px;
  box-shadow: 0 0 0 6px var(--shell), 0 0 0 7px var(--line), var(--shadow); }
.stat > i { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--shell); color: var(--ink-2); font-size: 1.15rem; }
.stat span { color: var(--ink-2); font-size: .86rem; }
.stat b { font-size: 2.4rem; letter-spacing: -0.05em; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { color: var(--ok); font-size: .8rem; font-weight: 500; }
.stat.hot { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 60%); }
.stat.hot > i { background: var(--accent); color: var(--accent-ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; align-items: start; }
.share { display: flex; gap: 20px; align-items: flex-start; }
.share img { border-radius: 16px; background: #fff; padding: 6px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.copy { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.copy input { padding: 6px 10px; font-size: .84rem; min-width: 0; background: transparent; box-shadow: none; font-family: var(--mono); }
.pin { font-family: var(--mono); font-size: 1.05rem; letter-spacing: .2em; background: var(--accent-soft); color: var(--ink); padding: 2px 8px; border-radius: 8px; }
.preview-panel { display: flex; flex-direction: column; }
.preview-panel .card-mount { width: min(400px, 100%); margin: auto; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; display: flex; gap: 10px; align-items: center; }
.feed li:last-child { border-bottom: 0; }
.feed li > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--shell); color: var(--ink-2); flex: none; }
.feed li > i.reward { background: var(--accent-soft); color: var(--accent); }
.feed li span { margin-left: auto; color: var(--ink-3); font-size: .8rem; white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; color: var(--ink-3); font-weight: 550; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--shell); }
.panel:has(.table) { overflow-x: auto; }
.badge { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 600; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 28px 12px; color: var(--ink-2); }
.empty i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--shell); color: var(--ink-3); }
.empty p { margin: 0; max-width: 34ch; }
.settings { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: start; }
.settings .btn { margin-top: 29px; }

/* ---------- Designer ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 36px; align-items: start; }
.designer form h2 { margin: 10px 0 -4px; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 600; }
.designer form h2:first-child { margin-top: 0; }
.designer-preview .sticky { position: sticky; top: 104px; display: grid; gap: 14px; }
.preview-stage { position: relative; isolation: isolate; border-radius: 32px; padding: 48px 28px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.preview-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); }
.colors { flex-wrap: nowrap; }
.colors .field { flex: 1; }
.presets { display: flex; gap: 10px; flex-wrap: wrap; }
.preset { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.1rem; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-2); transition: transform .4s var(--ease); }
.preset:hover { transform: translateY(-2px) scale(1.06); }
.icons { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-opt { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 14px; border-radius: 16px; cursor: pointer; min-width: 72px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background .2s, transform .4s var(--ease); }
.icon-opt:hover { transform: translateY(-2px); }
.icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icon-opt svg { width: 26px; height: 26px; fill: var(--ink-2); }
.icon-opt small { font-size: .78rem; color: var(--ink-2); }
.icon-opt:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); background: var(--accent-soft); }
.icon-opt:has(input:checked) svg { fill: var(--accent); }
.logo-input { display: grid; gap: 8px; }

/* ---------- The loyalty card (mirrors the wallet pass) ---------- */
.pcard { position: relative; background: var(--bg); color: var(--fg); border-radius: 20px; padding: 16px 0 14px; overflow: hidden; font-family: -apple-system, 'Geist', system-ui, sans-serif;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06); }
.pcard::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 38%); }
.pcard.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.035); } }
.pcard-top { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.pcard-logo { height: 36px; max-width: 110px; object-fit: contain; }
.pcard-initial { width: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 800; }
.pcard-name { display: grid; line-height: 1.2; min-width: 0; }
.pcard-name b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-name span { font-size: .75rem; opacity: .7; }
.pcard-count { margin-left: auto; text-align: right; display: grid; line-height: 1.15; }
.pcard span { font-size: .62rem; letter-spacing: .08em; font-weight: 600; opacity: .75; }
.pcard-count b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pcard-strip svg { display: block; width: 100%; height: auto; }
.pcard-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px 0; }
.pcard-bottom div { display: grid; line-height: 1.25; min-width: 0; }
.pcard-bottom b { font-size: .95rem; }
.pcard-bottom .right { text-align: right; }
.pcard-ready { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--accent); color: var(--bg); font-weight: 700; font-size: .88rem; }
.pcard-ready i { font-size: 1.1rem; }

/* ---------- Customer pages (tinted with the business's own card colour) ---------- */
body.customer { --brand: #3f3f46; background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--brand) 22%, var(--bg)), var(--bg) 70%) fixed, var(--bg); }
.join { padding-top: 32px; }
.join .card-mount { margin: 8px 0 28px; }
.join h1 { font-size: 2.1rem; letter-spacing: -0.04em; }
.join form .btn { margin-top: 4px; }
.card-page { display: grid; gap: 18px; padding-top: 28px; }
.welcome { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ok-soft); color: var(--ok); padding: 12px 14px; border-radius: 16px; font-weight: 600; }
.qr-box { background: var(--surface); border-radius: 28px; padding: 24px; text-align: center; box-shadow: 0 0 0 6px var(--shell), 0 0 0 7px var(--line), var(--shadow); }
.qr-box img { display: block; margin: 0 auto; border-radius: 12px; background: #fff; padding: 8px; }
.qr-box .code { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; letter-spacing: .3em; margin-top: 10px; }
.qr-box p { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; }
.wallet-buttons { display: grid; gap: 10px; }
.wallet-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #0f0f10; color: #fafafa; border-radius: 999px; padding: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .4s var(--ease); }
.wallet-btn:active { transform: scale(.97); }
.wallet-btn i { font-size: 1.25rem; }
.note { display: flex; gap: 10px; background: var(--surface); border-radius: 16px; padding: 14px 16px; font-size: .86rem; color: var(--ink-2); margin: 0; box-shadow: inset 0 0 0 1px var(--line); }
.note i { font-size: 1.1rem; color: var(--ink-3); flex: none; margin-top: 2px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--btn); color: var(--btn-ink); padding: 12px 20px 12px 14px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg); white-space: nowrap; z-index: 80; }
.toast i { color: var(--accent); font-size: 1.2rem; }
.toast.show { animation: toast .5s var(--ease); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }

/* ---------- Staff scanner (always dark: it's a counter tool) ---------- */
body.staff { --bg: #09090b; --surface: #141417; --surface-2: #1b1b1f; --ink: #f4f4f5; --ink-2: #a1a1aa; --ink-3: #8f8f99; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15); --shell: rgba(255,255,255,.03); --btn: #f4f4f5; --btn-ink: #09090b;
  background: radial-gradient(90% 50% at 50% 0%, rgba(255, 106, 51, .12), transparent 70%), var(--bg); color: var(--ink); color-scheme: dark; }
.pin-input { text-align: center; font-family: var(--mono); font-size: 2.2rem; letter-spacing: .5em; padding: 16px; }
.scanner { padding-top: 20px; display: grid; gap: 18px; }
.scanner-head { display: flex; justify-content: space-between; align-items: flex-start; }
.scanner-head h1 { font-size: 1.9rem; }
.scanner-head form { margin: 0; }
.reader { position: relative; aspect-ratio: 1; background: var(--surface); border-radius: 32px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--shell), 0 0 0 7px var(--line); }
.reader::before { content: ''; position: absolute; inset: 22%; pointer-events: none; z-index: 2;
  background: linear-gradient(var(--accent), var(--accent)) top left / 28px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 3px 28px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 28px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) top right / 3px 28px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 28px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom left / 3px 28px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 28px 3px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 3px 28px no-repeat; }
.reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
.reader #start-scan { position: relative; z-index: 3; }
.manual { display: flex; gap: 8px; margin-top: 14px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.manual input { text-transform: uppercase; letter-spacing: .2em; font-family: var(--mono); background: transparent; box-shadow: none; }
.error-text { color: #fca5a5; text-align: center; }
#customer-view { display: grid; gap: 14px; }
.customer-meta { display: grid; text-align: center; gap: 2px; }
.customer-meta b { font-size: 1.5rem; letter-spacing: -0.03em; }
.actions { display: flex; gap: 10px; }
.actions .btn-xl { border-radius: 24px; }
#stamp-2 { border-radius: 24px; padding: 0 22px; }
.flash { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 14px; border-radius: 18px; text-align: center; font-weight: 600; animation: toast-in .4s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.flash.ok { background: rgba(74, 222, 128, .12); color: #86efac; }
.flash.bad { background: rgba(248, 113, 113, .12); color: #fca5a5; }

/* ---------- Billing ---------- */
.billing { padding-top: 24px; }
.billing h1 { margin: 20px 0 24px; }
.plan { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan > div { display: grid; }
.plan b { font-size: 1.2rem; letter-spacing: -0.02em; }
.price { font-size: 1.9rem; font-weight: 650; letter-spacing: -0.04em; }
.status-line { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.status-line + .muted { margin: -8px 0 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 4px var(--shell); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.billing form { margin: 0; }
.included { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: .94rem; }
.included li { display: flex; gap: 10px; align-items: center; }
.included li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .75rem; flex: none; }

/* ---------- Poster ---------- */
.poster-body { background: #e4e4e7; color-scheme: light; }
.poster { width: min(560px, 100% - 32px); margin: 32px auto; background: var(--bg); color: var(--fg); border-radius: 32px; padding: 52px 40px; text-align: center; box-shadow: var(--shadow-lg); }
.poster h1 { font-size: 2.5rem; letter-spacing: -0.04em; margin: 16px 0 26px; }
.poster-logo { max-height: 90px; }
.poster-qr { background: #fff; border-radius: 24px; padding: 18px; width: 300px; max-width: 100%; margin: 0 auto 22px; box-shadow: 0 0 0 6px var(--accent); }
.poster-qr img { display: block; width: 100%; }
.poster p { font-size: 1.05rem; opacity: .9; }
.print-btn { position: fixed; right: 20px; bottom: 20px; }
@media print {
  .no-print, .grain { display: none !important; }
  .poster-body { background: #fff; }
  .poster { margin: 0 auto; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.lang-foot { text-align: center; padding: 12px 16px 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: block; }
  .nav { padding: 0 8px 0 18px; }
  .l-hero-grid, .pricing-split, .designer, .grid-2 { grid-template-columns: 1fr; }
  .l-hero { min-height: auto; padding-top: 32px; }
  .l-hero-stage { min-height: 560px; }
  .chip-a { right: calc(50% + 96px); } .chip-b { left: calc(50% + 96px); }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-wallet, .cell-scan, .cell-guard { grid-column: span 2; grid-row: auto; }
  .cell-lang, .cell-stats { grid-column: span 1; }
  .how-row { grid-template-columns: 1fr auto; gap: 14px 24px; }
  .how-row p { grid-column: 1 / -1; grid-row: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .settings { grid-template-columns: 1fr; }
  .settings .btn { margin-top: 0; }
  .designer-preview { order: -1; }
  .designer-preview .sticky { position: static; }
  .l-section { padding: 88px 0; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .cell-wallet, .cell-scan, .cell-lang, .cell-stats, .cell-guard { grid-column: span 1; }
  .fan { min-height: 230px; }
  .float-chip { display: none; }
  .phone { width: 270px; }
  .l-hero-stage { min-height: 580px; }
  .share { flex-direction: column; }
  .stats { gap: 16px; }
  .stat b { font-size: 2rem; }
  .final-cta { border-radius: 28px; }
}

/* Shared single-card pages (password reset, staff PIN, admin login) */
.auth:not(.auth-page) { margin-top: 56px; margin-bottom: 56px; padding: 36px; background: var(--surface); border-radius: 28px; box-shadow: 0 0 0 7px var(--shell), 0 0 0 8px var(--line), var(--shadow); }
.auth:not(.auth-page) h1 { font-size: 2rem; letter-spacing: -0.04em; }
.auth:not(.auth-page) > .muted { margin: 0 0 22px; }
#start-scan { gap: 10px; }

/* ---------- Wallet previews (sizes in cqw so they scale like the real pass) ---------- */
.wallet-view { container-type: inline-size; width: 100%; }
.apass { background: var(--bg); color: var(--fg); border-radius: 4cqw; padding: 4.4cqw 0 5cqw; font-family: -apple-system, 'SF Pro Text', 'Geist', system-ui, sans-serif;
  box-shadow: 0 6cqw 12cqw -6cqw rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; }
.apass-top { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 0 4.4cqw 3.4cqw; min-height: 13cqw; }
.apass-brand { display: flex; align-items: center; gap: 2.4cqw; min-width: 0; }
.apass-logo { max-height: 13.5cqw; max-width: 42cqw; object-fit: contain; object-position: left center; flex: none; }
.apass-logotext { font-size: 4.8cqw; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apass-field { display: grid; gap: .4cqw; min-width: 0; }
.apass-field.right { text-align: right; }
.apass-field span { font-size: 2.9cqw; font-weight: 600; letter-spacing: .06em; color: var(--label, var(--fg)); text-transform: uppercase; }
.apass-field b { font-size: 5.2cqw; font-weight: 500; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apass-top .apass-field b { font-size: 5.6cqw; }
.apass-strip svg { display: block; width: 100%; height: auto; }
.apass-row { display: flex; justify-content: space-between; gap: 4cqw; padding: 3.6cqw 4.4cqw 0; }
.apass-code { display: grid; justify-items: center; gap: 1.6cqw; margin-top: 6cqw; }
.apass-qr { width: 36cqw; aspect-ratio: 1; background: #fff; border-radius: 2.4cqw; padding: 2.4cqw; }
.apass-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.apass-code small { font-size: 3cqw; letter-spacing: .14em; opacity: .85; font-family: var(--mono); }

.gpass { background: var(--bg); color: var(--ink); border-radius: 6cqw; overflow: hidden; font-family: 'Google Sans', 'Geist', system-ui, sans-serif; box-shadow: 0 6cqw 12cqw -6cqw rgba(0,0,0,.5); }
.gpass-head { display: flex; align-items: center; gap: 3cqw; padding: 5cqw 5cqw 0; font-size: 3.8cqw; font-weight: 500; }
.gpass-logo { width: 9cqw; height: 9cqw; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 4cqw; flex: none; }
.gpass-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.gpass-title { padding: 4cqw 5cqw 0; font-size: 7cqw; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.gpass-fields { display: flex; justify-content: space-between; padding: 5cqw 5cqw 0; }
.gpass-fields div { display: grid; gap: .6cqw; }
.gpass-fields div:last-child { text-align: right; }
.gpass-fields span { font-size: 3.2cqw; opacity: .8; }
.gpass-fields b { font-size: 5cqw; font-weight: 500; }
.gpass-code { display: grid; place-items: center; padding: 6cqw 0; }
.gpass-code > div { background: #fff; border-radius: 3cqw; padding: 3cqw 3cqw 2cqw; display: grid; justify-items: center; gap: 1.4cqw; }
.gpass-code img { width: 34cqw; height: 34cqw; display: block; image-rendering: pixelated; }
.gpass-code small { color: #3c4043; font-size: 3cqw; letter-spacing: .12em; font-family: var(--mono); }
.gpass-hero svg { display: block; width: 100%; height: auto; }

.lock { position: relative; min-height: 150cqw; border-radius: 7cqw; overflow: hidden; padding: 18cqw 4cqw 6cqw; color: #fff; text-align: center;
  background: radial-gradient(90% 60% at 30% 20%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%), radial-gradient(80% 70% at 80% 90%, color-mix(in srgb, var(--bg) 90%, #000), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--bg) 70%, #000), #0b0b0c); }
.lock-date { font-size: 4.6cqw; font-weight: 500; opacity: .9; }
.lock-time { font-size: 24cqw; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 12cqw; }
.notif { display: flex; gap: 3cqw; align-items: center; text-align: left; padding: 3.4cqw; border-radius: 5.5cqw; background: rgba(250, 250, 250, .72); color: #111; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: notif-in .7s var(--ease); }
@keyframes notif-in { from { opacity: 0; transform: translateY(-6cqw) scale(.96); } }
.notif-icon { width: 10cqw; height: 10cqw; border-radius: 2.4cqw; display: grid; place-items: center; font-weight: 800; font-size: 4.6cqw; overflow: hidden; flex: none; }
.notif-icon img { width: 100%; height: 100%; object-fit: contain; }
.notif-body { min-width: 0; flex: 1; }
.notif-top { display: flex; justify-content: space-between; gap: 2cqw; font-size: 3.6cqw; }
.notif-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-top span { color: #6b6b70; flex: none; }
.notif p { margin: .4cqw 0 0; font-size: 3.6cqw; line-height: 1.3; }

.view-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.view-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 550; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .3s var(--ease), color .3s; white-space: nowrap; }
.view-tabs button[aria-selected=true] { background: var(--btn); color: var(--btn-ink); }
.view-tabs i { font-size: 1rem; }

/* ---------- Live builder on the landing page ---------- */
.builder { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: stretch; }
.builder-form { display: grid; gap: 18px; align-content: start; }
.builder-stage { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: 28px; display: grid; justify-items: center; align-content: start; gap: 22px;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.builder-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 50% 35%, color-mix(in srgb, var(--stage, var(--accent)) 26%, transparent), transparent 70%); transition: background .6s; }
.builder-phone { width: min(320px, 100%); border-radius: 48px; padding: 10px; background: linear-gradient(145deg, #2a2a2e, #0c0c0d); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), var(--shadow-lg); }
.builder-screen { position: relative; border-radius: 39px; overflow: hidden; background: #f2f2f7; min-height: 560px; padding: 50px 14px 18px; }
@media (prefers-color-scheme: dark) { .builder-screen { background: #000; } }
.builder-screen::before { content: ''; position: absolute; top: 11px; left: 50%; width: 90px; height: 25px; margin-left: -45px; border-radius: 999px; background: #0c0c0d; z-index: 2; }
.builder-screen[data-mode=lock] { padding: 0; background: #000; }
.builder-screen[data-mode=lock] .wallet-view { height: 100%; }
.builder-screen[data-mode=lock] .lock { min-height: 576px; border-radius: 0; }
.screen-label { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 600; color: #8e8e93; padding: 0 6px 10px; }
.builder-screen[data-mode=lock] .screen-label { display: none; }
.builder-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.builder-hint { font-size: .82rem; color: var(--ink-3); text-align: center; margin: 0; max-width: 40ch; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .86rem; cursor: pointer; transition: box-shadow .2s, background .2s; }
.seg input:checked + span { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Services tabs ---------- */
.svc { margin-top: 48px; display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: stretch; }
.svc-tabs { display: grid; gap: 8px; align-content: start; }
.svc-tab { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; text-align: left; padding: 18px; border: 0; border-radius: 22px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background .3s var(--ease), box-shadow .3s; }
.svc-tab i { grid-row: span 2; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--shell); font-size: 1.3rem; color: var(--ink-2); transition: background .3s, color .3s; }
.svc-tab b { font-size: 1.05rem; letter-spacing: -0.02em; }
.svc-tab small { color: var(--ink-2); font-size: .86rem; }
.svc-tab:hover { background: var(--shell); }
.svc-tab[aria-selected=true] { background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.svc-tab[aria-selected=true] i { background: var(--accent); color: var(--accent-ink); }
.svc-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 32px; border-radius: 32px; background: var(--surface); box-shadow: 0 0 0 7px var(--shell), 0 0 0 8px var(--line), var(--shadow); min-height: 440px; }
.svc-panel[hidden] { display: none; }
.svc-panel h3 { font-size: 1.7rem; letter-spacing: -0.04em; margin-bottom: 10px; }
.svc-panel > div > p { color: var(--ink-2); margin: 0 0 18px; }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.svc-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.svc-list i { grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.svc-list b { font-size: .96rem; font-weight: 600; }
.svc-list span { color: var(--ink-2); font-size: .9rem; }
.svc-visual { display: grid; place-items: center; min-height: 360px; border-radius: 24px; padding: 24px; background: var(--surface-2); position: relative; overflow: hidden; isolation: isolate; }
.svc-visual::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 40%, var(--accent-soft), transparent 70%); }
.svc-visual .wallet-view { width: min(270px, 100%); }
.mini-scanner { width: min(250px, 100%); border-radius: 30px; padding: 18px; background: #09090b; color: #f4f4f5; display: grid; gap: 12px; box-shadow: var(--shadow-lg); }
.mini-scanner .mini-reader { aspect-ratio: 1.3; border-radius: 18px; background: #141417; position: relative; display: grid; place-items: center; }
.mini-scanner .mini-reader i { font-size: 3rem; color: #3f3f46; }
.mini-scanner .mini-reader::after { content: ''; position: absolute; left: 18%; right: 18%; height: 2px; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: scanline 2.2s var(--ease) infinite alternate; }
.mini-scanner b { text-align: center; font-size: 1.05rem; }
.mini-scanner .btn { width: 100%; border-radius: 16px; }
.mini-dash { width: min(320px, 100%); display: grid; gap: 12px; }
.mini-dash .stat { padding: 16px 18px; }
.mini-dash .stat b { font-size: 1.9rem; }
.mini-dash .feed { background: var(--surface); border-radius: 20px; padding: 6px 14px; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Wallet accuracy section ---------- */
.accuracy { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.facts li { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.facts i { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); font-size: 1.3rem; color: var(--accent); }
.facts b { font-size: 1.05rem; letter-spacing: -0.02em; }
.facts span { color: var(--ink-2); }
.accuracy-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.accuracy-stage .builder-phone { position: relative; z-index: 2; }
.accuracy-stage .float-card { position: absolute; width: 230px; right: 0; bottom: 8%; z-index: 3; transform: rotate(6deg); }
.accuracy-stage .float-card .wallet-view { width: 100%; }

.ease-strip { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px; margin-top: 28px; }
.ease-strip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: .86rem; font-weight: 550; }
.ease-strip i { color: var(--accent); }
.how-time { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }

.designer-preview .view-tabs { justify-self: center; }
.designer-preview .wallet-view { width: min(340px, 100%); margin: 0 auto; }

@media (max-width: 960px) {
  .builder, .accuracy, .svc, .svc-panel { grid-template-columns: 1fr; }
  .svc-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-tab { grid-template-columns: 1fr; justify-items: start; padding: 14px; }
  .svc-tab i { grid-row: auto; }
  .svc-tab small { display: none; }
  .accuracy-stage { min-height: 560px; }
  .accuracy-stage .float-card { right: 2%; width: 190px; }
  .ease-strip { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .view-tabs button span { display: none; }
  .svc-panel { padding: 20px; }
  .builder-stage { padding: 18px 12px; }
  .accuracy-stage .float-card { display: none; }
}
.prefill-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; margin-bottom: 18px; }
.prefill-note .dotc { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 11px var(--accent); flex: none; }

/* Wallet app chrome + pass back */
.wchrome { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; font-size: .95rem; }
.wchrome.apple .wchrome-done { color: #0a84ff; font-weight: 600; }
.wchrome-more { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(120,120,128,.18); color: #0a84ff; font-size: 1.2rem; cursor: pointer; }
.wchrome.google { color: #5f6368; font-size: 1.3rem; padding: 0 6px 12px; }
@media (prefers-color-scheme: dark) { .wchrome.google { color: #c4c7c5; } }
.flip.animate { animation: flip-in .55s var(--ease); transform-origin: center; }
@keyframes flip-in { from { transform: perspective(900px) rotateY(-80deg); opacity: .2; } }
.aback { container-type: inline-size; background: #fff; color: #111; border-radius: 4cqw; padding: 5cqw; min-height: 120cqw; box-shadow: 0 6cqw 12cqw -6cqw rgba(0,0,0,.45); }
@media (prefers-color-scheme: dark) { .aback { background: #1c1c1e; color: #f2f2f7; } }
.aback-head { display: flex; gap: 3cqw; align-items: center; padding-bottom: 4cqw; border-bottom: 1px solid rgba(128,128,128,.25); }
.aback-head img { width: 14cqw; height: 14cqw; object-fit: contain; border-radius: 3cqw; background: #fff; }
.aback-head > b { width: 14cqw; height: 14cqw; border-radius: 3cqw; display: grid; place-items: center; background: #111; color: #fff; }
.aback-head div { display: grid; }
.aback-head div b { font-size: 4.4cqw; }
.aback-head div span { font-size: 3.4cqw; color: #8e8e93; }
.aback-toggles { display: grid; margin: 3cqw 0; border-radius: 3cqw; background: rgba(120,120,128,.1); }
.aback-toggles div { display: flex; justify-content: space-between; align-items: center; padding: 3cqw 3.4cqw; font-size: 3.6cqw; }
.aback-toggles div + div { border-top: 1px solid rgba(128,128,128,.2); }
.aback-switch { width: 10cqw; height: 6cqw; border-radius: 99px; background: #34c759; position: relative; }
.aback-switch::after { content: ''; position: absolute; right: .6cqw; top: .6cqw; width: 4.8cqw; height: 4.8cqw; border-radius: 50%; background: #fff; }
.aback-row { padding: 3cqw 0; border-bottom: 1px solid rgba(128,128,128,.18); }
.aback-row span { font-size: 3cqw; color: #8e8e93; text-transform: uppercase; letter-spacing: .04em; }
.aback-row p { margin: .8cqw 0 0; font-size: 3.7cqw; line-height: 1.35; }

/* ---------- Brand Studio ---------- */
.studio { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.studio-panel .bezel-core { padding: 24px; display: grid; gap: 20px; }
.studio-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.studio-tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .8rem; font-weight: 550; padding: 10px 6px; border-radius: 14px; cursor: pointer; transition: background .3s var(--ease), color .3s; }
.studio-tabs button i { font-size: 1.25rem; }
.studio-tabs button[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.studio-tabs button[aria-selected=true] i { color: var(--accent); }
.studio-pane { display: grid; gap: 18px; animation: toast-in .35s var(--ease); }
.import-row { display: flex; gap: 8px; }
.import-row input { flex: 1; }
.studio-status { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--shell); font-size: .88rem; color: var(--ink-2); }
.studio-status.ok { background: var(--ok-soft); color: var(--ok); }
.studio-status.bad { background: var(--bad-soft); color: var(--bad); }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading i, .btn.loading .btn-icon i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-drop { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; border: 1.5px dashed var(--line-2); }
.logo-thumb { width: 88px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; flex: none; color: #9ca3af; font-size: 1.6rem; }
.logo-thumb img { max-width: 92%; max-height: 92%; object-fit: contain; }
.file-btn { cursor: pointer; justify-self: start; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.chip button { border: 0; background: transparent; font: inherit; font-size: .74rem; font-weight: 600; color: var(--ink-2); padding: 4px 8px; border-radius: 999px; cursor: pointer; }
.chip button:hover { background: var(--surface); color: var(--ink); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.example { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: .82rem; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.example i { color: var(--accent); }
.example:hover { color: var(--ink); }
.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.icon-grid .icon-opt { min-width: 0; padding: 10px 4px; }
.icon-grid .icon-opt i { font-size: 26px; color: var(--ink-2); }
.icon-grid .icon-opt:has(input:checked) i { color: var(--accent); }
.studio .builder-stage { position: sticky; top: 96px; }
.studio .builder-stage > .btn { width: min(320px, 100%); }
.builder-screen .wallet-view { width: 100%; }
.demo-dialog { border: 0; padding: 0; border-radius: 28px; background: transparent; width: min(440px, calc(100% - 32px)); }
.demo-dialog::backdrop { background: rgba(10, 10, 12, .55); backdrop-filter: blur(6px); }
.demo-dialog .bezel-core { text-align: center; display: grid; gap: 12px; justify-items: center; }
.demo-dialog h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.demo-dialog p { margin: 0 0 8px; }
.dialog-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.7rem; }

/* ---------- Try it on your phone ---------- */
.try-core { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: clamp(24px, 4vw, 48px); }
.try-qr { display: grid; justify-items: center; gap: 10px; padding: 22px; border-radius: 28px; background: #fff; color: #444; box-shadow: 0 0 0 7px var(--accent-soft); }
.try-qr img { width: min(260px, 100%); display: block; }
.demo-steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.demo-steps li { display: flex; gap: 12px; align-items: center; }
.demo-steps i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; flex: none; }
.demo-steps.big li { font-size: 1.05rem; }

/* ---------- How a visit works ---------- */
.visit { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.visit::before { content: ''; position: absolute; left: 40px; right: 40px; top: 31px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.visit-step { position: relative; padding: 0 20px 0 0; }
.visit-num { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line), var(--shadow); font-size: 1.6rem; color: var(--accent); position: relative; margin-bottom: 22px; }
.visit-who { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.visit-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.visit-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.visit-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 44px; padding: 22px 24px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); max-width: 760px; }
.visit-note > i { font-size: 1.6rem; color: var(--ok); flex: none; }
.visit-note b { font-size: 1.05rem; }
.visit-note p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- Demo console ---------- */
.demo-wrap { padding-top: 28px; }
.demo-head h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.045em; margin: 14px 0 6px; }
.demo-head { margin-bottom: 24px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.demo-qr .bezel-core { display: grid; justify-items: center; gap: 8px; padding: 32px; }
.demo-qr img { width: min(420px, 100%); border-radius: 16px; background: #fff; padding: 10px; }
.demo-qr .demo-steps { justify-self: stretch; }
.demo-live { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.demo-live .builder-phone { width: 290px; }
.demo-live .builder-screen { min-height: 520px; }
.demo-members { display: grid; gap: 12px; }
.demo-member { cursor: pointer; border-radius: 12px; padding: 10px 8px !important; }
.demo-member.active { background: var(--accent-soft); }
.demo-member div { display: grid; line-height: 1.25; }
.demo-member small { color: var(--ink-3); }
.demo-member .btn { margin-left: auto; }
.empty-row { color: var(--ink-3); }

/* ---------- Card page ---------- */
.live-pass { width: min(380px, 100%); margin: 0 auto; }
.live-pass .apass, .bump.apass { transition: transform .4s var(--ease); }
.apass.bump { animation: bump .6s var(--ease); }
.show-staff { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-weight: 600; color: var(--ink-2); }
.show-staff i { color: var(--accent); }

@media (max-width: 1100px) {
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .studio, .try-core { grid-template-columns: 1fr; }
  .studio .builder-stage { position: static; order: -1; }
  .visit { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .visit::before { display: none; }
  .demo-live { grid-template-columns: 1fr; justify-items: center; }
  .demo-members { width: 100%; }
}
@media (max-width: 600px) {
  .icon-grid { grid-template-columns: repeat(4, 1fr); }
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-tabs button span { font-size: .72rem; }
  .visit { grid-template-columns: 1fr; }
}
.prefill-note img { width: 40px; height: 28px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; flex: none; }
