/* ============================================================
   Message Polly — redesign tokens + component styles
   Ink is the accent. Green = Polly acting. Ember = loss.
   ============================================================ */
:root {
  --paper: #FDFDFC;
  --surface: #FFFFFF;
  --ink: #1B1A17;
  --slate: #6F6A60;
  --hairline: #ECEAE4;
  --green: #0B7A38;
  --green-bright: #01AB46;
  --blue: #1D5BD6;
  --ember: #C7430F;
  --display: "General Sans", sans-serif;
  --body: "Switzer", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px;
  --shadow-soft: 0 1px 2px rgba(27,26,23,0.04), 0 8px 24px -12px rgba(27,26,23,0.10);
  --shadow-pop: 0 2px 6px rgba(27,26,23,0.05), 0 24px 48px -16px rgba(27,26,23,0.16);
  /* ---- locked type scale ---- */
  --text-xs: 12px;
  --text-sm: 13.5px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: clamp(28px, 4vw, 40px);
  --text-3xl: clamp(34px, 5vw, 52px);
  --text-hero: clamp(38px, 5.4vw, 62px);
  /* ---- locked spacing scale (8px rhythm) ---- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* scrollbar-gutter keeps the viewport width constant when the lead modal
   locks body scroll, so the page behind it doesn't shift sideways. */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(27,26,23,0.9); color: var(--paper); }

.mono { font-family: var(--mono); }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.kicker {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate);
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--ink); flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: 14.5px; border-radius: 9px;
  padding: 10px 18px; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  border: 1px solid transparent; text-decoration: none; color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #FFFDF9; }
.btn-ink:hover { background: #2E2C27; }
.btn-ghost { border-color: var(--hairline); background: var(--surface); }
.btn-ghost:hover { border-color: #CFC9BE; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #0A6A31; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 8px; }

/* ---------- nav ---------- */
.pnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.pnav.pnav-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
/* before the background appears, lift the brand text/links to white over the dark hero */
.pnav:not(.pnav-scrolled) .pnav-logo { color: #FFFFFF; }
.pnav:not(.pnav-scrolled) .pnav-links a { color: rgba(255, 255, 255, 0.82); }
.pnav:not(.pnav-scrolled) .pnav-links a:hover { color: #FFFFFF; }
.pnav-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pnav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); transition: color .25s ease; }
.pnav-logo img { width: 26px; height: 26px; }
.pnav-logo span { font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; white-space: nowrap; }
.pnav-links { display: flex; align-items: center; gap: 26px; }
.pnav-links a { font-size: 14px; font-weight: 500; color: var(--slate); text-decoration: none; transition: color .15s; }
.pnav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .pnav-links { display: none; } }

/* ---------- mobile menu (shared by React nav + static site-chrome nav) ---------- */
.pnav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; border-radius: 8px; color: var(--ink); }
.pnav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.pnav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pnav-toggle.is-open span:nth-child(2) { opacity: 0; }
.pnav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.pnav:not(.pnav-scrolled) .pnav-toggle { color: #FFFFFF; }
.pnav-mobile { display: none; }
@media (max-width: 720px) {
  .pnav-cta { display: none; }
  .pnav-toggle { display: flex; }
  .pnav-mobile { display: flex; flex-direction: column; padding: 8px 24px 20px; background: color-mix(in srgb, var(--paper) 97%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
  .pnav-mobile[hidden] { display: none; }
  .pnav-mobile > a:not(.btn) { font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 13px 4px; border-bottom: 1px solid var(--hairline); }
  .pnav-mobile-cta { justify-content: center; margin-top: 14px; height: 46px; color: #FFFDF9 !important; }
}

/* ---------- console rail (variant C) ---------- */
.console-rail {
  display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 55;
  background: var(--ink); color: #B9B4A9;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 5px 24px; gap: 22px; align-items: center; white-space: nowrap; overflow: hidden;
}
.console-rail b { color: #F4F1EA; font-weight: 500; }
.console-rail .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); display: inline-block; margin-right: 6px; animation: rail-pulse 2.4s ease-in-out infinite; }
@keyframes rail-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
body[data-variant="console"] .console-rail { display: flex; }
body[data-variant="console"] .hero { padding-top: 150px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 132px 0 0; overflow: hidden; }
.hero-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-aurora canvas { width: 100%; height: 100%; display: block; }
.unicorn-host { position: absolute; inset: 0; }
.unicorn-host canvas { width: 100% !important; height: 100% !important; display: block; }
.unicorn-veil { position: absolute; inset: 0; background: var(--paper); pointer-events: none; }
.hero-aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--paper) 96%); }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--slate); border: 1px solid var(--hairline); background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-radius: 99px; padding: 6px 13px; white-space: nowrap;
}
@media (max-width: 480px) { .hero-badge { font-size: 10px; padding: 5px 10px; } }
.hero-badge svg { flex-shrink: 0; }
.hero-h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.028em;
  max-width: 17ch; margin: 22px 0 16px; text-wrap: balance;
}
.hero-sub { font-size: clamp(16px, 1.6vw, 18.5px); color: color-mix(in srgb, var(--slate) 75%, var(--ink)); max-width: 600px; text-wrap: pretty; line-height: 1.55; }
body[data-variant="field"] .hero-h1 { font-size: clamp(38px, 5.2vw, 64px); max-width: none; text-wrap: nowrap; }
@media (max-width: 720px) { body[data-variant="field"] .hero-h1 { text-wrap: balance; max-width: 20ch; } }
body[data-variant="console"] .hero-h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.024em; }

