/* CRM Factory — marketing site.
   Values follow the Claude Design handoff ("Landing v2a Stage") one to one. The product
   mock-ups (.dr) use the app's own light theme and accent from app/globals.css and the
   class strings of the app's Dash primitives; keep them in step with the app. */

@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* The design ran on top of Tailwind's preflight; these are the parts it relied on. */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg, iframe { display: block; }
button { font: inherit; color: inherit; background: transparent; cursor: pointer; }
[hidden] { display: none !important; }

body { background: #fff; color: #1d1d1f; font-family: Manrope, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid #10b981; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #1d1d1f; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }

@keyframes cfPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes cfCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes cfRise { from { opacity: 0; transform: translate3d(0, 64px, 0) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cfFadeUp { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(22, 22, 23, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: #f5f5f7; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-in { max-width: 1024px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 24px; height: 24px; border-radius: 6px; background: #f5f5f7; color: #1d1d1f; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); font-size: 13px; }
.lang { display: flex; gap: 2px; font-weight: 700; font-size: 12px; }
.lang a { padding: 6px 8px; border-radius: 6px; color: #a1a1a6; }
.lang a:hover { color: #fff; }
.lang a[aria-current] { background: rgba(255, 255, 255, .18); color: #fff; }
.nav-login { font-weight: 600; white-space: nowrap; }
.nav-login:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nav-cta { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: #047857; color: #fff; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.nav-cta:hover { background: #059669; }
@media (max-width: 359px) { .brand-name { display: none; } }

/* ---------- buttons ---------- */
.cta-row { display: flex; gap: 12px 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 12px; background: #047857; color: #fff; font-weight: 700; font-size: 17px; }
.btn-primary:hover { background: #065f46; }
.btn-link { font-size: 17px; font-weight: 600; color: #047857; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero { padding: calc(48px + clamp(64px, 12vh, 150px)) 0 clamp(36px, 6vh, 64px); text-align: center; }
.hero-text { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(42px, 7.4vw, 104px); line-height: .98; letter-spacing: -0.045em; font-weight: 700; max-width: 14ch; text-wrap: balance; animation: cfFadeUp .9s cubic-bezier(.22, .61, .36, 1) .05s both; }
.hero-sub { font-size: clamp(18px, 2vw, 26px); line-height: 1.4; color: #6e6e73; max-width: 46ch; margin-top: clamp(20px, 3vh, 32px); text-wrap: pretty; font-weight: 500; animation: cfFadeUp .9s cubic-bezier(.22, .61, .36, 1) .2s both; }
.hero-cta { margin-top: clamp(24px, 4vh, 40px); animation: cfFadeUp .9s cubic-bezier(.22, .61, .36, 1) .32s both; }
.hero-app-wrap { padding: 0 0 clamp(64px, 10vh, 140px); }
.hero-app { max-width: 1280px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 40px); }
.hero-rise { animation: cfRise 1.4s cubic-bezier(.22, .61, .36, 1) .4s both; }
.hero-frame { width: 100%; aspect-ratio: 1360 / 740; position: relative; overflow: hidden; border-radius: clamp(12px, 1.6vw, 22px); border: 1px solid rgba(0, 0, 0, .08); background: #fafaf9; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .35), 0 24px 48px -24px rgba(0, 0, 0, .18); }

/* ---------- a mock-up is drawn at its design size and scaled to its frame ---------- */
[data-frame] { container-type: inline-size; }
[data-frame="1360"] { --w: 1360px; }
[data-frame="1280"] { --w: 1280px; }
[data-frame="1040"] { --w: 1040px; }
[data-frame="1000"] { --w: 1000px; }
.stage { position: absolute; left: 0; top: 0; transform-origin: top left; transform: scale(var(--s, 1)); }
/* tan(atan2(a, b)) is a / b as a plain number; site.js measures instead where this is missing. */
@supports (transform: scale(tan(atan2(1px, 2px)))) { .stage { --s: tan(atan2(100cqw, var(--w))); } }

/* ---------- How it works: three scenes, pinned while the section scrolls by ---------- */
.how { background: #000; color: #f5f5f7; position: relative; }
.how-stage { display: flex; flex-direction: column; gap: 64px; padding: 32px 0 96px; }
.scene { display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(48px + clamp(16px, 4vh, 56px)) clamp(20px, 5vw, 56px) clamp(16px, 3vh, 32px); }
.js .how { height: 460svh; }
.js .how-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; gap: 0; padding: 0; }
.js .scene { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.kicker { font-size: 15px; font-weight: 600; color: #86868b; }
.scene-title { font-size: clamp(28px, min(5vw, 7svh), 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; color: #f5f5f7; margin-top: 10px; max-width: 16ch; }
.scene-body { font-size: clamp(15px, min(1.5vw, 2.6svh), 21px); line-height: 1.4; color: #a1a1a6; margin-top: 10px; max-width: 52ch; text-wrap: pretty; }
.scene-art { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; align-items: flex-start; margin-top: clamp(20px, 4vh, 40px); }
.story-frame { --h: min(calc(100svh - clamp(300px, 40svh, 400px)), 52vw); height: var(--h); width: calc(var(--h) * 1.6667); max-width: 100%; flex-shrink: 0; position: relative; overflow: hidden; border-radius: clamp(10px, 1.4vw, 18px); border: 1px solid rgba(255, 255, 255, .14); background: #fafaf9; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); }

/* ---------- features: sticky frame, text scrolling beside it ---------- */
.feat { background: #fff; color: #1d1d1f; padding: clamp(80px, 12vh, 150px) 0 clamp(24px, 6vh, 64px); scroll-margin-top: 48px; }
.feat-in { max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.feat-intro, .tour-intro { text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.feat-intro { max-width: 820px; }
.feat-intro h2, .tour-intro h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.feat-intro p, .tour-intro p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: #6e6e73; margin-top: 16px; max-width: 48ch; text-wrap: pretty; }
.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); margin-top: clamp(40px, 8vh, 88px); }
.feat-frame { position: sticky; top: 60px; z-index: 2; align-self: start; border-radius: clamp(12px, 1.4vw, 18px); border: 1px solid rgba(0, 0, 0, .08); overflow: hidden; background: #fff; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .3), 0 12px 30px -16px rgba(0, 0, 0, .12); }
.feat-text { display: flex; flex-direction: column; padding-bottom: 16svh; }
.fb { min-height: 56svh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; transition: opacity .45s ease; }
.js .fb:not(.on) { opacity: .35; }
.fb h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.fb p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: #6e6e73; margin-top: 14px; max-width: 38ch; text-wrap: pretty; }
@media (min-width: 900px) {
  .feat-grid { grid-template-columns: minmax(260px, 1fr) minmax(0, 2.3fr); }
  .feat-frame { grid-column: 2; grid-row: 1; top: max(72px, calc(50svh - 18vw)); }
  .feat-text { grid-column: 1; grid-row: 1; }
  .fb { min-height: 72svh; }
}
.urlbar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid #e7e5e4; background: #fff; }
.urlbar-dots { display: flex; gap: 6px; }
.urlbar-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e7e5e4; }
.urlbar-url { flex: 1; display: flex; justify-content: center; min-width: 0; }
.f-url { display: block; height: 24px; line-height: 24px; min-width: 0; max-width: 460px; width: 100%; border-radius: 6px; background: #f5f5f4; font-size: 12px; color: #57534e; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 10px; }
.urlbar-pad { width: 46px; }
.feat-view { aspect-ratio: 1280 / 700; position: relative; overflow: hidden; background: #fafaf9; }
.f-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; z-index: 2; opacity: 0; transition: opacity .45s ease; }
.f-shot.on { opacity: 1; }
.f-app { z-index: 1; }

/* ---------- tour ---------- */
.tour { background: #000; color: #f5f5f7; padding: clamp(80px, 12vh, 150px) 0; }
.tour-intro { max-width: 1160px; padding: 0 clamp(20px, 5vw, 56px); }
.tour-intro p { color: #a1a1a6; }
.tour-wrap { max-width: 1160px; margin: clamp(32px, 6vh, 64px) auto 0; padding: 0 clamp(20px, 5vw, 56px); }
.tour-poster { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(12px, 1.4vw, 18px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); background: #fafaf9; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); }
.tour-art { position: absolute; inset: 0; overflow: hidden; }
.tour-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 25, 23, .42), rgba(28, 25, 23, .08) 55%); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(64px, 9vw, 88px); height: clamp(64px, 9vw, 88px); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); color: #1c1917; transition: transform .2s ease; }
.play:hover { transform: translate(-50%, -50%) scale(1.04); }
.play svg { margin-left: 3px; }
.play-label { position: absolute; left: clamp(16px, 3vw, 28px); bottom: clamp(14px, 2.5vw, 22px); color: #fff; font-weight: 600; font-size: clamp(14px, 1.4vw, 16px); }
.tour-dialog { margin: auto; padding: 0; border: 0; background: #0b1118; color: #e6edf3; width: min(1040px, calc(100vw - 40px), calc((100dvh - 40px) * 16 / 9)); max-width: none; max-height: none; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); }
.tour-dialog::backdrop { background: rgba(28, 25, 23, .78); }
.tour-video, .tour-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.dlg-close:hover { background: rgba(255, 255, 255, .28); }
html.modal-open { overflow: hidden; }

/* ---------- final call, footer ---------- */
.final { background: #fff; color: #1d1d1f; padding: clamp(96px, 16vh, 200px) 0; text-align: center; }
.final-in { max-width: 960px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.final p { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.45; color: #6e6e73; margin-top: 20px; max-width: 44ch; text-wrap: pretty; }
.final .cta-row { margin-top: 36px; }
.foot { background: #f5f5f7; color: #6e6e73; padding: 28px 0 44px; font-size: 12px; }
.foot-in { max-width: 1024px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot-links, .foot-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a, .foot-meta a { color: #424245; }
.foot-links a:hover, .foot-meta a:hover { color: #047857; }

/* ============ product mock-ups: the app's light theme, emerald accent ============ */
.dr {
  --dash-bg: #fafaf9; --dash-bg-elevated: #ffffff; --dash-bg-input: #f5f5f4; --dash-bg-hover: #f1f3f5;
  --dash-border: #e7e5e4; --dash-border-hover: #d6d3d1; --dash-text: #1c1917; --dash-text-muted: #57534e;
  --dash-chat-border: #e1e6ec; --dash-assistant-bubble: #e8ecf0; --dash-user-bubble: #059669;
  --dash-state-info: #2563eb; --dash-state-info-muted: rgba(37, 99, 235, .14);
  --dash-state-success: #059669; --dash-state-success-muted: rgba(5, 150, 105, .14);
  --dash-state-warn: #d97706; --dash-state-warn-muted: rgba(217, 119, 6, .14);
  --dash-state-danger: #dc2626; --dash-state-danger-muted: rgba(220, 38, 38, .14);
  --dash-accent: #10b981; --dash-accent-muted: rgba(16, 185, 129, .22);
  background: var(--dash-bg); color: var(--dash-text); font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px; line-height: 1.4; text-align: left; letter-spacing: normal; overflow: hidden;
}
.dr .col { display: flex; flex-direction: column; }
.dr .grow { flex: 1; }
.dr .fw5 { font-weight: 500; }
.dr .fw6 { font-weight: 600; }
.dr .muted { color: var(--dash-text-muted); }
.dr .accent { color: var(--dash-accent); }
.dr .num { font-variant-numeric: tabular-nums; }
.dr .ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr .caps { letter-spacing: .06em; text-transform: uppercase; }
.dr .p4 { padding: 1rem; }

.sb { display: flex; flex-direction: column; flex-shrink: 0; border-right: 1px solid var(--dash-border); background: var(--dash-bg-elevated); }
.sb-head { height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--dash-border); }
.sb-logo { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--dash-border); background: var(--dash-bg-input); display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: -0.02em; }
.sb-search-wrap { padding: 8px; border-bottom: 1px solid var(--dash-border); }
.sb-search { display: flex; align-items: center; gap: 8px; border-radius: 6px; border: 1px solid var(--dash-border); background: var(--dash-bg-input); padding: 8px 12px 8px 10px; color: var(--dash-text-muted); }
.sb-nav { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.sb-foot { border-top: 1px solid var(--dash-border); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.sb-user { padding: 8px 12px; font-size: 12px; color: var(--dash-text-muted); }
.sb-role { margin-top: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.ni { display: flex; align-items: center; gap: 12px; border-radius: 6px; padding: 8px 12px 8px 10px; font-size: 14px; line-height: 20px; color: var(--dash-text-muted); border-left: 2px solid transparent; }
.ni svg { flex-shrink: 0; }
.ni-l { flex: 1; }
.ni.on { color: var(--dash-text); background: var(--dash-border); font-weight: 500; border-left-color: var(--dash-text); }
.ico-btn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--dash-text-muted); }
.topbar { height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--dash-border); background: var(--dash-bg-elevated); padding: 0 16px; }
.gsearch { flex: 1; height: 36px; border-radius: 8px; border: 1px solid var(--dash-border); background: var(--dash-bg-input); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--dash-text-muted); }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.ico-tile { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--dash-accent-muted); display: grid; place-items: center; color: var(--dash-accent); }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }

/* The app's Dash primitives (app/dashboard/tasks/DashPrimitives.tsx), as static markup. */
.d-card { display: block; border-radius: .75rem; border: 1px solid var(--dash-border); background: var(--dash-bg-elevated); }
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; border-radius: .5rem; padding: .375rem .75rem; font-size: .75rem; line-height: 1rem; font-weight: 500; white-space: nowrap; }
.d-btn-primary { background: var(--dash-accent); color: #fff; }
.d-btn-secondary { border: 1px solid var(--dash-border); color: var(--dash-text-muted); }
.d-btn-ghost { color: var(--dash-text-muted); }
.d-badge { display: inline-flex; align-items: center; border-radius: 9999px; padding: .125rem .5rem; font-size: .75rem; line-height: 1rem; font-weight: 500; white-space: nowrap; }
.d-badge-info { background: var(--dash-state-info-muted); color: var(--dash-state-info); }
.d-badge-success { background: var(--dash-state-success-muted); color: var(--dash-state-success); }
.d-badge-warn { background: var(--dash-state-warn-muted); color: var(--dash-state-warn); }
.d-badge-danger { background: var(--dash-state-danger-muted); color: var(--dash-state-danger); }
.d-badge-neutral { background: var(--dash-bg); color: var(--dash-text-muted); border: 1px solid var(--dash-border); }
.d-input { display: block; width: 100%; border-radius: .5rem; border: 1px solid var(--dash-border); background: var(--dash-bg-input); padding: .5rem .625rem; font-size: .875rem; line-height: 1.25rem; color: var(--dash-text); }
.d-sh { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.d-sh-t { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--dash-text); }
.d-sh-s { margin-top: .25rem; font-size: .875rem; line-height: 1.25rem; color: var(--dash-text-muted); }
.d-tabs { display: inline-flex; border-radius: .5rem; border: 1px solid var(--dash-border); background: var(--dash-bg); padding: .25rem; }
.d-tab { border-radius: .375rem; padding: .25rem .625rem; font-size: .75rem; line-height: 1rem; color: var(--dash-text-muted); }
.d-tab.on { background: var(--dash-accent-muted); color: var(--dash-text); }

/* tables and lists */
.inv-row { display: grid; grid-template-columns: 110px 1fr 120px 110px 140px; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--dash-border); }
.inv-head { padding: 10px 16px; font-size: 12px; color: var(--dash-text-muted); }
.q-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--dash-border); }
.q-sum { display: flex; justify-content: space-between; }
.row-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--dash-border); }
.tick { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1.5px var(--dash-border-hover); }
.tick.on { background: var(--dash-accent); box-shadow: none; }
.c-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--dash-border); }
.seg { display: inline-flex; border: 1px solid var(--dash-border); border-radius: 10px; overflow: hidden; }
.seg span { padding: 0 12px; height: 36px; display: flex; align-items: center; color: var(--dash-text-muted); }
.seg span.on { background: var(--dash-bg-hover); font-weight: 500; color: var(--dash-text); }
.b-col { flex: 1 1 0; min-width: 0; border-radius: 16px; border: 1px solid var(--dash-border); overflow: hidden; }
.b-col-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--dash-border); }
.b-card { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--dash-border); }
.cb { width: 17px; height: 17px; flex-shrink: 0; border-radius: 5px; border: 1.5px solid var(--dash-border-hover); }
.b-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; }
.pill { border-radius: 9999px; background: var(--dash-accent-muted); color: var(--dash-accent); padding: 2px 8px; font-size: 12px; font-weight: 500; }
.src { align-self: flex-start; border-radius: 9999px; background: var(--dash-accent-muted); color: var(--dash-accent); padding: 1px 6px; font-size: 10px; font-weight: 500; }
.toast { position: absolute; right: 24px; bottom: 24px; width: 356px; border-radius: 8px; border: 1px solid var(--dash-border); background: var(--dash-bg-elevated); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.p-deal { display: flex; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid var(--dash-border); background: var(--dash-bg-elevated); padding: 10px; }
.p-view { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; border: 1px solid var(--dash-border); padding: 4px 8px; font-size: 12px; font-weight: 500; }

/* the assistant panel */
.fab { position: absolute; bottom: 32px; width: 56px; height: 56px; border-radius: 9999px; background: var(--dash-accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }
.dock { position: absolute; width: 416px; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid var(--dash-border); background: var(--dash-bg-elevated); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.dock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--dash-border); flex-shrink: 0; }
.dock-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bot-tile { width: 32px; height: 32px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--dash-border); display: grid; place-items: center; color: var(--dash-accent); }
.dock-chip { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--dash-border); background: var(--dash-bg-input); font-size: 12px; font-weight: 500; }
.dock-sq { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--dash-border); background: var(--dash-bg-input); display: grid; place-items: center; color: var(--dash-text-muted); }
.dock-body { flex: 1; min-height: 0; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.bub-user { display: inline-block; max-width: 90%; text-align: left; border-radius: 16px; padding: 10px 16px; background: var(--dash-user-bubble); color: #fff; }
.bub-ai { display: inline-block; max-width: 90%; border-radius: 16px; padding: 10px 16px; background: var(--dash-assistant-bubble); box-shadow: inset 0 0 0 1px var(--dash-border); }
.bub-ai.typing { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--dash-text-muted); animation: cfPulse .9s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.act-bar { flex-shrink: 0; border-top: 1px solid var(--dash-border); border-bottom: 1px solid var(--dash-border); padding: 12px 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.act-bar p { font-weight: 500; width: 100%; text-align: right; }
.act-btns { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; border: 1px solid var(--dash-border); padding: 6px 12px; font-size: 12px; font-weight: 500; }
.act-dismiss { display: inline-flex; align-items: center; padding: 6px 8px; font-size: 12px; color: var(--dash-text-muted); }
.composer-row { flex-shrink: 0; padding: 16px 24px; display: flex; gap: 8px; align-items: flex-end; }
.composer { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--dash-border); background: var(--dash-bg-input); padding: 11px 12px; white-space: pre-wrap; overflow: hidden; }
.send { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--dash-accent); color: #fff; display: grid; place-items: center; opacity: .5; }
.caret { display: none; width: 1px; height: 14px; background: var(--dash-text); vertical-align: -2px; margin-left: 1px; animation: cfCaret 1s steps(1) infinite; }
.h-progress { height: 4px; flex-shrink: 0; background: var(--dash-chat-border); display: none; }
.h-progress div { height: 100%; background: var(--dash-accent); opacity: .8; animation: cfPulse 1.4s ease-in-out infinite; }

/* hero animation states, set by site.js on .hs; without JavaScript the finished state shows */
.hs { transition: opacity .35s ease; }
.hs.is-out { opacity: 0; }
.hs.is-notrans * { transition: none !important; }
.h-qitem { overflow: hidden; max-height: 0; opacity: 0; transform: translateX(-14px); transition: max-height .45s ease, opacity .45s ease, transform .45s ease; }
.h-inv { transition: opacity .5s ease, transform .5s ease; }
.h-quote { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.h-user, .h-reply { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.h-typing, .h-act { display: none; }
.h-input { color: var(--dash-text-muted); }
.hs.is-quotes .h-qitem, .no-js .h-qitem { max-height: 40px; opacity: 1; transform: none; }
.hs.is-quote .h-inv, .no-js .h-inv { opacity: 0; }
.hs.is-quote .h-quote, .no-js .h-quote { opacity: 1; transform: none; }
.hs.is-sent .h-user, .no-js .h-user, .hs.is-answered .h-reply, .no-js .h-reply { opacity: 1; transform: none; }
.hs.is-busy .h-typing { display: flex; }
.hs.is-busy .h-progress { display: block; }
.hs.is-answered .h-act, .no-js .h-act { display: flex; }
.hs.is-typing .caret { display: inline-block; }
.hs.is-typed .h-input { color: var(--dash-text); }
.hs.is-typed .h-send { opacity: 1; }

/* scene 1: the setup wizard */
.spark-tile { width: 32px; height: 32px; border-radius: 9px; background: var(--dash-accent); color: #fff; display: grid; place-items: center; }
.s-dots { display: flex; gap: 7px; margin-top: 16px; }
.s-dots span { flex: 1; height: 4px; border-radius: 2px; background: var(--dash-border); transition: background .3s; }
.s-dots span.on { background: var(--dash-accent); }
.s-back { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; visibility: hidden; }
.s-back.on { visibility: visible; }
.setup-card { margin-top: 10px; background: #fff; border: 1px solid var(--dash-border); border-radius: 14px; padding: 18px 24px 16px; }
.setup-cta { margin-top: 16px; height: 40px; border-radius: 10px; background: var(--dash-accent); color: #fff; font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.choice { border-radius: 10px; border: 1px solid var(--dash-border); background: #fff; }
.choice.on { border-color: var(--dash-accent); box-shadow: 0 0 0 1px var(--dash-accent); background: var(--dash-accent-muted); }
.field { display: block; color: var(--dash-text-muted); }
.field .d-input { margin-top: 4px; }

/* scene 2: the menu moves; site.js sets is-right / is-reply / is-bar / is-undo on .s2 */
.s2 { display: flex; flex-direction: row; }
.s2 .sb { border-left: 1px solid transparent; }
.s2-side { right: 32px; }
.s2.is-right { flex-direction: row-reverse; }
.s2.is-right .sb { border-right-color: transparent; border-left-color: var(--dash-border); }
.s2.is-right .s2-side { right: auto; left: 32px; }
.s2-reply { opacity: 0; transition: opacity .4s ease; }
.s2.is-reply .s2-reply, .no-js .s2-reply { opacity: 1; }
.s2-bar { display: none; }
.s2.is-bar .s2-bar, .no-js .s2-bar { display: flex; }
.s2-undo { background: var(--dash-bg-elevated); transition: background .2s; }
.s2.is-undo .s2-undo { background: var(--dash-border); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
