/* Colla corporate site. Tokens follow the app: shadcn zinc, violet for actions. */
:root {
  --ink: #09090B;
  --body: #3F3F46;
  --muted: #52525B;
  --line: #E4E4E7;
  --line-strong: #D4D4D8;
  --line-soft: #F4F4F5;
  --surface: #FAFAFA;
  --bg: #FFFFFF;
  --action: #7C3AED;
  --action-hover: #6D28D9;
  --violet: #5B21B6;
  --tint: #F5F3FF;
  --tint-line: #DDD6FE;
  --on-dark: #C4B5FD;
  --dark: #09090B;
  --dark-2: #18181B;
  --dark-3: #27272A;
  --dark-line: #3F3F46;
  --dark-text: #D4D4D8;
  --dark-muted: #A1A1AA;

  /* Identity colours: people and agents, never meaning. */
  --orange: #FF5A1F;
  --blue: #3B5BDB;
  --green: #2FB24C;
  --purple: #8E5BD8;
  --yellow: #F2B705;
  --cyan: #1FB5D6;
  --red: #E8412C;

  --ok-bg: #DCFCE7;
  --ok-fg: #166534;
  --wait-bg: #FEF3C7;
  --wait-fg: #92400E;

  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 24px 60px -36px rgba(9, 9, 11, 0.4);
  --shadow-strong: 0 40px 90px -40px rgba(9, 9, 11, 0.45);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--violet); }
