/*
  Latte marketing site (v3: product-led)
  Design read: B2B SaaS landing for fundraising directors. The product itself is the visual:
  real Latte threads and approval cards rebuilt as live, animated HTML (not screenshots), with the
  Latte mascot as the recurring character. Organized nav with dividers, alternating feature panels,
  minimal copy: one heading and one line per section. Monochrome page; the mascot is the color.
  Dials: DESIGN_VARIANCE 6 / MOTION_INTENSITY 4 / VISUAL_DENSITY 3
  Motion: transform/opacity only, ease-out curves, all gated by prefers-reduced-motion.
*/

/* ---------- Fonts ---------- */
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #4a4a4a;
  --ink-3: #6a6a6a;
  --ink-4: #9a9a9a;
  --line: #e6e6e6;
  --line-strong: #cfcfcf;
  --display: "Poppins", "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-pill: 999px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 9vw, 120px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 160ms;
  --dur: 220ms;
  --nav-h: 64px;
  /* product UI (mirrors the app's Tailwind palette, kept monochrome) */
  --p-line: #e5e7eb;
  --p-line-2: #f3f4f6;
  --p-head: #f9fafb;
  --p-muted: #9ca3af;
  --p-text-2: #6b7280;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.measure { max-width: 60ch; }
.sub { color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; }
.small { font-size: 14px; }
.center { text-align: center; justify-items: center; }
.stack { display: grid; gap: 18px; }
.note { color: var(--ink-3); font-size: 14px; }
.mt { margin-top: 18px; }

.kicker { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); color: var(--ink); margin-bottom: 18px; }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.3vw, 44px); line-height: 1.18; letter-spacing: -0.02em; text-wrap: pretty; max-width: 24ch; }
.statement.wide { max-width: 34ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--radius-pill); font-family: var(--display); font-weight: 500; font-size: 15px; white-space: nowrap; border: 1px solid var(--ink); background: var(--ink); color: #fff; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.btn:active { transform: scale(0.97); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #2a2a2a; border-color: #2a2a2a; }
  .btn.secondary:hover { background: var(--surface); border-color: var(--ink); }
}
.pill-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--ink); transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.pill-link svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .pill-link:hover { border-color: var(--ink); background: var(--bg-2); } }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover { border-color: var(--ink); } }

/* ---------- Nav (organized: divider-separated links, one black pill) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background-color var(--dur) ease, border-color var(--dur) ease; }
.nav.is-scrolled { background: #fff; border-bottom-color: var(--line); }
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.js .nav-links > .btn { opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); }
.js .nav.is-scrolled .nav-links > .btn { opacity: 1; transform: none; pointer-events: auto; }
.nav .navbar { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: block; }
.wordmark img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-size: 14px; font-weight: 500; }
.nav-links .links { display: flex; align-items: center; }
.nav-links .links a { color: var(--ink-2); padding: 6px 16px; border-right: 1px solid var(--line-strong); line-height: 1; transition: color var(--dur-fast) ease; }
.nav-links .links a:last-child { border-right: 0; }
.nav-links .links a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav-links .links a:hover { color: var(--ink); } }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 50%; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); -webkit-tap-highlight-color: transparent; transition: background-color 240ms ease, border-color 240ms ease, transform 240ms var(--ease-out); }
.nav-toggle:active { transform: scale(.94); }
.nav-toggle .bars { position: relative; display: block; width: 17px; height: 11px; }
.nav-toggle .bars i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 420ms var(--ease-out), opacity 160ms ease; }
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 50%; margin-top: -.75px; }
.nav-toggle .bars i:nth-child(3) { bottom: 0; }
.nav[data-open="true"] .nav-toggle { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav[data-open="true"] .nav-toggle .bars i:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.nav[data-open="true"] .nav-toggle .bars i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav[data-open="true"] .nav-toggle .bars i:nth-child(3) { transform: translateY(-4.75px) rotate(-45deg); }
.nav-scrim { display: none; }

@media (max-width: 860px) {
  .nav .navbar { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav[data-open="true"] { background: #fff; }

  /* The panel drops from the button it came out of, and the rows follow it in. */
  .nav-links {
    position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 6px);
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    padding: 10px 0 14px; box-shadow: 0 2px 4px rgba(17,17,17,.03), 0 26px 50px -28px rgba(17,17,17,.5);
    transform-origin: top right; margin-left: auto; width: min(100%, 380px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px) scale(.96);
    transition: opacity 160ms ease, transform 260ms var(--ease-out), visibility 0s linear 260ms;
  }
  .nav[data-open="true"] .nav-links {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity 180ms ease, transform 460ms var(--ease-out), visibility 0s;
  }
  .nav-links .links { flex-direction: column; align-items: stretch; }
  .nav-links .links a { border-right: 0; padding: 13px 22px; border-radius: 12px; margin-inline: 8px; }
  .nav-links .btn, .js .nav-links > .btn { margin: 10px 22px 2px; }
  .nav-links .links a:active { background: var(--bg-2); }
  .nav-links .links a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }

  .js .nav-links .links a, .js .nav-links > .btn {
    opacity: 0; transform: translateY(-7px); pointer-events: none;
    transition: opacity 200ms ease, transform 340ms var(--ease-out);
  }
  .js .nav[data-open="true"] .nav-links .links a,
  .js .nav[data-open="true"] .nav-links > .btn { opacity: 1; transform: none; pointer-events: auto; }
  .js .nav[data-open="true"] .nav-links .links a:nth-child(1) { transition-delay: 40ms; }
  .js .nav[data-open="true"] .nav-links .links a:nth-child(2) { transition-delay: 80ms; }
  .js .nav[data-open="true"] .nav-links .links a:nth-child(3) { transition-delay: 120ms; }
  .js .nav[data-open="true"] .nav-links .links a:nth-child(4) { transition-delay: 160ms; }
  .js .nav[data-open="true"] .nav-links > .btn { transition-delay: 200ms; }

  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: -1;
    background: rgba(17,17,17,.24); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 0s linear 260ms;
  }
  .nav[data-open="true"] .nav-scrim { opacity: 1; visibility: visible; transition: opacity 260ms ease, visibility 0s; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links, .nav-scrim, .nav-toggle, .nav-toggle .bars i,
  .js .nav-links .links a, .js .nav-links > .btn { transition-duration: 1ms !important; transition-delay: 0s !important; }
}