/* ---------- prompt component ---------- */
.prompt-wrap { width: 100%; max-width: 660px; margin-top: 34px; position: relative; z-index: 5; }
.prompt-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--shadow-pop); text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.prompt-card:focus-within { border-color: #B5AFA3; box-shadow: var(--shadow-pop), 0 0 0 4px rgba(27,26,23,0.05); }
.prompt-card.is-thinking { border-color: color-mix(in srgb, var(--green) 45%, var(--hairline)); }
.prompt-field { position: relative; padding: 16px 18px 4px; }
.prompt-input {
  width: 100%; border: none; outline: none; background: transparent; resize: none;
  font-size: 15.5px; font-weight: 500; line-height: 1.45; min-height: 46px;
  color: var(--ink); caret-color: var(--ink);
}
.prompt-input:focus-visible { outline: none; }
.prompt-input:disabled { color: var(--slate); }
.prompt-ph {
  position: absolute; top: 16px; left: 18px; right: 18px; pointer-events: none;
  font-size: 15.5px; font-weight: 500; line-height: 1.45; color: #A39D90;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prompt-ph .caret { display: inline-block; width: 1.5px; height: 1.05em; background: #A39D90; vertical-align: -2px; margin-left: 1px; animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.prompt-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 8px 12px 12px; }
/* overlapping brand source chips that spread on hover */
.src-chips { display: flex; align-items: center; padding: 4px; margin: -4px; }
.src-chip {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: -6px; box-shadow: 0 0 0 2px var(--surface);
  transition: margin-left .3s cubic-bezier(.2,.7,.3,1), transform .15s ease;
}
.src-chip:first-child { margin-left: 0; }
.src-chips:hover .src-chip { margin-left: 4px; }
.src-chips:hover .src-chip:first-child { margin-left: 0; }
.src-chip svg { width: 14px; height: 14px; color: #FFFFFF; }
.src-chip.ring { border: 1px solid var(--hairline); }
.src-chip.ring svg { width: 14px; height: 14px; }
.src-add {
  background: transparent; box-shadow: none;
  border: 1px dashed color-mix(in srgb, var(--slate) 45%, transparent);
  color: color-mix(in srgb, var(--slate) 60%, transparent);
  transition: margin-left .3s cubic-bezier(.2,.7,.3,1), border-color .2s, color .2s;
}
.src-add:hover { border-color: var(--slate); color: var(--slate); }
.src-add svg { width: 12px; height: 12px; color: currentColor; }
.prompt-send {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--slate);
  border: 1px solid var(--hairline); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, opacity .15s, transform .12s, color .15s, border-color .15s;
}
.prompt-send svg { width: 16px; height: 16px; }
.prompt-send:disabled { opacity: 0.5; cursor: default; }
.prompt-send:not(:disabled) { background: var(--ink); color: #FFFDF9; border-color: var(--ink); }
.prompt-send:not(:disabled):hover { background: #2E2C27; }
.prompt-send:not(:disabled):active { transform: scale(0.94); }
/* reserved status line — zero layout shift */
.prompt-status {
  height: 26px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--slate);
}
.prompt-status .st-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); animation: rail-pulse 1.2s ease-in-out infinite; }
.prompt-status.is-done { color: var(--green); }
.prompt-status .st-line { animation: st-in .25s ease; }
@keyframes st-in { from { transform: translateY(3px); } to { transform: none; } }
.prompt-hint { margin-top: 2px; font-size: 12.5px; color: #A39D90; }
.prompt-hint kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--hairline); border-radius: 4px; padding: 1px 5px; background: var(--surface); }

/* compact variant (CTA section) */
.prompt-wrap.compact { max-width: 560px; margin-top: 26px; }
.prompt-wrap.compact .prompt-field { padding: 13px 15px 2px; }
.prompt-wrap.compact .prompt-ph { top: 13px; left: 15px; right: 15px; }
.prompt-wrap.compact .prompt-input { min-height: 38px; font-size: 14.5px; }
.prompt-wrap.compact .prompt-ph { font-size: 14.5px; }

/* ---------- floating hero cards ---------- */
.float-card {
  position: absolute; z-index: 1; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-soft);
  padding: 12px 14px; text-align: left; width: 196px;
  animation: float-in .8s cubic-bezier(.2,.7,.2,1) both;
}
.float-card .fc-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.float-card .fc-big { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.float-card .fc-sub { font-size: 11.5px; color: var(--slate); margin-top: 2px; }
@keyframes float-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.float-left { left: max(24px, calc(50% - 580px)); top: 270px; transform: rotate(-1.2deg); }
.float-right { right: max(24px, calc(50% - 580px)); top: 260px; transform: rotate(1.4deg); width: 212px; }
@media (max-width: 1100px) { .float-card { display: none; } }
.fc-dot-g { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }

/* ---------- sections / pillars ---------- */
.sect { padding: 88px 0; position: relative; }
.sect + .sect { border-top: 1px solid var(--hairline); }
body[data-variant="console"] .sect { padding: 72px 0; }
body[data-variant="field"] .sect { padding: 104px 0; }
.sect-head { max-width: 620px; margin-bottom: 48px; }
.sect-h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; line-height: 1.1; margin: 14px 0 12px; text-wrap: balance; }
.sect-sub { color: var(--slate); font-size: 16.5px; text-wrap: pretty; }
.pillar { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.pillar.rev { grid-template-columns: 7fr 5fr; }
.pillar.rev .pillar-copy { order: 2; }
.pillar.rev .pillar-visual { order: 1; }
@media (max-width: 880px) {
  .pillar, .pillar.rev { grid-template-columns: 1fr; gap: 32px; }
  .pillar.rev .pillar-copy { order: 1; } .pillar.rev .pillar-visual { order: 2; }
}
.pillar-copy h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.024em; line-height: 1.12; margin: 14px 0 12px; text-wrap: balance; }
.pillar-copy p { color: var(--slate); font-size: 16px; text-wrap: pretty; }
.pillar-copy p + p { margin-top: 10px; }
.pillar-copy p strong { color: var(--ink); font-weight: 600; }
.pillar-foot { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--slate); display: flex; align-items: center; gap: 8px; }

/* product surface */
.product-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.pc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate);
}
.pc-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); text-transform: none; letter-spacing: 0.03em; white-space: nowrap; flex-shrink: 0; }
.pc-head .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); display: inline-block; animation: rail-pulse 2s infinite; }
.pc-body { padding: 20px; }

