/* Collabiro marketing site. Plain CSS, no build step. Brand: navy + Collabiro blue, warm accents. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff2") format("woff2"); }

:root {
  --bg: #faf9f6; --bg-2: #ffffff; --bg-3: #f2f0ea;
  --ink: #0b1b3f; --ink-2: #45506a; --ink-3: #707a92; --line: #e6e2d8;
  --accent: #0b5cff; --accent-hover: #0047d6; --accent-soft: rgba(11, 92, 255, .1);
  --coral: #ff7a45; --sun: #ffc83d; --mint: #12b886; --rose: #f0567a; --teal: #14a3b8;
  --mark: rgba(255, 200, 61, .55);
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(11, 27, 63, .05), 0 14px 34px -16px rgba(11, 27, 63, .2);
  --dot: rgba(11, 27, 63, .09);
  --map-floor: #f5f3ee; --map-room: #ffffff; --map-line: #e4e0d6;
  --navy: #0b1b3f;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1124; --bg-2: #0e1730; --bg-3: #15203d;
    --ink: #f3f5fa; --ink-2: #b6c0d6; --ink-3: #8792ad; --line: #22304f;
    --accent: #4d8bff; --accent-hover: #6b9fff; --accent-soft: rgba(77, 139, 255, .16);
    --mark: rgba(255, 200, 61, .32);
    --card: #101a33; --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 40px -18px rgba(0,0,0,.7);
    --dot: rgba(255, 255, 255, .07);
    --map-floor: #111b35; --map-room: #17233f; --map-line: #273657;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1124; --bg-2: #0e1730; --bg-3: #15203d;
  --ink: #f3f5fa; --ink-2: #b6c0d6; --ink-3: #8792ad; --line: #22304f;
  --accent: #4d8bff; --accent-hover: #6b9fff; --accent-soft: rgba(77, 139, 255, .16);
  --mark: rgba(255, 200, 61, .32);
  --card: #101a33; --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 40px -18px rgba(0,0,0,.7);
  --dot: rgba(255, 255, 255, .07);
  --map-floor: #111b35; --map-room: #17233f; --map-line: #273657;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.035em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.mark { background: linear-gradient(transparent 60%, var(--mark) 60%, var(--mark) 92%, transparent 92%); padding: 0 .08em; }
.accent { color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: ping 2s infinite; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--ink-2); max-width: 620px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s; white-space: nowrap; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(11, 92, 255, .8); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 9px 16px; font-size: .92rem; border-radius: 10px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand .logo { height: 44px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.site-footer .brand .logo { height: 52px; }
.nav-links { display: flex; gap: 2px; margin-left: 8px; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-3); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .menu-btn { display: inline-grid; }
  .nav-actions .signin { display: none; }
}
@media (max-width: 420px) { .brand .logo { height: 36px; } .nav-actions .btn-primary { padding: 8px 12px; } }

/* Hero */
.hero, .page-hero { position: relative; overflow: hidden; background-color: var(--bg); background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero { padding: 64px 0 36px; }
.hero > *, .page-hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: .9rem; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--mint); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }
.page-hero { padding: 80px 0 64px; text-align: center; }
.page-hero .lead { margin-inline: auto; }
.crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); }