.hero .eyebrow { display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Deployment stages (onboarding) ---------- */
.step-label { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.step-label b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.feature .copy .step-label { margin-bottom: -4px; }
.who-lead { margin-top: 34px; text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.who-lead + .who { margin-top: 14px; }

/* ---------- Sections ---------- */
section { padding-block: var(--section); }
.anchor { display: block; position: relative; top: calc(-1 * var(--nav-h) - 8px); visibility: hidden; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head .sub { max-width: 52ch; }
.section-head.center .sub { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 7vw, 88px) 24px; text-align: center; }
.hero .container { display: grid; justify-items: center; gap: 18px; min-width: 0; }
/* Grid items default to min-width:auto, which lets a wide bubble or card push the
   whole stage past the viewport on a phone. */
.hero .container > * { min-width: 0; max-width: 100%; }
.hero h1 { max-width: 18ch; }
.hero .sub { max-width: 48ch; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.hero .stage { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- Product window (real Latte thread, animated) ---------- */
.stage { position: relative; width: min(920px, 100%); max-width: 100%; min-width: 0; }
.window { position: relative; z-index: 2; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 40px 80px -40px rgba(17,17,17,.4); display: grid; grid-template-rows: auto 1fr auto; height: 540px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.window > * { min-width: 0; }
.window .titlebar { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--p-line); font-size: 13.5px; }
.window .titlebar .dots { display: flex; gap: 6px; margin-right: 6px; }
.window .titlebar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--p-line); }
.window .titlebar svg { width: 15px; height: 15px; color: var(--p-muted); }
.window .titlebar .meta { margin-left: auto; color: var(--p-muted); font-size: 12px; }
.thread { overflow: hidden; min-width: 0; padding: 22px 22px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; scroll-behavior: smooth; }
.thread > * { flex: none; max-width: 100%; }
.thread > .pcard, .thread > .swap, .thread > .drop { width: 100%; }
.composer { border-top: 1px solid var(--p-line); padding: 12px 16px; display: grid; gap: 10px; }
/* min-width:auto on grid/flex children is the classic phone blowout; opt out everywhere it matters. */
.composer > *, .panel > *, .feature > *, .scene > *, .pcard > *, .dash-body > *, .ask > *, .badges > *, .badge-tile > * { min-width: 0; }
.composer .box > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .box { display: flex; align-items: center; gap: 12px; background: var(--p-head); border: 1px solid var(--p-line); border-radius: 12px; padding: 10px 12px 10px 16px; color: var(--p-muted); font-size: 13.5px; }
.composer .box .send { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; flex: none; }
.composer .box .send svg { width: 14px; height: 14px; stroke: #fff; }
.composer .apps { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--p-muted); flex-wrap: wrap; }
.app-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--p-line); border-radius: 8px; background: #fff; }
.app-chip img { height: 12px; width: auto; max-width: 74px; filter: grayscale(1); }

/* messages */
.msg { max-width: min(560px, 100%); }
.msg.user { align-self: flex-end; background: var(--p-line-2); border-radius: 16px 16px 6px 16px; padding: 10px 14px; max-width: min(420px, 100%); }
.msg.ai { color: #374151; }
.msg.ai b { color: var(--ink); font-weight: 600; }
.msg.sys { align-self: center; font-size: 12px; color: var(--p-muted); background: var(--p-head); padding: 4px 12px; border-radius: 999px; }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--p-muted); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: 150ms; }
.typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* product cards (rebuilt from the app) */
.pcard { border: 1px solid var(--p-line); border-radius: 10px; overflow: hidden; background: #fff; font-size: 13.5px; text-align: left; }
.pcard .head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--p-head); border-bottom: 1px solid var(--p-line); }
.pcard .head svg { width: 15px; height: 15px; color: var(--p-muted); flex: none; }
.pcard .head .m { color: var(--p-muted); font-size: 12px; }
.pcard .head .r { margin-left: auto; color: var(--p-muted); font-size: 12px; white-space: nowrap; }
.pcard .row { display: grid; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--p-line-2); }
.pcard .row:last-child { border-bottom: 0; }
.pcard .row.hd { color: var(--p-muted); font-size: 12px; padding-block: 7px; }
.pcard .row .k { color: var(--p-text-2); }
.pcard .row .dim { color: var(--p-muted); text-decoration: line-through; }
.pcard .row .id { color: var(--p-muted); font-size: 11.5px; }
.pcard .row .arrow { color: #d1d5db; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--p-line-2); font-size: 12px; color: var(--p-muted); }
.pcard .foot > :first-child { flex: 1 1 auto; min-width: 0; }
.pcard .foot > .btns { flex: 0 0 auto; }
.pcard .body .btns { flex-wrap: wrap; }
@media (max-width: 560px) {
  /* Two buttons and a note will not share one line on a phone. */
  .pcard .foot { flex-wrap: wrap; row-gap: 10px; }
  .pcard .foot > :first-child { flex: 1 1 100%; }
  .pcard .foot > .btns { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; }
}
.pcard .body { padding: 12px 14px; display: grid; gap: 10px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--p-line-2); color: var(--p-text-2); font-size: 11.5px; white-space: nowrap; }
.tag.solid { background: var(--ink); color: #fff; }
.tag.outline { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.pbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--p-line); background: #fff; color: var(--p-text-2); font-size: 13px; font-family: var(--font); white-space: nowrap; transition: transform var(--dur-fast) var(--ease-out); }
.pbtn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.pbtn svg { width: 13px; height: 13px; }
.pbtn.pressed { transform: scale(0.94); }
.btns { display: flex; gap: 8px; }
.bar { height: 4px; background: var(--p-line); border-radius: 999px; overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--ink); border-radius: 999px; transition: width 900ms var(--ease-out); }
.score { display: flex; align-items: center; gap: 6px; color: var(--p-text-2); font-size: 12px; }
.score .bar { width: 40px; flex: none; }
.result { border: 1px solid var(--ink); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; background: #fff; }
.result .t { display: flex; align-items: center; gap: 8px; }
.result .t svg { width: 15px; height: 15px; }
.result .s { color: var(--p-muted); font-size: 12px; }
.ok { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: #fff; }
.ok svg { width: 9px; height: 9px; }

/* card grid variants */
.pcard.tbl .row { grid-template-columns: 1.3fr 1fr 0.9fr auto; }
.pcard.cmp .row { grid-template-columns: 58px 1fr 1fr auto; font-size: 12.5px; }
.pcard.cmp .row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .head > span:first-of-type { white-space: nowrap; }
.pcard .row.two { grid-template-columns: 1fr auto; }
.pcard .row .id { display: block; }
.pcard.fc .row { grid-template-columns: 1.1fr 0.6fr 1.7fr; font-size: 12.5px; }
.pcard.fc .row .dim { white-space: nowrap; }
.phone .call .s { display: block; }
@media (max-width: 640px) { .pcard.tbl .row { grid-template-columns: 1.3fr 1fr auto; } .pcard.tbl .row > :nth-child(3) { display: none; } .pcard.fc .row { grid-template-columns: 1fr 1.6fr; } .pcard.fc .row > :nth-child(2) { display: none; } }

/* timeline card */
.tl { display: grid; gap: 0; }
.tl .ev { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: start; position: relative; padding-bottom: 12px; }
.tl .ev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin: 6px 0 0 3px; }
.tl .ev:not(:last-child)::after { content: ""; position: absolute; left: 6.5px; top: 18px; bottom: 0; width: 1px; background: var(--p-line); }
.tl .ev.light::before { background: #fff; border: 1.5px solid var(--ink); width: 6px; height: 6px; }
.tl .ev .d { color: var(--p-muted); font-size: 12px; white-space: nowrap; }

/* scene steps (JS reveals them in order; without JS everything shows in its final state) */
/* .static scenes (feature panels) keep a constant height: steps are laid out from the start and fade in */
.js .scene-run.static [data-step], .js .scene-run.static .pcard [data-row], .js .scene-run.static .tl .ev[data-row] { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.js .scene-run.static [data-step].on, .js .scene-run.static .pcard [data-row].on, .js .scene-run.static .tl .ev[data-row].on { opacity: 1; transform: none; }
.js .scene-run.static .typing[data-step] { display: inline-flex; }
.js .scene-run.static .typing[data-step].gone { opacity: 0; }
.scene.static .swap { display: grid; }
.scene.static .swap > * { grid-area: 1 / 1; }
/* The confirmation fills the footprint the card was holding, so nothing resizes and
   no void opens up underneath a one-line receipt. */
.scene.static .swap .approved { display: grid; opacity: 0; visibility: hidden; align-self: center; width: 100%; min-height: min(100%, 250px); align-content: center; justify-items: center; text-align: center; gap: 10px; padding: 26px 24px; }
.scene.static .swap .approved .t { flex-direction: column; gap: 13px; font-size: 15.5px; color: #000; }
.scene.static .swap .approved .t .ok { width: 40px; height: 40px; }
.scene.static .swap .approved .t .ok svg { width: 19px; height: 19px; }
.scene.static .swap .approved .s { max-width: 40ch; font-size: 12.5px; }
.scene.static .swap.done .pending { display: block; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s 200ms; }
.scene.static .swap.done .approved { opacity: 1; visibility: visible; animation: pop 420ms var(--ease-out) both; }
.scene.static .swap:not(.done) .pending { opacity: 1; }
.js .scene-run:not(.static) [data-step] { display: none; }
.js .scene-run:not(.static) [data-step].on { display: block; animation: stepin 420ms var(--ease-out) both; }
.js .scene-run:not(.static) .typing[data-step].on { display: inline-flex; }
.js .scene-run:not(.static) [data-step].gone, .js .scene-run:not(.static) .typing[data-step].gone { display: none; }
.js .scene-run:not(.static) .pcard [data-row] { display: none; }
.js .scene-run:not(.static) .pcard [data-row].on { display: grid; animation: stepin 360ms var(--ease-out) both; }
.js .scene-run:not(.static) .tl .ev[data-row] { display: none; }
.js .scene-run:not(.static) .tl .ev[data-row].on { display: grid; animation: stepin 360ms var(--ease-out) both; }
@keyframes stepin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.swap .approved { display: none; }
.swap.done .pending, .js .scene-run .swap.done .pending[data-step] { display: none; }
.swap.done .approved { display: block; animation: pop 420ms var(--ease-out) both; }
.scene-run:not(.static) .typing:not(.on) { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.bar i[data-w="96"] { --w: 96%; } .bar i[data-w="94"] { --w: 94%; } .bar i[data-w="92"] { --w: 92%; } .bar i[data-w="91"] { --w: 91%; } .bar i[data-w="87"] { --w: 87%; } .bar i[data-w="83"] { --w: 83%; }
.js .scene-run .bar i { width: 0; }
.js .scene-run .bar i.on { width: var(--w); }

/* mascot */
.mascot { position: absolute; z-index: 3; pointer-events: none; user-select: none; }
.mascot img { width: 100%; height: auto; }
.stage .mascot { right: -74px; bottom: -22px; width: clamp(140px, 20vw, 230px); animation: bob 5s var(--ease-in-out) infinite; }
.stage .mascot.peek { z-index: 1; right: 6%; bottom: auto; top: -34px; width: clamp(120px, 15vw, 170px); animation: peek 6s var(--ease-in-out) infinite; }
.stage .mascot.peek.left { right: auto; left: 5%; }
.stage .mascot.fly { z-index: 1; right: -130px; top: 30%; bottom: auto; width: clamp(180px, 22vw, 260px); animation: fly 7s var(--ease-in-out) infinite; }
@keyframes peek { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes fly { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6px, -12px) rotate(2deg); } }
.hero .stage { padding-top: 70px; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 960px) { .stage .mascot { right: -30px; width: 130px; bottom: -14px; } .stage .mascot.peek { width: 110px; top: -14px; } .stage .mascot.fly { width: 150px; right: -40px; } }
@media (max-width: 640px) { .window { height: 480px; font-size: 13px; } .thread { padding: 16px 14px 8px; } .composer .apps { display: none; } .stage .mascot:not(.peek):not(.sit) { display: none; } .hero .stage { padding-top: 56px; } }

/* ---------- Logo wall (marquee) ---------- */
.wall { padding-block: clamp(36px, 5vw, 56px); }
.wall-label { text-align: center; color: var(--ink-3); font-size: 14px; margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: clamp(48px, 6vw, 88px); width: max-content; align-items: center; animation: marquee 48s linear infinite; }
.marquee-track img { height: 40px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: opacity var(--dur) ease; }
@media (hover: hover) and (pointer: fine) { .marquee-track img:hover { filter: none; opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .marquee-track img { height: 30px; max-width: 130px; } }

/* ---------- Floating cards: "just ask" ---------- */
.field { position: relative; height: 700px; border-radius: 24px; overflow: hidden; background:
  radial-gradient(ellipse at 50% 50%, transparent 0 0, transparent 99%),
  repeating-radial-gradient(ellipse 60% 50% at 50% 50%, transparent 0 88px, var(--line) 88px 89px);
}
.field .ask { position: absolute; width: 300px; display: grid; gap: 10px; animation: drift 7s var(--ease-in-out) infinite; }
.field .ask:nth-child(2n) { animation-duration: 8.5s; animation-delay: -2s; }
.field .ask:nth-child(3n) { animation-duration: 9.5s; animation-delay: -4s; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.field .q { justify-self: start; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; box-shadow: 0 8px 20px -16px rgba(17,17,17,.4); }
.field .q::before { content: "\201C"; color: var(--ink-3); }
.field .q::after { content: "\201D"; color: var(--ink-3); }
.field .pcard { box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 24px 50px -30px rgba(17,17,17,.35); }
.field .pcard .row { padding-block: 7px; }
.field .mascot { left: 50%; top: 50%; width: clamp(150px, 16vw, 200px); transform: translate(-50%, -52%); }
.field .a1 { left: 3%; top: 6%; width: 336px; }
.field .a2 { right: 4%; top: 4%; }
.field .a3 { left: 3%; top: 48%; }
.field .a4 { right: 3%; top: 44%; }
.field .a5 { left: 33%; bottom: 3%; width: 340px; }
.field .a6 { left: 31%; top: 4%; width: 250px; }
@media (max-width: 1080px) {
  .field { height: auto; padding: 24px; background: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; overflow: visible; }
  .field .ask { position: static; width: auto; animation: none; }
  .field .mascot { display: none; }
}
@media (max-width: 640px) { .field { grid-template-columns: 1fr; padding: 0; } }

/* ---------- Integrations orbit ---------- */
/* Room for the 600px outer ring plus the 44px pills that straddle it, top and bottom. */
.orbit-wrap { position: relative; height: 672px; display: grid; place-items: center; overflow: hidden; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit.r1 { width: 380px; height: 380px; }
.orbit.r2 { width: 600px; height: 600px; }
.orbit .ring { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.orbit.r2 .ring { animation-duration: 120s; animation-direction: reverse; }
.orbit .ring > li { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)); }
.orbit .ring > li > span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); animation: unspin 80s linear infinite; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 24px -18px rgba(17,17,17,.45); }
.orbit.r2 .ring > li > span { animation-duration: 120s; animation-direction: reverse; }
.orbit .ring img { height: 20px; width: auto; max-width: 96px; filter: grayscale(1); opacity: .85; }
.orbit .ring img.tall { height: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); } }
.orbit-wrap .mascot { position: relative; width: clamp(150px, 16vw, 210px); animation: bob 5s var(--ease-in-out) infinite; }
.orbit-wrap .mascot.bare { position: relative; left: auto; top: auto; }
.orbit-note { text-align: center; color: var(--ink-3); font-size: 15px; margin-top: 8px; }
.orbit-note a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-strong); }
.orbit-list { display: none; }
@media (max-width: 760px) {
  .orbit-wrap { height: auto; display: grid; gap: 20px; overflow: visible; }
  .orbit { display: none; }
  .orbit-wrap .mascot { margin: 0 auto; }
  .orbit-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .orbit-list li { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .orbit-list img { height: 18px; width: auto; max-width: 90px; filter: grayscale(1); opacity: .85; }
}

/* ---------- Logo grid (segment pages) ---------- */
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logo-cell { width: 176px; height: 92px; display: grid; place-items: center; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.logo-cell img { max-height: 34px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: opacity var(--dur) ease; }
.logo-cell span { color: var(--ink-3); font-size: 13px; text-align: center; line-height: 1.2; }
@media (hover: hover) and (pointer: fine) { .logo-cell:hover img { filter: none; opacity: 1; } }
@media (max-width: 600px) { .logo-cell { width: calc(50% - 6px); height: 76px; padding: 16px; } .logo-cell img { max-height: 26px; } }

/* ---------- Alternating feature sections ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.flip .panel { order: 2; }
.feature .copy { display: grid; gap: 14px; justify-items: start; }
.feature .copy .sub { max-width: 38ch; }
.feature .copy .pill-link { margin-top: 6px; }
.panel { position: relative; background: var(--bg-2); border-radius: 24px; padding: clamp(24px, 4vw, 48px); min-height: 420px; display: grid; place-items: center; overflow: hidden; }
.panel > .pcard, .panel > .scene { width: min(520px, 100%); }
.panel .pcard { box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 30px 60px -36px rgba(17,17,17,.4); }
.scene { display: grid; gap: 12px; }
.feature + .feature { margin-top: var(--section); }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } .feature.flip .panel { order: 0; } .panel { min-height: 0; } }

/* phone / channels scene */
.channels { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.channels li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-2); background: var(--surface); }
.channels li.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.channels svg { width: 13px; height: 13px; }
.phone { width: min(360px, 100%); margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 30px 60px -36px rgba(17,17,17,.4); font-size: 13.5px; }
.phone .from { text-align: center; color: var(--ink-3); font-size: 12px; }
.phone .b { max-width: 84%; padding: 9px 12px; border-radius: 16px; line-height: 1.4; }
.phone .b.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.phone .b.them { justify-self: start; background: var(--p-line-2); border-bottom-left-radius: 5px; }
.phone .call { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: 14px; padding: 10px 12px; }
.phone .call .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; animation: ringing 1.2s var(--ease-in-out) infinite; }
.phone .call .ic svg { width: 15px; height: 15px; stroke: #fff; }
.phone .call .s { color: var(--ink-3); font-size: 12px; }
@keyframes ringing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }

/* audit scene */
.audit .row { grid-template-columns: 62px 1fr auto; }
.audit .row .who { color: var(--ink); }
.audit .row .what { color: var(--p-text-2); display: block; font-size: 12.5px; }
.audit .row .t { color: var(--p-muted); font-size: 12px; }
.audit .rb { color: var(--ink); font-size: 12px; border-bottom: 1px solid var(--line-strong); }
.conf { display: flex; align-items: center; gap: 10px; color: var(--p-muted); font-size: 12px; padding: 10px 14px; border-top: 1px solid var(--p-line-2); }

/* ---------- Statement (segment pages) ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.fact { display: grid; gap: 8px; }
.fact p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin-inline: auto; }
.option { display: grid; gap: 12px; align-content: start; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.option p { color: var(--ink-2); font-size: 16px; }
.option .arrow-link { justify-self: start; margin-top: 4px; }
@media (max-width: 700px) { .options { grid-template-columns: 1fr; } }
.steps { display: grid; max-width: 820px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; font-family: var(--display); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 16px; }

/* ---------- CTA card (contained, like a poster) ---------- */
.grab { padding-block: 0 var(--section); }
.cta-card { position: relative; overflow: hidden; background: #1a1a1a; color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 88px); min-height: 400px; display: grid; align-content: center; gap: 16px; justify-items: start; }
.cta-card h2 { font-size: clamp(34px, 4.4vw, 58px); max-width: 12ch; color: #fff; }
.cta-card .sub { color: rgba(255,255,255,.72); max-width: 36ch; }
.cta-card .btn.light { background: #fff; color: var(--ink); border-color: #fff; margin-top: 8px; }
.cta-card .fine { color: rgba(255,255,255,.55); font-size: 13.5px; }
.cta-card .mascot { right: clamp(-30px, 0vw, 20px); bottom: -14px; width: clamp(180px, 26vw, 340px); }
@media (hover: hover) and (pointer: fine) { .cta-card .btn.light:hover { background: #ededed; border-color: #ededed; } }
@media (max-width: 720px) { .cta-card { min-height: 0; padding-bottom: 200px; } .cta-card .mascot { width: 200px; right: -30px; bottom: -20px; } }

/* ---------- Footer (light, multi-column) ---------- */
footer { background: var(--bg); color: var(--ink); padding: 56px 0 40px; font-size: 14px; border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; }
footer .brand { display: grid; gap: 12px; align-content: start; }
footer .brand img { height: 26px; width: auto; }
footer .tagline { font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--ink-2); }
footer h4 { margin: 0 0 14px; font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--ink-3); }
footer ul { display: grid; gap: 10px; }
footer a { color: var(--ink); transition: color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: var(--ink-3); } }
footer .bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero .container > * { animation: rise 700ms var(--ease-out) both; }
.hero .container > :nth-child(2) { animation-delay: 60ms; }
.hero .container > :nth-child(3) { animation-delay: 120ms; }
.hero .container > :nth-child(4) { animation-delay: 200ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Logo fallbacks while an asset is missing */
.marquee-track span, .logo-cell span[data-missing-logo] { color: var(--ink-3); font-weight: 500; white-space: nowrap; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero .container > * { animation: none; }
  .mascot, .stage .mascot, .orbit-wrap .mascot, .stage .mascot.peek, .stage .mascot.fly { animation: none; }
  .btn:active, .pbtn.pressed { transform: none; }
  .field .ask { animation: none; }
  .orbit .ring, .orbit .ring > li > span { animation: none; }
  .typing i, .phone .call .ic { animation: none; }
  .js .scene-run [data-step], .js .scene-run .pcard [data-row], .js .scene-run .tl .ev[data-row] { display: block; animation: none; }
  .js .scene-run .pcard [data-row], .js .scene-run .tl .ev[data-row] { display: grid; }
  .js .scene-run .typing[data-step], .typing { display: none; }
  .swap .pending { display: block; }
  .swap .approved { display: none; }
  .js .scene-run .bar i { transition: none; width: var(--w, 0%); }
}

/* ---------- Page-specific ---------- */
.msg.user { justify-self: end; }
.window .titlebar .meta-sep { color: var(--p-muted); }
.window .titlebar .k { color: var(--p-text-2); }
.rec { display: grid; gap: 10px; width: 100%; padding-bottom: 6px; }
.rec-name { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px 0 4px; border-top: 1px solid var(--p-line-2); }
.rec-stats div { display: grid; gap: 2px; }
.rec-stats .k { font-size: 12px; color: var(--p-muted); }
.rec-stats b { font-weight: 500; font-size: 14px; }
.pcard.gifts .row { grid-template-columns: 1.1fr 1.2fr 0.8fr auto; }
@media (max-width: 640px) { .rec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcard.gifts .row { grid-template-columns: 1fr 1fr auto; } .pcard.gifts .row > :nth-child(3) { display: none; } }
.stage-solo { display: grid; place-items: center; padding-top: 8px; }
.stage-solo .mascot { position: relative; right: auto; bottom: auto; width: clamp(200px, 26vw, 300px); animation: bob 5s var(--ease-in-out) infinite; }
@media (max-width: 560px) { .pcard .head .r { overflow: hidden; text-overflow: ellipsis; min-width: 0; } }
@media (max-width: 460px) { .pcard .head .r { display: none; } }
@media (max-width: 640px) { .window .titlebar .meta, .pcard .head .m { display: none; } .window .titlebar > span:not(.dots) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stage-solo .mascot { display: block; width: 180px; } }
@media (prefers-reduced-motion: reduce) { .stage-solo .mascot { animation: none; } }

/* ---------- Tabbed product window ("Just ask") ---------- */
[hidden] { display: none !important; }
.window.tabbed { height: 620px; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.window.tabbed .titlebar { grid-column: 1 / -1; }
.window.tabbed .side { grid-row: 2 / 4; grid-column: 1; border-right: 1px solid var(--p-line); padding: 14px 10px; display: grid; align-content: start; gap: 4px; overflow: hidden; background: var(--p-head); }
.window.tabbed .panes { grid-row: 2; grid-column: 2; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.window.tabbed .panes .thread { min-height: 0; height: auto; }
.window.tabbed .composer { grid-row: 3; grid-column: 2; }
.side-label { font-size: 11.5px; color: var(--p-muted); padding: 2px 8px 6px; }
.sug { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; text-align: left; width: 100%; padding: 10px 10px; border: 0; background: transparent; border-radius: 10px; color: var(--ink); cursor: pointer; font-family: var(--font); transition: background-color var(--dur-fast) ease; }
.sug svg { width: 16px; height: 16px; color: var(--p-muted); margin-top: 1px; }
.sug b { display: block; font-weight: 500; font-size: 13px; line-height: 1.3; }
.sug small { display: block; font-size: 11.5px; line-height: 1.35; color: var(--p-muted); margin-top: 2px; }
.sug[aria-selected="true"] { background: #fff; box-shadow: 0 1px 2px rgba(17,17,17,.06), 0 0 0 1px var(--p-line); }
@media (hover: hover) and (pointer: fine) { .sug:hover { background: #fff; } }
/* A message row in a shared channel: who said it, and which side they are on. */
.pcard .row.note { grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 11px; padding: 11px 14px; }
.pcard .row.note .avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--p-line-2); color: var(--p-text-2); font-size: 11px; letter-spacing: .02em; }
.pcard .row.note .avatar.ink { background: var(--ink); color: #fff; }
.pcard .row.note b { font-weight: 500; }
.pcard .row.note .who2 { color: var(--p-muted); font-size: 12px; }
.pcard .row.note .ts2 { color: var(--p-muted); font-size: 11.5px; margin-left: 2px; }
.pcard .row.note .say { display: block; margin-top: 3px; color: var(--p-text); line-height: 1.5; }

/* Grouped sections inside a digest card */
.pcard .grp { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--p-head); border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line-2); font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--p-muted); }
.pcard .grp .ct { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--p-line-2); color: var(--p-text-2); font-size: 10.5px; letter-spacing: 0; }
.pcard.digest .row { align-items: start; }
.pcard.digest .row .amt { color: var(--p-text-2); font-size: 12.5px; margin-left: 6px; }
.pcard.digest .row .id { margin-top: 2px; line-height: 1.45; }
.pcard.digest .row .id.nx { color: var(--p-text-2); }
.pcard.digest .row .id.nx::before { content: "Next \00b7\00a0"; color: var(--p-muted); }
.pcard .row.three { grid-template-columns: 1.5fr 1fr 1fr; align-items: start; }
.pcard .row .k + .id, .pcard .row > span > .k { display: block; font-size: 11.5px; color: var(--p-muted); }
.pcard.merge .row { grid-template-columns: 100px 1fr auto auto; }
.pcard.triage .row { grid-template-columns: 1fr auto; }
.pcard.screen .row { grid-template-columns: 1.7fr auto 0.9fr 0.9fr; }
.pcard.funders .row { grid-template-columns: 1.9fr auto auto auto; }
.pcard .dimtext { color: #d1d5db; }
.report { gap: 8px; }
.rep-head b { font-weight: 500; }
.rep-head .id { display: block; }
.pcard .body .tl .ev { grid-template-columns: 14px 1fr; }
@media (max-width: 960px) {
  .window.tabbed { height: 640px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .window.tabbed .side { grid-row: 2; grid-column: 1; border-right: 0; border-bottom: 1px solid var(--p-line); display: flex; overflow-x: auto; gap: 6px; padding: 10px 12px; scrollbar-width: none; }
  .window.tabbed .side::-webkit-scrollbar { display: none; }
  .side-label { display: none; }
  .sug { display: inline-flex; align-items: center; gap: 6px; width: auto; flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--p-line); background: #fff; }
  .sug[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
  .sug[aria-selected="true"] svg { color: #fff; }
  .sug small { display: none; }
  .sug b { white-space: nowrap; font-size: 12.5px; }
  .window.tabbed .panes { grid-row: 3; grid-column: 1; }
  .window.tabbed .composer { grid-row: 4; grid-column: 1; }
  .pcard.screen .row { grid-template-columns: 1.4fr auto; } .pcard.screen .row > :nth-child(3), .pcard.screen .row > :nth-child(4) { display: none; }
  .pcard.funders .row { grid-template-columns: 1fr auto; } .pcard.funders .row > :nth-child(2), .pcard.funders .row > :nth-child(3) { display: none; }
  .pcard.merge .row { grid-template-columns: 1fr auto; } .pcard.merge .row > :nth-child(1), .pcard.merge .row > :nth-child(3) { display: none; }
  .pcard .row.three { grid-template-columns: 1fr; }
}
.ask-stage { position: relative; }
.ask-stage .mascot { right: -84px; bottom: -70px; width: clamp(150px, 18vw, 220px); animation: bob 5s var(--ease-in-out) infinite; z-index: 3; }
@media (max-width: 960px) { .ask-stage .mascot { display: none; } }

/* sidebar (labels only) */
.sug { grid-template-columns: 16px 1fr; align-items: center; padding: 9px 10px; }
.sug b { font-size: 13.5px; }
.window.tabbed { grid-template-columns: 220px minmax(0, 1fr); }
/* prospect briefing card */
.pcard.profile .head { align-items: center; gap: 10px; padding: 12px 14px; }
.pcard.profile .head b { font-weight: 500; }
.pcard.profile .head .id { display: block; }
.pcard.profile .head .r { display: inline-flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--p-line-2); color: var(--ink); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.pcard .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--p-line-2); }
.pcard .stats div { display: grid; gap: 2px; }
.pcard .stats .k { font-size: 11.5px; color: var(--p-muted); }
.pcard .stats b { font-weight: 500; font-size: 13.5px; }
.pcard .body + .body { border-top: 1px solid var(--p-line-2); }
.pcard .body.split { grid-template-columns: 150px 1fr; gap: 18px; }
.pcard .body.split .k { margin-top: 6px; }
.pcard .body.split .k:first-child { margin-top: 0; }
.pcard .line { font-size: 13px; }
.pcard .line .tag { margin-left: 4px; vertical-align: middle; }
.gh { display: flex; align-items: flex-end; gap: 5px; height: 64px; padding: 4px 0; }
.gh i { flex: 1; height: 4px; background: var(--ink); border-radius: 3px 3px 0 0; opacity: .85; transition: height 900ms var(--ease-out); }
.gh i:last-child { opacity: 1; }
.gh i[data-h="12"].on { height: 12%; } .gh i[data-h="18"].on { height: 18%; } .gh i[data-h="25"].on { height: 25%; } .gh i[data-h="38"].on { height: 38%; } .gh i[data-h="50"].on { height: 50%; } .gh i[data-h="71"].on { height: 71%; } .gh i[data-h="100"].on { height: 100%; }
@media (max-width: 640px) { .pcard .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcard .body.split { grid-template-columns: 1fr; } }
/* animated cursor for the approval click */
[data-scene] { position: relative; }
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 7; pointer-events: none; opacity: 0; transform: translate(0, 0); transition: transform 700ms var(--ease-in-out), opacity 240ms ease; will-change: transform; }
.cursor.show { opacity: 1; }
.cursor svg { width: 22px; height: 22px !important; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.cursor.click svg { animation: click 220ms var(--ease-out); }
@keyframes click { 50% { transform: scale(.82); } }
@media (prefers-reduced-motion: reduce) { .cursor { display: none; } .gh i.on { transition: none; } }
.pcard .body > .k, .pcard .body .split-k { font-size: 12px; color: var(--p-muted); }
.pcard .body .id { font-size: 11.5px; color: var(--p-muted); }
.pcard .body.split .k { font-size: 12px; color: var(--p-muted); }

/* ---------- Partners: certificate, console, referral track, badges ---------- */
.cert-stage { display: grid; justify-items: center; }

.pcard.console .row { grid-template-columns: 1fr auto; }
.pcard.console .head { align-items: center; gap: 10px; }
.pcard.console .head b { font-weight: 500; }
.pcard.console .head .id { display: block; }
.foot.swap .approved { display: none; }
.foot.swap.done .pending { display: none; }
.foot.swap.done .approved { display: inline-flex; align-items: center; gap: 8px; opacity: 1; visibility: visible; animation: pop 420ms var(--ease-out) both; }
/* In a constant-height scene the two footer states stack in the same cells, so the
   card cannot grow or shrink when it flips and the page never shifts under the cursor. */
.scene.static .foot.swap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.scene.static .foot.swap > .pending:not(.btns), .scene.static .foot.swap > .approved:not(.ok-inline) { grid-area: 1 / 1; display: block; }
.scene.static .foot.swap > .btns.pending, .scene.static .foot.swap > .approved.ok-inline { grid-area: 1 / 2; justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
.scene.static .foot.swap .approved { opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease-out); }
.scene.static .foot.swap .pending { opacity: 1; visibility: visible; transition: opacity 180ms ease; }
.scene.static .foot.swap.done .pending { opacity: 0; visibility: hidden; }
.scene.static .foot.swap.done .approved { opacity: 1; visibility: visible; animation: pop 420ms var(--ease-out) both; }

/* A full product window can stand in for a card inside a feature panel. */
.panel > .window { width: 100%; }
.ok-inline { color: var(--ink); font-size: 13px; }

.posting { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--p-muted); }
.posting .avatar { width: 22px; height: 22px; font-size: 9px; }
.posting b { font-weight: 500; color: var(--ink); }
.posting { white-space: nowrap; overflow: hidden; }
.posting .id { overflow: hidden; text-overflow: ellipsis; }

.track { display: grid; padding: 14px 16px 6px; }
.track li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; position: relative; padding-bottom: 18px; }
.track li .node { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; margin-top: 3px; position: relative; z-index: 1; }
.track li .node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 360ms var(--ease-out); }
.track li.on .node::after { transform: scale(1); }
.track li:not(:last-child)::before { content: ""; position: absolute; left: 6.5px; top: 18px; bottom: 0; width: 1px; background: var(--p-line); }
.track li b { font-weight: 500; display: block; }
.track li .id { display: block; }

.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile-label { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.listing { align-self: center; width: 100%; background: #fff; border: 1px solid var(--p-line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; font-size: 13px; }
.listing-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.listing-head b { font-weight: 500; display: block; }
.listing-head .id { display: block; font-size: 11.5px; color: var(--p-muted); }
.who-lead { margin-top: 34px; text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.who-lead + .who { margin-top: 14px; }
.who { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.who li { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-2); }
@media (max-width: 960px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .badges { grid-template-columns: 1fr; } }
.listing { max-width: 100%; min-width: 0; }
.listing .btns { flex-wrap: wrap; }
.listing-head { min-width: 0; }
.listing-head > span:nth-child(2) { min-width: 0; }
.listing-head .id { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Workflow tabs (outside the product window) ---------- */
.ask { display: grid; gap: 18px; }
.ask > .window.tabbed { width: min(920px, 100%); margin-inline: auto; }
.ask-stage { width: min(920px, 100%); margin-inline: auto; }
.ask-stage .ask { width: 100%; }
@media (min-width: 961px) { .ask-stage { width: 100%; } .ask-stage .mascot { right: calc(50% - 460px - 84px); } }
.workflow-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wtab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-family: var(--display); font-weight: 500; font-size: 14px; cursor: pointer; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.wtab svg { width: 15px; height: 15px; }
.wtab b { font-weight: 500; }
.wtab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .wtab:not([aria-selected="true"]):hover { border-color: var(--ink); color: var(--ink); } }
.window.tabbed { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 560px; }
.window.tabbed .panes { grid-column: 1; }
.window.tabbed .composer { grid-column: 1; }
@media (max-width: 960px) {
  .workflow-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .workflow-tabs::-webkit-scrollbar { display: none; }
  .wtab { flex: none; }
  .window.tabbed { height: 520px; grid-template-rows: auto minmax(0, 1fr) auto; }
  .window.tabbed .panes { grid-row: 2; }
  .window.tabbed .composer { grid-row: 3; }
}

/* ---------- Drag and drop (files into the composer or a drop zone) ---------- */
.dragfile { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; opacity: 0; transition: transform 900ms var(--ease-in-out), opacity 240ms ease; will-change: transform; display: grid; }
.dragfile.show { opacity: 1; }
.dragfile .f { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 12.5px; color: var(--ink); white-space: nowrap; box-shadow: 0 10px 24px -14px rgba(17,17,17,.5); transform: translate(calc(var(--i) * 6px), calc(var(--i) * 6px)) rotate(calc(var(--i) * 2deg)); transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.dragfile .f i { display: grid; width: 16px; height: 16px; color: var(--ink-3); }
.dragfile .f i svg { width: 16px; height: 16px; }
.dragfile.lift .f { box-shadow: 0 20px 36px -16px rgba(17,17,17,.6); transform: translate(calc(var(--i) * 10px), calc(var(--i) * -8px)) rotate(calc(var(--i) * -3deg - 2deg)) scale(1.04); }
.dragfile.drop { opacity: 0; transition: transform 300ms var(--ease-out), opacity 300ms ease; }
.dragfile.drop .f { transform: scale(.9); }
.cursor.grab svg { transform: scale(.88); }
.composer .box { transition: border-color var(--dur) ease, background-color var(--dur) ease, box-shadow var(--dur) ease; }
.composer .box.over { border-style: dashed; border-color: var(--ink); background: #fff; }
.composer .box.dropped { border-color: var(--ink); }
.dropzone { display: flex; align-items: center; justify-content: center; gap: 10px; height: 72px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink-3); font-size: 13.5px; transition: border-color var(--dur) ease, background-color var(--dur) ease; }
.dropzone svg { width: 18px; height: 18px; }
.dropzone.over { border-color: var(--ink); background: var(--p-head); color: var(--ink); }
.dropzone.dropped { border-style: solid; border-color: var(--ink); color: var(--ink); }
.dropzone .dz-done { display: none; }
.dropzone.dropped .dz-idle { display: none; }
.dropzone.dropped .dz-done { display: inline; }
@media (prefers-reduced-motion: reduce) { .dragfile { display: none; } .dropzone .dz-idle { display: none; } .dropzone .dz-done { display: inline; } .dropzone { border-style: solid; border-color: var(--ink); } }

/* ---------- Product palette (the app's Tailwind colors, used only inside product UI) ---------- */
:root { --g50:#f0fdf4; --g200:#bbf7d0; --g500:#22c55e; --g600:#16a34a; --g700:#15803d; --a50:#fffbeb; --a200:#fde68a; --a500:#f59e0b; --a600:#d97706; --b50:#eff6ff; --b100:#dbeafe; --b200:#bfdbfe; --b400:#60a5fa; --b500:#3b82f6; --b600:#2563eb; --b700:#1d4ed8; --p50:#faf5ff; --p500:#a855f7; --p600:#9333ea; --e100:#d1fae5; --e700:#047857; }
.tag.solid { background: var(--g50); color: var(--g600); }
.tag.outline { background: var(--a50); color: var(--a600); border: 0; }
.tag.blue { background: var(--b50); color: var(--b600); }
.tag.amber { background: var(--a50); color: var(--a600); }
.tag.purple { background: var(--p50); color: var(--p600); }
.result { border-color: var(--g200); background: var(--g50); }
.ok { background: var(--g600); }
.bar i { background: var(--g500); }
.bar i[data-w="87"], .bar i[data-w="83"] { background: var(--b500); }
.conf .bar i { background: var(--g500); }
.ic-blue { color: var(--b500) !important; }
.ic-purple { color: var(--p500) !important; }
.ic-amber { color: var(--a500) !important; }
.ic-green { color: var(--g600) !important; }
.k.warn { display: flex; align-items: center; gap: 8px; }
.k.warn svg { width: 14px; height: 14px; flex: none; }
.tl .ev::before { background: var(--g500); }
.tl .ev.light::before { background: #fff; border-color: var(--ink); }
.tl .ev.vol::before { background: var(--b500); border: 0; width: 8px; height: 8px; }
.tl .ev.meet::before { background: #9ca3af; border: 0; width: 8px; height: 8px; }
.tl .ev.event::before { background: var(--p500); border: 0; width: 8px; height: 8px; }
.track li.on .node { border-color: var(--g500); }
.track li .node::after { background: var(--g500); }
.pbtn.primary { background: #000; border-color: #000; }
.typing i { background: #9ca3af; }
.phone .call .ic { background: var(--g600); }
.dropzone.over { border-color: var(--b500); background: var(--b50); color: var(--b700); }
.dropzone.dropped { border-color: var(--g500); color: var(--g700); }
.composer .box.over { border-color: var(--b500); background: var(--b50); }
.gh i { background: var(--b200); }
.gh i:last-child { background: var(--b600); }

/* Prospect profile card (mirrors ScreenProfilesCard) */
.pcard.profile { border-radius: 12px; }
.pcard.profile .pbar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--p-head); border-bottom: 1px solid var(--p-line-2); font-size: 12px; }
.pcard.profile .pbar .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border-radius: 999px; border: 1px solid var(--p-line); background: #fff; color: var(--p-text-2); white-space: nowrap; }
.pcard.profile .pbar .pill.on { background: #000; color: #fff; border-color: #000; }
.pcard.profile .pbar .pill .av { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; }
.pcard.profile .pbar .pill.on .av { background: rgba(255,255,255,.2); color: #fff; }
.pcard.profile .pbar .pill .fit { padding: 0 4px; border-radius: 4px; background: var(--g50); color: var(--g700); }
.pcard.profile .pbar .pill.on .fit { background: rgba(255,255,255,.2); color: #fff; }
.pcard.profile .pbar .pg { margin-left: auto; color: var(--p-muted); font-size: 11px; white-space: nowrap; }
.pcard.profile .hd-band { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--p-line-2); }
.pcard.profile .hd-band .av-lg { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; flex: none; }
.pcard.profile .hd-band .who { flex: 1; min-width: 0; display: block; }
.pcard.profile .hd-band .who b { display: block; font-weight: 400; font-size: 15px; color: #000; }
.pcard.profile .hd-band .who .t { display: block; font-size: 12px; color: var(--p-text-2); margin-top: 2px; }
.pcard.profile .hd-band .who .loc { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--p-muted); margin-top: 2px; }
.pcard.profile .hd-band .who .loc svg { width: 12px; height: 12px; }
.pcard.profile .fitring { display: grid; justify-items: center; gap: 4px; flex: none; }
.pcard.profile .fitring span:first-child { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--g500); color: var(--g700); display: grid; place-items: center; font-size: 14px; }
.pcard.profile .fitring span:last-child { font-size: 10px; color: var(--p-muted); }
.tint-blue { background: var(--b100); color: var(--b700); }
.tint-emerald { background: var(--e100); color: var(--e700); }
.pcard.profile .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 12px 20px; border-bottom: 1px solid var(--p-line-2); font-size: 12px; color: #4b5563; }
.pcard.profile .contact div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pcard.profile .contact div.full { grid-column: 1 / -1; align-items: flex-start; }
.pcard.profile .contact svg { width: 14px; height: 14px; color: var(--p-muted); flex: none; }
.pcard.profile .contact .dim { color: var(--p-muted); text-decoration: none; }
.src { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--p-muted); margin-left: 4px; vertical-align: middle; }
.src i { width: 12px; height: 12px; border-radius: 3px; background: var(--p-line); color: var(--p-text-2); display: grid; place-items: center; font-size: 8px; font-style: normal; line-height: 1; }
.pcard.profile .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--p-line-2); }
.pcard.profile .tiles div { padding: 12px; border-right: 1px solid var(--p-line-2); }
.pcard.profile .tiles div:last-child { border-right: 0; }
.pcard.profile .tiles .k { font-size: 11px; color: var(--p-muted); }
.pcard.profile .tiles b { display: block; font-weight: 400; font-size: 13.5px; color: #000; margin-top: 4px; }
.pcard.profile .giving { padding: 14px 20px; border-bottom: 1px solid var(--p-line-2); }
.pcard.profile .giving .gh-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; color: var(--p-text-2); }
.pcard.profile .giving .gh-head span:last-child { font-size: 11px; color: var(--p-muted); }
.gh2 { display: flex; align-items: flex-end; gap: 8px; height: 104px; }
.gh2 > span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.gh2 > span em { font-style: normal; font-size: 9px; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.gh2 > span:last-child em { color: var(--b700); }
.gh2 > span i { display: block; width: 100%; max-width: 28px; height: 3px; border-radius: 4px 4px 0 0; background: var(--b200); transition: height 900ms var(--ease-out); }
.gh2 > span:last-child i { background: var(--b600); }
.gh2 > span i[data-h="12"].on { height: 12%; } .gh2 > span i[data-h="18"].on { height: 18%; } .gh2 > span i[data-h="25"].on { height: 25%; } .gh2 > span i[data-h="38"].on { height: 38%; } .gh2 > span i[data-h="50"].on { height: 50%; } .gh2 > span i[data-h="71"].on { height: 71%; } .gh2 > span i[data-h="100"].on { height: 100%; }
.gh2-years { display: flex; gap: 8px; margin-top: 4px; }
.gh2-years span { flex: 1; text-align: center; font-size: 10px; color: var(--p-muted); }
.pcard.profile .why { margin: 14px 20px; padding: 10px 14px; border-radius: 8px; background: rgba(239,246,255,.6); border-left: 2px solid var(--b400); }
.pcard.profile .why .lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--b700); margin-bottom: 6px; }
.pcard.profile .why .lbl svg { width: 14px; height: 14px; }
.pcard.profile .why p { font-size: 13.5px; color: #374151; line-height: 1.55; }
.pcard.profile .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 20px 20px; }
.pcard.profile .cols .sec + .sec { margin-top: 14px; }
.pcard.profile .lbl-up { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--p-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.pcard.profile .lbl-up svg { width: 14px; height: 14px; }
.pcard.profile .cols p, .pcard.profile .cols li { font-size: 13.5px; color: #374151; line-height: 1.55; }
.pcard.profile .cols li { display: flex; gap: 6px; }
.pcard.profile .cols li::before { content: "·"; color: #d1d5db; }
.pcard.profile .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard.profile .chips .tag { border-radius: 999px; }
.pcard.profile .chips .srcchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; background: var(--p-head); border: 1px solid var(--p-line); border-radius: 999px; padding: 2px 8px 2px 3px; }
.pcard.profile .chips .srcchip i { width: 16px; height: 16px; border-radius: 50%; background: var(--p-line); color: var(--p-text-2); display: grid; place-items: center; font-size: 9px; font-style: normal; }
@media (max-width: 640px) { .pcard.profile .tiles { grid-template-columns: 1fr 1fr; } .pcard.profile .tiles div:nth-child(2) { border-right: 0; } .pcard.profile .cols { grid-template-columns: 1fr; } .pcard.profile .contact { grid-template-columns: 1fr; } .pcard.profile .pbar .pill:not(.on) { display: none; } }
.js .scene-run:not(.static) .pcard.profile .hd-band[data-row].on { display: flex; }
.js .scene-run:not(.static) .pcard.profile .giving[data-row].on, .js .scene-run:not(.static) .pcard.profile .why[data-row].on { display: block; }
.pcard.profile .giving .gh-head span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.pcard.profile .giving .gh-head svg { width: 14px; height: 14px; color: var(--p-muted); }


/* Audit log rows (mirror the app's AuditView) */
.audit .arow { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--p-line-2); }
.audit .arow:last-child { border-bottom: 0; }
.audit .ts { display: grid; gap: 1px; font-size: 11.5px; color: var(--p-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.audit .ts .d { color: #d1d5db; }
.audit .body2 { display: grid; gap: 3px; min-width: 0; }
.audit .actor { font-size: 13.5px; color: #000; display: flex; align-items: center; gap: 6px; }
.audit .actor.ai { color: var(--p-muted); }
.audit .act { font-size: 13px; color: var(--p-text-2); }
.audit .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 11.5px; color: var(--p-muted); }
.audit .sys { background: var(--p-line-2); padding: 1px 6px; border-radius: 4px; }
.audit .st { display: flex; align-items: center; gap: 8px; }
.audit .st .tag { border-radius: 999px; }
.audit .rbk { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: #d1d5db; }
.audit .rbk svg { width: 14px; height: 14px; }
.tag.sm { height: 16px; font-size: 10px; padding: 0 5px; }
.js .scene-run.static .pcard .arow[data-row] { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.js .scene-run.static .pcard .arow[data-row].on { opacity: 1; transform: none; }
@media (max-width: 640px) { .audit .arow { grid-template-columns: minmax(0, 1fr) auto; } .audit .ts { display: none; } }

/* ---------- New mascot placements ---------- */
.stage .mascot.sit { top: auto; bottom: calc(100% - 84px); right: 7%; width: clamp(120px, 13vw, 160px); animation: none; }
.stage .mascot.sit.zen { width: clamp(100px, 11vw, 128px); right: 9%; }
.stage .mascot.hop { right: -54px; bottom: -34px; top: auto; width: clamp(140px, 16vw, 200px); z-index: 3; animation: bob 5s var(--ease-in-out) infinite; }
.ask-stage .mascot.pointer { right: calc(50% - 460px - 140px); bottom: 50px; width: clamp(180px, 20vw, 240px); animation: bob 6s var(--ease-in-out) infinite; }
.cert-stage .mascot.stand { right: calc(50% - 380px - 195px); bottom: -34px; top: auto; left: auto; width: clamp(160px, 18vw, 220px); z-index: 3; animation: bob 6s var(--ease-in-out) infinite; }
@media (max-width: 1100px) { .cert-stage .mascot.stand { right: -30px; width: 150px; } .ask-stage .mascot.pointer { display: none; } }
@media (max-width: 960px) { .stage .mascot.hop { width: 130px; right: -20px; } }
@media (prefers-reduced-motion: reduce) { .stage .mascot.hop, .ask-stage .mascot.pointer, .cert-stage .mascot.stand { animation: none; } }


/* ---------- Credential: a machined card, not a sticker ---------- */
.cert-stage { display: grid; justify-items: center; perspective: 1600px; }
.credential {
  --card-w: min(560px, 100%);
  container-type: inline-size;
  position: relative; z-index: 2; width: var(--card-w); aspect-ratio: 1.586;
  border-radius: clamp(14px, 4.4cqw, 26px); padding: clamp(18px, 6.4cqw, 40px); display: grid; text-align: left;
  grid-template-rows: auto 1fr auto; overflow: hidden; isolation: isolate;
  transform: rotateX(6deg) rotateY(-11deg) rotate(0.5deg);
  transform-style: preserve-3d;
  transition: transform 800ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cert-stage:hover .credential, .badge-tile:hover .credential { transform: rotateX(1deg) rotateY(-3deg) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .credential { transition: none; } }
/* Titanium */
.credential.light {
  background:
    linear-gradient(148deg, #ffffff 0%, #f1f1ee 22%, #dcdcd7 50%, #efefec 72%, #cfcfc9 100%);
  color: #2e2e2c;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.07),
    0 2px 4px rgba(0,0,0,.05), 0 24px 44px -22px rgba(0,0,0,.35), 0 60px 90px -50px rgba(0,0,0,.45);
}
/* Graphite */
.credential.dark {
  background:
    linear-gradient(148deg, #55555a 0%, #34343a 26%, #212126 52%, #3a3a41 74%, #1a1a1e 100%);
  color: #f0f0ee;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.09),
    inset 0 -1px 0 rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.5),
    0 24px 44px -22px rgba(0,0,0,.55), 0 60px 90px -50px rgba(0,0,0,.6);
}
/* brushed grain + specular sweep */
.credential::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(116deg, rgba(255,255,255,.5) 0 1px, rgba(255,255,255,0) 1px 4px);
  opacity: .35; mix-blend-mode: overlay;
}
.credential::after {
  content: ""; position: absolute; inset: -40% -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(104deg, transparent 42%, rgba(255,255,255,.5) 50%, transparent 58%);
  transform: translateX(-32%); animation: sheen 9s var(--ease-in-out) infinite;
}
.credential.dark::before { opacity: .14; }
.credential.dark::after { background: linear-gradient(104deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%); }
@keyframes sheen { 0%, 62% { transform: translateX(-38%); } 88%, 100% { transform: translateX(38%); } }
.credential > * { position: relative; z-index: 2; }
.cred-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.cred-mark { height: clamp(13px, 4.3cqw, 26px); width: auto; }
.credential.light .cred-mark { filter: brightness(0) invert(.30) drop-shadow(0 1px 0 rgba(255,255,255,.92)); }
.credential.dark .cred-mark { filter: brightness(0) invert(.84) drop-shadow(0 -1px 0 rgba(0,0,0,.55)); }
.cred-emblem { width: clamp(28px, 9.6cqw, 58px); height: auto; flex: none; }
.cred-body { align-self: end; display: grid; gap: clamp(2px, 1cqw, 6px); }
.cred-eyebrow { font-size: clamp(8px, 1.75cqw, 10.5px); letter-spacing: .22em; text-transform: uppercase; }
.cred-name { font-family: var(--display); font-weight: 600; font-size: clamp(17px, 5.7cqw, 34px); letter-spacing: -0.02em; line-height: 1.04; text-wrap: nowrap; }
.cred-role { font-size: clamp(9.5px, 2.5cqw, 15px); letter-spacing: .01em; }
.cred-foot { margin-top: clamp(9px, 2.6cqw, 16px); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; font-size: clamp(8px, 1.7cqw, 10.5px); letter-spacing: .18em; text-transform: uppercase; }
/* laser-etched type: a hairline of light under the stroke */
.credential.light .etch { color: #55554f; text-shadow: 0 1px 0 rgba(255,255,255,.95); }
.credential.light .etch-strong { color: #1f1f1d; text-shadow: 0 1px 0 rgba(255,255,255,.9); }
.credential.dark .etch { color: rgba(240,240,238,.62); text-shadow: 0 -1px 0 rgba(0,0,0,.55); }
.credential.dark .etch-strong { color: #ffffff; text-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.cred-dots { display: inline-flex; gap: 4px; align-items: center; }
.cred-dots i { width: clamp(3px, .7cqw, 4px); height: clamp(3px, .7cqw, 4px); border-radius: 50%; background: currentColor; opacity: .35; }
@media (max-width: 640px) { .credential { aspect-ratio: 1.45; border-radius: 20px; transform: rotateX(5deg) rotateY(-8deg); } }
@media (prefers-reduced-motion: reduce) { .credential::after { animation: none; transform: translateX(0); opacity: .35; } }

/* ---------- Badge showcase ---------- */
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.badge-tile { display: grid; grid-template-rows: 1fr auto; align-content: stretch; justify-items: center; gap: 20px; padding: clamp(28px, 3.5vw, 44px) 24px 22px; border-radius: 24px; min-height: 300px; position: relative; background: linear-gradient(180deg, #f7f7f6, #efefed); box-shadow: inset 0 0 0 1px rgba(17,17,17,.05); }
.badge-tile.void { background: linear-gradient(180deg, #17171a, #0e0e10); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.badge-tile.void .tile-label { color: rgba(255,255,255,.5); }
.badge-tile .credential { --card-w: 88%; transform: rotateX(5deg) rotateY(-9deg); }
.seal-wrap { position: relative; display: block; }
.seal-wrap .seal { display: block; width: 100%; height: auto; }
.seal-mark { position: absolute; left: 50%; top: 47.5%; width: 44%; height: auto; transform: translate(-50%, -50%); filter: brightness(0) invert(.38) drop-shadow(0 1.5px 0 rgba(255,255,255,.92)); }
.badge-tile .seal-wrap { align-self: center; width: clamp(132px, 13vw, 162px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.22)); }
.tile-label { font-size: 12.5px; color: var(--ink-3); text-align: center; }
@media (max-width: 900px) { .badges { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- Partner kit: co-branded collateral ---------- */
.kit { position: relative; width: min(56%, 150px); align-self: center; }
.kit .sheet { background: #fff; border: 1px solid rgba(17,17,17,.07); border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 22px 36px -22px rgba(0,0,0,.42); }
.kit .back { position: absolute; inset: 0; display: block; }
.kit .back.b1 { transform: rotate(-7deg) translate(-7px, 7px); background: #fbfbfa; }
.kit .back.b2 { transform: rotate(3.5deg) translate(7px, 3px); background: #fdfdfc; }
.kit .front { position: relative; z-index: 2; aspect-ratio: 1 / 1.29; padding: 13px 12px 11px; display: grid; align-content: start; gap: 10px; transform: rotate(-1.2deg); transition: transform 700ms var(--ease-out); }
.badge-tile:hover .kit .front { transform: rotate(0deg) translateY(-3px); }
.sheet-top { display: flex; align-items: center; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid var(--p-line-2); }
.sheet-top .co { font-family: var(--display); font-weight: 600; font-size: 6.4px; letter-spacing: .05em; white-space: nowrap; text-transform: uppercase; color: var(--ink); }
.sheet-top .x { font-size: 9px; color: var(--ink-4); }
.sheet-top img { height: 9px; width: auto; }
.sheet-h { font-family: var(--display); font-weight: 600; font-size: 10.5px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.sheet-lines { display: grid; gap: 4px; }
.sheet-lines i { height: 2.5px; border-radius: 2px; background: #edecea; }
.sheet-lines i.short { width: 58%; }
.sheet-foot { margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--p-line-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 6.8px; letter-spacing: .07em; white-space: nowrap; text-transform: uppercase; color: var(--ink-3); }
.sheet-seal { width: 13px; height: 13px; border-radius: 50%; flex: none; background: radial-gradient(circle at 34% 28%, #ffffff, #ececea 55%, #cfcfc9); box-shadow: 0 0 0 1px rgba(17,17,17,.08), inset 0 1px 0 rgba(255,255,255,.9); }
@media (prefers-reduced-motion: reduce) { .kit .front { transition: none; } }

/* ---------- Support ---------- */
.support-hero { padding-block: clamp(64px, 9vw, 120px) clamp(72px, 9vw, 120px); }
.support-hero .stage { width: min(660px, 100%); padding-top: 0; margin-top: clamp(28px, 4vw, 44px); }
.mailcard { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; padding: clamp(34px, 5vw, 60px) clamp(24px, 4vw, 56px); background: var(--bg-2); border-radius: 28px; }
.mail-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.mail-addr { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); border-bottom: 2px solid transparent; word-break: break-word; transition: border-color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { .mail-addr:hover { border-bottom-color: var(--ink); } }
.mailcard .btn { margin-top: 8px; }
.mail-note { max-width: 42ch; text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.mail-stage .mascot.stand { right: -168px; bottom: -36px; top: auto; left: auto; width: clamp(148px, 16vw, 196px); z-index: 3; animation: bob 6s var(--ease-in-out) infinite; }
.mail-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(28px, 4vw, 40px); }
@media (max-width: 900px) { .mail-stage .mascot.stand { right: -40px; width: 130px; } }
@media (prefers-reduced-motion: reduce) { .mail-stage .mascot.stand { animation: none; } }

/* ---------- Espresso: statement + segment cards ---------- */
.pcard.stmt .row { grid-template-columns: 1fr auto 76px; }
.pcard.stmt .row > :last-child { text-align: right; }
.pcard.seg .row { grid-template-columns: 1fr auto 96px; }
.pcard.seg .row > :last-child { text-align: right; }
.stmt-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px; border-top: 1px solid var(--p-line); }
.stmt-total span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--p-muted); }
.stmt-total b { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em; color: var(--ink); }
.pcard .body > .k + div { margin-top: 3px; }

/* ---------- Espresso CRM app window ---------- */
.window.crmapp { display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); height: 560px; }
.crm-tabs { display: flex; gap: 22px; padding: 0 18px; border-bottom: 1px solid var(--p-line); }
.ctab { display: inline-flex; align-items: center; gap: 7px; padding: 11px 0; font-size: 13.5px; color: var(--p-muted); border-bottom: 2px solid transparent; }
.ctab.on { color: #000; border-bottom-color: #000; }
.ctab i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--p-line-2); color: var(--p-text-2); }
.ctab.on i { background: #000; color: #fff; }
.crm-tools { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--p-line); font-size: 12.5px; color: var(--p-text-2); }
.crm-tools svg { width: 13px; height: 13px; color: var(--p-muted); }
.cfield { display: inline-flex; align-items: center; gap: 7px; flex: 0 1 210px; padding: 5px 10px; border: 1px solid var(--p-line); border-radius: 7px; color: var(--p-muted); }
.cbtn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--p-line); border-radius: 7px; white-space: nowrap; }
.cbtn.ghost { border-color: transparent; padding-inline: 4px; }
.csp { flex: 1; }
.cmuted { color: var(--p-muted); white-space: nowrap; }
.crm-hint { padding: 7px 18px; border-bottom: 1px solid var(--p-line); font-size: 11.5px; color: var(--p-muted); background: var(--p-head); }
.crm-grid { overflow: hidden; }
.grow { display: grid; grid-template-columns: 1.15fr 1.35fr .68fr .9fr .82fr .88fr .95fr; align-items: center; border-bottom: 1px solid var(--p-line-2); font-size: 13px; }
.grow > span { padding: 8px 12px; border-right: 1px solid var(--p-line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow > span:last-child { border-right: 0; }
.grow.hd > span { color: var(--p-muted); font-size: 11.5px; padding-block: 7px; }
.grow .k { color: var(--p-text-2); }
.js .scene-run .crm-grid .grow[data-row] { display: none; }
.js .scene-run .crm-grid .grow[data-row].on { display: grid; animation: stepin 320ms var(--ease-out) both; }
.pcard.insight .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--p-line-2); }
.pcard.insight .tiles div { padding: 11px 12px; border-right: 1px solid var(--p-line-2); }
.pcard.insight .tiles div:last-child { border-right: 0; }
.pcard.insight .tiles .k { font-size: 11px; color: var(--p-muted); }
.pcard.insight .tiles b { display: block; font-weight: 400; font-size: 14px; color: #000; margin-top: 3px; }
.pcard.insight .gh2 { height: 74px; }
.pcard.schema .row { grid-template-columns: 1.35fr .65fr 1fr; }
@media (max-width: 900px) {
  .grow { grid-template-columns: 1.2fr .9fr .9fr; }
  .grow > span:nth-child(2), .grow > span:nth-child(5), .grow > span:nth-child(6), .grow > span:nth-child(7) { display: none; }
  .crm-tools .cfield { flex: 1; } .crm-tools .cbtn, .crm-tools .cmuted { display: none; }
  .pcard.insight .tiles { grid-template-columns: 1fr 1fr; }
}
.pcard.resolve .row { grid-template-columns: 140px 1fr auto; }
@media (max-width: 640px) { .pcard.resolve .row { grid-template-columns: 1fr auto; } .pcard.resolve .row > :nth-child(2) { display: none; } }

/* ---------- Exported files leaving the frame ---------- */
.scene { position: relative; }
.fling { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; }
.fling .ff { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 10px; background: #fff; border: 1px solid var(--p-line); box-shadow: 0 2px 4px rgba(17,17,17,.07), 0 20px 34px -20px rgba(17,17,17,.65); font-size: 11.5px; color: #000; white-space: nowrap; opacity: 0; }
.fling .ff svg { width: 15px; height: 18px; flex: none; }
.fling .ff b { font-weight: 500; }
.fling.go .ff { animation: fling 1400ms cubic-bezier(.45,0,.75,1) both; animation-delay: calc(var(--i) * 160ms); }
@keyframes fling {
  0%   { opacity: 0; transform: translate(0, 0) scale(.5) rotate(0deg); }
  14%  { opacity: 1; transform: translate(-10px, -30px) scale(1) rotate(-5deg); }
  30%  { opacity: 1; transform: translate(-2px, -40px) scale(1) rotate(3deg); }
  100% { opacity: 0; transform: translate(var(--fx, 420px), var(--fy, 320px)) scale(.24) rotate(26deg); }
}
@media (prefers-reduced-motion: reduce) { .fling { display: none; } }

/* ---------- Chat bubbles inside feature-panel threads ---------- */
.scene .msg { position: relative; }
.scene .msg.user, .scene .msg.ai { margin-top: 21px; }
.scene .msg.user::before, .scene .msg.ai::before { position: absolute; top: -17px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.scene .msg.user::before { content: "You"; right: 4px; color: var(--p-muted); }
.scene .msg.ai::before { content: "Latte"; left: 2px; color: var(--ink); }
.scene .posting + .msg.user { margin-top: 22px; }
/* On the gray feature panels both speakers need a surface of their own. */
.panel .scene .msg.user { max-width: 86%; background: var(--ink); color: #fff; border-radius: 16px 16px 6px 16px; padding: 11px 15px; box-shadow: 0 1px 2px rgba(17,17,17,.14), 0 14px 26px -18px rgba(17,17,17,.6); }
.panel .scene .msg.user b { color: #fff; }
.panel .scene .msg.ai { background: #fff; border: 1px solid var(--p-line); border-radius: 16px 16px 16px 6px; padding: 11px 15px; color: var(--p-text); box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 14px 26px -20px rgba(17,17,17,.45); justify-self: start; max-width: 94%; }
.panel .scene .msg.ai b { color: var(--ink); }

/* ---------- Institutional overview dashboard ---------- */
.window.dash { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 560px; }
.dash-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; overflow: hidden; align-content: start; }
.dcard { border: 1px solid var(--p-line); border-radius: 10px; padding: 13px 14px 8px; background: #fff; min-width: 0; }
.dcard.wide { grid-column: 1 / -1; }
.dtitle { font-size: 13.5px; color: #000; margin-bottom: 8px; }
.dhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.dhead .dtitle { margin-bottom: 0; }
.dlegend { display: flex; gap: 12px; font-size: 11px; color: var(--p-muted); }
.dlegend span { display: inline-flex; align-items: center; gap: 5px; }
.dlegend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.dlegend .l1::before { background: var(--b500); }
.dlegend .l2::before { background: var(--b200); }
.dlegend .l3::before { background: #d8d8d4; }
.dstats { display: flex; gap: 18px; margin-left: auto; }
.dstats .k { display: block; font-size: 10.5px; color: var(--p-muted); }
.dstats b { font-weight: 500; font-size: 15px; color: #000; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid path { stroke: var(--p-line); stroke-width: 1; fill: none; }
.chart .grid path.soft { stroke: var(--p-line-2); }
.chart .dots circle { fill: var(--b500); opacity: .8; }
.chart .lbl text, .chart .cat { fill: var(--p-muted); font-size: 10px; font-family: var(--font); }
.chart .val { fill: #000; font-size: 11px; font-family: var(--font); }
.chart.bars rect { fill: var(--b200); }
.chart.bars rect.hi { fill: var(--b500); }
.chart.stack .s1 { fill: var(--b500); }
.chart.stack .s2 { fill: var(--b200); }
.chart.stack .s3 { fill: #d8d8d4; }
@media (max-width: 860px) { .dash-body { grid-template-columns: 1fr; } .dcard:nth-child(2) { display: none; } .dstats { margin-left: 0; } }
.pcard.newfield .inp { display: inline-block; min-width: 150px; padding: 4px 9px; border: 1px solid var(--p-line); border-radius: 7px; background: #fff; color: #000; }
.pcard.newfield .inp.sel { position: relative; padding-right: 24px; }
.pcard.newfield .inp.sel::after { content: ""; position: absolute; right: 9px; top: 11px; border: 4px solid transparent; border-top-color: var(--p-muted); }
.pcard.newfield .row.two { grid-template-columns: 80px 1fr; align-items: center; }
.window.dash { height: 542px; }
.dash-body { gap: 12px; padding: 14px; }
.dcard { padding: 12px 13px 6px; }
.ctab { margin-bottom: -1px; }
/* The board packet arrives as a card inside the conversation, not as a dashboard app. */
.pcard.board .dash-body { padding: 14px; }
.pcard.board .dcard { box-shadow: none; }
@media (max-width: 860px) { .pcard.board .dash-body { grid-template-columns: 1fr; } }
/* On a phone one legible chart beats three squeezed ones, and it keeps the
   question and the answer in the window together. */
@media (max-width: 640px) {
  .pcard.board .dcard:nth-child(1), .pcard.board .dcard.wide,
  .js .scene-run .pcard.board .dcard:nth-child(1)[data-step].on,
  .js .scene-run .pcard.board .dcard.wide[data-step].on { display: none; }
}

.stage .mascot.sit.grad { width: clamp(104px, 12vw, 148px); right: 5%; bottom: calc(100% - 72px); }
@media (max-width: 640px) { .stage .mascot.sit.grad { display: block; width: 84px; bottom: calc(100% - 58px); } }