/* ---------- funnel ---------- */
.funnel-row { margin-bottom: 14px; }
.funnel-row:last-child { margin-bottom: 0; }
.funnel-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.funnel-meta .fl { font-size: 13px; font-weight: 500; }
.funnel-meta .fn { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.funnel-track { height: 26px; border-radius: 6px; background: var(--paper); border: 1px solid var(--hairline); overflow: hidden; position: relative; }
.funnel-bar { height: 100%; background: var(--ink); border-radius: 5px 0 0 5px; transform-origin: left center; }
.funnel-bar.grow { animation: bar-grow 1s cubic-bezier(.25,.7,.2,1) both; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.funnel-bar.green { background: var(--green); }
.funnel-bar.ember { background: var(--ember); position: absolute; top: 0; border-radius: 0; }
.funnel-bar.ember.hatch {
  background: repeating-linear-gradient(135deg, var(--ember) 0 5px, color-mix(in srgb, var(--ember) 72%, white) 5px 10px);
}
.funnel-annot {
  margin-top: 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--ember) 32%, white);
  background: color-mix(in srgb, var(--ember) 5%, var(--surface)); border-radius: 10px;
  font-size: 13.5px; line-height: 1.5;
}
.funnel-annot b { color: var(--ember); font-family: var(--mono); font-weight: 600; }
.drain { display: flex; flex-wrap: wrap; gap: 2.5px; margin-top: 10px; }
.drain i { width: 5px; height: 5px; border-radius: 1.5px; background: var(--ember); opacity: 0.85; display: block; }
.drain.animated i { animation: drain-fall 3.2s ease-in infinite; }
@keyframes drain-fall { 0%, 70% { opacity: 0.85; transform: none; } 100% { opacity: 0; transform: translateY(7px); } }

/* ---------- chat (Understand) — WhatsApp collage ---------- */
/* scattered collage: random customer messages landing in a WhatsApp Business
   inbox, each understood by the platform (intent tag reveals live) */
.wachat { position: relative; display: flex; flex-direction: column; gap: 34px; padding: 8px 6px 6px; }
.wa-row { position: relative; max-width: 84%; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translate(-20px, 16px) scale(0.96);
  transition: opacity .55s ease, transform .6s cubic-bezier(.2,.85,.25,1); }
.wa-row.off-0 { align-self: flex-start; }
.wa-row.off-1 { align-self: flex-end; align-items: flex-end; transform: translate(20px, 16px) scale(0.96); }
.wa-row.off-2 { align-self: flex-start; margin-left: 46px; }
.wa-row.off-3 { align-self: flex-end; align-items: flex-end; margin-right: 28px; transform: translate(20px, 16px) scale(0.96); }
.wachat .wa-row.in { opacity: 1; transform: none; }
.wachat.settled .wa-row { transition: none; }
.wachat.settled .wa-hl { transition: none; }
@media (max-width: 580px) { .wa-row { max-width: 92%; } .wa-row.off-2 { margin-left: 14px; } .wa-row.off-3 { margin-right: 6px; } }
.wa-bubble {
  position: relative; align-self: flex-start; background: #D0FECF; border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px; border-bottom-right-radius: 4px;
  padding: 8px 13px 6px; font-size: 14.5px; line-height: 1.42; color: #0E1B0D;
  box-shadow: 0 2px 5px rgba(11,20,14,0.10), 0 0 0 0.5px rgba(0,0,0,0.02);
}
.wa-row.off-1 .wa-bubble, .wa-row.off-3 .wa-bubble { align-self: flex-end; }
.wa-bubble::after {
  content: ""; position: absolute; right: -7px; bottom: 0; width: 13px; height: 13px;
  background: #D0FECF; clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.wa-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 1px; }
.wa-time { font-size: 10.5px; color: rgba(0,0,0,0.45); }
.wa-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 11px;
  border: 2px solid var(--paper); box-shadow: 0 1px 3px rgba(27,26,23,0.14);
}
.wa-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.wa-tag { display: inline-flex; align-items: center; gap: 9px; min-height: 30px; }
.wa-tag-lead { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: #B5AFA3; }
.wachat-foot { display: flex; justify-content: center; margin-top: 4px; }
.wa-hl { background-color: transparent; color: inherit; background-image: linear-gradient(transparent 56%, rgba(29,91,214,0.18) 0); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%; border-radius: 2px; transition: background-size .5s cubic-bezier(.4,.7,.3,1) .22s; }
.wa-row.in .wa-hl { background-size: 100% 100%; }
.wa-reading { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: #B5AFA3; }
.wa-reading i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: waPulse 1s ease-in-out infinite; }
@keyframes waPulse { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.1); } }
.wa-tag .tagchip { font-size: 11.5px; padding: 3px 9px; }
/* stack the "reading" indicator and the intent chip in one fixed cell so the
   avatar + "Intent" label never shift when the chip swaps in */
.wa-class { display: inline-grid; align-items: center; justify-items: start; }
.wa-class > * { grid-area: 1 / 1; }
.wa-class .wa-reading, .wa-class .tagchip { transition: opacity .2s ease; }
.wa-class .is-hidden { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .wa-row { opacity: 1; transform: none; transition: none; } .wa-hl { background-size: 100% 100%; } }
.tagchip {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 500;
  border: 1px solid var(--hairline); border-radius: 5px; padding: 2px 8px; background: var(--paper); color: var(--slate);
  white-space: nowrap;
}
.tagchip.ember { color: var(--ember); border-color: color-mix(in srgb, var(--ember) 30%, white); background: color-mix(in srgb, var(--ember) 6%, white); }
.tagchip.green { color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, white); background: color-mix(in srgb, var(--green) 7%, white); }
.tagchip.intent { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 32%, white); background: color-mix(in srgb, var(--blue) 7%, white); }
.tagchip.pop { animation: tag-pop .4s cubic-bezier(.3,1.4,.5,1); }
@keyframes tag-pop { from { transform: scale(.7); } to { transform: none; } }
.lang-chips { display: flex; gap: 6px; }
.lang-chip {
  font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 3px 9px;
  border-radius: 99px; border: 1px solid var(--hairline); color: var(--slate); background: var(--surface);
  transition: all .15s; text-transform: none; letter-spacing: 0.03em;
}
.lang-chip.on { background: var(--ink); color: #FFFDF9; border-color: var(--ink); }

/* ---------- approve console ---------- */
.stage-body { padding: 18px 20px; }
.stage-head { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.stage-title { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.015em; min-width: 0; }
.stage-rows { margin: 14px 0 18px; border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }
.stage-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.stage-row:last-child { border-bottom: none; }
.stage-row .sk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate); padding-top: 2px; }
.stage-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.conf-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--slate); white-space: nowrap; flex-shrink: 0; }
.conf-bar { width: 64px; height: 5px; border-radius: 99px; background: var(--paper); border: 1px solid var(--hairline); position: relative; overflow: hidden; }
.conf-bar i { position: absolute; inset: 0; width: 87%; background: var(--green); border-radius: 99px; }
.stage-shipped { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; background: color-mix(in srgb, var(--green) 7%, white); border: 1px solid color-mix(in srgb, var(--green) 28%, white); font-size: 13.5px; animation: tag-pop .35s ease both; }
.stage-shipped .undo { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; color: var(--green); }
.stage-caption { margin-top: 12px; font-size: 12.5px; color: var(--slate); display: flex; align-items: center; gap: 8px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 880px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .bento { grid-template-columns: 1fr; } }
.bento-cell { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px; min-height: 168px; display: flex; flex-direction: column; gap: 8px; }
.bento-cell .bc-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.bento-cell h3 { font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.012em; }
.bento-cell p { font-size: 13.5px; color: var(--slate); line-height: 1.5; }
.bento-cell .bc-art { margin: 4px 0 6px; }