/* Avatars (flat brand-adjacent colors) */
.av { position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 700; color: #fff; border: 2.5px solid var(--map-room); box-shadow: 0 4px 10px rgba(11, 27, 63, .22); transform: translate(-50%, -50%); z-index: 2; }
.av::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); border: 2px solid var(--map-room); }
.av.busy::after { background: #ef4444; }
.av.away::after { background: var(--sun); }
.av.talk { animation: talk 1.6s ease-out infinite; }
.c1 { background: #0b5cff; } .c2 { background: #ff7a45; } .c3 { background: #14a3b8; } .c4 { background: #f5a524; }
.c5 { background: #12b886; } .c6 { background: #f0567a; } .c7 { background: #475569; }

/* Hero office map */
.map { position: relative; aspect-ratio: 1.18; width: 100%; border-radius: 24px; background: var(--card); box-shadow: var(--card-shadow); border: 1px solid var(--line); padding: 14px; transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform .6s ease; }
.map:hover { transform: none; }
.map-top { display: flex; align-items: center; gap: 8px; height: 26px; font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.map-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.map-top b { margin-left: 6px; color: var(--ink-2); }
.map-top .live { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; color: var(--mint); }
.map-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: ping 2s infinite; }
.floor, .sc-floor { border-radius: 16px; background: var(--map-floor); background-image: radial-gradient(var(--map-line) 1.2px, transparent 1.2px); background-size: 18px 18px; overflow: hidden; }
.floor { position: absolute; inset: 46px 14px 14px; }
.room, .sc-room { position: absolute; background: var(--map-room); border: 1.5px solid var(--map-line); border-radius: 12px; padding: 8px 10px; font-size: .7rem; font-weight: 600; color: var(--ink-3); transition: border-color .4s, box-shadow .4s; }
.room .tag { display: inline-flex; gap: 5px; align-items: center; }
.room.r-lounge { left: 4%; top: 5%; width: 50%; height: 44%; }
.room.r-meet { left: 58%; top: 5%; width: 38%; height: 44%; }
.room.r-a { left: 4%; top: 54%; width: 22%; height: 40%; }
.room.r-b { left: 29%; top: 54%; width: 22%; height: 40%; }
.room.r-c { left: 54%; top: 54%; width: 20%; height: 40%; }
.room.r-d { left: 77%; top: 54%; width: 19%; height: 40%; }
.room.live-room { border-color: color-mix(in srgb, var(--mint) 55%, var(--map-line)); box-shadow: 0 0 0 4px rgba(18, 184, 134, .1); }
.room.meet-live { animation: meetlive 16s infinite; }
@keyframes meetlive { 0%, 28% { border-color: var(--map-line); box-shadow: none; } 32%, 56% { border-color: color-mix(in srgb, var(--coral) 60%, var(--map-line)); box-shadow: 0 0 0 4px rgba(255, 122, 69, .12); } 60%, 100% { border-color: var(--map-line); box-shadow: none; } }
.room .rec { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.walker { animation: walk 14s ease-in-out infinite; }
.walker2 { animation: walk2 18s ease-in-out infinite; }
.walker3 { animation: walk3 16s ease-in-out infinite; }
.bubble { position: absolute; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: .68rem; font-weight: 500; padding: 5px 9px; border-radius: 10px 10px 10px 2px; box-shadow: var(--card-shadow); white-space: nowrap; z-index: 3; animation: bubble 9s ease-in-out infinite; transform-origin: bottom left; }
.bubble.b2 { animation-delay: 4.5s; }
.emoji-pop { position: absolute; z-index: 4; font-size: 1.1rem; animation: emo 6s ease-in-out infinite; }
.toast { position: absolute; right: 18px; top: 58px; z-index: 5; width: min(260px, 62%); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(11,27,63,.45); padding: 12px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: .78rem; animation: toast 10s ease-in-out infinite; }
.toast .av { position: static; transform: none; }
.toast strong { display: block; font-size: .82rem; color: var(--ink); }
.toast span { color: var(--ink-3); }
.toast .acts { grid-column: 1 / -1; display: flex; gap: 6px; }
.toast .acts b { flex: 1; text-align: center; padding: 6px; border-radius: 8px; font-size: .74rem; background: var(--bg-3); color: var(--ink-2); }
.toast .acts b.yes { background: var(--mint); color: #fff; }
.callbox { position: absolute; left: 18px; bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 9px 12px; border-radius: 14px; font-size: .74rem; box-shadow: 0 20px 40px -14px rgba(0,0,0,.6); animation: float 6s ease-in-out infinite; }
.bars { display: flex; gap: 2px; align-items: end; height: 14px; }
.bars i { width: 3px; background: var(--mint); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .2s; } .bars i:nth-child(3) { animation-delay: .4s; } .bars i:nth-child(4) { animation-delay: .1s; }
.callbox .end { width: 26px; height: 26px; border-radius: 50%; background: #ef4444; display: grid; place-items: center; }
.callbox .end svg { width: 14px; height: 14px; }
@media (max-width: 560px) { .av { width: 26px; height: 26px; font-size: .56rem; } .room { font-size: .58rem; padding: 5px 7px; } .bubble, .emoji-pop { display: none; } .map { transform: none; } }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(18,184,134,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(18,184,134,0); } }
@keyframes talk { 0% { box-shadow: 0 0 0 0 rgba(18,184,134,.7), 0 4px 10px rgba(11,27,63,.22); } 100% { box-shadow: 0 0 0 12px rgba(18,184,134,0), 0 4px 10px rgba(11,27,63,.22); } }
@keyframes walk { 0%, 18% { left: 15%; top: 74%; } 32%, 60% { left: 34%; top: 30%; } 74%, 100% { left: 15%; top: 74%; } }
@keyframes walk2 { 0%, 22% { left: 64%; top: 74%; } 38%, 72% { left: 72%; top: 30%; } 88%, 100% { left: 64%; top: 74%; } }
@keyframes walk3 { 0%, 30% { left: 86%; top: 74%; } 42%, 56% { left: 80%; top: 32%; } 68%, 100% { left: 86%; top: 74%; } }
@keyframes bubble { 0%, 8% { opacity: 0; transform: scale(.6); } 14%, 46% { opacity: 1; transform: scale(1); } 54%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes toast { 0%, 30% { opacity: 0; transform: translateY(-14px) scale(.96); } 36%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes drift { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes emo { 0%, 40% { opacity: 0; transform: translateY(0) scale(.5); } 48% { opacity: 1; transform: translateY(-10px) scale(1.1); } 70% { opacity: 1; transform: translateY(-26px) scale(1); } 80%, 100% { opacity: 0; transform: translateY(-36px); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes blink { 50% { opacity: .2; } }

/* Strip */
.strip { padding: 34px 0 6px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: drift 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; font-size: .92rem; color: var(--ink-2); white-space: nowrap; }
.chip i { font-style: normal; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin-inline: auto; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; display: block; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } section { padding: 68px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--card-shadow); transition: transform .25s ease, border-color .25s ease; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-4px); border-color: var(--ink-3); }
.card:hover .ico { animation: bob .6s ease; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.card p { margin: 0; font-size: .98rem; }
.card h3 { margin-bottom: 8px; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 22px; height: 22px; }
.i1 { background: rgba(11, 92, 255, .12); color: #0b5cff; } .i2 { background: rgba(255, 122, 69, .14); color: #e8622c; }
.i3 { background: rgba(20, 163, 184, .14); color: #0f8ea1; } .i4 { background: rgba(255, 200, 61, .22); color: #b7791f; }
.i5 { background: rgba(18, 184, 134, .14); color: #0e9a70; } .i6 { background: rgba(240, 86, 122, .14); color: #d63d63; }
:root[data-theme="dark"] .ico { filter: brightness(1.35); }

/* Feature rows */
.row { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding: 48px 0; }
.row.flip > :first-child { order: 2; }
.row h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.row ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.row li { display: flex; gap: 10px; color: var(--ink-2); }
.row li::before { content: "✓"; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--mint); background: rgba(18, 184, 134, .14); }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; gap: 32px; } .row.flip > :first-child { order: 0; } }

.visual { position: relative; border-radius: 22px; background: var(--bg-3); border: 1px solid var(--line); min-height: 360px; padding: 26px; overflow: hidden; box-shadow: var(--card-shadow); }

/* Animated scenes: data-stepper in site.js adds st-N classes and toggles [data-at] elements */
.scene [data-at] { opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .35s ease, transform .35s ease; }
.scene [data-at].on { opacity: 1; transform: none; }
.resetting, .resetting * { transition: none !important; }
.scene .av { transition: left 1s cubic-bezier(.5, 0, .3, 1), top 1s cubic-bezier(.5, 0, .3, 1); }
.sc-floor { position: absolute; inset: 20px; }
.cursor { position: absolute; width: 22px; height: 22px; z-index: 8; left: 90%; top: 94%; transition: left .9s cubic-bezier(.5, 0, .3, 1), top .9s cubic-bezier(.5, 0, .3, 1), transform .15s; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.sc-bubble { position: absolute; z-index: 6; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: .76rem; font-weight: 500; padding: 6px 10px; border-radius: 10px 10px 10px 2px; box-shadow: var(--card-shadow); white-space: nowrap; }

/* Knock scene */
.knock-scene .hall { left: 4%; top: 8%; width: 40%; height: 84%; }
.knock-scene .office { left: 52%; top: 8%; width: 44%; height: 84%; }
.knock-scene .door-gap { position: absolute; left: -4px; top: 38%; width: 7px; height: 24%; border-radius: 4px; background: var(--coral); transition: background .4s; }
.knock-scene.st-5 .door-gap { background: var(--mint); }
.knock-scene.st-5 .office { border-color: color-mix(in srgb, var(--mint) 60%, var(--map-line)); box-shadow: 0 0 0 4px rgba(18,184,134,.1); }
.knock-scene .am { left: 16%; top: 76%; }
.knock-scene.st-1 .am { left: 44%; top: 52%; }
.knock-scene.st-5 .am { left: 68%; top: 58%; }
.knock-scene .ln { left: 82%; top: 42%; }
.knock-scene.st-6 .am, .knock-scene.st-6 .ln { animation: talk 1.4s ease-out infinite; }
.knock-scene.st-6 .ln { animation-delay: .7s; }
.ripple { position: absolute; left: 51.5%; top: 52%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; z-index: 1; }
.knock-scene.st-2:not(.st-5) .ripple { animation: ripple 1.1s ease-out infinite; }
.knock-scene.st-2:not(.st-5) .ripple.r2 { animation-delay: .4s; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.knock-pop { position: absolute; left: 50%; top: 7%; z-index: 7; width: min(300px, 84%); translate: -50% 0; display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 24px 50px -18px rgba(11,27,63,.45); }
.knock-pop .av { position: static; transform: none; flex: none; width: 32px; height: 32px; }
.knock-pop strong { display: block; font-size: .82rem; }
.knock-pop .t { font-size: .74rem; color: var(--ink-3); }
.knock-pop .yes { margin-left: auto; background: var(--mint); color: #fff; font-size: .74rem; font-weight: 600; padding: 6px 11px; border-radius: 9px; transition: transform .15s, box-shadow .15s; flex: none; }
.knock-scene.st-4 .knock-pop .yes { transform: scale(.9); box-shadow: 0 0 0 4px rgba(18,184,134,.3); }
.knock-scene.st-3 .cursor { left: 80%; top: 17%; }
.knock-scene.st-4 .cursor { transform: scale(.85); }
.knock-scene.st-5 .cursor { left: 92%; top: 96%; transform: none; }
.knock-scene .sc-bubble { left: 54%; top: 70%; }

/* Rooms scene */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; }
.tile { aspect-ratio: 4 / 3; border-radius: 14px; position: relative; display: grid; place-items: center; overflow: hidden; }
.tile .av { position: static; transform: none; width: 44px; height: 44px; font-size: .8rem; }
.tile .nm { position: absolute; left: 8px; bottom: 8px; font-size: .68rem; color: #fff; background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }
.tile.t1 { background: #13284f; } .tile.t2 { background: #134e4a; } .tile.t3 { background: #5b2a1a; }
.tile.cycle { animation: spk 7.5s infinite; }
.tile.t2.cycle { animation-delay: 2.5s; } .tile.t3.cycle { animation-delay: 5s; }
@keyframes spk { 0%, 30% { box-shadow: inset 0 0 0 3px var(--mint); } 34%, 100% { box-shadow: inset 0 0 0 0 transparent; } }
.tile.share { grid-column: 1 / -1; aspect-ratio: 16 / 6.5; background: var(--card); border: 1px solid var(--line); place-items: stretch; padding: 14px; }
.tile.share .lines { display: grid; gap: 8px; align-content: start; }
.lines i { height: 8px; border-radius: 4px; background: var(--bg-3); display: block; }
.lines i:nth-child(1) { width: 40%; height: 11px; background: var(--accent-soft); }
.lines i:nth-child(2) { width: 85%; } .lines i:nth-child(3) { width: 70%; } .lines i:nth-child(4) { width: 55%; } .lines i:nth-child(5) { width: 78%; }
.share .draw { position: absolute; left: 54%; top: 20%; width: 36%; height: 56%; border: 2px dashed var(--coral); border-radius: 8px; animation: drawbox 6s ease-in-out infinite; }
@keyframes drawbox { 0%, 30% { clip-path: inset(0 100% 100% 0); } 50%, 88% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.pointer { position: absolute; width: 18px; height: 18px; z-index: 2; animation: pointer 6s ease-in-out infinite; }
@keyframes pointer { 0% { left: 20%; top: 70%; } 30% { left: 54%; top: 20%; } 50% { left: 88%; top: 72%; } 75% { left: 30%; top: 40%; } 100% { left: 20%; top: 70%; } }
.tile.joiner { animation: join 7.5s infinite; }
@keyframes join { 0%, 8% { transform: scale(.4); opacity: 0; } 14%, 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(.4); opacity: 0; } }
.join-chip { position: absolute; right: 14px; top: 14px; z-index: 3; font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--mint); color: #fff; animation: chip 7.5s infinite; }
@keyframes chip { 0%, 8% { opacity: 0; transform: translateY(-6px); } 12%, 32% { opacity: 1; transform: none; } 38%, 100% { opacity: 0; } }
.ctrl { display: flex; justify-content: center; gap: 10px; margin-top: 14px; position: relative; }
.ctrl b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.ctrl b svg { width: 18px; height: 18px; }
.ctrl b.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.ctrl b.end { background: #ef4444; color: #fff; border-color: transparent; }

/* Chat scene */
.chat { position: absolute; inset: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.chat [data-at]:not(.on) { display: none; }
.chat [data-at].on { animation: rise .4s ease; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg .av { position: static; transform: none; width: 30px; height: 30px; font-size: .6rem; flex: none; }
.msg .av::after { display: none; }
.msg p { margin: 0; background: var(--card); border: 1px solid var(--line); padding: 9px 13px; border-radius: 14px 14px 14px 4px; font-size: .9rem; color: var(--ink); max-width: 80%; }
.msg.me { flex-direction: row-reverse; }
.msg.me p { background: var(--accent); color: #fff; border-color: transparent; border-radius: 14px 14px 4px 14px; }
.typing p { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.typing p i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dots 1s infinite; }
.typing p i:nth-child(2) { animation-delay: .15s; } .typing p i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.poll { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: .85rem; margin-left: 40px; }
.poll strong { display: block; margin-bottom: 8px; }
.poll .bar { position: relative; background: var(--bg-3); border-radius: 8px; height: 28px; margin-bottom: 6px; overflow: hidden; display: flex; align-items: center; padding: 0 10px; font-size: .8rem; color: var(--ink-2); }
.poll .bar i { position: absolute; inset: 0 auto 0 0; background: rgba(255, 200, 61, .45); width: 0; transition: width 1.1s ease; }
.st-7 .poll .bar i { width: var(--w); }
.poll .bar span { position: relative; }
.react { display: inline-flex; gap: 4px; margin: -4px 0 0 40px; font-size: .75rem; }
.react b { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-weight: 500; animation: pop .35s ease; }

/* Magicast scene */
.screen { position: relative; border-radius: 14px; background: var(--card); border: 1px solid var(--line); aspect-ratio: 16 / 10; padding: 16px; overflow: hidden; }
.screen .lines { display: grid; gap: 9px; }
.screen .lines i { height: 10px; }
.screen .hl { position: absolute; left: 7%; top: 47%; width: 62%; height: 15%; border-radius: 6px; background: rgba(255, 200, 61, .35); animation: hl 7s ease-in-out infinite; }
@keyframes hl { 0%, 35% { clip-path: inset(0 100% 0 0); } 55%, 90% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { opacity: 0; } }
.screen .pointer { animation-duration: 7s; }
.cam { position: absolute; right: 14px; bottom: 14px; width: 84px; height: 84px; border-radius: 50%; background: #ff7a45; border: 4px solid var(--card); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); display: grid; place-items: center; color: #fff; font-weight: 700; animation: float 5s ease-in-out infinite; }
.recpill { position: absolute; left: 14px; bottom: 14px; display: inline-flex; gap: 6px; align-items: center; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; transition: background .3s; font-variant-numeric: tabular-nums; }
.recpill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.share-link { margin-top: 14px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .85rem; color: var(--ink-2); position: relative; transition: opacity .3s; }
.share-link code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; color: var(--ink); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-link b { background: var(--accent); color: #fff; padding: 5px 10px; border-radius: 8px; font-size: .75rem; }
.cast-scene .share-link b.copied { position: absolute; right: 12px; background: var(--mint); }
/* Magicast recording story: start → 3-2-1 → recording → stop → processing → ready → copy link */
.cast-scene .share-link { opacity: .5; }
.cast-scene.st-13 .share-link { opacity: 1; }
.cast-scene .share-link b.copybtn { transition: transform .15s .6s; }
.cast-scene.st-13 .share-link b.copybtn { transform: scale(.9); }
.cast-scene .recpill { top: 10px; bottom: auto; }
.cast-scene .screen .hl { animation: none; clip-path: inset(0 100% 0 0); }
.cast-scene.st-6:not(.st-12) .screen .hl { animation: drawin 1.6s ease forwards; }
.cast-scene .screen .pointer { opacity: 0; animation-duration: 6s; animation-play-state: paused; transition: opacity .3s; }
.cast-scene.st-5:not(.st-11) .screen .pointer { opacity: 1; animation-play-state: running; }
.cast-scene .cam { opacity: .55; transition: opacity .3s; }
.cast-scene.st-5:not(.st-11) .cam { opacity: 1; animation: camtalk 1.4s ease-out infinite; }
@keyframes camtalk { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6), 0 10px 24px -8px rgba(0,0,0,.4); } 100% { box-shadow: 0 0 0 14px rgba(239,68,68,0), 0 10px 24px -8px rgba(0,0,0,.4); } }
.rec-frame { position: absolute; inset: 0; border-radius: 14px; border: 3px solid #ef4444; opacity: 0; pointer-events: none; z-index: 3; transition: opacity .3s; }
.cast-scene.st-5:not(.st-11) .rec-frame { opacity: 1; animation: recglow 1.6s ease-in-out infinite; }
@keyframes recglow { 50% { box-shadow: inset 0 0 0 5px rgba(239,68,68,.22); } }
.countdown { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; font-size: 4.5rem; font-weight: 800; color: #fff; background: rgba(11,27,63,.55); border-radius: 14px; }
.countdown.on { animation: countpop .8s ease; }
@keyframes countpop { 0% { font-size: 7rem; opacity: .3; } 100% { font-size: 4.5rem; opacity: 1; } }
.startbar, .recbar { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; z-index: 5; display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 6px 8px; border-radius: 12px; font-size: .72rem; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.startbar .tg { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.startbar .tg svg { width: 14px; height: 14px; }
.startbar .start, .recbar .stop { padding: 6px 10px; border-radius: 8px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.startbar .start { background: #ef4444; transition: transform .15s .7s; }
.startbar .start::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.cast-scene.st-1 .startbar .start { transform: scale(.9); }
.recbar .wave { display: flex; gap: 2px; align-items: center; height: 16px; }
.recbar .wave i { width: 3px; background: #34d399; border-radius: 2px; animation: eq .8s ease-in-out infinite; }
.recbar .wave i:nth-child(2) { animation-delay: .15s; } .recbar .wave i:nth-child(3) { animation-delay: .3s; } .recbar .wave i:nth-child(4) { animation-delay: .45s; } .recbar .wave i:nth-child(5) { animation-delay: .1s; }
.recbar .stop { background: #fff; color: #ef4444; transition: transform .15s .6s; }
.recbar .stop::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #ef4444; }
.cast-scene.st-10 .recbar .stop { transform: scale(.9); }
.processing { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 10px; background: color-mix(in srgb, var(--card) 90%, transparent); font-weight: 600; font-size: .85rem; border-radius: 14px; }
.processing .pb { width: 180px; height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.processing .pb i { display: block; height: 100%; width: 0; background: var(--accent); }
.processing.on .pb i { animation: fill .8s ease forwards; }
@keyframes fill { to { width: 100%; } }
.ready { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(11,27,63,.5); border-radius: 14px; }
.ready .play { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); }
.ready .play svg { width: 24px; height: 24px; margin-left: 4px; }
.ready.on .play { animation: pop .45s ease; }
.ready .meta { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: .8rem; font-weight: 600; }
.ready .meta small { display: block; font-weight: 500; opacity: .8; }
.cast-scene.st-1 .cursor { left: 62%; top: 70%; }
.cast-scene.st-2 .cursor { left: 94%; top: 98%; }
.cast-scene.st-10 .cursor { left: 64%; top: 70%; }
.cast-scene.st-11 .cursor { left: 94%; top: 98%; }
.cast-scene.st-13 .cursor { left: 88%; top: 93%; }

/* Desktop scene */
.desk { position: relative; border-radius: 14px; background: var(--navy); aspect-ratio: 16 / 10; overflow: hidden; }
.desk .win { position: absolute; left: 6%; top: 8%; width: 56%; height: 66%; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.desk .win .ln { position: absolute; left: 12px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); }
.desk .typer { position: absolute; left: 12px; height: 6px; border-radius: 3px; background: rgba(255, 200, 61, .7); animation: type 4s steps(14) infinite; }
@keyframes type { 0% { width: 0; } 70%, 100% { width: 60%; } }
.desk .pop { position: absolute; right: 4%; top: 9%; width: 42%; background: #fff; color: #0b1b3f; border-radius: 12px; padding: 10px; font-size: .72rem; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); }
.desk .pop strong { display: block; font-size: .78rem; }
.desk .pop .row2 { display: flex; gap: 6px; margin-top: 7px; }
.desk .pop .row2 b { flex: 1; text-align: center; font-size: .66rem; padding: 4px; border-radius: 6px; background: #f2f0ea; color: #45506a; }
.desk .pop .row2 b.ok { background: var(--mint); color: #fff; }
.desk .pop.dark { background: #13284f; color: #fff; border: 1px solid #27406f; }
.desk .pop.dark .row2 b { background: #ef4444; color: #fff; }
.desk .pop.dark .row2 b.ok { background: var(--mint); }
.desk .mini-call { position: absolute; right: 4%; bottom: 17%; display: flex; align-items: center; gap: 8px; background: #13284f; color: #fff; border: 1px solid #27406f; padding: 7px 10px; border-radius: 12px; font-size: .68rem; font-variant-numeric: tabular-nums; }
.desk .mini-call .bars { height: 12px; }
.desk .taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: rgba(255,255,255,.07); display: flex; justify-content: center; gap: 8px; align-items: center; }
.desk .taskbar i { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.25); position: relative; }
.desk .taskbar i.app { background: #0b5cff; }
.desk .taskbar i.app::after { position: absolute; right: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: #ef4444; color: #fff; font-size: .55rem; display: grid; place-items: center; font-style: normal; font-weight: 700; }
.desk-scene.st-1 .taskbar i.app::after { content: "1"; } .desk-scene.st-3 .taskbar i.app::after { content: "2"; } .desk-scene.st-5 .taskbar i.app::after { content: "3"; }

/* Agent scene */
.term { background: #0b1220; color: #cbd5e1; border-radius: 14px; padding: 16px 18px; font: 500 .8rem/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; position: relative; border: 1px solid #1e293b; min-height: 150px; }
.term .p { color: #34d399; } .term .k { color: #fdba74; } .term .s { color: #fde68a; } .term .c { color: #64748b; }
.term .tl { display: block; white-space: nowrap; overflow: hidden; }
.term .tl[data-at] { transform: none; transition: none; }
.term .tl[data-at].on { animation: typeline .8s steps(26) forwards; }
@keyframes typeline { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.caret { display: inline-block; width: 8px; height: 1em; background: #cbd5e1; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.agent-feed { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; font-size: .84rem; min-height: 96px; align-content: start; }
.agent-feed .hd { font-weight: 600; color: var(--ink-3); font-size: .74rem; }
.agent-feed .it { display: flex; gap: 8px; align-items: center; }
.agent-feed .bot { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--mint); color: #fff; font-size: .7rem; flex: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 16px; }
:root[data-theme="dark"] .step::before { background: var(--accent); }
.step p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .col { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.compare .col.good { border: 2px solid var(--accent); }
.compare ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.compare li { display: flex; gap: 10px; color: var(--ink-2); }
.compare .bad li::before { content: "–"; color: var(--ink-3); font-weight: 700; }
.compare .good li::before { content: "✓"; color: var(--mint); font-weight: 700; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 16px 0; 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(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 14px; margin: 0; }

/* CTA band */
.cta-band { padding: 0 0 96px; }
.cta-box { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 32px; text-align: center; color: #fff; background-color: var(--navy); background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.2px); background-size: 20px 20px; }
:root[data-theme="dark"] .cta-box { background-color: #13284f; }
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; animation: float 8s ease-in-out infinite; }
.cta-box::before { width: 220px; height: 220px; left: -60px; top: -90px; background: rgba(255, 122, 69, .35); }
.cta-box::after { width: 180px; height: 180px; right: -40px; bottom: -80px; background: rgba(255, 200, 61, .3); animation-delay: -3s; }
.cta-box h2 { color: #fff; position: relative; }
.cta-box p { color: rgba(255,255,255,.82); position: relative; max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-box .hero-cta { justify-content: center; margin: 0; position: relative; }
.cta-box .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.cta-box .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg-2); font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: .86rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Solutions / security */
.persona { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.persona:last-child { border-bottom: 0; }
.persona .emoji { font-size: 2.4rem; margin-bottom: 12px; }
.persona .card { box-shadow: none; }
@media (max-width: 860px) { .persona { grid-template-columns: 1fr; gap: 20px; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; color: var(--ink-2); }
.check-list li::before { content: "✓"; color: var(--mint); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--bg-3); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); }
td { color: var(--ink-2); }
td.y { color: var(--mint); font-weight: 700; } td.n { color: var(--ink-3); }

/* Pricing */
.bill-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-top: 6px; }
.bill-toggle button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.bill-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .bill-toggle button[aria-pressed="true"] { background: var(--accent); }
.bill-toggle .save { font-size: .72rem; background: rgba(18,184,134,.15); color: var(--mint); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; box-shadow: var(--card-shadow); transition: transform .25s ease; }
.plan:hover { transform: translateY(-6px); }
.plan.pop { border: 2px solid var(--accent); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .for { font-size: .92rem; color: var(--ink-3); margin: 0 0 20px; }
.plan .amt { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .amt b { font-size: 3rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.plan .amt span { color: var(--ink-3); font-size: .95rem; }
.plan .bill { font-size: .85rem; color: var(--ink-3); margin-bottom: 22px; min-height: 1.4em; }
.plan .btn { width: 100%; margin-bottom: 24px; }
.plan .inc { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.plan .check-list { font-size: .95rem; gap: 10px; }
.plan .check-list li { display: block; position: relative; padding-left: 22px; }
.plan .check-list li::before { position: absolute; left: 0; top: 0; }
.ai-tag { display: inline-block; margin-left: 4px; font-size: .62rem; font-weight: 800; letter-spacing: .04em; background: rgba(255,122,69,.15); color: #e8622c; padding: 1px 6px; border-radius: 5px; vertical-align: 1px; }
.plans-table th:not(:first-child), .plans-table td:not(:first-child) { text-align: center; }
.plans-table th:nth-child(4), .plans-table td:nth-child(4) { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.plans-table tr.grp td { background: var(--bg-3); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding-top: 10px; padding-bottom: 10px; }
.plans-table td:first-child { font-weight: 500; }
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--card-shadow); }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; padding: 24px; } }
.calc label { font-weight: 600; display: flex; justify-content: space-between; margin-bottom: 14px; }
.calc input[type=range] { width: 100%; accent-color: var(--accent); }
.calc .seats-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; min-height: 30px; }
.calc .seats-row i { width: 20px; height: 20px; border-radius: 50%; animation: pop .3s ease; }
.calc .plans-pick { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.calc .plans-pick button { border: 1px solid var(--line); background: var(--bg-3); color: var(--ink-2); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.calc .plans-pick button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.calc .total { text-align: center; padding: 26px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); }
.calc .total b { display: block; font-size: 3rem; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc .total span { color: var(--ink-3); font-size: .92rem; }

/* Room scene (drop-in room with screen share) */
.room-scene .rs-head { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.room-scene .rs-head .dotlive { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: ping 2s infinite; }
.room-scene .rs-head .ppl { display: inline-flex; margin-left: 6px; }
.room-scene .rs-head .ppl .av { position: static; transform: none; width: 22px; height: 22px; font-size: .5rem; margin-left: -6px; border-width: 2px; }
.room-scene .rs-head .ppl .av::after { display: none; }
.room-scene .rs-head time { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.stage { position: relative; aspect-ratio: 16 / 7; border-radius: 14px; background: var(--card); border: 1px dashed var(--line); overflow: hidden; margin-bottom: 10px; display: grid; place-items: center; color: var(--ink-3); font-size: .8rem; }
.stage .scr { position: absolute; inset: 0; padding: 30px 16px 14px; background: var(--card); }
.stage .scr .lines { display: grid; gap: 8px; }
.stage .presenter { position: absolute; left: 10px; top: 8px; font-size: .68rem; font-weight: 600; color: #fff; background: var(--coral); padding: 2px 8px; border-radius: 999px; }
.stage .draw { position: absolute; left: 56%; top: 30%; width: 34%; height: 48%; border: 2px dashed var(--coral); border-radius: 8px; clip-path: inset(0 100% 100% 0); }
.room-scene.st-3 .stage .draw { animation: drawin 1.2s ease forwards; }
@keyframes drawin { to { clip-path: inset(0 0 0 0); } }
.stage .pointer { animation: none; left: 30%; top: 60%; transition: left 1s ease, top 1s ease; }
.room-scene.st-3 .stage .pointer { left: 88%; top: 76%; }
.room-scene.st-4 .stage .pointer { left: 40%; top: 45%; }
.room-scene.st-6 .stage .pointer { left: 70%; top: 30%; }
.join-pill { position: absolute; right: 10px; top: 8px; z-index: 3; font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mint); color: #fff; }
.room-scene .tiles { grid-template-columns: repeat(3, 1fr); }
.room-scene .tile { aspect-ratio: 16 / 11; transition: box-shadow .3s; }
.room-scene .tile .av { width: 38px; height: 38px; font-size: .72rem; }
.room-scene .t1 { box-shadow: inset 0 0 0 3px var(--mint); }
.room-scene.st-5 .t1 { box-shadow: none; }
.room-scene.st-5 .t3 { box-shadow: inset 0 0 0 3px var(--mint); }
.room-scene .tile .nm .bars { height: 9px; display: none; }
.room-scene .tile .nm .bars i { width: 2px; }
.room-scene:not(.st-5) .t1 .nm .bars, .room-scene.st-5 .t3 .nm .bars { display: flex; }
.room-scene .tile.t3:not(.on) { opacity: 0; transform: scale(.6); }
.room-scene .tile.t3 { transition: opacity .4s, transform .4s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; }
.rx { position: absolute; left: 50%; bottom: 30%; font-size: 1.4rem; z-index: 4; }
.rx.on { animation: rxup 2s ease-out forwards; }
@keyframes rxup { 0% { transform: translateY(0) scale(.5); opacity: 0; } 20% { transform: translateY(-10px) scale(1.2); opacity: 1; } 100% { transform: translateY(-60px) scale(1); opacity: 0; } }
.room-scene .ctrl b { transition: background .2s, color .2s, transform .15s; }
.room-scene.st-2 .ctrl b.share { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.room-scene.st-2:not(.st-3) .ctrl b.share { transform: scale(.88); }
.room-scene.st-1 .cursor { left: 55%; top: 91%; }
.room-scene.st-3 .cursor { left: 94%; top: 98%; }

/* AI assistant scene */
.ai-scene { padding: 0; min-height: 440px; background: var(--card); }
.ai { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; padding: 70px 20px 20px; overflow: hidden; }
.ai-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--card); border-bottom: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.ai-top .spark { width: 28px; height: 28px; border-radius: 8px; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.ai-top .conn { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--mint); background: rgba(18,184,134,.12); padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.ai-top .conn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.ai [data-at]:not(.on) { display: none; }
.ai [data-at].on { animation: rise .4s ease; }
.ai .q { align-self: flex-end; max-width: 86%; background: var(--navy); color: #fff; padding: 9px 13px; border-radius: 14px 14px 4px 14px; font-size: .86rem; }
:root[data-theme="dark"] .ai .q { background: var(--accent); }
.ai .tool { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font: 500 .74rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-3); border: 1px solid var(--line); color: var(--ink-2); padding: 5px 10px; border-radius: 8px; }
.ai .tool b { color: var(--ink); }
.tool .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool .ok { color: var(--mint); font-weight: 800; }
.ai .a { font-size: .88rem; color: var(--ink); margin: 0; }
.ai .res { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; display: grid; }
.res .r { display: flex; align-items: center; gap: 9px; font-size: .8rem; padding: 4px 0; color: var(--ink); }
.res .r + .r { border-top: 1px solid var(--line); }
.res .r .av { position: static; transform: none; width: 24px; height: 24px; font-size: .5rem; border-width: 2px; flex: none; }
.res .r .av::after { width: 8px; height: 8px; }
.res .r small { margin-left: auto; color: var(--ink-3); font-size: .74rem; white-space: nowrap; }
.res .r .tm { font-weight: 700; color: var(--accent); width: 42px; flex: none; font-variant-numeric: tabular-nums; }

/* Features page: centered scene under a section head */
.feature-scene { max-width: 720px; margin: 0 auto 44px; }
.scene .sw[data-at]:not(.on) { display: none; }

/* Status / presence scene and admin scene share these rows */
.st-list { position: absolute; inset: 24px; display: flex; flex-direction: column; gap: 8px; }
.st-list .hd { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; color: var(--ink-2); margin-bottom: 4px; min-height: 30px; }
.st-row { position: relative; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .86rem; font-weight: 600; transition: box-shadow .3s; }
.st-row small { font-weight: 500; color: var(--ink-3); font-size: .74rem; }
.st-row .av { position: static; transform: none; width: 30px; height: 30px; font-size: .56rem; flex: none; }
.st-row .av::after { display: none; }
.st-row.me { z-index: 4; }
.pill { margin-left: auto; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: #0e9a70; background: rgba(18,184,134,.14); } .pill.busy { color: #dc2626; background: rgba(239,68,68,.12); }
.pill.away { color: #b7791f; background: rgba(255,200,61,.25); } .pill.call { color: var(--accent); background: var(--accent-soft); }
.pill.knock { color: #e8622c; background: rgba(255,122,69,.15); }
.picker { position: absolute; right: 10px; top: calc(100% + 4px); z-index: 5; width: 176px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--card-shadow); padding: 6px; display: grid; gap: 2px; }
.picker span { font-size: .76rem; font-weight: 500; padding: 6px 8px; border-radius: 8px; display: flex; gap: 8px; align-items: center; color: var(--ink-2); transition: background .2s; }
.picker span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.picker .p1::before { background: var(--mint); } .picker .p2::before { background: #ef4444; } .picker .p3::before { background: var(--sun); } .picker .p4::before { background: #7f1d1d; }
.status-scene.st-2 .picker .p4 { background: var(--bg-3); color: var(--ink); }
.st-toast { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 6; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: .8rem; box-shadow: 0 18px 36px -14px rgba(0,0,0,.5); }
:root[data-theme="dark"] .st-toast { background: #13284f; }
.status-scene .mira { animation: talk 1.4s ease-out infinite; }
.status-scene.st-1 .cursor { left: 84%; top: 25%; }
.status-scene.st-2 .cursor { left: 80%; top: 57%; }
.status-scene.st-3 .cursor { left: 94%; top: 98%; }
.btn-mini { margin-left: auto; font-size: .74rem; font-weight: 600; padding: 6px 10px; border-radius: 9px; background: var(--accent); color: #fff; transition: transform .15s .6s; }
.admin-scene.st-1 .btn-mini { transform: scale(.9); }
.copied-chip { font-size: .72rem; font-weight: 600; color: var(--mint); }
.role { margin-left: auto; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--bg-3); color: var(--ink-2); border: 1px solid var(--line); transition: transform .15s; }
.role.adm { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.admin-scene .st-row.new { box-shadow: inset 3px 0 0 var(--mint); }
.admin-scene.st-6 .st-row.new .role { transform: scale(.92); }
.admin-scene.st-1 .cursor { left: 86%; top: 12%; }
.admin-scene.st-2 .cursor { left: 94%; top: 98%; }
.admin-scene.st-5 .cursor { left: 88%; top: 63%; }
.admin-scene.st-7 .cursor { left: 94%; top: 98%; }
.guest-badge { font-size: .58rem; font-weight: 700; background: var(--sun); color: #0b1b3f; padding: 1px 5px; border-radius: 4px; }

/* Calendar scene */
.cal { position: absolute; inset: 24px; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.cal-head { display: flex; gap: 6px; }
.cal-day { flex: 1; text-align: center; padding: 6px 0; border-radius: 10px; font-size: .7rem; color: var(--ink-3); background: var(--card); border: 1px solid var(--line); }
.cal-day b { display: block; font-size: 1rem; color: var(--ink); }
.cal-day.today { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.75); }
:root[data-theme="dark"] .cal-day.today { background: var(--accent); border-color: var(--accent); }
.cal-day.today b { color: #fff; }
.cal-grid { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cal-grid .hr { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); font-size: .64rem; color: var(--ink-3); padding: 2px 8px; }
.ev { position: absolute; left: 54px; right: 12px; border-radius: 10px; padding: 6px 10px; font-size: .76rem; font-weight: 600; color: var(--ink); border-left: 4px solid; overflow: hidden; display: flex; align-items: center; gap: 8px; }
.ev small { display: block; font-weight: 500; color: var(--ink-3); font-size: .68rem; }
.ev.e1 { top: 6%; height: 16%; background: rgba(11, 92, 255, .1); border-color: #0b5cff; }
.ev.e2 { top: 44%; height: 20%; background: rgba(255, 122, 69, .12); border-color: #ff7a45; }
.ev.e3 { top: 74%; height: 17%; background: rgba(18, 184, 134, .12); border-color: #12b886; }
.ev .avs { margin-left: auto; display: flex; }
.ev .avs .av { position: static; transform: none; width: 24px; height: 24px; font-size: .52rem; margin-left: -7px; border-width: 2px; }
.ev .avs .av::after { display: none; }
.cal-scene.st-8 .ev.e2 { box-shadow: 0 0 0 3px rgba(255, 122, 69, .25); }
.now { position: absolute; left: 40px; right: 0; height: 2px; background: #ef4444; top: 3%; transition: top 1s ease; z-index: 2; }
.now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.cal-scene.st-2 .now { top: 17%; } .cal-scene.st-4 .now { top: 30%; } .cal-scene.st-6 .now { top: 42%; }
.cal-toast { position: absolute; right: 14px; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 10px 12px; border-radius: 12px; font-size: .76rem; box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); }
.cal-toast b.join { background: var(--mint); padding: 5px 10px; border-radius: 8px; font-size: .72rem; transition: transform .15s, box-shadow .15s; }
.cal-scene.st-7 .cal-toast b.join { transform: scale(.9); box-shadow: 0 0 0 4px rgba(18,184,134,.35); }

/* Activity scene */
.act { position: absolute; inset: 24px; display: flex; flex-direction: column; gap: 10px; }
.act-head { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 4px; }
.act-head span { margin-left: auto; font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.bell { position: relative; width: 34px; height: 34px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.bell svg { width: 18px; height: 18px; }
.bell::after { position: absolute; right: -6px; top: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .6rem; font-weight: 700; display: grid; place-items: center; }
.act-scene.st-1 .bell::after { content: "1"; } .act-scene.st-2 .bell::after { content: "2"; } .act-scene.st-3 .bell::after { content: "3"; } .act-scene.st-4 .bell::after { content: "4"; }
.act-scene.st-6 .bell::after { content: none; }
.act [data-at]:not(.on) { display: none; }
.act [data-at].on { animation: slidein .45s ease; }
@keyframes slidein { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.act-item { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .84rem; transition: opacity .4s; }
.act-item .av { position: static; transform: none; width: 30px; height: 30px; font-size: .58rem; flex: none; }
.act-item .av::after { display: none; }
.act-item small { display: block; color: var(--ink-3); font-size: .72rem; }
.act-item .act-btn { margin-left: auto; flex: none; font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.act-item .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .9rem; }
.act-scene.st-6 .act-item { opacity: .55; }
.act-item.unread { box-shadow: inset 3px 0 0 var(--coral); }
.act-scene.st-6 .act-item.unread { box-shadow: none; }

/* More features grid */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mini-grid { grid-template-columns: 1fr; } }
.mini { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; transition: transform .2s, border-color .2s; }
.mini:hover { transform: translateY(-3px); border-color: var(--ink-3); }
.mini:hover .ico { animation: bob .6s ease; }
.mini .ico { margin: 0; width: 40px; height: 40px; flex: none; }
.mini .ico svg { width: 20px; height: 20px; }
.mini h3 { font-size: 1rem; margin: 0 0 4px; }
.mini p { margin: 0; font-size: .88rem; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
