/* Demo chrome in the site's look. Tokens are home-v2/base.css; the chat itself is site/hero-chat.css.
   dm-* classes are demo-only cards the site has no equivalent for, drawn in the same style. */
@font-face {
  font-family: "Inter";
  src: url("site/inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root, .hv2 {
  --primary-green: #d4f776;
  --primary-green-hover: #c2e565;
  --lime: #dcf763;
  --bg-dark: #1a1a1a;
  --bg-light: #f8f9fa;
  --text-main: #111111;
  --text-muted: #666666;
  --border-color: #e5e7eb;
  --card-radius: 12px;
  --money: #16a34a;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --violet: #654fef;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg-light); color: var(--text-main); font: 400 15px/1.5 "Inter", system-ui, sans-serif; letter-spacing: -0.1px; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--text-muted); }

/* ---------- landing page (the real home-v2 styles do the work; these are the demo additions) ---------- */
.hv2 { --font-inter: "Inter"; }
.landing { min-height: 100vh; }
/* mobile-drawer.css (not copied) hides the menu toggle on desktop; responsive.css shows it on phones. */
@media (min-width: 769px) { .hv2 .mobile-menu-toggle { display: none; } }
.hv2 .dm-launch .chat-stage { justify-content: center; }
.hv2 .dm-buyers { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.hv2 .dm-buyer { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-align: left; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .08); background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.hv2 .dm-buyer:hover { border-color: var(--text-main); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.hv2 .dm-buyer-top { display: flex; align-items: center; justify-content: space-between; }
.hv2 .dm-buyer strong { font-size: 15px; letter-spacing: -0.3px; }
.hv2 .dm-buyer q { font-size: 13px; color: var(--text-main); }
.hv2 .dm-buyer-path { font-size: 11.5px; color: var(--text-muted); }
.hv2 .dm-fab .snappy-avatar svg { width: 30px; height: 30px; display: block; }
.dm-fab-pulse { position: absolute; inset: -6px; border-radius: 50px; border: 2px solid var(--primary-green); animation: fabPulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes fabPulse { from { opacity: .9; transform: scale(.96); } to { opacity: 0; transform: scale(1.15); } }
body.xp-open { overflow: hidden; }

/* ---------- Snappy, expanded over the page ---------- */
.xp { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 8, 8, .55); backdrop-filter: blur(6px); display: grid; place-items: center; clip-path: inset(0 0 0 0); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
.xp[hidden] { display: none; }
.xp > * { opacity: 0; transition: opacity .3s .35s; }
.xp.open > * { opacity: 1; }
/* No persistent header bar: just the logo and the Agent/Buyer toggle, floating over whatever's underneath
   (the hero image on the title slide; each slide/journey's own background elsewhere). Buyer-to-buyer
   navigation lives on the hero itself now; Talk track / Autoplay / Presenter view live in the footer. */
.float-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center;
  justify-content: flex-end; padding: 20px 28px; pointer-events: none; }
.float-bar > * { pointer-events: auto; }
/* The floating logo only shows on the hero (body[data-hero]) — every other screen floats just the toggle.
   No background chip either: the logo swaps color instead — white over the hero image, dark on light
   backgrounds (body[data-bg], set in showSlide()/enterJourney()). margin-right:auto (not .float-bar's own
   justify-content) pushes the toggle right, so the toggle doesn't collapse left when the logo is hidden. */
.xp-brand { display: none; position: relative; align-items: center; margin-right: auto; }
body[data-hero="true"] .xp-brand { display: flex; }
.xp-brand svg { position: absolute; inset: 0; width: 140px; height: auto; display: block; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45)); }
.xp-brand svg.logo-white { position: static; }
.xp-brand svg.logo-dark { opacity: 0; }
body[data-bg="light"] .xp-brand svg.logo-white { opacity: 0; }
body[data-bg="light"] .xp-brand svg.logo-dark { position: static; opacity: 1; filter: none; }
.key { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 5px; border: 1px solid currentColor; font-size: 10.5px; opacity: .55; }
/* Agent / Buyer demo toggle (matches the agent app's AppSwitch). */
.app-switch { display: flex; flex: none; padding: 2px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .1); background: #f2f2f3; box-shadow: 0 4px 16px rgba(0, 0, 0, .14); }
.app-switch > * { position: relative; display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; color: rgba(17, 17, 17, .65); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.app-switch i { font-size: 13px; }
.app-switch > a:hover { color: var(--text-main); }
.app-switch > [aria-current="page"] { background: var(--primary-green); color: var(--text-main); }
/* During a journey the toggle lives in the simulated site-nav instead (public/app.js shell()) — the
   floating one would just duplicate it, stacked awkwardly above that mockup's own header row. */
body[data-mode="journey"] .float-bar .app-switch { display: none; }

/* ---------- journey layout ---------- */
/* .story (#app) no longer grids its two panels directly: it just stacks .story-main above the footer, so the
   footer can add real page height below a full screen of content instead of squeezing .story-main to fit. */
/* No top clearance needed any more: the floating toggle is hidden during a journey (its own copy lives in
   the simulated site-nav instead), so there's nothing left to clear space for up there. */
/* align-items: start (not the grid default, stretch) + .browser/.talk capped by max-height (not height)
   below: short pages (a 3-card search, a 3-message exchange) size to their own content instead of being
   force-stretched to fill a full 100vh frame, which used to leave a block of dead space below them on
   tall screens. Long pages still cap at the same heights as before and scroll internally. No min-height
   here either, for the same reason — it would leave that same dead space below a shrunk-to-fit component,
   between it and the footer that follows .story-main. */
.story-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: start; gap: 22px; padding: 20px 28px; overflow-x: hidden; }
.story.no-talk .story-main { grid-template-columns: minmax(0, 1fr); }
.story.no-talk .talk { display: none; }

.brief { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 4px; }
.brief h2 { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.brief p.muted { font-size: 14px; }
.brief .worries { display: flex; flex-direction: column; gap: 6px; }
.brief .worries q { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.steps { margin: 6px 0 0 12px; counter-reset: s; border-left: 2px solid var(--border-color); }
.steps li[data-i] { counter-increment: s; position: relative; }
.steps .stage-head { padding: 12px 0 2px 26px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.steps .stage-head:first-child { padding-top: 2px; }
.steps button { width: 100%; text-align: left; padding: 7px 0 7px 26px; color: var(--text-muted); font-size: 14px; }
.steps button::before { content: counter(s); position: absolute; left: -12px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--bg-light); border: 2px solid var(--border-color); }
.steps li.seen button { color: var(--text-main); }
.steps li.seen button::before { background: var(--text-main); border-color: var(--text-main); color: #fff; }
.steps li.now button { color: var(--text-main); font-weight: 600; }
.steps li.now button::before { background: var(--primary-green); border-color: var(--text-main); }
.brief .done { margin-top: auto; padding: 18px; background: var(--bg-dark); color: #fff; border-radius: 16px; }
.brief .done p { font-size: 15px; line-height: 1.45; }
.next-story { margin-top: 12px; padding: 9px 16px; background: var(--primary-green); color: var(--text-main); border-radius: 999px; font-weight: 600; font-size: 14px; }

/* ---------- Snappy panel (the site's white chat card) ---------- */
.device { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .12); overflow: hidden; min-height: 0; max-height: 74vh; }
.device-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #f1f1f1; }
.device-top > div { display: flex; flex-direction: column; line-height: 1.25; }
.device-top strong { font-size: 15px; }
.device-top .muted { font-size: 12.5px; }
.dm-avatar svg { display: block; width: 34px; height: 34px; }
.stagebar { margin-left: auto; display: flex; gap: 4px; }
.stagebar li { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-muted); background: #f2f2f3; white-space: nowrap; transition: background .4s, color .4s; }
.stagebar li.seen { color: var(--text-main); }
.stagebar li.seen::before { content: "✓ "; color: var(--money); }
.stagebar li.now { background: var(--primary-green); color: var(--text-main); font-weight: 600; }

.dm-chat { flex: 1; min-height: 0; padding: 18px 12px 0 20px; display: flex; }
.dm-chat .hero-chat { height: auto; max-height: none; min-height: 0; flex: 1; }
.dm-chat .chat-stage { position: relative; padding-bottom: 18px; }
.dm-chat .sn-card, .dm-chat .ai-response-text { max-width: 560px; }

.composer { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 8px 8px 8px 18px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 16px; background: #fff; }
.draft { flex: 1; min-width: 0; min-height: 22px; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--text-main); }
.draft::placeholder { color: #9a9a9a; }
.composer button { display: flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: var(--primary-green); color: var(--text-main); font-weight: 600; font-size: 14px; }

.stage-divider { position: relative; text-align: center; margin: 4px 0; flex: none; }
.stage-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; border-top: 1px dashed #d4d4d8; }
.stage-divider span { position: relative; display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--text-main); color: #fff; font-size: 12px; font-weight: 600; }
.stage-divider em { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--text-muted); }

/* ---------- demo-only parts of an answer ---------- */
.hv2 .dm-checking { margin-left: 42px; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--text-main); }
.hv2 .dm-checking li { animation: cardIn .3s ease both; }
.hv2 .dm-sources { margin-left: 42px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #9a9a9a; }
.hv2 .dm-file { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 7px 10px; border-radius: 10px; background: #262626; font-size: 12.5px; }
.hv2 .dm-file i { color: var(--primary-green); font-size: 16px; }
.hv2 .dm-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.hv2 .dm-status { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 11px; }
.hv2 .dm-tag { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; background: var(--primary-green); font-size: 10.5px; font-weight: 700; color: #435055; }
.hv2 .house-card-image { position: relative; }
/* The site's carousel shows 2 cards and scrolls; the demo has no arrows, so show every home at once. */
.hv2 .sn-card:has(.dm-homes) { max-width: 640px; }
.hv2 .sn-card .dm-homes .houses-carousel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.hv2 .sn-card .dm-homes .house-card { min-width: 0; }
.hv2 .sn-card .dm-homes .house-card-stats { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 760px) { .hv2 .sn-card .dm-homes .houses-carousel { grid-template-columns: minmax(0, 1fr); } }
.hv2 .dm-pin { color: var(--warn); font-weight: 600; }
.hv2 .cmp mark { background: linear-gradient(transparent 55%, var(--primary-green) 55%); color: inherit; font-weight: 600; padding: 0 2px; }

.hv2 .dm-folder { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.hv2 .dm-folder i { color: #e11d48; }
.hv2 .dm-members { margin-left: auto; display: flex; }
.hv2 .dm-members i { width: 24px; height: 24px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font: 600 10.5px "Inter"; font-style: normal; background: var(--primary-green); color: var(--text-main); }
.hv2 .dm-members i:nth-child(2) { background: var(--text-main); color: #fff; }
.hv2 .dm-members i:nth-child(3) { background: var(--violet); color: #fff; }
.hv2 .dm-saved + .dm-saved { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f1f1; }
.hv2 .saved-sub i { color: #e11d48; }
.hv2 .dm-time { display: block; margin-top: 2px; font-size: 10.5px; color: #9a9a9a; }

.hv2 .dm-initials { display: grid; place-items: center; background: var(--text-main) !important; color: var(--primary-green); font-weight: 700; font-size: 16px; }
.hv2 .dm-fit { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #f2f2f3; font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.hv2 .dm-fit--top { background: var(--primary-green); color: var(--text-main); }
.hv2 .dm-why { margin: 10px 0 2px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #444; }
.hv2 .dm-why i { color: var(--money); }
.hv2 .sn-card.dm-quiet { padding: 10px 12px; }
.hv2 .sn-card + .sn-card { margin-top: -2px; }

.hv2 .dm-callout { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.hv2 .dm-callout i { font-size: 18px; flex: none; margin-top: 1px; }
.hv2 .dm-callout--warn { background: var(--warn-soft); border-color: #fed7aa; color: #7c2d12; }
.hv2 .dm-callout--warn i { color: var(--warn); }
.hv2 .dm-callout--info { background: #f7fbe0; border-color: #e4f2a6; color: #46538c; }
.hv2 .dm-callout--info i { color: #9fc72a; }

.hv2 .dm-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; }
.hv2 .dm-list li { display: flex; gap: 8px; align-items: flex-start; }
.hv2 .dm-list i { font-size: 17px; flex: none; color: var(--money); margin-top: 1px; }
.hv2 .dm-list .dm-warn i { color: var(--warn); }
.hv2 .dm-list .dm-plain i { color: #c4c4c8; }

.hv2 .dm-timeline { display: flex; flex-direction: column; }
.hv2 .dm-timeline li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f1f1; }
.hv2 .dm-timeline li:last-child { border-bottom: 0; }
.hv2 .dm-timeline div { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.hv2 .dm-when { font-size: 13px; font-weight: 700; }
.hv2 .dm-state { font-size: 12px; font-weight: 600; color: var(--money); }
.hv2 .dm-timeline .open .dm-state { color: var(--warn); }
.hv2 .dm-timeline .next .dm-state { color: var(--violet); }
.hv2 .dm-who { font-size: 11.5px; color: #9a9a9a; }

.hv2 .dm-booking, .hv2 .dm-doc { display: flex; gap: 12px; align-items: flex-start; }
.hv2 .dm-booking i, .hv2 .dm-doc > i { font-size: 30px; flex: none; }
.hv2 .dm-booking i { color: var(--money); }
.hv2 .dm-doc > i { color: #dc2626; }
.hv2 .dm-booking div, .hv2 .dm-doc div { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; }
.hv2 .dm-booking strong, .hv2 .dm-doc strong { font-size: 14px; }
.hv2 .dm-doc ul { margin-top: 4px; color: var(--text-muted); }
.hv2 .dm-doc li::before { content: "· "; }
.hv2 .dm-doc + .agent-cta { margin-top: 12px; }

.hv2 .dm-q + .dm-q { margin-top: 12px; }
.hv2 .dm-q-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hv2 .dm-q .beat-chips { margin-left: 0; }
.hv2 .dm-pick { animation: pick .3s var(--d, 0s) both; }
@keyframes pick { to { background: var(--text-main); border-color: var(--text-main); color: #fff; } }

/* ---------- talk track ---------- */
/* align-self: stretch: .story-main's own items no longer stretch by default (align-items: start, so
   .browser can shrink to short content) — this panel still matches .browser's height though, rather
   than shrinking to its own (usually shorter) talk-track content and looking mismatched beside it. */
.talk { display: flex; flex-direction: column; align-self: stretch; gap: 12px; overflow-y: auto; padding: 22px; background: var(--bg-dark); color: #fff; border-radius: 20px; min-height: 0; }
.talk h3 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9a9a9a; }
.talk h3 + ul { margin-bottom: 14px; }
.talk-lines { display: flex; flex-direction: column; gap: 12px; }
.talk-lines li { font-size: 16px; line-height: 1.45; padding-left: 14px; border-left: 3px solid var(--primary-green); }
.receipts { display: flex; flex-direction: column; gap: 8px; }
.receipts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #262626; border-radius: 12px; font-size: 14px; opacity: 0; transform: translateX(14px); transition: opacity .35s, transform .35s; }
.receipts li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-green); color: var(--text-main); font-size: 12px; font-weight: 700; transform: scale(.4); transition: transform .35s .15s cubic-bezier(.3, 1.6, .5, 1); }
.receipts li.in { opacity: 1; transform: none; }
.receipts li.in::before { transform: scale(1); }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .story-main, .story.no-talk .story-main { grid-template-columns: minmax(0, 1fr) minmax(240px, 310px); }
  .brief { grid-column: 1 / -1; }
  .steps { display: flex; flex-wrap: wrap; border-left: 0; margin-left: 0; gap: 2px 16px; }
  .steps .stage-head { display: none; }
  .steps button { padding: 5px 0 5px 28px; }
  .steps button::before { left: 0; top: 4px; }
  .story.no-talk .device { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .float-bar { padding: 14px 16px; }
  .xp-brand svg { width: 110px; }
  .story-main, .story.no-talk .story-main { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .device, .site { max-height: 80vh; }
  .device { border-radius: 16px; }
  .stagebar { margin-left: 0; flex-basis: 100%; overflow-x: auto; }
  .dm-chat { padding: 14px 8px 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hv2 .dm-pick { background: var(--text-main); border-color: var(--text-main); color: #fff; }
}

/* ---------- generative reveal: cards shimmer, then fill in ---------- */
.hv2 .dm-wait { display: none !important; }
.hv2 .sn-card.dm-skel { position: relative; min-height: 96px; overflow: hidden; }
.hv2 .sn-card.dm-skel > * { visibility: hidden; }
.hv2 .sn-card.dm-skel::after { content: ""; position: absolute; inset: 12px; border-radius: 8px; background:
  linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent) -200px 0 / 200px 100% no-repeat,
  repeating-linear-gradient(#f1f1f3 0 12px, transparent 12px 22px); animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: calc(100% + 200px) 0, 0 0; } }
.hv2 .sn-card.dm-in > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.hv2 .sn-card.dm-in > *:nth-child(2) { animation-delay: .06s; }
.hv2 .sn-card.dm-in > *:nth-child(3) { animation-delay: .12s; }
.hv2 .sn-card.dm-in > *:nth-child(n+4) { animation-delay: .18s; }
.hv2 .sn-card.dm-in .cost-line, .hv2 .sn-card.dm-in .dm-list li, .hv2 .sn-card.dm-in .dm-timeline li, .hv2 .sn-card.dm-in .cmp-line { animation: rise .4s cubic-bezier(.2, .7, .2, 1) both; }
.hv2 .sn-card.dm-in :is(.cost-line, .dm-list li, .dm-timeline li, .cmp-line):nth-child(2) { animation-delay: .08s; }
.hv2 .sn-card.dm-in :is(.cost-line, .dm-list li, .dm-timeline li, .cmp-line):nth-child(3) { animation-delay: .16s; }
.hv2 .sn-card.dm-in :is(.cost-line, .dm-list li, .dm-timeline li, .cmp-line):nth-child(4) { animation-delay: .24s; }
.hv2 .sn-card.dm-in :is(.cost-line, .dm-list li, .dm-timeline li, .cmp-line):nth-child(n+5) { animation-delay: .32s; }
.hv2 .sn-card.dm-in .house-card { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.hv2 .sn-card.dm-in .house-card:nth-child(2) { animation-delay: .12s; }
.hv2 .sn-card.dm-in .house-card:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.hv2 .dm-checking { gap: 6px; }
.hv2 .dm-checking li { display: flex; align-items: center; gap: 8px; }
.hv2 .dm-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e4e4e7; border-top-color: var(--violet); animation: spin .7s linear infinite; flex: none; }
.hv2 .dm-checking li.done { color: var(--text-main); font-weight: 500; }
.hv2 .dm-checking li.done .dm-spin { animation: none; border: 0; background: var(--primary-green); position: relative; }
.hv2 .dm-checking li.done .dm-spin::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--text-main); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- live tax slider ---------- */
.hv2 .dm-live { border-color: var(--text-main); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.hv2 .dm-calc-price { font-size: 28px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.hv2 .dm-calc input[type="range"] { --fill: 50%; width: 100%; margin: 8px 0 2px; height: 6px; border-radius: 99px; appearance: none; background: linear-gradient(90deg, var(--text-main) var(--fill), #ececee var(--fill)); cursor: grab; }
.hv2 .dm-calc input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-green); border: 3px solid var(--text-main); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.hv2 .dm-calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--primary-green); border: 3px solid var(--text-main); }
.hv2 .dm-calc-scale { display: flex; justify-content: space-between; font-size: 11px; color: #9a9a9a; margin-bottom: 8px; }
.hv2 .dm-calc .num { font-variant-numeric: tabular-nums; }
.hv2 .dm-calc-vs { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 600; }

/* ---------- PDFs: real pages, shrunk for thumbnails, full size in the previewer ---------- */
.pg { display: block; width: 612px; min-height: 792px; padding: 48px 56px; background: #fff; color: #1f2937; font: 400 13px/1.55 "Inter", sans-serif; text-align: left; box-sizing: border-box; }
.pg p { margin: 0 0 10px; }
.pg h2 { font-size: 24px; margin: 10px 0 6px; letter-spacing: -0.5px; }
.pg h3 { font-size: 15px; margin: 6px 0 10px; }
.pg-head { display: flex; justify-content: space-between; padding-bottom: 8px; margin-bottom: 18px; border-bottom: 2px solid #111; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pg-foot { margin-top: 30px; padding-top: 8px; border-top: 1px solid #e5e7eb; font-size: 10px; color: #9ca3af; }
.pg-sub { color: #6b7280; }
.pg-q { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid #f1f1f1; font-size: 12px; }
.pg-yn { white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.pg-yn i { width: 11px; height: 11px; border: 1.5px solid #111; display: inline-grid; place-items: center; font-style: normal; }
.pg-yn i.x::after { content: "✕"; font-size: 9px; line-height: 1; }
.pg mark { background: #fef3c7; color: inherit; padding: 1px 2px; border-radius: 2px; }
.pg mark.flash { background: #fde68a; box-shadow: 0 0 0 3px #fbbf24; animation: flash 1.2s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 7px rgba(251, 191, 36, .25); } }
.pg-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #111; color: #fff; font-size: 12.5px; animation: rise .4s .3s both; }
.pg-note-av svg { width: 22px; height: 22px; display: block; }
.pg-cover img { width: 100%; height: 260px; object-fit: cover; border-radius: 10px; }
.pg-brand { margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.pg-big { margin: 22px 0; padding: 18px; border-radius: 12px; background: #f7fbe0; border: 1.5px solid #111; display: flex; flex-direction: column; gap: 4px; }
.pg-big span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }
.pg-big strong { font-size: 28px; letter-spacing: -1px; }
.pg-big em { font-style: normal; color: #b45309; font-weight: 600; }
.pg-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 12px; }
.pg-table th, .pg-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid #e5e7eb; }
.pg-table th { font-size: 10.5px; text-transform: uppercase; color: #6b7280; }
.pg-chart { width: 100%; height: auto; margin: 6px 0 16px; }
.pg-sign { display: flex; gap: 40px; margin-top: 40px; }
.pg-sign div { display: flex; flex-direction: column; border-top: 1px solid #111; padding-top: 6px; min-width: 180px; }
.pg-sign em { font: italic 600 26px/1 "Brush Script MT", cursive; margin-top: -34px; margin-bottom: 10px; color: #1e3a8a; }
.pg-sign span { font-size: 10.5px; color: #6b7280; }
.pg-thumb { display: block; width: calc(612px * var(--s, .16)); height: calc(792px * var(--s, .16)); overflow: hidden; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); background: #fff; flex: none; }
.pg-thumb .pg { transform: scale(var(--s, .16)); transform-origin: 0 0; pointer-events: none; }

.hv2 .dm-pdf { display: flex; gap: 16px; align-items: flex-start; }
.hv2 .dm-pdf-thumbs { position: relative; display: flex; flex: none; width: 128px; height: 140px; padding: 0; }
.hv2 .dm-pdf-thumbs .pg-thumb { position: absolute; top: 6px; --s: .15; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.hv2 .dm-pdf-thumbs .pg-thumb:nth-child(1) { z-index: 3; left: 18px; }
.hv2 .dm-pdf-thumbs .pg-thumb:nth-child(2) { z-index: 2; left: 18px; transform: rotate(-7deg) translateX(-8px); }
.hv2 .dm-pdf-thumbs .pg-thumb:nth-child(3) { z-index: 1; left: 18px; transform: rotate(7deg) translateX(8px); }
.hv2 .dm-pdf-thumbs:hover .pg-thumb:nth-child(2) { transform: rotate(-14deg) translateX(-22px); }
.hv2 .dm-pdf-thumbs:hover .pg-thumb:nth-child(3) { transform: rotate(14deg) translateX(22px); }
.hv2 .dm-pdf-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.hv2 .dm-pdf-info strong { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.hv2 .dm-pdf-info strong i { color: #dc2626; font-size: 18px; }
.hv2 .dm-pdf-info ul { margin: 6px 0 10px; display: flex; flex-direction: column; gap: 3px; color: #444; }
.hv2 .dm-pdf-info li i { color: var(--money); }
.hv2 .dm-pdf-btns { display: flex; gap: 8px; }
.hv2 .dm-pdf-btns .agent-cta { width: auto; padding: 0 16px; margin: 0; }
.hv2 .dm-ghost { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .14); font-size: 13px; font-weight: 600; }
.hv2 .dm-file { cursor: pointer; color: #fff; }
.hv2 .dm-file span { margin-left: auto; padding-left: 10px; color: var(--primary-green); font-weight: 600; }

/* ---------- disclosure scan ---------- */
.hv2 .dm-scan-visual { position: relative; height: 150px; margin-bottom: 12px; border-radius: 12px; background: radial-gradient(circle at 50% 120%, #2a2a2a, #111); overflow: hidden; cursor: pointer; }
.hv2 .dm-scan-visual .pg-thumb { position: absolute; top: 14px; --s: .15; }
.hv2 .dm-scan-visual .s0 { left: calc(50% - 46px); z-index: 3; }
.hv2 .dm-scan-visual .s1 { left: calc(50% - 46px); transform: translateX(-74px) rotate(-6deg) scale(.92); opacity: .75; }
.hv2 .dm-scan-visual .s2 { left: calc(50% - 46px); transform: translateX(74px) rotate(6deg) scale(.92); opacity: .75; }
.hv2 .dm-beam { position: absolute; left: 0; right: 0; height: 36px; top: -36px; z-index: 4; background: linear-gradient(transparent, rgba(212, 247, 118, .55), transparent); border-bottom: 2px solid var(--primary-green); animation: beam 1.4s ease-in-out 2; }
@keyframes beam { to { top: 150px; } }
.hv2 .dm-scan-count { position: absolute; left: 10px; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; backdrop-filter: blur(6px); }
.hv2 .dm-scan-count b { color: var(--primary-green); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.hv2 .dm-findings { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.hv2 .sn-card.dm-in .dm-findings li { animation: pin .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(1.1s + var(--i) * .22s); }
@keyframes pin { from { opacity: 0; transform: translateX(-12px) scale(.96); } }
.hv2 .dm-finding { width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-align: left; border: 1px solid rgba(0, 0, 0, .08); background: #fff; transition: border-color .2s, transform .2s; }
.hv2 .dm-finding:hover { border-color: var(--text-main); transform: translateX(3px); }
.hv2 .dm-finding > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; font-size: 13px; }
.hv2 .dm-finding > i { color: #9a9a9a; }
.hv2 .dm-note { color: #444; font-size: 12.5px; }
.hv2 .dm-pagechip { flex: none; padding: 3px 8px; border-radius: 8px; background: #111; color: var(--primary-green); font-size: 11px; font-weight: 700; }
.hv2 .dm-finding.dm-warn { border-left: 3px solid var(--warn); }
.hv2 .dm-scan > .agent-cta { width: 100%; }

/* ---------- consent to text ---------- */
.hv2 .dm-consent-card { border-color: var(--violet); }
.hv2 .dm-consent-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.hv2 .dm-consent-head > i { font-size: 26px; color: var(--violet); }
.hv2 .dm-consent-head div { display: flex; flex-direction: column; font-size: 14px; }
.hv2 .dm-consent-phone { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .14); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.hv2 .dm-consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: #444; margin-bottom: 12px; }
.hv2 .dm-box { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #9a9a9a; display: grid; place-items: center; color: transparent; animation: tick .3s 1.1s both; }
@keyframes tick { to { background: var(--violet); border-color: var(--violet); color: #fff; } }
.hv2 .dm-consent-btn { position: relative; width: 100%; height: 40px; border-radius: 10px; background: var(--text-main); color: #fff; font-weight: 600; font-size: 13.5px; overflow: hidden; }
.hv2 .dm-consent-btn span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.hv2 .dm-consent-btn span:first-child { transition: opacity .3s, transform .3s; }
.hv2 .dm-consent-btn.on span:first-child { opacity: 0; transform: translateY(-100%); }
.hv2 .dm-consent-btn:not(.on):hover { background: #333; }
.hv2 .dm-consent-btn span:last-child { background: var(--primary-green); color: var(--text-main); opacity: 0; transform: translateY(100%); transition: opacity .35s, transform .35s; }
.hv2 .dm-consent-btn.on span:last-child { opacity: 1; transform: none; }
@keyframes out { to { opacity: 0; transform: translateY(-100%); } }
@keyframes in { from { opacity: 0; transform: translateY(100%); } }
.hv2 .dm-smslog { display: flex; gap: 10px; font-size: 12.5px; color: #444; }
.hv2 .dm-smslog > i { font-size: 22px; color: #34c759; }
.hv2 .dm-smslog p { margin: 4px 0 0; }

/* ---------- the phone: she left the site, Snappy texts her ---------- */
.browser.away > :not(.phone-scene) { filter: blur(3px) grayscale(.4); opacity: .35; transform: scale(.97); transition: all .5s; }
.phone-scene { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.phone-scene[hidden] { display: none; }
.phone { position: relative; width: 370px; height: 760px; zoom: var(--pz, 1); flex: none; border-radius: 46px; background: #000; border: 10px solid #1c1c1e; box-shadow: 0 0 0 2px #3a3a3c, 0 40px 80px rgba(0, 0, 0, .35); overflow: hidden; transform: translateY(110%); transition: transform .7s cubic-bezier(.2, .8, .2, 1); font-family: -apple-system, "SF Pro Text", "Inter", sans-serif; }
.phone-scene.open .phone { transform: none; }
.phone-scene.leaving .phone { transform: translateY(110%); transition-duration: .5s; }
.phone-scene.leaving .phone-caption { opacity: 0; }
.phone-island { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 5; }
.phone-lock { position: absolute; inset: 0; padding: 70px 14px 0; color: #fff; text-align: center; background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .45)), url("img/hero-la-skyline.webp") center / cover; transition: transform .5s, opacity .5s; }
.phone-time { font-size: 64px; font-weight: 600; letter-spacing: -2px; line-height: 1; }
.phone-date { font-size: 15px; font-weight: 500; margin-top: 4px; }
.phone-notif { display: flex; gap: 10px; align-items: flex-start; margin-top: 40px; padding: 11px 12px; border-radius: 18px; text-align: left; background: rgba(245, 245, 245, .78); color: #111; backdrop-filter: blur(20px); font-size: 12.5px; line-height: 1.35; opacity: 0; transform: translateY(-30px) scale(.95); transition: all .5s cubic-bezier(.2, 1.3, .4, 1); }
.phone-notif b { display: block; font-size: 12.5px; }
.phone-notif em { margin-left: auto; font-style: normal; color: #6b7280; font-size: 11px; }
.phone-app { flex: none; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(#5ef777, #2bc548); display: grid; place-items: center; color: #fff; font-size: 20px; }
.phone-scene.notified .phone-notif { opacity: 1; transform: none; }
.phone-scene.in-thread .phone-lock { transform: translateY(-100%); opacity: 0; }
.phone-imsg { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; transform: translateY(100%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.phone-scene.in-thread .phone-imsg { transform: none; }
.imsg-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 44px 12px 8px; background: rgba(249, 249, 249, .94); border-bottom: 1px solid #e5e5ea; position: relative; }
.imsg-head > i { position: absolute; left: 10px; top: 54px; color: #007aff; font-size: 20px; }
.imsg-av svg { width: 40px; height: 40px; display: block; }
.imsg-head b { font-size: 12px; font-weight: 600; }
.imsg-head small { font-size: 10px; color: #8e8e93; }
.imsg-thread { flex: 1; overflow-y: auto; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; }
.imsg-stamp { margin: 0 0 4px; text-align: center; font-size: 10.5px; color: #8e8e93; }
.imsg-b { max-width: 78%; padding: 8px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.35; animation: pop .3s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(6px); } }
.imsg-them { align-self: flex-start; background: #e9e9eb; color: #000; border-bottom-left-radius: 5px; }
.imsg-me { align-self: flex-end; background: #007aff; color: #fff; border-bottom-right-radius: 5px; }
.imsg-them.typing { display: flex; gap: 4px; padding: 12px 14px; }
.imsg-them.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9e; animation: blink 1s infinite; }
.imsg-them.typing i:nth-child(2) { animation-delay: .15s; } .imsg-them.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
.imsg-link { display: flex; flex-direction: column; width: 190px; margin: -8px -12px; border-radius: 18px; overflow: hidden; background: #e9e9eb; }
.imsg-link img { width: 100%; height: 96px; object-fit: cover; }
.imsg-link b { padding: 6px 10px 0; font-size: 12.5px; }
.imsg-link small { padding: 0 10px 8px; color: #6b7280; font-size: 10.5px; }
.imsg-input { display: flex; align-items: center; gap: 6px; margin: 6px 10px 14px; padding: 6px 6px 6px 12px; border-radius: 18px; border: 1px solid #d1d1d6; font-size: 13px; min-height: 34px; }
.imsg-draft { flex: 1; }
.imsg-draft:empty::before { content: "iMessage"; color: #c7c7cc; }
.imsg-input i { color: #007aff; font-size: 26px; }
.phone-caption { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #111; color: #fff; font-size: 12.5px; transition: opacity .3s; }

/* ---------- PDF previewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(10, 10, 10, .6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.viewer.open { opacity: 1; }
.viewer[hidden] { display: none; }
.viewer-panel { width: min(1100px, 94vw); height: 90vh; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #2b2b2e; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); transform: scale(.96) translateY(10px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.viewer.open .viewer-panel { transform: none; }
.viewer-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; background: #1c1c1e; color: #fff; font-size: 14px; }
.viewer-bar > i { color: #ef4444; font-size: 20px; }
.viewer-pageno { margin-left: auto; color: #a1a1aa; font-size: 13px; font-variant-numeric: tabular-nums; }
.viewer-tools { display: flex; gap: 4px; }
.viewer-tools button { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #e4e4e7; font-size: 17px; }
.viewer-tools button:hover { background: #333; }
.viewer-body { flex: 1; min-height: 0; display: flex; }
.viewer-thumbs { width: 130px; flex: none; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: #232326; }
.viewer-thumbs button { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #a1a1aa; font-size: 11px; padding: 4px; border-radius: 6px; }
.viewer-thumbs .pg-thumb { --s: .14; }
.viewer-thumbs button.on { background: #3a3a3e; color: #fff; }
.viewer-thumbs button.on .pg-thumb { outline: 2px solid var(--primary-green); }
.viewer-main { --zoom: 1; position: relative; flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pg-full { zoom: var(--zoom); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); border-radius: 3px; flex: none; }

/* ---------- confetti ---------- */
.confetti { position: fixed; inset: 0; z-index: 4000; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; animation: fall var(--t) cubic-bezier(.2, .6, .4, 1) var(--d) both; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); opacity: .9; } }

/* Presenting on a big screen: Snappy's answers in black and a size up from the site's 13px. */
.dm-chat .ai-response-text { font-size: 17px; line-height: 1.55; color: var(--text-main); max-width: 640px; }
.dm-chat .sn-card { zoom: 1.15; }
.dm-chat .human-bubble { font-size: 16px; }
.hv2 .dm-checking { font-size: 16px; }
.dm-chat .ai-label { font-size: 12px; }
/* Big screens: scale the whole journey view up so it reads from across a room. */
@media (min-width: 1500px) { .float-bar, .story { zoom: 1.12; } }
@media (min-width: 1800px) { .float-bar, .story { zoom: 1.22; } }
.hv2 .dm-who, .hv2 .dm-sources, .hv2 .cmp-line em { color: #555; }
.hv2 .dm-sources { font-size: 12.5px; }

/* ---------- Snappy panel over the landing page (no presenter chrome on the shared screen) ---------- */
.dm-chat .hero-chat { max-width: 920px; width: 100%; margin: 0 auto; }
.dm-min { width: 36px; height: 36px; margin-left: 4px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: var(--text-muted); }
.dm-min:hover { background: #f2f2f3; color: var(--text-main); }
.hv2 .prompt-submit.dm-press { transform: scale(.94); box-shadow: 0 0 0 6px rgba(212, 247, 118, .35); }
.hv2 .prompt-submit { transition: transform .15s, box-shadow .15s; }
.dm-hint { position: fixed; left: 20px; bottom: 20px; z-index: 1500; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(17, 17, 17, .85); color: #ddd; font: 13px "Inter", sans-serif; transition: opacity .5s; }
.dm-hint b { color: var(--primary-green); }
.dm-hint.gone { opacity: 0; pointer-events: none; }

/* ---------- page: the floating bar, then either the slides or a journey ---------- */
body { display: flex; flex-direction: column; height: 100vh; }
.story[hidden], .deck[hidden] { display: none; }

/* ---------- the presentation slides (for the person watching) ---------- */
.deck { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; overflow-y: auto; }
/* The slide's own narrative content, centered and sized to the screen as before; the footer (added below
   it, sharing .slide's scroll) is a separate block so it never pulls this centering off its mark. */
.slide-body { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: max(4vh, 84px) 8vw 12vh; }
.slide h1 { margin: 0; font-size: clamp(40px, 5.4vw, 92px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.slide .lead { margin: 0; font-size: clamp(18px, 1.6vw, 28px); line-height: 1.4; max-width: 46ch; }
.slide-dark { color: #fff; background: radial-gradient(60vw 60vw at 85% 15%, rgba(101, 79, 239, .32), transparent 60%), radial-gradient(50vw 50vw at 10% 100%, rgba(212, 247, 118, .14), transparent 60%), #121212; }
.slide-dark .lead { color: rgba(255, 255, 255, .8); }
.slide-light { background: var(--bg-light); }
.slide-light .lead { color: #444; }
.rv { animation: slideIn .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * .12s); }
@keyframes slideIn { from { opacity: 0; transform: translateY(26px); } }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.chips span { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: clamp(14px, 1.1vw, 18px); }
.chips span:first-child { background: var(--primary-green); color: var(--text-main); border-color: var(--primary-green); font-weight: 600; }
.chips i { font-style: normal; color: rgba(255, 255, 255, .5); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tiles > div { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: 22px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); box-shadow: 0 16px 40px rgba(0, 0, 0, .06); }
.tiles i { font-size: 34px; color: var(--violet); }
.tiles strong { font-size: clamp(19px, 1.5vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.tiles span { color: #555; font-size: clamp(14px, 1.05vw, 17px); }

.buyer-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.buyer-cards button { display: flex; flex-direction: column; text-align: left; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid rgba(0, 0, 0, .07); box-shadow: 0 16px 40px rgba(0, 0, 0, .06); transition: transform .25s, box-shadow .25s; }
.buyer-cards button:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0, 0, 0, .12); }
.bc-img { position: relative; display: block; height: clamp(140px, 18vh, 240px); background: center / cover; }
.bc-img .key { position: absolute; top: 12px; right: 12px; background: #fff; opacity: 1; width: 26px; height: 26px; font-size: 12px; }
.bc-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.bc-body strong { font-size: clamp(20px, 1.6vw, 28px); letter-spacing: -0.02em; }
.bc-body q { font-size: clamp(15px, 1.15vw, 19px); }
.bc-path { font-size: 13px; color: var(--text-muted); }

.slide-chapter .kicker { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-green); }
.ch-worries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ch-worries li { font-size: clamp(20px, 1.8vw, 32px); font-weight: 500; padding-left: 18px; border-left: 4px solid var(--primary-green); }
.cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; background: var(--primary-green); color: var(--text-main); font-size: clamp(16px, 1.2vw, 20px); font-weight: 700; }
.cta:hover { background: #c2e565; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stats div { display: flex; flex-direction: column; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.stats b { font-size: clamp(40px, 4vw, 72px); letter-spacing: -0.04em; color: var(--primary-green); line-height: 1; }
.stats span { margin-top: 8px; color: rgba(255, 255, 255, .75); font-size: clamp(14px, 1.05vw, 18px); }
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.outcomes div { display: flex; flex-direction: column; gap: 6px; font-size: clamp(14px, 1.05vw, 18px); color: rgba(255, 255, 255, .85); }
.outcomes strong { color: #fff; font-size: clamp(17px, 1.3vw, 22px); }

@media (max-width: 900px) {
  .tiles, .buyer-cards, .stats, .outcomes { grid-template-columns: minmax(0, 1fr); }
  .slide-body { justify-content: flex-start; padding: 76px 20px 12vh; }
}

/* Back / Next on every slide */
.deck-nav { position: absolute; left: 8vw; right: 8vw; bottom: 3.5vh; display: flex; align-items: center; gap: 16px; z-index: 2; }
.deck-nav button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; background: rgba(127, 127, 127, .14); color: inherit; }
.slide-dark ~ .deck-nav, .deck:has(.slide-dark) .deck-nav { color: #fff; }
.deck-nav .deck-next { margin-left: auto; background: var(--primary-green); color: var(--text-main); }
.deck-dots { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.deck-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(127, 127, 127, .45); }
.deck-dots i.on { width: 24px; border-radius: 99px; background: var(--primary-green); }

/* journey-only buttons stay hidden on the slides */
body[data-mode="deck"] [data-act="talk"], body[data-mode="deck"] [data-act="play"],
body[data-mode="hero"] [data-act="talk"], body[data-mode="hero"] [data-act="play"] { display: none; }
/* The new hero (title slide, and a buyer's prefilled landing) stacks on narrow screens instead of squeezing the 60/40 grid. */
@media (max-width: 900px) {
  .hv2 .hero-new { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hv2 .hero-left { padding: 4rem 1.5rem 2.5rem; }
  .hv2 .hero-right { min-height: 50vh; }
}

/* ---------- journey: the Snaphomz page in a browser window, Snappy docked on the right ---------- */
.browser { position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .14); border: 1px solid rgba(0, 0, 0, .08); }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; background: #f1f1f3; border-bottom: 1px solid #e4e4e7; flex: none; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #d4d4d8; }
.browser-bar .dots i:first-child { background: #ff5f57; } .browser-bar .dots i:nth-child(2) { background: #febc2e; } .browser-bar .dots i:nth-child(3) { background: #28c840; }
.url { flex: 0 1 460px; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; background: #fff; font-size: 13px; color: #555; white-space: nowrap; overflow: hidden; }
.browser-bar .stagebar { margin-left: auto; }
.browser-body { flex: 1; min-height: 0; display: flex; }
/* Same cap as .device: without it, .story-main's new shrink-to-fit sizing (align-items: start) leaves
   this side free to grow to its own full content height on long listing pages instead of scrolling
   internally within the same frame .device is capped to. */
.site { position: relative; flex: 1; min-width: 0; max-height: 74vh; overflow-y: auto; scroll-behavior: smooth; background: #fff; }
/* At narrow window widths .device's own min-width can squeeze .site down further than this row's content
   (logo + toggle + links + avatar) fits — overflow-x lets it scroll sideways there instead of spilling
   past its own box uncontrolled (the circle-squashing bug this replaces). */
.site-nav { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 22px; height: 54px;  background: #fff; border-bottom: 1px solid #f1f1f1; font-size: 14px; font-weight: 500; color: #333; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav > * { flex-shrink: 0; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-nav svg { height: 18px; width: auto; }
/* The Agent/Buyer toggle sits right after the logo; the gap before the Buy/Sell/Agents/Snapz links opens here. */
.site-nav .app-switch { margin-right: auto; }
.site-me { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 600; }
.site-page.page-in { animation: pageIn .45s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }

/* Snappy, docked like the real property-page panel */
.browser-body > .device { flex: 0 0 clamp(380px, 34%, 470px); border-radius: 0; box-shadow: -12px 0 30px rgba(0, 0, 0, .06); border-left: 1px solid #ececef; }
/* Below this, .device's fixed-width floor and the talk sidebar leave the simulated nav almost no room —
   trade some of their own width for the nav's, so the logo/toggle/avatar never need a horizontal scroll.
   (Placed here, after the base rules it overrides, so it actually wins at equal specificity.) */
@media (max-width: 1000px) {
  .story-main, .story.no-talk .story-main { grid-template-columns: minmax(0, 1fr) minmax(170px, 210px); gap: 14px; padding: 16px 20px; }
  .browser-body > .device { flex-basis: clamp(190px, 34%, 470px); }
  .site-nav-link { display: none; }
  .app-switch .lbl { display: none; }
  .app-switch > * { padding: 4px 8px; }
  .site-nav { gap: 10px; padding: 0 12px; }
  .site-nav svg { height: 16px; }
}
.device-top { flex-wrap: nowrap; }
.device-x { margin-left: auto; color: #888; font-size: 18px; }
.device .about { font-size: 12.5px; }
.browser .dm-chat { padding: 14px 8px 0 14px; }
.browser .dm-chat .ai-response-text { font-size: 15px; margin-left: 0; }
.browser .dm-chat .sn-card { zoom: 1; margin-left: 0; width: 100%; }
.browser .dm-chat .hero-chat { max-width: none; }
.browser .dm-chat .ai-actions, .browser .dm-chat .dm-sources, .browser .dm-chat .dm-checking, .browser .dm-chat .typing-indicator { margin-left: 0; }
.browser .dm-chat .human-bubble { font-size: 14px; }
.browser .dm-chat .human-avatar { display: none; }
.browser .composer { margin: 0 12px 6px; padding: 6px 6px 6px 14px; border-radius: 14px; }
.browser .composer button { padding: 8px 12px; border-radius: 10px; background: #f2f2f3; color: #888; }
.browser .composer:focus-within { border-color: var(--text-main); }
.browser .composer:focus-within button { background: var(--text-main); color: #fff; }
.device-foot { margin: 0 0 8px; text-align: center; font-size: 11px; color: #9a9a9a; }
/* home results inside the narrow panel: one row per home */
.browser .sn-card .dm-homes .houses-carousel { grid-template-columns: minmax(0, 1fr); }
.browser .sn-card .dm-homes .house-card { flex-direction: row; }
.browser .sn-card .dm-homes .house-card-image { width: 120px; height: auto; min-height: 92px; flex: none; }
.browser .dm-pdf-thumbs { width: 104px; }
.browser .dm-pdf-thumbs .pg-thumb { --s: .12; }
.browser .cmp { grid-template-columns: 1fr 1fr; }
.talk .done { margin-top: auto; padding: 16px; background: #262626; border-radius: 14px; }
.talk .done p { font-size: 15px; margin: 0; }

/* ---------- mock Snaphomz pages ---------- */
/* The big bottom padding is runway for focusPage() (app.js) to scroll a late section up near the top on
   listing-detail pages (value/taxes/permits/schools/...). The results page has no data-sec subsections at
   all — focusPage() never scrolls it — so that runway is just empty space there; skip it. */
.site-page { padding: 18px 24px 60vh; color: var(--text-main); }
.site-page:has(.sp-results) { padding-bottom: 24px; }
.site-page h2 { margin: 6px 0 2px; font-size: 24px; letter-spacing: -0.5px; }
.sp-muted { color: #777; font-size: 13px; margin: 6px 0 0; }
.sp-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-filters span { padding: 6px 12px; border-radius: 999px; background: #f2f2f3; font-size: 13px; }
.sp-filters span:first-child { background: var(--text-main); color: #fff; }
.sp-filter-more { margin-left: auto; border: 1px solid #e4e4e7; background: #fff !important; }
/* Map half kept small: it's a flat grid-pattern placeholder (no real map image in this static demo), so
   giving it as much room as the real cards just reads as a big blank gap. */
.sp-results-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.sp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.sp-card { border-radius: 12px; overflow: hidden; border: 1px solid #ececef; font-size: 12.5px; }
.sp-card > div { display: flex; flex-direction: column; padding: 8px 10px 10px; }
.sp-card b { font-size: 16px; }
.sp-card small { color: #777; }
.sp-card-img { position: relative; display: block; height: 110px; background: center / cover; }
.sp-heart { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 14px; }
.sp-dim { opacity: .5; }
.sp-map { position: relative; min-height: 220px; border-radius: 14px; background: linear-gradient(135deg, #e8eef3 25%, #eef2e6 25% 50%, #e8eef3 50% 75%, #eef2e6 75%) 0 0 / 80px 80px; overflow: hidden; }
.sp-map::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, .9) 58px 62px), repeating-linear-gradient(0deg, transparent 0 74px, rgba(255, 255, 255, .9) 74px 78px); }
.sp-pin { position: absolute; z-index: 1; padding: 4px 9px; border-radius: 999px; background: var(--text-main); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.sp-cards.two { grid-template-columns: repeat(2, minmax(0, 220px)); margin-top: 14px; }
.sp-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: #555; }
.sp-tabs span { padding: 7px 14px; border-radius: 8px; }
.sp-tabs span.on { background: #f3f8d8; color: var(--text-main); font-weight: 600; box-shadow: inset 0 -2px 0 var(--text-main); }
.sp-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 16px; }
.sp-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 300px; }
.sp-gallery span { border-radius: 12px; background: center / cover; position: relative; }
.sp-gallery .sp-main { grid-row: span 2; }
.sp-gallery em { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--primary-green); font-style: normal; font-size: 12px; font-weight: 600; }
.sp-facts { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: #444; }
.sp-price { font-size: 32px; letter-spacing: -1px; color: var(--text-main); }
.sp-score { align-self: flex-start; padding: 5px 12px; border-radius: 999px; border: 1px solid #e4e4e7; }
.sp-bbs { display: flex; gap: 16px; font-size: 14px; }
.sp-bbs b { font-size: 24px; color: var(--text-main); }
.sp-details { display: flex; flex-direction: column; gap: 4px; }
.sp-actions { display: flex; gap: 8px; margin-top: auto; }
.sp-btn { flex: 1; padding: 10px; border-radius: 10px; text-align: center; font-weight: 600; font-size: 13px; }
.sp-btn.dark { background: var(--text-main); color: #fff; } .sp-btn.lime { background: var(--primary-green); color: var(--text-main); }
.sp-sec { margin-top: 16px; padding: 18px 20px; border-radius: 14px; border: 1px solid #ececef; transition: box-shadow .4s, border-color .4s; }
.sp-sec h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 17px; }
.sp-sec h3 i { color: var(--violet); }
.sp-sec.lit { border-color: var(--text-main); box-shadow: 0 0 0 4px rgba(212, 247, 118, .7); }
.sp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sp-grid3 div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: #f7f7f8; font-size: 12.5px; color: #666; }
.sp-grid3 b { font-size: 18px; color: var(--text-main); }
.sp-amber { color: var(--warn) !important; }
.sp-rows { list-style: none; margin: 0; padding: 0; }
.sp-rows li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1f1f1; font-size: 14px; }
.sp-rows li:last-child { border-bottom: 0; }
.sp-rows span { flex: 1; }
.sp-rows em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #666; }
.sp-rows em.ok { color: var(--money); } .sp-rows em.open { color: var(--warn); }
.sp-rows i.ph-fill { color: #dc2626; font-size: 18px; }
.sp-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-slots span { padding: 9px 14px; border-radius: 10px; border: 1px solid #e4e4e7; font-size: 13.5px; }
.sp-slots span.on { background: var(--text-main); color: #fff; border-color: var(--text-main); }
.sp-agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.sp-agent { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; border: 1px solid #ececef; font-size: 13px; color: #555; }
.sp-agent { position: relative; transition: opacity .5s, box-shadow .5s, border-color .5s; }
.sp-best { display: none; position: absolute; top: 14px; right: 14px; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--primary-green); color: #111; font-size: 12px; font-weight: 600; font-style: normal; }
.f-match .sp-best { display: inline-flex; }
.f-match .sp-agent.best { border-color: var(--primary-green); box-shadow: 0 0 0 2px var(--primary-green); }
.sp-agent b { color: var(--text-main); font-size: 15px; } .sp-agent b i { color: #3b82f6; }
.sp-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--text-main); color: var(--primary-green); font-weight: 700; margin-bottom: 6px; }
.sp-schools .sp-rows { margin-top: 12px; } .sp-schools .sp-rows i.ph-fill { color: var(--violet); }
@media (max-width: 1300px) { .sp-results-grid, .sp-hero { grid-template-columns: minmax(0, 1fr); } .sp-map { min-height: 200px; } }

/* question box grows to fit the whole question instead of cutting it off */
.browser .composer { align-items: flex-end; }
.browser .draft { resize: none; field-sizing: content; min-height: 24px; max-height: 120px; line-height: 1.45; padding: 4px 0; overflow-y: auto; }

/* the line under the phone wraps instead of running off the edge */
.phone-caption { max-width: min(720px, 92%); text-wrap: balance; text-align: center; white-space: normal; line-height: 1.4; border-radius: 14px; }

/* a clear way back from the phone */
.phone-back { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--primary-green); color: var(--text-main); font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.phone-scene.open .phone-back { opacity: 1; transform: none; pointer-events: auto; transition-delay: .6s; }
.phone-scene.leaving .phone-back { opacity: 0; }

/* results: the kitchen + natural light view */
.sp-card { transition: opacity .5s, transform .5s, max-height .6s .3s, margin .6s .3s, padding .6s .3s, border-width .6s .3s; max-height: 400px; }
.sp-kitchen { position: absolute; inset: 0; background: center / cover; opacity: 0; transition: opacity .7s; }
.sp-kitchen em { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: var(--primary-green); font: 600 11px "Inter"; font-style: normal; color: var(--text-main); }
.f-light .sp-kitchen { opacity: 1; }
.f-light .sp-card.has-kitchen { box-shadow: 0 0 0 2px var(--primary-green); }
.f-light .sp-card.no-kitchen { opacity: 0; transform: scale(.9); max-height: 0; border-width: 0; pointer-events: none; }
.sp-pin { transition: opacity .5s; } .f-light .sp-pin.no-kitchen { opacity: 0; }
.sp-t2 { display: none; } .f-light .sp-t1 { display: none; } .f-light .sp-t2 { display: inline; }
.hv2 .dm-space-img { display: block; width: 100%; max-width: 320px; height: 120px; object-fit: cover; border-radius: 10px; margin-top: 8px; }
/* permits inside the text thread */
.imsg-permits { display: flex; flex-direction: column; gap: 4px; margin: -8px -12px; padding: 10px 12px; border-radius: 18px; background: #fff; border: 1px solid #e5e5ea; font-size: 12.5px; min-width: 200px; }
.imsg-permits b { display: flex; align-items: center; gap: 5px; font-size: 12.5px; margin-bottom: 2px; }
.imsg-permits > span { display: flex; align-items: baseline; gap: 6px; }
.imsg-permits em { font-style: normal; font-weight: 700; }
.imsg-permits i { margin-left: auto; font-style: normal; font-weight: 700; font-size: 11px; white-space: nowrap; }
.imsg-permits i.ok { color: #16a34a; } .imsg-permits i.open { color: #b45309; }
.imsg-permits small { color: #8e8e93; font-size: 10.5px; margin-top: 2px; }
.f-light .sp-card.no-kitchen { order: 9; }
.sp-kitchen em { white-space: nowrap; }
.imsg-b:has(.imsg-permits) { max-width: 92%; }
.imsg-permits { min-width: 240px; }

/* the caption is plain text so it can wrap */
.phone-caption { display: block; }
.phone-caption i { vertical-align: -2px; margin-right: 4px; }

/* permit card fits the bubble instead of running past the screen edge */
.imsg-b:has(.imsg-permits) { max-width: 90%; }
.imsg-permits { min-width: 0; width: 100%; box-sizing: border-box; }
.imsg-permits > span { min-width: 0; }

/* photo previews from the chat */
.chat img, .chat .house-card-image, .chat .saved-thumb { cursor: zoom-in; }
.photo-view { position: relative; margin: 0; max-width: min(1100px, 90vw); display: flex; flex-direction: column; gap: 10px; transform: scale(.96); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.viewer.open .photo-view { transform: none; }
.photo-view img { display: block; max-width: 100%; max-height: 80vh; border-radius: 16px; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); object-fit: contain; cursor: zoom-out; }
.photo-view figcaption { color: #fff; font-size: 16px; font-weight: 500; text-align: center; }
.photo-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 20px; }

/* ---------- Messages page (Nadia and Kevin) ---------- */
.site-page:has(.sp-msgs) { padding: 0; }
.sp-msgs { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: calc(100vh - 290px); min-height: 520px; }
.sp-convos { border-right: 1px solid #ececef; padding: 16px 12px; overflow-y: auto; }
.sp-convos h2 { font-size: 20px; margin: 0 6px 12px; }
.sp-convo { display: flex; gap: 10px; padding: 10px; border-radius: 12px; font-size: 13px; }
.sp-convo.on { background: #f3f8d8; }
.sp-convo > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sp-convo small { color: #777; } .sp-convo em { font-style: normal; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-convo .sp-av, .sp-thread header .sp-av { width: 38px; height: 38px; margin: 0; flex: none; font-size: 13px; }
.sp-thread { display: flex; flex-direction: column; min-height: 0; }
.sp-thread header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #ececef; }
.sp-thread header > span:nth-child(2) { display: flex; flex-direction: column; font-size: 13px; }
.sp-thread header b { font-size: 15px; } .sp-thread header b i { color: #3b82f6; } .sp-thread header small { color: #777; }
.sp-online { margin-left: auto; font-size: 12px; color: var(--money); font-weight: 600; }
.sp-online::before { content: "● "; }
.sp-tmsgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fafafa; }
.sp-tmsgs [hidden] { display: none; }
.sp-sys { align-self: center; margin: 4px 0; padding: 5px 12px; border-radius: 999px; background: #ececef; color: #555; font-size: 12px; text-align: center; }
.sp-m { display: flex; flex-direction: column; gap: 4px; align-self: flex-start; max-width: 72%; }
.sp-m.me { align-self: flex-end; align-items: flex-end; }
.sp-mb { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid #ececef; font-size: 14px; line-height: 1.45; }
.sp-m.me .sp-mb { background: var(--text-main); color: #fff; border-color: var(--text-main); border-radius: 16px 16px 4px 16px; }
.sp-mt { font-size: 11px; color: #999; padding: 0 4px; }
.sp-mcard { display: flex; flex-direction: column; gap: 4px; min-width: 260px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--text-main); font-size: 13px; }
.sp-mcard b { font-size: 14px; margin-bottom: 2px; }
.sp-mcard > span { display: flex; justify-content: space-between; gap: 16px; }
.sp-mcard em { font-style: normal; color: #666; }
.sp-mcard small { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--money); }
.sp-mcard.amber { border-color: var(--warn); } .sp-mcard.amber small { color: var(--warn); }
/* a file in a thread: PDF tile, name (three lines at most), details, then Preview */
.sp-mfile { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: start; width: 320px; max-width: 100%; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #ececef; font-size: 13.5px; font-weight: 600; }
.sp-mfile > i { grid-row: 1 / span 2; width: 40px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: #fef2f2; color: #dc2626; font-size: 24px; }
.sp-tinput { display: flex; justify-content: space-between; align-items: center; margin: 12px 18px 16px; padding: 10px 14px; border-radius: 12px; border: 1px solid #e4e4e7; color: #999; font-size: 14px; }
.arrive { animation: arrive .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 1300px) { .sp-msgs { grid-template-columns: minmax(0, 1fr); } .sp-convos { display: none; } }
.sp-mfile { cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .2s; }
.sp-mfile:hover { border-color: var(--text-main); }
.sp-mfile > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-mfile b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.sp-mfile small { font-weight: 400; color: #777; font-size: 12px; line-height: 1.35; }
.sp-mfile em { grid-column: 2; display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12.5px; color: var(--violet); white-space: nowrap; }
.sp-mfile em i { font-size: 15px; }

/* ---- agent journey: Kevin's dashboard pages and answer cards ---- */
.sp-dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sp-dash-head .sp-btn { flex: none; padding: 10px 16px; display: inline-flex; align-items: center; gap: 6px; }
.sp-invite { display: flex; align-items: center; gap: 16px; margin: 16px 0; padding: 16px 18px; border-radius: 14px; border: 1px solid #ececef; transition: box-shadow .5s, border-color .5s; }
.sp-invite > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: #666; }
.sp-invite b { color: var(--text-main); font-size: 15px; }
.sp-link { font-weight: 600; color: var(--violet); }
.sp-qr { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; background: #f3f3f5; font-size: 44px; flex: none; }
.sp-invite-n { display: flex; flex-direction: column; align-items: center; padding-left: 16px; border-left: 1px solid #ececef; font-size: 12px; color: #666; }
.sp-invite-n b { font-size: 28px; }
.f-invite .sp-invite { border-color: var(--primary-green); box-shadow: 0 0 0 2px var(--primary-green); }
.sp-blist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-blist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #ececef; transition: opacity .5s, box-shadow .5s, border-color .5s; }
.sp-blist .sp-av { width: 38px; height: 38px; margin: 0; font-size: 13px; flex: none; }
.sp-blist li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; }
.sp-blist small { flex-basis: 100%; color: #666; font-size: 12.5px; }
.sp-stage { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f3f3f5; color: #444; }
.sp-new { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--primary-green); color: #111; }
.sp-needs { display: none; font-style: normal; font-size: 12px; font-weight: 600; color: #b45309; align-items: center; gap: 4px; }
.f-today .sp-blist li.today { border-color: var(--primary-green); box-shadow: 0 0 0 2px var(--primary-green); }
.f-today .sp-blist li.today .sp-needs { display: inline-flex; }
.f-today .sp-blist li:not(.today) { opacity: .45; }
.sp-client-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.sp-client-head h2 { margin: 0; } .sp-client-head .sp-av { margin: 0; width: 52px; height: 52px; font-size: 18px; }
.sp-client .sp-rows b { min-width: 52px; }
.sp-inbox .sp-convo .sp-needs { display: inline-flex; }
.sp-bot { display: inline-flex; align-items: center; gap: 4px; color: var(--violet) !important; font-weight: 600; }
.f-back .sp-convo.on { box-shadow: 0 0 0 2px var(--primary-green); }
.sp-inbox .sp-mt i { color: var(--violet); }
.dm-invite { display: flex; align-items: center; gap: 12px; }
.dm-invite > div { display: flex; flex-direction: column; gap: 2px; }
.dm-qr { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #f3f3f5; font-size: 34px; flex: none; }
.dm-invite-msg { margin: 12px 0; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #f3f3f5; font-size: 14px; line-height: 1.45; }
.dm-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dm-people li { display: flex; gap: 12px; align-items: flex-start; }
.dm-people li + li { padding-top: 12px; border-top: 1px solid #f1f1f1; }
.dm-people .dm-initials { width: 40px; height: 40px; flex: none; font-size: 14px; }
.dm-people div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dm-people .dm-who { flex-basis: 100%; }

/* ---- BRA: negotiation tiers, Authentisign record, locked chat, Kevin's agent app ---- */
.dm-tiers { display: flex; flex-direction: column; gap: 8px; }
.dm-tier { padding: 10px 12px; border-radius: 12px; border: 1px solid #ececef; display: flex; flex-direction: column; gap: 4px; }
.dm-tier.rec { border-color: #fdba74; background: #fff7ed; }
.dm-tier > div { display: flex; align-items: center; gap: 8px; } .dm-tier > div b { margin-left: auto; font-size: 18px; }
.dm-offer { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--primary-green); }
.dm-offer > i { font-size: 22px; } .dm-offer div { display: flex; flex-direction: column; } .dm-offer .dm-who { color: #333; }
.dm-sign-head { display: flex; gap: 10px; align-items: center; } .dm-sign-head > i { font-size: 26px; color: var(--violet); }
.dm-sign-head div { display: flex; flex-direction: column; }
.dm-sign { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dm-sign li { display: flex; gap: 10px; align-items: flex-start; } .dm-sign li > i { color: var(--money); font-size: 20px; }
.dm-sign li div { display: flex; flex-direction: column; }
.pg-unsigned em { display: block; min-height: 26px; }
.sp-tinput .sp-lock { display: none; } .sp-tinput.locked .sp-lock { display: inline-flex; align-items: center; gap: 6px; } .sp-tinput.locked .sp-open { display: none; }
.sp-tinput.locked { color: #92400e; background: #fffbeb; }
.site:has(.sp-agentapp) .site-nav { display: none; }
.site-page:has(.sp-agentapp) { padding: 0; }
.sp-agentapp { background: #f4f4f5; min-height: calc(100vh - 230px); }
.sp-aa-nav { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: #111; color: #fff; font-size: 14px; }
.sp-aa-nav > span:first-of-type { padding: 2px 8px; border-radius: 999px; background: var(--primary-green); color: #111; font-size: 11px; font-weight: 700; }
.sp-aa-nav em { font-style: normal; color: #bbb; margin-left: 14px; } .sp-aa-nav em:first-of-type { margin-left: auto; color: #fff; }
.sp-aa-me { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-green); color: #111; font-weight: 700; font-size: 12px; margin-left: 14px; }
.sp-aa-body { position: relative; padding: 18px; }
.sp-aa-thread { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fff; font-size: 14px; }
.sp-aa-thread small { color: #777; }
.sp-aa-pill { align-self: flex-start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 600; }
.sp-aa-card { display: none; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid #ececef; font-weight: 600; }
.sp-aa-wait { margin-left: auto; font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--primary-green); }
.f-sent .sp-aa-card { display: flex; }
.sp-bra { position: relative; margin-top: 14px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .12); overflow: hidden; }
.sp-bra header { display: flex; justify-content: space-between; gap: 12px; } .sp-bra header div { display: flex; flex-direction: column; gap: 2px; }
.sp-bra header b { font-size: 17px; } .sp-bra header small { color: #666; font-size: 12.5px; }
.sp-zf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; padding: 8px 12px; border-radius: 10px; background: #f3f8d8; font-size: 13px; font-weight: 600; }
.sp-zf em { font-style: normal; font-weight: 500; color: var(--money); margin-left: auto; }
.sp-bra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sp-bra fieldset { margin: 0; padding: 10px; border: 1px solid #ececef; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-bra legend { padding: 0 4px; font-size: 11px; font-weight: 600; color: #888; }
.sp-bra label { display: flex; flex-direction: column; font-size: 11px; color: #777; }
.sp-bra label i { font-style: normal; font-size: 13px; color: var(--text-main); padding: 5px 8px; border-radius: 8px; background: #f7f7f8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-bra footer { display: flex; justify-content: flex-end; margin-top: 12px; } .sp-bra footer .sp-btn { flex: none; padding: 10px 22px; }
.sp-as { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; background: rgba(255, 255, 255, .97); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .5s; }
.f-sent .sp-as { opacity: 1; }
.sp-as-head { display: flex; align-items: center; gap: 8px; } .sp-as-head i { font-size: 26px; color: var(--violet); } .sp-as-head small { color: #777; }
.sp-as p { margin: 0; font-size: 18px; font-weight: 700; }
.sp-as ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.sp-as li { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0; } .sp-as li i { color: var(--money); font-size: 18px; }
.f-sent .sp-as li { animation: as-in .4s ease forwards; animation-delay: calc(.5s + var(--i) * .55s); }
@keyframes as-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sp-as > small { max-width: 380px; color: #666; }
@media (prefers-reduced-motion: reduce) { .f-sent .sp-as li { animation: none; opacity: 1; } }
.sp-invite-send { flex: none; padding: 9px 16px; }