/* ---------- numbers ---------- */
.num-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 680px) { .num-grid { grid-template-columns: 1fr; } }
.num-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 28px; }
.num-big { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 6vw, 72px); letter-spacing: -0.03em; line-height: 1; color: var(--green); }
.num-label { margin-top: 8px; font-size: 15px; font-weight: 500; }
.num-sub { margin-top: 3px; font-size: 13px; color: var(--slate); }
.candor {
  border: 1px dashed #CFC9BE; border-radius: var(--r-lg); padding: 20px 24px;
  font-size: 14.5px; color: var(--slate); background: transparent; line-height: 1.6;
}
.candor b { color: var(--ink); font-weight: 600; }

/* ---------- trust band ---------- */
.trust-band { padding: 40px 0 44px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); text-align: center; }
.trust-eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin: 0 0 20px; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 24px; opacity: 0.62; filter: grayscale(1); transition: opacity .25s ease, filter .25s ease; }
.trust-band:hover .trust-logos { opacity: 1; filter: none; }
.trust-meta { height: 20px; width: auto; display: block; }
.trust-div { width: 1px; height: 18px; background: var(--hairline); }
.trust-wa-logo { height: 31px; width: auto; display: block; }
@media (max-width: 540px) { .trust-band { padding: 32px 0; } .trust-logos { gap: 16px; } }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .founder { grid-template-columns: 1fr; gap: 28px; } }
.faq-q { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.012em; margin-bottom: 8px; }
.faq-a { font-size: 15px; color: var(--slate); text-wrap: pretty; }
.cred-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; align-items: baseline; }
.cred-line:last-child { border-bottom: none; }
.cred-line .cy { font-family: var(--mono); font-size: 11.5px; color: var(--slate); min-width: 86px; flex-shrink: 0; }