a:hover { color: var(--action); }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.display { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.title { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.044em; font-weight: 700; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; }
.h2-sm { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.h4 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.lead { font-size: 19px; line-height: 1.55; color: var(--body); }
.text { font-size: 17px; line-height: 1.6; color: var(--body); }
.small { font-size: 14px; line-height: 1.55; color: var(--body); }
.fine { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--muted); }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--violet); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font: 600 16px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn-md { min-height: 46px; border-radius: 10px; font-size: 15px; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--dark-3); color: #fff; }
.btn-on-dark { color: #FAFAFA; border-color: var(--dark-line); }
.btn-on-dark:hover { border-color: var(--dark-muted); color: #fff; }
.btn-ghost { min-height: 40px; padding: 0 12px; color: var(--ink); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; gap: 2px; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 10px 12px; border-radius: 8px; color: var(--body); text-decoration: none; }
.nav-links a:hover { color: var(--ink); background: var(--line-soft); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--line-soft); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }

/* Sections */
.section { padding: 112px 0; }
.section-tight { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-line { border-top: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #FAFAFA; }
.section-dark .eyebrow { color: var(--on-dark); }
.section-dark .lead, .section-dark .text { color: var(--dark-text); }
.dots { background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; }
.dots-dark { background-image: radial-gradient(var(--dark-3) 1px, transparent 1px); background-size: 22px 22px; }
.section-head { max-width: 800px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 88px 0 104px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero-inner .display { max-width: 980px; }
.hero-inner .lead { max-width: 720px; }
.split-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split-hero > .stack { flex: 1 1 440px; gap: 22px; }
.split-hero > .media { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* People are circles, agents are squares. */
.av { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; line-height: 1; }
.av-sm { width: 22px; height: 22px; font-size: 9px; }
.av-md { width: 30px; height: 30px; }
.av-lg { width: 34px; height: 34px; font-size: 11px; }
.person { border-radius: 999px; }
.agent { border-radius: 7px; }
.av-sm.agent { border-radius: 6px; }
.c-orange { background: var(--orange); color: var(--ink); }
.c-blue { background: var(--blue); color: #fff; }
.c-green { background: var(--green); color: var(--ink); }
.c-purple { background: var(--purple); color: #fff; }
.c-yellow { background: var(--yellow); color: var(--ink); }
.c-cyan { background: var(--cyan); color: var(--ink); }
.c-red { background: var(--red); color: var(--ink); }
.c-ink { background: var(--ink); color: #fff; }
.label { padding: 3px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.label.agent { border-radius: 4px; }
.label.person { border-radius: 999px; padding: 3px 9px; }
.cursor { position: absolute; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; }
.cursor .label { margin-top: 12px; }

/* Mock UI pieces */
.mock { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.meta { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.tag-soft { font-family: var(--mono); font-size: 11px; color: var(--body); padding: 2px 7px; border-radius: 6px; background: var(--line-soft); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.row-between .muted { color: var(--body); }
.big-num { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.seg { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 9px; background: var(--line-soft); font-size: 12px; font-weight: 600; }
.seg > span, .seg > button { padding: 5px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; }
.seg > button { min-height: 30px; cursor: pointer; color: var(--ink); }
.seg > .on, .seg > [aria-pressed="true"] { background: #fff; color: var(--ink); }
.status { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.status-ok { background: var(--ok-bg); color: var(--ok-fg); }
.status-wait { background: var(--wait-bg); color: var(--wait-fg); }
.status-idle { background: var(--line-soft); color: var(--body); }
.slider-static { position: relative; height: 6px; border-radius: 999px; background: var(--line); }
.slider-static > span { display: block; height: 6px; border-radius: 999px; background: var(--action); }
.slider-static > i { position: absolute; top: -5px; width: 16px; height: 16px; border-radius: 999px; background: #fff; border: 2px solid var(--action); }
input[type="range"] { width: 100%; margin: 0; accent-color: var(--action); }
.pin { position: absolute; width: 28px; height: 28px; border-radius: 999px 999px 999px 4px; border: 2px solid #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.chip-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.flow-node { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; text-align: center; font-size: 12px; font-weight: 600; }
.flow-node.is-active { border: 2px solid var(--cyan); }
.flow-node.is-new { border: 1px dashed var(--cyan); background: #ECFEFF; color: #155E75; }

/* Demo: an animated cut of the 60s storyboard. The canvas is drawn at 1120×652 and scaled to fit, like a video. */
.demo { width: 100%; max-width: 1120px; margin: 32px auto 0; text-align: left; }
.demo-viewport { position: relative; aspect-ratio: 1120 / 652; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-strong); }
.demo-canvas { position: absolute; left: 0; top: 0; width: 1120px; height: 652px; transform-origin: 0 0; transform: scale(var(--demo-scale, 1)); }
.demo-bar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); }
.space-icon { width: 18px; height: 18px; border-radius: 5px; background: var(--action); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 4px 10px; border-radius: 999px; background: #FEF2F2; color: #B91C1C; font-size: 12px; font-weight: 600; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #DC2626; animation: blink 1.6s ease-in-out infinite; }
.demo-people { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.share-btn { display: inline-flex; align-items: center; min-height: 32px; margin-left: 8px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.demo-stage { position: relative; height: 600px; overflow: hidden; background-color: var(--surface); background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 20px 20px; }

/* Timed elements: site.js sets their opacity and motion from the playhead, between data-in and data-out. */
.dv { position: absolute; opacity: 0; }
.dvi { opacity: 0; }
.fx-draw { transform-origin: top; }
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }

.chip-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13px; }
.bubble { padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--body); overflow: visible; }
.bubble strong { color: var(--ink); }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--action); animation: blink 0.8s steps(1) infinite; }
.dv.flow-node { height: 48px; display: flex; align-items: center; justify-content: center; }
.conn { width: 2px; background: #A1A1AA; }
.conn::after { content: ""; position: absolute; left: -4px; bottom: -2px; border: 5px solid transparent; border-top-color: #A1A1AA; border-bottom: 0; }
.app { overflow: visible; box-shadow: var(--shadow); }
.app-ring { position: absolute; inset: -2px; border: 2px solid var(--action); border-radius: 15px; pointer-events: none; }
.app-body { position: relative; padding: 18px; }
.skel-wrap { position: absolute; inset: 18px; display: flex; flex-direction: column; gap: 16px; }
.skel { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #F4F4F5 25%, #E4E4E7 45%, #F4F4F5 65%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
.slider-live { position: relative; height: 6px; border-radius: 999px; background: var(--line); }
.slider-live .fill { display: block; height: 6px; border-radius: 999px; background: var(--action); }
.slider-live .knob { position: absolute; top: -6px; width: 18px; height: 18px; margin-left: -9px; border-radius: 999px; background: #fff; border: 2px solid var(--action); box-shadow: 0 1px 3px rgba(9, 9, 11, 0.2); }
.seg2 { position: relative; display: inline-flex; padding: 3px; border-radius: 9px; background: var(--line-soft); font-size: 12px; font-weight: 600; }
.seg2 span { position: relative; z-index: 1; width: 76px; padding: 5px 0; text-align: center; }
.seg2 .ind { position: absolute; z-index: 0; top: 3px; left: 3px; width: 76px; bottom: 3px; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(9, 9, 11, 0.12); opacity: 1; }
.busy { position: absolute; left: 12px; right: 12px; bottom: -54px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--tint); border: 1px solid var(--tint-line); color: var(--violet); font-size: 12px; font-weight: 600; }
.spin { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--tint-line); border-top-color: var(--action); animation: spin 0.8s linear infinite; }
.comment { padding: 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.5; box-shadow: var(--shadow); }
.reply { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.versions { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ver { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.ver small { font-size: 11px; font-weight: 400; color: var(--muted); }
.ver-new { background: var(--tint); color: var(--violet); }
.ver-new small { color: var(--body); }
.share { padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.link-field { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--body); }
.copy-btn, .copied { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.copy-btn { background: var(--ink); color: #fff; }
.copied { border-radius: 8px; }
.ended { padding: 8px 12px; border-radius: 999px; font-size: 12px; color: var(--body); }
.guest { border-color: var(--line-strong); box-shadow: 0 30px 60px -28px rgba(9, 9, 11, 0.5); }
.guest-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.guest-bar .meta { margin-left: auto; color: var(--dark-muted); }
.fork { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 9px; border: 2px solid var(--action); color: var(--violet); font-size: 13px; font-weight: 600; }
.fork-ring { position: absolute; inset: -6px; border-radius: 13px; border: 2px solid var(--tint-line); background: rgba(124, 58, 237, 0.06); }
.endcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; background-color: var(--dark); background-image: radial-gradient(var(--dark-3) 1px, transparent 1px); background-size: 22px 22px; color: #FAFAFA; z-index: 4; }
.end-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.end-title { max-width: 820px; font-size: 52px; line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; }
.end-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.end-stack li { padding: 8px 14px; border: 1px solid var(--dark-line); border-radius: 999px; font-size: 14px; color: var(--dark-text); }
.end-line { font-size: 18px; color: var(--on-dark); }
.end-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 12px; background: var(--action); color: #fff; font-size: 16px; font-weight: 600; }
.pip { width: 220px; padding: 10px; border-radius: 14px; background: var(--dark-2); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 16px 40px -16px rgba(9, 9, 11, 0.6); }
.pip .meta { color: var(--dark-muted); font-size: 10px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tile { position: relative; height: 76px; border-radius: 9px; background: var(--dark-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: var(--dark-text); }
.tile.speaking { outline: 2px solid var(--green); outline-offset: -2px; }
.tile .ring { position: absolute; inset: 0; border: 2px solid var(--green); border-radius: 9px; }
.demo-caption { position: absolute; z-index: 3; left: 20px; bottom: 20px; max-width: 560px; padding: 10px 14px; border-radius: 12px; background: rgba(9, 9, 11, 0.88); color: #FAFAFA; font-size: 14px; line-height: 1.45; font-weight: 500; transition: opacity 0.3s; }
.demo-caption:empty { opacity: 0; }

/* Cursors: the tip of the arrow sits on the point site.js gives. */
.dcur { position: absolute; z-index: 6; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.dcur svg { transition: transform 0.12s; transform-origin: 2px 1px; }
.dcur .label { margin-top: 12px; }
.dcur::before { content: ""; position: absolute; left: -8px; top: -9px; width: 20px; height: 20px; border-radius: 999px; border: 2px solid currentColor; opacity: 0; transform: scale(0.3); transition: opacity 0.2s, transform 0.25s; }
.dcur.press svg { transform: scale(0.82); }
.dcur.press::before { opacity: 0.6; transform: scale(1); }

/* Player controls */
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.demo-play { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; }
.demo-play:hover { background: var(--dark-3); }
.demo-time { min-width: 92px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.demo-scrub { position: relative; flex: 1 1 240px; display: flex; align-items: center; height: 44px; }
.demo-scrub input { position: relative; z-index: 1; }
.demo-ticks { position: absolute; left: 0; right: 0; top: 50%; pointer-events: none; }
.demo-ticks span { position: absolute; top: 7px; width: 2px; height: 6px; border-radius: 2px; background: var(--line-strong); }
.demo-chapters { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.demo-chapters button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--body); font: 500 13px var(--font); cursor: pointer; }
.demo-chapters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.demo-chapters .mono { font-size: 12px; opacity: 0.8; }

/* ?capture: only the demo, full width and without wall-clock animation, for exporting video frames. */
html.capture body > :not(main), html.capture main > :not(:first-child), html.capture .hero-inner > :not(.demo), html.capture .demo-controls { display: none; }
html.capture .hero { padding: 0; background: none; }
html.capture .container { max-width: none; padding: 0; }
html.capture .demo { max-width: none; margin: 0; }
html.capture .demo-viewport { border: 0; border-radius: 0; box-shadow: none; }
html.capture *, html.capture *::before, html.capture *::after { animation: none !important; transition: none !important; }

@keyframes blink { 50% { opacity: 0.25; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .skel, .spin, .live-pill::before, .typing::after { animation: none; }
}

/* Home: experience-first hero. Real Colla screens, animated by experience.js. */
.xp-hero { padding: 72px 0 96px; }
.xp-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 44px; text-align: center; }
.xp-hero-inner .display { max-width: 960px; font-size: clamp(40px, 5.6vw, 72px); }
.xp-hero-inner .lead { max-width: 620px; }
.xp-prompt { width: 100%; max-width: 680px; display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 8px 8px 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -24px rgba(9, 9, 11, 0.35), 0 0 0 6px rgba(124, 58, 237, 0.06); text-align: left; }
.xp-prompt:focus-within { border-color: var(--action); }
.xp-prompt input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 16px var(--font); }
.xp-prompt-crew { display: flex; flex: none; }
.xp-prompt-crew i { width: 22px; height: 22px; margin-left: -6px; border: 2px solid #fff; }
.xp-prompt-crew i:first-child { margin-left: 0; }
.xp-prompt .btn { min-height: 44px; border-radius: 10px; font-size: 15px; }

.xp { max-width: 1200px; margin: 0 auto; }
.xp-window { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-strong); }
.xp-chrome { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.xp-url { margin: 0 auto; padding: 3px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: 500 12px var(--mono); }
.xp-viewport { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; background: #fff; }
.xp-layer { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; will-change: transform, opacity; }
.xp-layer > img { display: block; width: 1440px; height: 900px; }
.xp-mask, .xp-bar, .xp-html, .xp-ring, .xp-shimmer, .xp-typed, .xp-prompt-msg, .xp-toggle { position: absolute; }
.xp-bar { overflow: hidden; border-radius: 999px; }
.xp-bar-fill { height: 100%; border-radius: 999px; }
.xp-scanning { display: inline-flex; align-items: center; gap: 6px; color: var(--action); font: 500 12px/16px var(--font); white-space: nowrap; }
.xp-scanning i { width: 12px; height: 12px; border: 2px solid var(--tint-line); border-top-color: var(--action); border-radius: 999px; animation: spin 0.8s linear infinite; }
.xp-circle { display: block; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 999px; }
.xp-sub { color: var(--muted); font: 400 12px/16px var(--font); white-space: nowrap; }
.xp-ring { border: 2px solid var(--action); box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.15); pointer-events: none; }
.xp-shimmer { border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)) no-repeat; background-size: 40% 100%; animation: xp-sweep 1.6s ease-in-out infinite; }
.xp-typed { overflow: hidden; background: #fff; color: var(--ink); font: 400 15px/26px var(--font); white-space: nowrap; }
.xp-typed.typing::after { content: ""; display: inline-block; width: 2px; height: 17px; margin-left: 1px; vertical-align: -3px; background: var(--action); animation: blink 0.8s steps(1) infinite; }
.xp-prompt-msg { display: none; overflow: hidden; background: #fff; color: var(--ink); font: 400 16px/24px var(--font); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xp-toggle { display: flex; padding: 3px; border-radius: 9px; background: #EDE9F5; font: 500 14px var(--font); }
.xp-toggle i { position: absolute; left: 3px; top: 3px; width: 107px; height: 30px; border-radius: 7px; background: #F7F3FE; box-shadow: 0 1px 2px rgba(9, 9, 11, 0.12); }
.xp-toggle span { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; }
.xp-cursor { position: absolute; z-index: 5; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.xp-cursor svg { transform-origin: 2px 1px; transition: transform 0.12s; }
.xp-cursor b { margin-top: 14px; padding: 3px 9px; color: #fff; font: 600 12px var(--font); white-space: nowrap; }
.xp-cursor b.person { border-radius: 999px; }
.xp-cursor b.agent { border-radius: 4px; color: var(--ink); }
.xp-cursor::before { content: ""; position: absolute; left: -9px; top: -10px; width: 22px; height: 22px; border: 2px solid var(--action); border-radius: 999px; opacity: 0; transform: scale(0.3); transition: opacity 0.2s, transform 0.25s; }
.xp-cursor.press svg { transform: scale(0.8); }
.xp-cursor.press::before { opacity: 0.6; transform: scale(1); }
.xp-caption { position: absolute; z-index: 6; left: 16px; bottom: 16px; max-width: min(560px, calc(100% - 32px)); margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(9, 9, 11, 0.86); color: #FAFAFA; font: 500 14px/1.45 var(--font); backdrop-filter: blur(6px); }
.xp-progress { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 3px; }
.xp-progress::after { content: ""; display: block; width: calc(var(--xp-progress, 0) * 100%); height: 100%; background: var(--action); }
.xp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
.xp-play { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; }
.xp-chapters { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; }
.xp-chapters button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--body); font: 500 13px var(--font); cursor: pointer; }
.xp-chapters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.xp-scrub { flex: 1 1 100%; }

.xp-works { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.xp-works-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 28px; padding-bottom: 28px; }
.xp-works-label { color: var(--muted); font: 500 14px var(--font); }
.xp-works .chips { flex: 1 1 auto; }

.xp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.xp-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xp-tile-media { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 16px; background-color: #fff; background-repeat: no-repeat; background-size: calc(1440 / var(--w) * 100%) auto; background-position: calc(var(--x) / (1440 - var(--w)) * 100%) calc(var(--y) / (900 - var(--h)) * 100%); box-shadow: var(--shadow); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.xp-tile:hover .xp-tile-media { transform: translateY(-4px); }
.xp-tile-title { font: 700 22px/1.2 var(--font); letter-spacing: -0.02em; }
.xp-tile-play { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); font: 600 14px var(--font); }

.xp-door { display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; }
.xp-door strong { max-width: 460px; font: 700 26px/1.2 var(--font); letter-spacing: -0.02em; }
.xp-door:hover { border-color: var(--line-strong); color: var(--ink); }
.xp-door-dark { border-color: var(--dark); background: var(--dark); color: #FAFAFA; }
.xp-door-dark:hover { border-color: var(--dark); color: #fff; }
.xp-door-dark .eyebrow, .xp-door-dark .text-link { color: var(--on-dark); }
.xp-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.xp-price h2 { max-width: 640px; }
@keyframes xp-sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (max-width: 600px) {
  .xp-hero { padding-top: 48px; }
  .xp-prompt { flex-wrap: wrap; }
  .xp-prompt input { flex-basis: calc(100% - 80px); }
  .xp-prompt .btn { width: 100%; }
  .xp-url { display: none; }
  .xp-viewport { aspect-ratio: 4 / 3; }
  .xp-chapters { display: none; }
  .xp-scrub { flex: 1 1 auto; }
  .xp-caption { left: 8px; bottom: 8px; padding: 6px 9px; font-size: 11px; }
  .xp-tile-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp-shimmer, .xp-scanning i, .xp-typed.typing::after { animation: none; }
}

/* Old way vs Colla way */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 16px; line-height: 1.5; }
.ways > div { display: flex; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.ways > div:nth-child(odd) { border-right: 1px solid var(--line); color: var(--muted); }
.ways > div:nth-child(even) { font-weight: 500; }
.ways > div:nth-last-child(-n + 2) { border-bottom: 0; }
.ways > .ways-head { display: block; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); }
.ways > .ways-head:nth-child(2) { background: var(--tint); color: var(--violet); }
.ways-head small { display: block; font-size: 13px; }
.ways > div:not(.ways-head)::before { content: ""; width: 16px; height: 16px; margin-top: 4px; flex: none; -webkit-mask: var(--cross) center / contain no-repeat; mask: var(--cross) center / contain no-repeat; background: #A1A1AA; }
.ways > div:not(.ways-head):nth-child(even)::before { -webkit-mask-image: var(--check); mask-image: var(--check); background: var(--action); }

/* Feature blocks */
.features { display: flex; flex-direction: column; gap: 88px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.feature-reverse { flex-direction: row-reverse; }
.feature-copy { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.feature-media { flex: 1.35 1 460px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.feature-media.is-dark { border-color: var(--dark-3); background: var(--dark); color: #FAFAFA; }
.feature-media .mock-head { font-size: 12px; }
.feature-media.is-dark .mock-head { border-bottom-color: var(--dark-3); }
.feature-media.is-dark .meta { color: var(--dark-muted); }
.canvas-area { padding: 22px; display: flex; flex-wrap: wrap; gap: 18px; background-color: var(--surface); background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 18px 18px; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.card-muted { background: var(--surface); }
.card-label { font-size: 13px; font-weight: 600; color: var(--violet); }
.card-foot { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--body); }
.shapes { display: flex; gap: 6px; }
.shapes span { width: 28px; height: 28px; }

/* Tools strip */
.stack-rows { display: flex; flex-direction: column; gap: 28px; }
.stack-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: baseline; }
.stack-label { flex: 0 0 220px; font-size: 14px; font-weight: 600; }
.chips { flex: 1 1 520px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; }
.chip-soon { padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--violet); font-size: 13px; font-weight: 500; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; gap: 18px; }
.plan-featured { border: 2px solid var(--action); }
.plan-muted { background: var(--surface); }
.plan-badge { position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 999px; background: var(--action); color: #fff; font-size: 12px; font-weight: 600; }
.plan-name { font-size: 18px; font-weight: 600; }
.plan-for { margin-top: 4px; font-size: 14px; color: var(--muted); }
.price { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.price-unit { margin-left: 6px; font-size: 14px; color: var(--muted); }
.price-note { font-size: 13px; color: var(--muted); }
.plan .btn { margin-top: auto; }
.plan-cta-top .btn { margin-top: 0; }
.checklist { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--body); }
.checklist li { display: flex; gap: 10px; }
.checklist li::before, .ticks li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; flex: none; -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; background: var(--action); }
.ticks { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--body); }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { background: var(--violet); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.data { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.data th, .data td { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.data thead th { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.data thead th:first-child { font-weight: 500; color: var(--muted); }
.data .group th { padding: 22px 18px 8px; border-bottom: 0; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet); }
.data tbody:last-child tr:last-child td { border-bottom: 0; }
.data .what { color: var(--muted); }
.bill td:last-child { font-weight: 600; }
.bill { min-width: 560px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--body); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 28px; border: 1px solid var(--dark-3); border-radius: 18px; background: var(--dark-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 44px; padding: 0 12px; border: 1px solid var(--dark-line); border-radius: 10px; background: var(--dark); color: #FAFAFA; font: 400 15px var(--font); }
.field textarea { padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--on-dark); outline-offset: 1px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding: 36px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 14px; }
.footer-inner .brand { font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { padding: 10px 0; color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.copyright { margin-left: auto; color: var(--muted); }

/* Review mode (?review): marks blueprint items that conflict with product spec rev 207. */
html.review [data-confirm] { outline: 2px dashed #D97706; outline-offset: 3px; border-radius: 4px; }
.review-banner { position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 14px; border-radius: 12px; background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; font-size: 13px; box-shadow: var(--shadow); }

@media (max-width: 880px) {
  .section { padding: 80px 0; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .site-header.is-open .nav-links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.is-open .nav-links a { padding: 12px; font-size: 16px; }
  .feature, .split-hero { gap: 32px; }
  .features { gap: 64px; }
  .demo-note { margin-left: 0; }
}
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .ways { font-size: 14px; }
  .ways > div { padding: 16px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .stack-label { flex-basis: 100%; }
}
