/* GoLab for VAST: download and documentation site.
   Neutral, monochrome system (matches the app): near-black surfaces, white primary actions. */
:root {
    --bg: #0b0b0c;
    --bg-2: #111113;
    --panel: #161618;
    --panel-2: #1c1c1f;
    --border: #26262a;
    --border-strong: #34343a;
    --text: #f5f5f6;
    --muted: #a1a1aa;
    --faint: #71717a;
    --accent: #f5f5f6;          /* primary actions are white on black */
    --accent-text: #0b0b0c;
    --ok: #4ade80;
    --radius: 16px;
    --radius-sm: 10px;
    --max: 1180px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* Inter (SIL Open Font License, see fonts/OFL.txt), self-hosted: the site loads nothing from other origins. */
@font-face {
    font-family: "Inter";
    src: url("fonts/inter-var-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(255, 255, 255, 0.2); }

/* very subtle top light, no colour */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,0.06), transparent 60%); }
.grid-bg { display: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
    background: rgba(11, 11, 12, 0.78);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: #f5f5f6; display: grid; place-items: center; }
.brand-mark svg { width: 19px; height: 19px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: 0.02em; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 10px; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn { color: var(--accent-text); margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-weight: 600; font-size: 15px; border-radius: 10px; padding: 12px 22px; border: 1px solid transparent;
    cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: #ffffff; transform: translateY(-1px); }
.btn-ghost { background: var(--bg-2); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); border-color: #45454c; }
.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 999px; }

/* hero (centred, like a product launch page) */
.hero { padding: 96px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 14px; border: 1px solid var(--border-strong); background: var(--bg-2); border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
h1 { font-size: clamp(42px, 7.2vw, 84px); line-height: 1.02; letter-spacing: -0.045em; margin: 24px auto 22px; font-weight: 700; max-width: 980px; }
h1 .soft { color: #8e8e96; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 660px; margin: 0 auto 36px; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; color: var(--faint); font-size: 13.5px; }
.meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.meta-row svg { width: 15px; height: 15px; }

/* product shot: a framed stage tilted in perspective, with app screens inside */
.showcase { margin-top: 64px; perspective: 1800px; }
.stage {
    position: relative; max-width: 1060px; margin: 0 auto; border-radius: 22px; padding: 12px;
    background: linear-gradient(180deg, #1c1c1f, #121214); border: 1px solid var(--border-strong);
    box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,0.02) inset;
    transform: rotateX(14deg); transform-origin: 50% 0%;
    text-align: left; /* app screens are left-aligned, unlike the centred hero */
}
.stage-inner {
    border-radius: 14px; background: linear-gradient(180deg, #2a2a2e 0%, #1a1a1d 100%); overflow: hidden;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 44px 44px 0; height: 560px; align-items: start;
}
.stage-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, transparent, var(--bg) 92%); pointer-events: none; }

.phones { display: contents; }
.phone {
    position: relative; width: 100%; max-width: 270px; justify-self: center; aspect-ratio: 9 / 19; border-radius: 38px; padding: 9px;
    background: #0d0d0f; border: 1px solid #3a3a40; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9);
}
.phone:nth-child(2) { margin-top: -18px; }
.screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; position: relative; display: flex; flex-direction: column; }
.notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; border-radius: 12px; background: #000; z-index: 3; }
.sb { height: 36px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 20px 4px; font-size: 10px; color: #fff; font-weight: 600; flex: none; }
.app-pad { padding: 10px 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.app-title { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.app-sub { font-size: 10.5px; color: #8e8e93; margin-top: -6px; }
.ui-card { background: #111214; border: 1px solid #222; border-radius: 14px; padding: 10px 12px; }
.ui-row { display: flex; align-items: center; gap: 9px; }
.ui-avatar { width: 30px; height: 30px; border-radius: 50%; background: #3a3a3c; flex: none; }
.ui-label { font-size: 10px; color: #8e8e93; }
.ui-value { font-size: 15px; font-weight: 800; color: #fff; }
.ui-pill { font-size: 9.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #1c1c1e; color: #e5e5ea; border: 1px solid #2c2c2e; }
.ui-btn { text-align: center; background: #f2f2f2; color: #0a0a0a; font-weight: 800; font-size: 12px; border-radius: 12px; padding: 11px; }
.ui-input { background: #1c1c1e; border-radius: 10px; padding: 10px; font-size: 11px; color: #8e8e93; }
.ui-bar { display: flex; gap: 4px; align-items: flex-end; height: 46px; }
.ui-bar i { flex: 1; border-radius: 4px 4px 2px 2px; background: #e5e5ea; }
.ui-bar i:nth-child(odd) { background: #8e8e93; }
.bubble { max-width: 80%; font-size: 10.5px; padding: 7px 10px; border-radius: 14px; line-height: 1.35; }
.bubble.in { background: #1c1c1e; color: #e5e5ea; border-bottom-left-radius: 4px; }
.bubble.out { background: #f2f2f2; color: #0a0a0a; align-self: flex-end; border-bottom-right-radius: 4px; }
.tabbar { height: 46px; border-top: 1px solid #1c1c1e; display: flex; justify-content: space-around; align-items: center; flex: none; }
.tabbar i { width: 18px; height: 18px; border-radius: 6px; background: #2c2c2e; }
.tabbar i.on { background: #f2f2f2; }
.post-img { height: 92px; border-radius: 10px; background: linear-gradient(135deg, #3a3a3c, #1c1c1e); }

/* sections */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; margin: 12px 0 16px; font-weight: 700; }
h2 .soft { color: #8e8e96; }
.section-head p { color: var(--muted); margin: 0; font-size: 17.5px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s, background .2s; }
.card:hover { border-color: var(--border-strong); background: var(--panel); }
.icon-box { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border-strong); margin-bottom: 18px; }
.icon-box svg { width: 20px; height: 20px; color: #e4e4e7; }
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* download panel */
.download { border-radius: 22px; padding: 44px; background: var(--bg-2); border: 1px solid var(--border-strong); display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 36px; align-items: center; }
.download h2 { margin-top: 6px; }
.download p { color: var(--muted); }
.download .cta-row { justify-content: flex-start; }
.spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 40px; margin: 26px 0 0; font-size: 14px; }
.spec dt { color: var(--faint); }
.spec dd { margin: 0; font-weight: 600; }
.qr { background: #fff; border-radius: 16px; padding: 14px; width: 210px; margin-left: auto; }
.qr-caption { text-align: center; color: var(--faint); font-size: 13px; margin-top: 12px; }
.hash { font-family: var(--mono); font-size: 12px; color: var(--faint); word-break: break-all; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 24px; left: 26px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--accent); color: var(--accent-text); }

/* roles */
.role-card { padding: 30px; }
.role-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.role-card li { display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; }
.role-card li svg { width: 17px; height: 17px; color: #e4e4e7; flex: none; margin-top: 3px; }
.role-card a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border-strong); color: #e4e4e7; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
details { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 22px; }
details[open] { border-color: var(--border-strong); }
summary { cursor: pointer; list-style: none; padding: 19px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p, details ul, details ol { color: var(--muted); margin: 0 0 19px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 60px; color: var(--faint); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* docs layout */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 48px 0 96px; }
.docs-nav { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; }
.docs-nav h4 { margin: 20px 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.docs-nav a { display: block; font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: 8px; }
.docs-nav a:hover { color: var(--text); background: var(--bg-2); }
.docs-nav a.active { color: var(--text); background: var(--panel); box-shadow: inset 2px 0 0 #f5f5f6; }
.doc { min-width: 0; max-width: 780px; }
.doc section { padding: 0 0 52px; scroll-margin-top: 96px; }
.doc h2 { font-size: 32px; margin-top: 0; padding-top: 8px; }
.doc h3 { font-size: 19px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #c9c9cf; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc a.btn { text-decoration: none; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc code, .doc kbd { font-family: var(--mono); font-size: 13px; background: var(--panel); border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; color: #f4f4f5; }
.callout { border: 1px solid var(--border-strong); background: var(--bg-2); border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0; color: #d4d4d8; font-size: 14.5px; }
.callout.warn { border-left: 3px solid #fbbf24; }
.callout strong { color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td { color: #d4d4d8; }

/* reveal: only when the script runs (html.js), so content is never hidden without it */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1040px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .steps { grid-template-columns: 1fr 1fr; }
    .stage-inner { gap: 18px; padding: 32px 28px 0; height: 500px; }
}
@media (max-width: 860px) {
    .stage { transform: rotateX(10deg); }
    .stage-inner { grid-template-columns: 1fr 1fr; height: 470px; }
    .phone:nth-child(3) { display: none; }
    .download { grid-template-columns: 1fr; padding: 30px; }
    .qr { margin: 0 auto; }
    .docs { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
    .docs-nav { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
    .docs-nav h4 { display: none; }
    .docs-nav a { white-space: nowrap; border: 1px solid var(--border); }
    .docs-nav a.active { box-shadow: none; border-color: #f5f5f6; }
    .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: rgba(11, 11, 12, 0.98); border-bottom: 1px solid var(--border); display: none; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; font-size: 15px; }
    .nav-links a.btn { margin: 8px 0 0; }
    .nav-toggle { display: grid; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    section { padding: 64px 0; }
    .hero { padding: 56px 0 24px; }
    .grid-3, .grid-4, .grid-2, .steps { grid-template-columns: 1fr; }
    .cta-row .btn { width: 100%; }
    .showcase { margin-top: 40px; }
    .stage { padding: 8px; border-radius: 18px; transform: rotateX(8deg); }
    .stage-inner { grid-template-columns: 1fr; padding: 22px 22px 0; height: 430px; }
    .phone:nth-child(2) { display: none; }
    .phone { max-width: 240px; }
    .spec { grid-template-columns: 1fr 1fr; gap: 6px 24px; }
    .download { padding: 24px; border-radius: 18px; }
}

/* ================================================================ animated product
   Every element's resting state is its final state; animation only runs while the
   section is on screen (.play, set by site.js) and never with reduced motion. */

/* utilities used by the mockups (no inline styles: the CSP forbids them) */
.mt-8 { margin-top: 8px; }
.center { text-align: center; }
.strong { color: #e5e5ea; font-weight: 700; }
.between { justify-content: space-between; }
.app-title.small { font-size: 15px; }
.app-sub.flush { margin: 0; }
.ui-value.small { font-size: 13px; }
.ui-value.tiny { font-size: 11px; }
.ui-avatar.sm { width: 24px; height: 24px; }
.ui-label.body { margin-top: 6px; color: #d1d1d6; }
.h60 { height: 60%; } .h70 { height: 70%; } .h80 { height: 80%; } .h88 { height: 88%; } .h95 { height: 95%; } .h100 { height: 100%; }
.app-pad.clip { overflow: hidden; }

/* sign-in: typing, button press, toast */
.ui-input-live { color: #f2f2f2; display: flex; align-items: center; min-height: 34px; }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 11ch; vertical-align: bottom; }
.caret { display: inline-block; width: 1.5px; height: 13px; background: #f2f2f2; margin-left: 2px; opacity: 0; }
.toast { margin-top: auto; margin-bottom: 14px; align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; color: #0a0a0a; background: #f2f2f2; border-radius: 999px; padding: 7px 12px; font-weight: 700; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.play .typed { animation: type 8s steps(10, end) infinite; }
.play .caret { animation: caret 8s linear infinite; }
.play .press { animation: press 8s ease infinite; }
.play .toast { animation: toast 8s ease infinite; }
@keyframes type { 0%, 6% { max-width: 0; } 30%, 100% { max-width: 11ch; } }
@keyframes caret { 0%, 32% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes press { 0%, 38% { transform: scale(1); } 41% { transform: scale(0.95); } 45%, 100% { transform: scale(1); } }
@keyframes toast { 0%, 46% { opacity: 0; transform: translateY(10px); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }

/* home: bars grow, chat with typing indicator */
.ui-bar.grow i { transform-origin: bottom; }
.play .ui-bar.grow i { animation: grow 8s cubic-bezier(.2,.8,.2,1) infinite; }
.play .ui-bar.grow i:nth-child(2) { animation-delay: .08s; }
.play .ui-bar.grow i:nth-child(3) { animation-delay: .16s; }
.play .ui-bar.grow i:nth-child(4) { animation-delay: .24s; }
.play .ui-bar.grow i:nth-child(5) { animation-delay: .32s; }
.play .ui-bar.grow i:nth-child(6) { animation-delay: .4s; }
@keyframes grow { 0% { transform: scaleY(0.05); } 18%, 92% { transform: scaleY(1); } 100% { transform: scaleY(0.05); } }
.ui-card.chat { display: flex; flex-direction: column; gap: 6px; }
.typing { display: inline-flex; gap: 3px; align-self: flex-start; background: #1c1c1e; border-radius: 12px; padding: 7px 9px; overflow: hidden; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #8e8e93; }
.typing.b2, .typing.c4 { display: none; }
.play .typing.b2 { display: inline-flex; animation: typingbox 8s ease infinite; }
.play .typing i { animation: dot 1s ease-in-out infinite; }
.play .typing i:nth-child(2) { animation-delay: .15s; }
.play .typing i:nth-child(3) { animation-delay: .3s; }
.play .bubble.b1 { animation: b1 8s ease infinite; }
.play .bubble.b3 { animation: b3 8s ease infinite; }
@keyframes dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes b1 { 0%, 8% { opacity: 0; transform: translateY(6px); } 14%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes typingbox { 0%, 20% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } 24%, 46% { opacity: 1; max-height: 30px; padding-top: 7px; padding-bottom: 7px; } 50%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } }
@keyframes b3 { 0%, 48% { opacity: 0; transform: translateY(6px); } 54%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* feed: stories, gentle scroll, double-tap heart */
.stories { display: flex; gap: 8px; padding: 2px 0 4px; }
.stories .ring { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #f2f2f2; background: #3a3a3c; box-shadow: inset 0 0 0 2px #000; flex: none; }
.stories .ring.seen { border-color: #3a3a3c; }
.stories.big .ring { width: 40px; height: 40px; }
.play .stories .ring.spin { animation: ringpulse 2.4s ease-in-out infinite; }
@keyframes ringpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.feed-scroll { display: flex; flex-direction: column; gap: 10px; }
.play .feed-scroll { animation: feedscroll 12s ease-in-out infinite; }
@keyframes feedscroll { 0%, 22% { transform: translateY(0); } 45%, 70% { transform: translateY(-150px); } 92%, 100% { transform: translateY(0); } }
.post-img { position: relative; overflow: hidden; }
.post-img.alt { background: linear-gradient(135deg, #2c2c2e, #48484a); }
.post-img.tall { height: 150px; }
.heart-pop { position: absolute; left: 50%; top: 50%; width: 34px; height: 30px; margin: -15px 0 0 -17px; opacity: 0; transform: scale(.4); }
.heart-pop::before, .heart-pop::after { content: ""; position: absolute; top: 0; width: 18px; height: 28px; background: #fff; border-radius: 18px 18px 0 0; }
.heart-pop::before { left: 17px; transform: rotate(-45deg); transform-origin: 0 100%; }
.heart-pop::after { left: -1px; transform: rotate(45deg); transform-origin: 100% 100%; }
.play .heart-pop { animation: heart 12s ease infinite; }
.play .heart-pop.loop { animation: heart 5s ease infinite; }
@keyframes heart { 0%, 8% { opacity: 0; transform: scale(.4); } 11% { opacity: 1; transform: scale(1.15); } 14% { opacity: 1; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1); } }
.post-actions { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.like-icon { position: relative; width: 13px; height: 12px; flex: none; }
.like-icon::before, .like-icon::after { content: ""; position: absolute; top: 0; width: 7px; height: 11px; background: #8e8e93; border-radius: 7px 7px 0 0; }
.like-icon::before { left: 6px; transform: rotate(-45deg); transform-origin: 0 100%; }
.like-icon::after { left: 0; transform: rotate(45deg); transform-origin: 100% 100%; }
.like-icon.fill::before, .like-icon.fill::after { background: #ef4444; }
.play .like-icon:not(.fill)::before, .play .like-icon:not(.fill)::after { animation: likefill 12s step-end infinite; }
@keyframes likefill { 0% { background: #8e8e93; } 11% { background: #ef4444; } 90% { background: #8e8e93; } }

/* chat (spotlight): messages arrive one by one */
.chat-full { gap: 8px; }
.chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #1c1c1e; }
.ui-avatar.group { background: #48484a; }
.composer { margin-top: auto; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; background: #1c1c1e; border-radius: 999px; padding: 8px 8px 8px 14px; font-size: 10.5px; color: #8e8e93; }
.composer i { width: 22px; height: 22px; border-radius: 50%; background: #f2f2f2; }
.play .bubble.c1 { animation: m1 10s ease infinite; }
.play .bubble.c2 { animation: m2 10s ease infinite; }
.play .bubble.c3 { animation: m3 10s ease infinite; }
.play .typing.c4 { display: inline-flex; animation: m4 10s ease infinite; }
.play .bubble.c5 { animation: m5 10s ease infinite; }
@keyframes m1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 9%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes m2 { 0%, 18% { opacity: 0; transform: translateY(8px); } 23%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes m3 { 0%, 32% { opacity: 0; transform: translateY(8px); } 37%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes m4 { 0%, 44% { opacity: 0; } 48%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes m5 { 0%, 64% { opacity: 0; transform: translateY(8px); } 69%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* attendance: QR, scan line, confirmation */
.scan-pad { gap: 8px; }
.scanner { position: relative; margin: 10px auto 0; width: 76%; aspect-ratio: 1; border-radius: 14px; background: #fff; padding: 12%; overflow: hidden; }
.qr-art { width: 100%; height: 100%; background:
    linear-gradient(#000 0 0) 0 0 / 30% 30% no-repeat,
    linear-gradient(#000 0 0) 100% 0 / 30% 30% no-repeat,
    linear-gradient(#000 0 0) 0 100% / 30% 30% no-repeat,
    repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 16% 16%; }
.scan-line { position: absolute; left: 6%; right: 6%; top: 8%; height: 3px; border-radius: 3px; background: #22c55e; box-shadow: 0 0 12px 2px rgba(34, 197, 94, 0.6); opacity: 0; }
.scan-ok { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,0.92); opacity: 0; }
.scan-ok svg { width: 44%; height: 44%; color: #16a34a; }
.ui-btn.result { margin-top: 10px; }
.play .scan-line { animation: scanline 6s ease-in-out infinite; }
.play .scan-ok { animation: scanok 6s ease infinite; }
.play .ui-btn.result { animation: scanres 6s ease infinite; }
@keyframes scanline { 0% { opacity: 0; top: 8%; } 6% { opacity: 1; } 30% { top: 90%; } 50% { top: 8%; opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes scanok { 0%, 54% { opacity: 0; transform: scale(.9); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes scanres { 0%, 58% { opacity: .25; } 64%, 92% { opacity: 1; } 100% { opacity: .25; } }

/* stage: gentle float */
.play .stage-inner { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* trust strip */
.trust { list-style: none; margin: 34px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: #e4e4e7; }

/* spotlight rows */
.spot { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; padding: 40px 0; }
.spot + .spot { border-top: 1px solid var(--border); }
.spot.flip .spot-text { order: 2; }
.spot-text h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.03em; margin: 16px 0 12px; font-weight: 700; }
.spot-text p { color: var(--muted); font-size: 16.5px; margin: 0; max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: #d4d4d8; font-size: 15px; }
.ticks svg { width: 18px; height: 18px; color: #f5f5f6; flex: none; margin-top: 2px; }
.mini {
    justify-self: center; width: 100%; max-width: 280px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 9px;
    background: #0d0d0f; border: 1px solid #3a3a40; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.95), 0 0 0 10px rgba(255,255,255,0.02);
}

@media (prefers-reduced-motion: reduce) {
    .play * { animation: none !important; }
    .play .typing.b2, .play .typing.c4 { display: none !important; }
}
@media (max-width: 860px) {
    .spot { grid-template-columns: 1fr; gap: 32px; }
    .spot.flip .spot-text { order: 0; }
    .mini { max-width: 250px; }
}
@media (max-width: 600px) {
    .trust { gap: 10px 20px; font-size: 13px; }
    .spot { padding: 28px 0; }
}

/* ---- generated from former inline styles (CSP forbids style attributes) ---- */
.s-1 { position:absolute; }
.s-2 { margin-top:8px; }
.s-3 { text-align:center; }
.s-4 { text-align:center; color:#e5e5ea; font-weight:700; }
.s-5 { text-align:center; margin-top:auto; padding-bottom:12px; }
.s-6 { font-size:15px; }
.s-7 { margin:0; }
.s-8 { justify-content:space-between; }
.s-9 { height:60%; }
.s-10 { height:80%; }
.s-11 { height:70%; }
.s-12 { height:95%; }
.s-13 { height:88%; }
.s-14 { height:100%; }
.s-15 { font-size:13px; }
.s-16 { display:flex; flex-direction:column; gap:6px; }
.s-17 { width:24px; height:24px; }
.s-18 { font-size:11px; }
.s-19 { margin-top:6px; color:#d1d1d6; }
.s-20 { margin-top:22px; }
.s-21 { margin-top:16px; }
.s-22 { margin-top:14px; }
.s-23 { text-align:center; margin-top:28px; }
.s-24 { margin-bottom:8px; }