/* ---------- CTA / footer ---------- */
.cta-sect { text-align: center; padding: 104px 0; border-top: 1px solid var(--hairline); }
.cta-sect .hero-h1 { font-size: clamp(30px, 4vw, 46px); margin: 18px auto 12px; }
.cta-qual { font-size: 16px; color: var(--slate); max-width: 540px; margin: 0 auto; text-wrap: pretty; }
.cta-qual b { color: var(--ink); font-weight: 600; }
.pfooter { border-top: 1px solid var(--hairline); background: var(--ink); color: #F4F1EA; padding: 48px 0 36px; }
.pfooter .pnav-logo { color: #F4F1EA; }
.pf-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.pf-brand { max-width: 360px; }
.pf-tag { font-size: 14px; color: #A8A294; margin-top: 14px; }
.pf-copy { font-size: 12px; color: #8B867B; margin-top: 10px; }
.pf-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 580px) { .pf-cols { grid-template-columns: 1fr 1fr; } }
.pf-col h3 { font-size: 13.5px; font-weight: 600; font-family: var(--body); margin-bottom: 12px; color: #F4F1EA; }
.pf-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pf-col a { font-size: 13.5px; color: #A8A294; text-decoration: none; transition: color .15s; }
.pf-col a:hover { color: #F4F1EA; }
.pf-bottom .pf-copy { margin-top: 0; }
.pf-bottom { margin-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pf-socials { display: flex; gap: 16px; }
.pf-socials a { color: #A8A294; transition: color .15s; display: inline-flex; }
.pf-socials a:hover { color: #F4F1EA; }
.pfooter :focus-visible { outline-color: #F4F1EA; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(27,26,23,0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: ov-in .2s ease both;
}
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }
/* modal — clean white form (cool neutral greys, scoped so the rest of the site keeps its warm palette) */
.modal-card {
  --m-line: #E7E7E4;
  --m-line-strong: #D2D2CE;
  --m-muted: #9A9A95;
  --m-field-bg: #FBFBFA;
  --m-panel-bg: #FAFAF9;
  background: #FFFFFF; border-radius: 20px; box-shadow: 0 1px 2px rgba(20,19,17,.04), 0 24px 64px -20px rgba(20,19,17,.28);
  width: 100%; max-width: 900px; max-height: calc(100vh - 40px); overflow: hidden;
  display: flex; animation: mod-in .28s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes mod-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-left {
  width: 312px; flex-shrink: 0; background: var(--m-panel-bg); border-right: 1px solid var(--m-line);
  padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; gap: 26px;
}
@media (max-width: 820px) { .modal-left { display: none; } }
.modal-right { flex: 1; padding: 32px 34px; overflow-y: auto; }
.modal-brief {
  font-size: 13px; line-height: 1.5; background: #FFFFFF; border: 1px solid var(--m-line);
  border-radius: 10px; padding: 12px 14px; font-style: italic; color: var(--slate);
}
.modal-brief .mono { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; display: block; margin-bottom: 5px; color: var(--green); }
.modal-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.modal-steps li { position: relative; display: flex; gap: 13px; padding-bottom: 18px; }
.modal-steps li:last-child { padding-bottom: 0; }
.modal-steps li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 27px; bottom: 3px; width: 1.5px; background: var(--m-line); }
.modal-steps .n { position: relative; z-index: 1; flex-shrink: 0; width: 25px; height: 25px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink); background: #FFFFFF; border: 1.5px solid var(--m-line-strong); }
.modal-steps .modal-step-txt { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.modal-steps .t { font-size: 13.5px; font-weight: 560; color: var(--ink); line-height: 1.3; letter-spacing: -0.005em; }
.modal-steps .d { font-size: 12px; color: var(--slate); line-height: 1.4; }
.m-title { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.018em; color: var(--ink); }
.m-sub { font-size: 13.5px; color: var(--slate); margin-top: 5px; margin-bottom: 22px; line-height: 1.5; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .f-row { grid-template-columns: 1fr; } }
.f-group { margin-bottom: 15px; }
.f-label { display: block; font-size: 12.5px; font-weight: 540; color: var(--ink); margin-bottom: 6px; }
.f-input, .f-select {
  width: 100%; height: 40px; border: 1px solid var(--m-line); border-radius: 9px;
  padding: 0 12px; font-size: 13.5px; color: var(--ink); background: var(--m-field-bg);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.f-input::placeholder { color: var(--m-muted); }
.f-input:hover, .f-select:hover { border-color: var(--m-line-strong); }
.f-input:focus, .f-select:focus { border-color: var(--ink); background: #FFFFFF; outline: none; box-shadow: 0 0 0 3px rgba(27,26,23,.07); }
.f-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239A9A95' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; color: var(--ink); }
.f-select.empty { color: var(--m-muted); }
.f-combo { position: relative; }
.f-combo-btn { width: 100%; text-align: left; display: flex; align-items: center; }
.f-combo-btn[aria-expanded="true"] { border-color: var(--ink); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(27,26,23,.07); }
.f-combo-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  margin: 0; padding: 5px; list-style: none;
  background: #FFFFFF; border: 1px solid var(--m-line); border-radius: 11px;
  box-shadow: 0 14px 38px rgba(28,25,23,.16), 0 2px 8px rgba(28,25,23,.06);
  max-height: 248px; overflow-y: auto;
  animation: f-combo-in .13s ease;
}
@keyframes f-combo-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.f-combo-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; border-radius: 7px; font-size: 13.5px; color: var(--ink); cursor: pointer;
}
.f-combo-opt.active { background: var(--m-field-bg); }
.f-combo-opt.sel { font-weight: 560; }
.f-combo-check { color: var(--m-accent, var(--ink)); font-size: 12px; }
.radio-chips { display: flex; gap: 8px; }
.radio-chip {
  border: 1px solid var(--m-line); border-radius: 9px; padding: 8px 15px; font-size: 13px; font-weight: 500;
  color: var(--ink); background: var(--m-field-bg); transition: border-color .13s, background .13s, color .13s;
}
.radio-chip:hover { border-color: var(--m-line-strong); }
.radio-chip.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--slate); line-height: 1.5; margin: 18px 0 18px; cursor: pointer; }
.f-check input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--ink); flex-shrink: 0; }
.lm-spin { display: inline-block; width: 15px; height: 15px; margin-right: 9px; vertical-align: -3px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 28%, transparent); border-top-color: currentColor; animation: lm-spin 1s cubic-bezier(.6,.2,.4,.8) infinite; }
@keyframes lm-spin { to { transform: rotate(360deg); } }
.f-check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.f-check a:hover { color: var(--blue); }
.modal-right .btn-ink:disabled { background: #F1F1EF; color: var(--m-muted); border-color: transparent; cursor: default; }
.m-success { text-align: center; padding: 36px 12px; }
.m-success img { width: 56px; height: 56px; }
.m-success h3 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 14px 0 8px; color: var(--ink); }
.m-success p { font-size: 14.5px; color: var(--slate); max-width: 380px; margin: 0 auto; }
.m-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--m-muted); transition: background .13s, color .13s; }
.m-close:hover { background: #F1F1EF; color: var(--ink); }
.demo-note { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--m-muted); }

/* ---------- scroll reveal: transform-only (content stays readable if reveal never fires) ---------- */
.io-fade { transform: translateY(14px); transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.io-fade.in { transform: none; }

/* ---------- field variant: tinted full-bleed bands ---------- */
body[data-variant="field"] .sect.band { background: var(--surface); }
body[data-variant="field"] .sect.band .product-card { box-shadow: var(--shadow-pop); }

/* ---------- console variant: mono texture ---------- */
body[data-variant="console"] .sect-h2,
body[data-variant="console"] .pillar-copy h2 { font-size: clamp(24px, 2.6vw, 32px); }
body[data-variant="console"] .product-card { border-radius: 10px; }
body[data-variant="console"] .pc-head { background: var(--ink); color: #B9B4A9; border-bottom-color: var(--ink); }
body[data-variant="console"] .pc-head .live { color: #6FDC9A; }
body[data-variant="console"] .bento-cell { border-radius: 10px; }

/* ---------- product console (window chrome + app surfaces) ---------- */
.pwin { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; }.pwin-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--hairline); background: #FCFBF9; }
.pwin-dots { display: inline-flex; gap: 5px; }
.pwin-dots i { width: 8px; height: 8px; border-radius: 50%; background: #E3DFD6; display: block; }
.pwin-url { font-family: var(--mono); font-size: 10.5px; color: var(--slate); background: var(--paper); border: 1px solid var(--hairline); border-radius: 99px; padding: 2px 10px; }
.pwin-body { display: flex; align-items: stretch; min-width: 0; }
.icon-rail { width: 44px; flex-shrink: 0; border-right: 1px solid var(--hairline); background: #FBFAF8; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 12px; }
.rail-ic { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #A39D90; }
.rail-ic.active { color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); }
.livec { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; color: var(--green); text-transform: none; letter-spacing: 0.03em; white-space: nowrap; }
.livec i { width: 5px; height: 5px; border-radius: 50%; background: var(--green-bright); animation: rail-pulse 2s infinite; }

/* ---------- real-product sidebar ---------- */
.app-side {
  width: 196px; flex-shrink: 0; border-right: 1px solid var(--hairline); background: #FDFCFB;
  padding: 12px 10px; display: flex; flex-direction: column; gap: 1px; font-size: 13px;
}
.as-logo { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600; font-size: 14px; padding: 2px 6px 10px; }
.as-actions { display: flex; gap: 6px; margin-bottom: 10px; }
.as-new {
  flex: 1; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hairline);
  border-radius: 8px; padding: 5px 8px; background: var(--surface); font-weight: 500; font-size: 12px;
  box-shadow: 0 1px 1px rgba(27,26,23,0.03); white-space: nowrap;
}
.as-new kbd { font-family: var(--mono); font-size: 9.5px; color: var(--slate); margin-left: auto; }
.as-search { width: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface); color: var(--slate); }
.as-item { display: flex; align-items: center; gap: 8px; padding: 5.5px 8px; border-radius: 7px; color: #4A4740; font-weight: 500; white-space: nowrap; overflow: hidden; }
.as-item.active { background: #F1EFEA; color: var(--ink); }
.as-item .as-chev { margin-left: auto; color: #A39D90; display: inline-flex; }
.as-sub { padding-left: 27px; font-size: 12.5px; }
.as-group { margin-top: 12px; }
.as-thread { color: var(--ink); background: #F1EFEA; font-size: 12px; text-overflow: ellipsis; }

/* ---------- Linear-style product shots: copy on top, big readable frame below ---------- */
.shot-head { max-width: 620px; margin-bottom: 40px; }
.shot-frame {
  position: relative; width: 100%; border: 1px solid var(--hairline); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow-pop); overflow: hidden;
}
.shot-frame .pwin { border: none; border-radius: 0; box-shadow: none; }
.shot-frame .pwin-bar { background: #FCFBF9; }
.shot-crop { height: var(--crop, 620px); overflow: hidden; }
@media (max-width: 760px) { .shot-crop { height: auto; max-height: 680px; } }

/* solo thread: components only, no app chrome */
.thread-solo { display: flex; flex-direction: column; gap: 18px; max-width: 660px; margin: 0 auto; }
.thread-solo.live { min-height: 420px; justify-content: flex-start; }

/* staged reveal (Claude-style) — transition-based: base state is visible,
   .pre is removed just after mount; throttled iframes still end visible */
.th-pop { transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.25, 1); }
.th-pop.pre { opacity: 0; transform: translateY(10px); }
.th-pop.settled { transition: none; }
/* controlled reveal: always mounted (height reserved up front), fades in on .in */
.th-reveal { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.25, 1); }
.th-reveal.in { opacity: 1; transform: none; pointer-events: auto; }
.th-caret {
  display: inline-block; width: 1.5px; height: 1.05em; background: var(--ink);
  margin-left: 1px; vertical-align: -0.15em;
  animation: thBlink 1.05s steps(1) infinite;
}
@keyframes thBlink { 50% { opacity: 0; } }
.tp-spin {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
  border: 1.6px solid #CFDDF8; border-top-color: var(--blue);
  animation: ps-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .th-pop { transition: none; }
  .th-pop.pre { opacity: 1; transform: none; }
  .th-reveal { opacity: 1; transform: none; transition: none; }
  .th-caret { display: none; }
}
.pillar-visual .thread-solo { margin: 0; max-width: none; }
.pillar { align-items: start; }
.pillar .pillar-copy { position: sticky; top: 110px; }
@media (max-width: 880px) { .pillar .pillar-copy { position: static; } }
.thread-solo .q-card, .thread-solo .plan-card, .thread-solo .graph-card, .thread-solo .tpl-card { background: var(--surface); box-shadow: var(--shadow-soft); }
.thread-solo .tool-pill { box-shadow: 0 1px 2px rgba(27,26,23,0.03); }
.th-prompt.solo { background: var(--surface); box-shadow: var(--shadow-soft); font-size: 14.5px; padding: 12px 16px; }
.thread-solo .th-composer { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.thread { flex: 1; min-width: 0; background: var(--surface); display: flex; flex-direction: column; }
.th-crumb { padding: 10px 16px; border-bottom: 1px solid var(--hairline); font-size: 12px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.th-crumb span { margin: 0 5px; color: #C5BFB4; }
.th-col { width: 100%; max-width: 680px; margin: 0 auto; padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.th-title { font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; text-align: center; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); margin-bottom: 2px; }
.th-prompt { background: #F7F6F3; border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 500; }
.th-think { color: #A8A294; font-size: 14.5px; line-height: 1.55; }
.th-think-h { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; color: #B5AFA3; margin-bottom: 3px; }
.th-think p { max-width: none; }
.tool-pill {
  display: flex; align-items: center; gap: 9px; background: #EFF4FE; border: 1px solid #D5E2FA;
  border-radius: 9px; padding: 9px 13px; font-size: 14.5px; font-weight: 500; color: var(--blue);
}
.tool-pill svg { color: var(--blue); flex-shrink: 0; }
.tool-pill.wf { background: #FFF9EE; border-color: #F4E7C9; color: #4A4740; }
.tool-pill.wf svg { color: #DD8B07; }
.tp-check { margin-left: auto; display: inline-flex; }
.q-card { border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; }
.q-t { font-size: 13px; font-weight: 600; }
.q-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.q-chip { border: 1px solid var(--hairline); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 500; color: #4A4740; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.q-chip.sel { color: #1D5BD6; border-color: #BCD2F8; background: #F0F6FF; }
.tpl-card { border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; max-width: 360px; }
.tpl-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--hairline); background: #FCFBF9; }
.tpl-bubble { margin: 12px 14px 10px; background: #F0E9DB; border-radius: 11px; padding: 11px 13px; font-size: 13px; line-height: 1.45; display: block; }
.tpl-bubble b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.tpl-bubble p { max-width: none; color: #3F3D38; }
.tpl-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #A39D90; margin-top: 6px; white-space: nowrap; }
.tpl-meta i { font-style: normal; }
.tpl-cta { display: block; text-align: center; border-top: 1px solid #E2D8C4; margin-top: 8px; padding-top: 7px; color: #0B7A38; font-weight: 600; font-size: 12.5px; }
.tpl-foot { display: flex; align-items: center; gap: 7px; padding: 0 14px 11px; white-space: nowrap; }
.plan-card { border: 1px solid var(--hairline); border-radius: 10px; }
.plan-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); font-size: 13px; font-weight: 600; white-space: nowrap; }
.plan-badge { font-family: var(--mono); font-size: 10px; font-weight: 500; color: #1D5BD6; background: #EDF4FF; border: 1px solid #C9DCF8; border-radius: 99px; padding: 2px 9px; }
.plan-badge.donebadge { color: var(--green); background: #EEF7F0; border-color: #C7E3CE; }
.plan-steps { padding: 9px 14px 11px; }
.plan-step { display: flex; align-items: center; gap: 9px; padding: 4.5px 0; font-size: 13px; }
.plan-step.done .ps-t { color: var(--slate); text-decoration: line-through; }
.ps-ic { width: 15px; height: 15px; border-radius: 50%; border: 1.4px solid #CFC9BE; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.ps-ic.done { background: var(--green); border-color: var(--green); }
.ps-ic.spin { border-color: #C9DCF8; border-top-color: #1D5BD6; animation: ps-spin 0.9s linear infinite; }
@keyframes ps-spin { to { transform: rotate(360deg); } }
.publish-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px dashed var(--hairline); flex-wrap: wrap; }
.btn-pub { background: #1D5BD6; color: #fff; padding: 7px 18px; font-size: 13px; }
.btn-pub:hover { background: #1A4FBC; }
.pub-done { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.pub-undo { font-size: 13px; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.th-composer {
  position: relative; border: 1px solid var(--hairline); border-radius: 11px; padding: 11px 44px 11px 13px;
  font-size: 13px; color: #B5AFA3; background: var(--surface); box-shadow: 0 1px 2px rgba(27,26,23,0.03);
}
.th-send { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: #F1EFEA; color: var(--slate); display: inline-flex; align-items: center; justify-content: center; }
.th-beta { text-align: center; font-size: 10.5px; color: #C5BFB4; }

/* graph card (agent answers with a chart) */
.graph-card { border: 1px solid var(--hairline); border-radius: 10px; }
.graph-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.graph-h .gt b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.005em; }
.graph-h .gt span { display: block; margin-top: 4px; font-size: 14px; color: var(--slate); }
.graph-h .gtag { font-family: var(--mono); font-size: 10px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap; flex-shrink: 0; }
.graph-plot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; height: 256px; padding: 52px 18px 0; background: #FCFBF9; position: relative; }
.graph-plot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 52px; bottom: 0; pointer-events: none;
  background: repeating-linear-gradient(to top, rgba(27,26,23,0.05) 0 1px, transparent 1px 25%);
}
.graph-col { grid-row: 1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.graph-bar { position: relative; width: 100%; max-width: 104px; background: var(--ink); border-radius: 3px 3px 0 0; overflow: hidden; }
.graph-bar .gv { position: absolute; top: 9px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: rgba(255,255,255,0.95); }
.graph-bar.gb-green { background: var(--blue); }
.graph-bar.gb-ember { background: repeating-linear-gradient(135deg, var(--ember) 0 5px, color-mix(in srgb, var(--ember) 70%, white) 5px 10px); }

/* the two mid-funnel steps Meta can't see — Polly's restored zone */
.graph-band {
  grid-column: 2 / 4; grid-row: 1; position: relative; z-index: 1; margin: -52px -6px 0;
  background: rgba(27,26,23,0.03);
  border-left: 1px dashed #DDD7CC; border-right: 1px dashed #DDD7CC;
}
.gband-pill {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 99px;
  box-shadow: 0 1px 2px rgba(27,26,23,0.06); padding: 4px 11px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate);
}
.gband-pill b { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
@media (max-width: 560px) { .gband-pill .gp-l1 { display: none; } }

/* the leak: asked a question, never purchased */
.graph-ghost {
  position: relative; width: 100%; max-width: 104px; border-radius: 3px 3px 0 0;
  border: 1px dashed rgba(199,67,15,0.45); border-bottom: none;
  background: repeating-linear-gradient(135deg, rgba(199,67,15,0.13) 0 4px, rgba(199,67,15,0.04) 4px 8px);
  display: flex; align-items: center; justify-content: center;
}
.gg-note {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; box-shadow: var(--shadow-soft);
  padding: 6px 11px 7px; font-size: 10.5px; line-height: 1.3; color: var(--slate); text-align: center; white-space: nowrap;
}
.gg-note b { display: block; font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--ember); margin-bottom: 1px; }

.graph-x { display: flex; gap: 14px; padding: 12px 18px 16px; background: #FCFBF9; border-radius: 0 0 10px 10px; border-top: 1px solid var(--hairline); }
.graph-x span { flex: 1; min-width: 0; text-align: center; font-size: 14px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .graph-x { gap: 6px; padding: 12px 12px 16px; }
  .graph-x span { white-space: normal; overflow: visible; font-size: 11.5px; line-height: 1.2; text-wrap: balance; }
}
.graph-x .gx-green { color: var(--blue); font-weight: 600; }

/* entrance: bars rise, the restored zone declares itself, then the leak.
   Transition-based (no fire-once keyframes): pre-state only applies on screen
   until .graph-anim lands, so print/throttled contexts still show the chart. */
@media screen and (prefers-reduced-motion: no-preference) {
  .graph-bar { transition: height 0.7s cubic-bezier(0.2, 0.7, 0.25, 1); transition-delay: var(--d, 0s); }
  .graph-band { transition: opacity 0.6s ease 0.7s; }
  .gband-pill { transition: opacity 0.45s ease 0.95s, transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1.15) 0.95s; }
  .graph-ghost { transition: opacity 0.55s ease 1.2s; }
  .gg-note { transition: opacity 0.4s ease 1.45s, transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1.15) 1.45s; }
  .graph-card:not(.graph-anim) .graph-bar { height: 0 !important; }
  .graph-card:not(.graph-anim) .graph-band { opacity: 0; }
  .graph-card:not(.graph-anim) .gband-pill { opacity: 0; transform: translateX(-50%) scale(0.9); }
  .graph-card:not(.graph-anim) .graph-ghost { opacity: 0; }
  .graph-card:not(.graph-anim) .gg-note { opacity: 0; transform: scale(0.92); }
  /* once the entrance has had time to play, kill transitions so computed
     styles settle to final values even without rendered frames */
  .graph-card.graph-done .graph-bar,
  .graph-card.graph-done .graph-band,
  .graph-card.graph-done .gband-pill,
  .graph-card.graph-done .graph-ghost,
  .graph-card.graph-done .gg-note { transition: none; }
}
.gtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.gtable th { text-align: left; font-weight: 500; font-size: 11px; color: var(--slate); padding: 8px 14px 6px; border-bottom: 1px solid var(--hairline); }
.gtable td { padding: 7px 14px; border-bottom: 1px solid #F1EFEA; }
.gtable tr:last-child td { border-bottom: none; }
.gtable td:first-child { font-weight: 600; }
.gtable .drop { color: var(--slate); }
.gtable .drop.bad { color: var(--ember); font-weight: 600; }
.th-obs { font-size: 14.5px; line-height: 1.6; }
.th-obs b { font-weight: 600; }

/* full console (hero) */
.pcon { display: flex; min-height: 600px; width: 100%; text-align: left; }
.pcon-side { width: 186px; flex-shrink: 0; border-right: 1px solid var(--hairline); background: #FBFAF8; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.side-logo { display: flex; align-items: center; gap: 7px; padding: 2px 6px 12px; font-family: var(--display); font-weight: 600; font-size: 13.5px; }
.pcon-nav { display: flex; flex-direction: column; gap: 2px; }
.navitem { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--slate); padding: 6px 8px; border-radius: 7px; }
.navitem.active { color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 1px 2px rgba(27,26,23,0.04); }
.nbadge { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--slate); border: 1px solid var(--hairline); border-radius: 99px; padding: 1px 6px; background: var(--paper); }
.pcon-main { flex: 1; min-width: 0; padding: 14px 16px; background: var(--surface); }
.pcon-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pcon-title { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.kpi { border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-l { font-size: 11px; color: var(--slate); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.kpi-s { font-family: var(--mono); font-size: 9.5px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.panel { border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; min-width: 0; background: var(--surface); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--slate); padding: 8px 12px; border-bottom: 1px solid var(--hairline); background: #FCFBF9; white-space: nowrap; overflow: hidden; }
.panel-b { padding: 12px; }

/* mini funnel + objections */
.mf-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.mf-l { font-size: 11.5px; font-weight: 500; width: 96px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-track { flex: 1; height: 12px; border-radius: 4px; background: var(--paper); border: 1px solid var(--hairline); position: relative; overflow: hidden; }
.mf-track i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--ink); border-radius: 3px 0 0 3px; }
.mf-track .mf-ember { background: repeating-linear-gradient(135deg, var(--ember) 0 4px, color-mix(in srgb, var(--ember) 70%, white) 4px 8px); border-radius: 0; }
.mf-n { font-family: var(--mono); font-size: 10.5px; font-weight: 600; width: 40px; text-align: right; flex-shrink: 0; }
.mf-note { margin-top: 4px; font-size: 11px; color: var(--slate); }
.mf-note b { color: var(--ember); font-family: var(--mono); }
.obj-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.obj-row:last-child { margin-bottom: 0; }
.obj-l { font-size: 11.5px; font-weight: 500; width: 76px; flex-shrink: 0; }
.obj-track { flex: 1; height: 10px; border-radius: 4px; background: var(--paper); border: 1px solid var(--hairline); overflow: hidden; }
.obj-track i { display: block; height: 100%; background: color-mix(in srgb, var(--ember) 78%, white); border-radius: 3px; }
.obj-n { font-family: var(--mono); font-size: 10.5px; width: 32px; text-align: right; color: var(--slate); flex-shrink: 0; }

/* convo rows + list panes */
.convo-row { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--hairline); min-width: 0; }
.convo-row:last-child { border-bottom: none; }
.convo-row.active { background: var(--paper); box-shadow: inset 2px 0 0 var(--ink); }
.convo-av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #E8E2D6, #D8D2C4); flex-shrink: 0; }
.convo-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.convo-txt b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-txt span { font-size: 11px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.pv-list { width: 218px; flex-shrink: 0; border-right: 1px solid var(--hairline); background: #FBFAF8; }
.pv-list .convo-row { padding: 9px 10px; }
.pv-list .convo-meta .tagchip { display: none; }
.pv-list-h { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--slate); padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.draft-row { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.draft-row b { font-size: 11.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.draft-row.active { background: var(--paper); box-shadow: inset 2px 0 0 var(--ink); }

/* pillar view internals */
.pv-main { flex: 1; min-width: 0; background: var(--surface); }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--hairline); background: #FCFBF9; }
.pv-title { font-size: 12.5px; font-weight: 600; font-family: var(--display); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-pad { padding: 14px 16px; }
.pv-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.event-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--hairline); min-width: 0; }
.event-row:last-child { border-bottom: none; }
.ev-t { font-family: var(--mono); font-size: 9.5px; color: var(--slate); flex-shrink: 0; }
.ev-e { font-family: var(--mono); font-size: 10.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-s { font-family: var(--mono); font-size: 9.5px; color: var(--green); flex-shrink: 0; }

/* hero console placement */
.hero-console { width: min(1020px, 100%); margin: 56px auto 0; height: 470px; overflow: hidden; position: relative; z-index: 2; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(to bottom, black 64%, transparent 99%); mask-image: linear-gradient(to bottom, black 64%, transparent 99%); }
body[data-variant="console"] .hero-console .pwin-bar { display: none; }

@media (max-width: 940px) { .kpis { grid-template-columns: 1fr 1fr; } .pcon-grid { grid-template-columns: 1fr; } .pcon { min-height: 0; } .hero-console { height: 430px; } }
@media (max-width: 760px) { .pcon-side { display: none; } .pv-list { display: none; } .icon-rail { display: none; } .app-side { display: none; } .pv-grid { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .io-fade { transform: none; }
  .funnel-bar.grow { animation: none; }
}
