/* Roundhall landing page. Plain CSS, no build step. */

:root {
  --brand: #5b6cff;
  --brand-2: #8b5cf6;
  --ink: #0b0d1a;
  --ink-2: #131733;
  --ink-line: rgba(255, 255, 255, 0.09);
  --on-ink: #eef0fa;
  --on-ink-muted: #a3a9c7;
  --bg: #f6f7fb;
  --card: #ffffff;
  --line: #e4e7f0;
  --text: #12141c;
  --muted: #5f6880;
  --ok: #16a36a;
  --bad: #e0466e;
  --gold: #f5c542;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.05), 0 12px 32px rgba(20, 24, 40, 0.08);
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.55; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.66rem; font-weight: 700; color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 650 1rem/1 var(--font); text-decoration: none; border-radius: 14px; padding: 14px 22px; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px rgba(91, 108, 255, 0.4); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(91, 108, 255, 0.55); }
.btn-ghost { color: var(--on-ink); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); }
.btn-lg { padding: 17px 28px; font-size: 1.06rem; }
.btn-sm { padding: 10px 16px; font-size: 0.92rem; border-radius: 11px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 26, 0.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--ink-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.12rem var(--display); color: var(--on-ink); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(91, 108, 255, 0.45); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--on-ink-muted); text-decoration: none; font-weight: 550; font-size: 0.94rem; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.link-quiet { color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.link-quiet:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding: 72px 0 96px; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; pointer-events: none; }
.glow-a { width: 620px; height: 620px; background: #4b5cff; top: -260px; left: -180px; opacity: 0.35; }
.glow-b { width: 560px; height: 560px; background: #9b5cf6; bottom: -300px; right: -120px; opacity: 0.32; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: #cfd4ff; background: rgba(91, 108, 255, 0.14); border: 1px solid rgba(139, 151, 255, 0.28); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 1.8s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin: 22px 0 22px; font-weight: 800; }
.lede { font-size: 1.14rem; color: var(--on-ink-muted); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.assurances { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9rem; color: var(--on-ink-muted); }
.assurances li::before { content: '✓'; color: #3ddc97; font-weight: 800; margin-right: 8px; }

/* Stage: host screen + phones */
.stage { position: relative; height: 470px; }
.screen {
  position: absolute; left: 0; top: 18px; width: 76%; height: 372px; border-radius: 18px; overflow: hidden;
  background: #fff; color: var(--text); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; background: #f1f3f9; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7dbe8; }
.screen-title { font-weight: 650; font-size: 0.82rem; color: var(--muted); flex: 1; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; color: var(--ok); background: rgba(22, 163, 106, 0.1); padding: 4px 9px; border-radius: 999px; }
.scene { position: absolute; inset: 40px 0 0; padding: 22px 70px 22px 26px; opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.screen[data-scene='lobby'] .scene-lobby,
.screen[data-scene='question'] .scene-question,
.screen[data-scene='reveal'] .scene-reveal { opacity: 1; transform: none; }

.join-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.join-code { font: 800 3rem/1.05 var(--display); letter-spacing: 0.12em; margin: 6px 0 8px; }
.qr { width: 112px; height: 112px; flex-shrink: 0; }
.qr svg { width: 100%; height: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 6px 13px; border-radius: 999px; background: #f1f3f9; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; animation: pop 0.4s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

.q-head { display: flex; justify-content: space-between; align-items: center; }
.ring { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #e8ebf4; stroke-width: 3.2; }
.ring .ring-fill { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s linear; }
.ring b { font: 800 0.95rem var(--display); font-variant-numeric: tabular-nums; }
.q-text { font-size: 1.32rem; margin: 10px 0 18px; font-weight: 700; }
.bars { display: flex; flex-direction: column; gap: 11px; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 78px 1fr 22px; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 600; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 6px; background: #eef0f6; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width 0.5s ease; }
.bar-row.correct span { color: var(--ok); }
.bar-row.correct .bar i { background: var(--ok); }

.scene-reveal { text-align: center; }
.reveal-answer { font: 800 3.1rem/1.1 var(--display); margin: 6px 0 4px; background: linear-gradient(135deg, #16a36a, #3ddc97); -webkit-background-clip: text; background-clip: text; color: transparent; }
.screen[data-scene='reveal'] .reveal-answer { animation: land 0.7s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes land { from { opacity: 0; transform: scale(0.7) rotateX(70deg); } to { opacity: 1; transform: none; } }
.reveal-stat { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.reveal-stat b { color: var(--text); }
.mini-board { list-style: none; padding: 0; margin: 0 auto; max-width: 300px; text-align: left; }
.mini-board li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; }
.mini-board li:last-child { border-bottom: 0; }
.mini-board li b { margin-left: auto; color: var(--brand); }
.r { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eef0f6; color: var(--muted); font-size: 0.78rem; font-weight: 800; flex-shrink: 0; }
.r.gold { background: linear-gradient(135deg, var(--gold), #ff9f43); color: #2b1d00; }

.phone {
  position: absolute; width: 176px; height: 352px; border-radius: 32px; padding: 12px; background: #0f1222;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 2px #2a2f4a;
}
.phone-a { right: 0; top: 84px; z-index: 3; animation: float 6s ease-in-out infinite; }
.phone-b { right: -6%; top: -6px; z-index: 2; transform: scale(0.86); transform-origin: top right; opacity: 0.94; animation: float-b 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 64px; height: 18px; background: #0f1222; border-radius: 0 0 12px 12px; z-index: 2; }
.pscene {
  position: absolute; inset: 12px; border-radius: 22px; background: #f6f7fb; color: var(--text); padding: 34px 14px 14px;
  display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity 0.4s ease;
}
.phone[data-scene='lobby'] .pscene-lobby,
.phone[data-scene='question'] .pscene-question,
.phone[data-scene='reveal'] .pscene-reveal { opacity: 1; }
.p-title { font: 800 1.05rem var(--display); }
.p-sub { color: var(--muted); font-size: 0.78rem; }
.p-code { height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font: 800 1.15rem var(--display); letter-spacing: 0.2em; }
.p-code::after { content: ''; width: 2px; height: 18px; background: var(--brand); margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.p-input { height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 0 12px; display: flex; align-items: center; font-size: 0.82rem; font-weight: 600; }
.p-btn { height: 38px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; margin-top: 4px; }
.p-wait { display: flex; gap: 6px; margin-top: 18px; justify-content: center; }
.p-wait i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: bounce 1.2s infinite ease-in-out; }
.p-wait i:nth-child(2) { animation-delay: 0.15s; }
.p-wait i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; } 40% { transform: none; opacity: 1; } }
.p-eyebrow { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.56rem; font-weight: 800; color: var(--muted); }
.p-eyebrow .js-timer { color: var(--brand); font-size: 0.7rem; }
.p-q { font: 700 0.8rem/1.3 var(--display); margin-bottom: 2px; }
.p-opt { height: 30px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; font-size: 0.74rem; font-weight: 600; transition: all 0.3s ease; }
.phone.picked .p-opt.pick { border-color: var(--brand); background: rgba(91, 108, 255, 0.1); box-shadow: inset 0 0 0 1.5px var(--brand); }
.p-saved { font-size: 0.68rem; color: var(--ok); font-weight: 700; opacity: 0; transition: opacity 0.3s; }
.phone.picked .p-saved { opacity: 1; }
.pscene-reveal { align-items: center; justify-content: center; text-align: center; }
.p-result { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; color: #fff; }
.p-result.good { background: var(--ok); box-shadow: 0 10px 26px rgba(22, 163, 106, 0.4); }
.p-result.bad { background: var(--bad); box-shadow: 0 10px 26px rgba(224, 70, 110, 0.35); }
.phone[data-scene='reveal'] .p-result { animation: land 0.6s cubic-bezier(.2, 1.4, .4, 1) both; }
.p-big { font: 800 1.15rem var(--display); margin-top: 6px; }

/* ── Marquee ─────────────────────────────────────────────────────── */
.marquee { background: var(--ink-2); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: scroll 42s linear infinite; }
.marquee-track span { color: var(--on-ink-muted); font-weight: 600; font-size: 0.95rem; white-space: nowrap; padding: 6px 16px; border: 1px solid var(--ink-line); border-radius: 999px; }
@keyframes scroll { to { transform: translateX(calc(-50% - 7px)); } }

/* ── Sections ────────────────────────────────────────────────────── */
.section { padding: 110px 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--ink); color: var(--on-ink); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 14px 0 0; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--on-ink-muted); }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.reveal-up { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.reveal-up.in { opacity: 1; transform: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.step p { color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font: 800 0.95rem var(--display); }
.step-art { height: 150px; border-radius: 14px; background: linear-gradient(160deg, #f1f3ff, #f7f2ff); margin-bottom: 20px; display: grid; place-items: center; overflow: hidden; position: relative; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 74%; }
.mode-pick span { padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; text-align: center; animation: pick 6s infinite; }
.mode-pick span:nth-child(2) { animation-delay: 1.5s; }
.mode-pick span:nth-child(3) { animation-delay: 3s; }
.mode-pick span:nth-child(4) { animation-delay: 4.5s; }
@keyframes pick { 0%, 20% { border-color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); background: #f3f4ff; } 25%, 100% { border-color: var(--line); box-shadow: none; background: #fff; } }
.art-join { display: flex; align-items: center; justify-content: center; gap: 26px; }
.mini-qr { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(20, 24, 40, 0.14); }
.join-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 76px; }
.join-stack span { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.78rem; font-weight: 700; animation: slidein 4s infinite both; }
.join-stack span:nth-child(2) { animation-delay: 0.4s; }
.join-stack span:nth-child(3) { animation-delay: 0.8s; }
.join-stack span:nth-child(4) { animation-delay: 1.2s; color: var(--brand); }
@keyframes slidein { 0% { opacity: 0; transform: translateX(14px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.art-play { perspective: 700px; }
.flip { width: 150px; height: 86px; position: relative; transform-style: preserve-3d; animation: flip 5s infinite cubic-bezier(.6, 0, .3, 1); }
.flip span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; backface-visibility: hidden; font: 800 1.6rem var(--display); }
.flip .front { background: var(--grad); color: #fff; }
.flip .back { background: #fff; color: var(--ok); transform: rotateY(180deg); border: 2px solid rgba(22, 163, 106, 0.35); }
@keyframes flip { 0%, 35% { transform: none; } 50%, 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature-flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 12px 0 18px; }
.feature-copy p { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-weight: 550; }
.ticks li::before {
  content: ''; width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat, var(--grad);
}
.feature-demo { border-radius: 24px; padding: 34px; background: linear-gradient(160deg, #eef0ff, #f6efff); border: 1px solid var(--line); min-height: 340px; box-shadow: var(--shadow); }

.demo-sync { display: flex; align-items: center; justify-content: center; gap: 22px; }
.mini-phone { position: relative; width: 112px; height: 210px; border-radius: 24px; background: #0f1222; padding: 10px; display: grid; place-items: center; box-shadow: 0 20px 40px rgba(15, 18, 34, 0.25); }
.mini-phone::before { content: ''; position: absolute; inset: 10px; border-radius: 16px; background: #fff; }
.mini-phone:nth-child(2) { transform: translateY(-16px); }
.mini-phone svg { position: relative; width: 74px; height: 74px; transform: rotate(-90deg); }
.mini-phone circle { fill: none; stroke: #eceef6; stroke-width: 3.4; }
.mini-phone .sync-ring { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 97.4; transition: stroke-dashoffset 0.95s linear, stroke 0.3s; }
.mini-phone .t { position: absolute; z-index: 2; font: 800 1rem var(--display); font-variant-numeric: tabular-nums; }
.mini-phone em { position: absolute; bottom: 22px; z-index: 2; font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.demo-sync.urgent .sync-ring { stroke: var(--bad); }
.demo-sync.urgent .t { color: var(--bad); }

.demo-tally { display: flex; flex-direction: column; justify-content: center; gap: 16px; background: #fff; }
.dt-head { display: flex; justify-content: space-between; align-items: baseline; font: 700 1.25rem var(--display); margin-bottom: 8px; gap: 10px; }
.dt-head b { font: 700 0.86rem var(--font); color: var(--muted); white-space: nowrap; }
.dt-row { display: grid; grid-template-columns: 96px 1fr 28px; gap: 14px; align-items: center; font-weight: 600; }
.dt-row b { text-align: right; font-variant-numeric: tabular-nums; }
.dt-bar { height: 16px; border-radius: 8px; background: #eef0f6; overflow: hidden; }
.dt-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--grad); transition: width 0.45s ease; }

.demo-reveal { display: flex; flex-direction: column; gap: 22px; }
.rv-card { background: #fff; border-radius: 16px; padding: 18px 20px; border: 1px solid rgba(22, 163, 106, 0.3); display: flex; flex-direction: column; gap: 4px; }
.rv-answer { font: 800 1.7rem var(--display); color: var(--ok); }
.rv-stat { color: var(--muted); font-size: 0.92rem; }
.rv-stat b { color: var(--text); }
.board { position: relative; height: 212px; }
.board-row { position: absolute; left: 0; right: 0; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #fff; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; transition: top 0.7s cubic-bezier(.3, 1.2, .4, 1), box-shadow 0.3s, background 0.3s; }
.board-row b { margin-left: auto; color: var(--brand); font-variant-numeric: tabular-nums; }
.board-row.you { background: #f1f2ff; border-color: rgba(91, 108, 255, 0.4); box-shadow: 0 10px 24px rgba(91, 108, 255, 0.2); }
.board-row .r { transition: background 0.3s; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.mode:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20, 24, 40, 0.05), 0 20px 44px rgba(20, 24, 40, 0.12); }
.mode:nth-child(2) { transition-delay: 0.08s; }
.mode:nth-child(3) { transition-delay: 0.16s; }
.mode:nth-child(4) { transition-delay: 0.24s; }
.mode h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.mode p { color: var(--muted); font-size: 0.95rem; }
.mode-art { height: 118px; border-radius: 13px; background: linear-gradient(160deg, #f1f3ff, #f7f2ff); display: flex; align-items: center; justify-content: center; padding: 14px; }
.mode-art.quiz { flex-direction: column; gap: 6px; align-items: stretch; }
.mode-art.quiz span { padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 0.78rem; font-weight: 700; }
.mode-art.quiz .ok { animation: okflash 3.5s infinite; }
@keyframes okflash { 0%, 45% { border-color: var(--line); color: inherit; } 55%, 100% { border-color: var(--ok); color: var(--ok); background: #effaf5; } }
.mode-art.rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.mode-art.rate i { width: 22px; height: 22px; border-radius: 7px; background: #fff; border: 1px solid var(--line); animation: fill 4s infinite; }
.mode-art.rate i:nth-child(n) { animation-delay: calc(var(--d, 0) * 1s); }
.mode-art.rate i:nth-child(1) { --d: 0.1; } .mode-art.rate i:nth-child(2) { --d: 0.2; } .mode-art.rate i:nth-child(3) { --d: 0.3; }
.mode-art.rate i:nth-child(4) { --d: 0.4; } .mode-art.rate i:nth-child(5) { --d: 0.5; } .mode-art.rate i:nth-child(6) { --d: 0.6; }
.mode-art.rate i:nth-child(7) { --d: 0.7; } .mode-art.rate i:nth-child(8) { --d: 0.8; }
.mode-art.rate i:nth-child(9), .mode-art.rate i:nth-child(10) { animation: none; }
@keyframes fill { 0%, 5% { background: #fff; border-color: var(--line); } 15%, 80% { background: var(--brand); border-color: var(--brand); } 100% { background: #fff; } }
.mode-art.poll { flex-direction: column; gap: 12px; align-items: stretch; }
.mode-art.poll div { height: 14px; border-radius: 7px; background: #fff; overflow: hidden; }
.mode-art.poll i { display: block; height: 100%; border-radius: 7px; background: var(--grad); animation: grow 3.5s infinite ease-out; width: var(--w); }
@keyframes grow { 0% { width: 0; } 45%, 100% { width: var(--w); } }
.mode-art.talk { flex-direction: column; gap: 8px; align-items: stretch; }
.mode-art.talk span { padding: 7px 10px; border-radius: 10px 10px 10px 3px; background: #fff; border: 1px solid var(--line); font-size: 0.72rem; font-weight: 600; animation: slidein 4.5s infinite both; }
.mode-art.talk span:nth-child(2) { animation-delay: 0.6s; align-self: flex-end; border-radius: 10px 10px 3px 10px; }

/* Perks */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.perk { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ink-line); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.perk:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(139, 151, 255, 0.35); transform: translateY(-3px); }
.perk-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, rgba(91, 108, 255, 0.28), rgba(139, 92, 246, 0.22)); color: #c9ceff; border: 1px solid rgba(139, 151, 255, 0.25); }
.perk h3 { font-size: 1.12rem; margin: 16px 0 8px; }
.perk p { color: var(--on-ink-muted); font-size: 0.95rem; }

/* App band */
.app-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border-radius: 26px; color: var(--on-ink);
  background: radial-gradient(500px 260px at 90% 0%, rgba(139, 92, 246, 0.5), transparent 70%), radial-gradient(400px 260px at 0% 100%, rgba(91, 108, 255, 0.45), transparent 70%), var(--ink); }
.app-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 10px 0 12px; }
.app-band p { color: var(--on-ink-muted); max-width: 32em; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.25); flex-shrink: 0; transition: transform 0.15s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge span { display: flex; flex-direction: column; font: 700 1.2rem/1.1 var(--display); }
.store-badge small { font: 500 0.7rem var(--font); opacity: 0.8; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; transition: background 0.2s; }
.faq details[open] { background: #fff; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; }

/* Final CTA */
.final { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding: 120px 0; text-align: center; }
.final .glow-a { left: 50%; top: -340px; translate: -50% 0; opacity: 0.4; }
.final-inner { position: relative; }
.final h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.final p { color: var(--on-ink-muted); font-size: 1.12rem; margin-top: 16px; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--ink-line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .logo-mark { width: 28px; height: 28px; border-radius: 9px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.fine { font-size: 0.85rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .stage { max-width: 620px; width: 100%; margin: 0 auto; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 820px) {
  .steps, .perks { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature-flip .feature-copy { order: 0; }
  .feature + .feature { margin-top: 84px; }
  .section { padding: 84px 0; }
  .app-band { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 72px; }
  .lede { font-size: 1.04rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .nav-cta .link-quiet { display: none; }
  .stage { height: 410px; }
  .screen { width: 100%; height: 300px; }
  .scene { padding: 16px 18px; }
  .join-code { font-size: 2.1rem; }
  .qr { width: 78px; height: 78px; }
  .q-text { font-size: 1.05rem; margin: 6px 0 12px; }
  .bars { gap: 8px; }
  .reveal-answer { font-size: 2.3rem; }
  .mini-board li:nth-child(3) { display: none; }
  .phone-a { right: 4px; top: auto; bottom: 8px; transform: scale(0.72); transform-origin: bottom right; }
  .phone-b { display: none; }
  .modes { grid-template-columns: 1fr; }
  .feature-demo { padding: 22px; min-height: 0; }
  .demo-sync { gap: 10px; }
  .mini-phone { width: 92px; height: 176px; }
  .mini-phone svg { width: 60px; height: 60px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-up { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 18px; }
  .marquee-track span[aria-hidden] { display: none; }
}
