/* picoask.ai — marketing site styles.
 *
 * Self-contained (portable to the picoask.ai bucket): the :root block below
 * MIRRORS the "Paper Mono" default theme from ../styles/tokens.css — the app's
 * default dashboard theme (warm paper surfaces, an INK accent, green/red/purple
 * statuses). If the dashboard theme changes, resync these values.
 *
 * The animated product panels (.pa-*) intentionally mirror the real ask.html
 * thread components (trace card, streamed answer, data table, significance
 * callout, analysis-stats strip, next-step actionable) so the landing preview
 * reads like a genuine picoask session.
 */

:root {
  /* Fonts */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Backgrounds */
  --bg-app: #f7f6f2;
  --bg-app-alt: #f2f1ec;
  --bg-sidebar: #ecebe5;

  /* Surfaces */
  --surface: #ffffff;
  --surface-subtle: #fcfbf7;
  --surface-alt: #fdfcf9;
  --surface-header: #f2f1ec;
  --surface-hover: #f4f1ea;

  /* Text ramp */
  --text-base: #2b2620;
  --text-primary: #35302a;
  --text-secondary-strong: #4a443b;
  --text-secondary: #5c554b;
  --text-muted: #6b6459;
  --text-subtle: #8a8073;
  --text-faint: #a79d8b;
  --text-fainter: #b7ad9a;
  --text-on-accent: #ffffff;

  /* Borders / dividers */
  --border: #eae3d6;
  --border-soft: #e6dfd1;
  --border-2: #e2dbcd;
  --divider: #f4efe6;
  --border-input: #ddd6c8;
  --border-input-2: #e0d9cb;
  --border-dashed: #d5cdbc;

  /* Accent — INK (Paper Mono default). This is the key re-theme from the
     terracotta design ref: buttons/logo/markers are ink, not orange. */
  --accent: #2b2620;
  --accent-hover: #453f37;
  --accent-deep: #2b2620;
  --accent-text: #2b2620;
  --accent-tint: #eeece6;
  --accent-chip-bg: #e6e4dc;
  --accent-border: #cfccc2;

  /* Status (unchanged from the design — present in every theme) */
  --success: #5a8a63;
  --success-text: #4a7a52;
  --success-bg: #e6efe6;
  --success-border: #cfdccb;
  --warn: #cf8a3a;
  --warn-text: #a9782e;
  --danger: #c0553f;
  --danger-text: #b5402f;

  /* Category hues (slack/email dots on the scheduled-report card) */
  --cat-purple: #7a6cae;

  /* Radius / shadow / motion */
  --r-sm: 7px; --r-md: 9px; --r-lg: 10px; --r-xl: 12px; --r-2xl: 14px;
  --r-3xl: 16px; --r-modal: 18px; --r-pill: 20px; --r-full: 999px;
  --shadow-card: 0 2px 12px rgba(120, 70, 40, 0.06);
  --shadow-lift: 0 30px 70px -30px rgba(90, 65, 40, 0.4), 0 4px 14px rgba(90, 65, 40, 0.06);
  --shadow-window: 0 40px 90px -40px rgba(90, 65, 40, 0.42), 0 6px 20px rgba(90, 65, 40, 0.06);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 10px rgba(60, 45, 30, 0.14);
  --shadow-modal: 0 24px 70px rgba(40, 30, 20, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  color-scheme: light;
}

/* ── Reset / base ───────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-base);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-tint); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #d5d2c8; border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
a { color: inherit; }

/* ── Motion ─────────────────────────────────────────────────────────────── */
@keyframes pa-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pa-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pa-blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes pa-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.8); } }
@keyframes pa-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pa-head-in { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes pa-fade { from { opacity: 0; } to { opacity: 1; } }
.pa-rise { opacity: 0; animation: pa-rise .7s var(--ease) forwards; }
.pop { animation: pa-pop .4s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .pa-rise, .pop { animation: none; opacity: 1; }
  .pa-float { animation: none !important; }
}

/* ── Shell ──────────────────────────────────────────────────────────────── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page.warm { background: radial-gradient(120% 80% at 78% -10%, var(--surface-hover) 0%, var(--bg-app) 44%); }
.wrap { max-width: 1160px; width: 100%; margin: 0 auto; padding-left: clamp(20px, 5vw, 60px); padding-right: clamp(20px, 5vw, 60px); }
.wrap-lg { max-width: 1240px; }
.wrap-doc { max-width: 900px; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav { display: flex; align-items: center; gap: 12px; padding: 22px clamp(20px, 5vw, 60px); max-width: 1240px; width: 100%; margin: 0 auto; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.logo span { font-size: 16px; font-weight: 600; color: var(--text-on-accent); line-height: 1; }
.wordmark { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.beta-tag { margin-left: 4px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--text-faint); border: 1px solid var(--border-2); border-radius: 5px; padding: 2px 6px; white-space: nowrap; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 13.5px; color: var(--text-muted); text-decoration: none; transition: color .15s var(--ease); }
.nav-link:hover { color: var(--text-base); }
.nav-back { display: flex; align-items: center; gap: 7px; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; row-gap: 8px; padding-top: 14px; padding-bottom: 14px; }
  .nav-links { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-start; }
  .nav-link { font-size: 13px; }
  .beta-tag { display: none; }
  /* One CTA per screen: the wrapped nav button stacks right above each page's
     own hero/content CTA on phones — hide it and let the in-page CTA lead. */
  .nav-links .btn { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 9px; border: none; cursor: pointer; font-family: inherit; text-decoration: none; border-radius: var(--r-xl); font-size: 15px; font-weight: 500; transition: background .15s var(--ease), border-color .15s var(--ease); }
.btn-primary { padding: 14px 24px; background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary.sm { padding: 9px 15px; font-size: 13.5px; border-radius: var(--r-lg); }
.btn-secondary { padding: 14px 22px; background: var(--surface); color: var(--text-secondary-strong); border: 1px solid var(--border-input-2); }
.btn-secondary:hover { background: var(--surface-subtle); border-color: var(--border-dashed); }
.btn-ghost { padding: 10px 20px; background: var(--surface); color: var(--text-secondary-strong); border: 1px solid var(--border-input-2); border-radius: var(--r-lg); font-size: 13.5px; }
.btn-ghost:hover { background: var(--surface-hover); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { text-align: center; max-width: 1000px; margin: 0 auto; padding: clamp(32px, 6vw, 76px) clamp(20px, 5vw, 60px) clamp(20px, 3vw, 40px); }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; background: var(--surface-subtle); border: 1px solid var(--border-soft); border-radius: 40px; margin-bottom: 26px; }
.eyebrow-pill span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--text-muted); }
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
h1.display { margin: 0 auto; max-width: 780px; font-family: var(--font-serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(38px, 5.6vw, 68px); color: var(--text-base); }
.hero .lead { margin: 24px auto 0; max-width: 560px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; color: var(--text-secondary); }
.hero .cta-row { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Split hero (teaser) */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 64px); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(28px, 6vw, 68px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 80px); }
.hero-split h1 { margin: 0; font-family: var(--font-serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(38px, 5.4vw, 64px); color: var(--text-base); min-height: 3.45em; display: flex; align-items: flex-end; }
.hero-split h1 .rot { display: block; animation: pa-head-in .6s var(--ease) both; }
.hero-split .lead { margin: 22px 0 0; max-width: 460px; font-size: clamp(15px, 1.5vw, 17.5px); line-height: 1.62; color: var(--text-secondary); }
.hero-split .lead strong { color: var(--text-primary); font-weight: 400; }
.hero-note { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split h1 { min-height: 0; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { border-top: 1px solid var(--border); }
.section.subtle { background: var(--surface-subtle); }
.section.band { background: var(--bg-sidebar); }
/* Vertical padding only — the shorthand (`padding: … 0`) was zeroing .wrap's
   horizontal clamp() padding on the same element, so section content sat flush
   against the screen edge on small viewports. */
.section-inner { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(48px, 7vw, 90px); }
.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
h2.section-title { margin: 14px 0 0; max-width: 620px; font-family: var(--font-serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.12; font-size: clamp(28px, 4vw, 44px); color: var(--text-base); }

/* Feature rows */
.features { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }
.feature-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--accent-text); }
.feature h3 { margin: 12px 0 0; font-family: var(--font-serif); font-weight: 500; font-size: 27px; letter-spacing: -.01em; color: var(--text-base); }
.feature p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.62; color: var(--text-secondary); max-width: 440px; }
.feature p .ok { color: var(--success-text); font-weight: 500; }
.feature p .no { color: var(--danger-text); font-weight: 500; }
.feature-art { border: 1px solid var(--border-soft); border-radius: var(--r-3xl); background: var(--surface); box-shadow: 0 20px 50px -30px rgba(90,65,40,.4); padding: 26px 22px; min-height: 236px; display: flex; align-items: center; justify-content: center; }

/* Value strip */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(28px, 4vw, 52px); }
.value-item { display: flex; flex-direction: column; gap: 10px; }
.value-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-chip-bg); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; color: var(--accent-text); }
.value-item h3 { margin: 6px 0 0; font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -.01em; color: var(--text-base); }
.value-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* Closing CTA */
.closing { text-align: center; }
.closing h2 { margin: 0 auto; max-width: 640px; font-family: var(--font-serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(30px, 4.4vw, 50px); color: var(--text-base); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border-input); background: var(--bg-sidebar); margin-top: auto; }
.foot-inner { max-width: 1240px; width: 100%; margin: 0 auto; padding: 30px clamp(20px, 5vw, 60px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot .copy { font-size: 12.5px; color: var(--text-subtle); }
.foot-links { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.foot-links a:hover { color: var(--text-base); }

/* ── Product window (shared shell for the animated preview) ─────────────── */
.pa-window { border: 1px solid var(--border-2); border-radius: 20px; background: var(--surface-subtle); box-shadow: var(--shadow-window); overflow: hidden; }
.pa-window.float { animation: pa-float 8s ease-in-out infinite; box-shadow: var(--shadow-lift); border-radius: 18px; }
.pa-chrome { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--surface-header); }
.pa-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #dcd4c4; }
.pa-chrome .url { margin: 0 auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-body { padding: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.pa-caption { text-align: center; margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-fainter); }

/* Turn + avatars (mirrors ask.css .turn/.av) */
.pa-turn { display: flex; gap: 12px; align-items: flex-start; }
.pa-av { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.pa-av-user { background: #46403a; color: #f0ebe0; }
.pa-av-assistant { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); font-size: 14px; }
.pa-abody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pa-bubble { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 4px 13px 13px 13px; padding: 12px 15px; font-size: 14px; line-height: 1.5; color: var(--text-primary); max-width: 560px; }

/* Trace card */
.pa-trace { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.pa-trace-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.pa-trace-head .lbl { font-size: 12.5px; font-weight: 500; color: var(--text-secondary-strong); }
.pa-trace-head .meta { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.pa-trace-status { padding: 11px 15px 13px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--divider); }
.pa-trace-status .txt { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.pa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.pa-dot.sm { width: 5px; height: 5px; }
.pa-dot.pulse { animation: pa-pulse 1.1s ease-in-out infinite; }
.pa-check { width: 16px; height: 16px; border-radius: 50%; background: var(--success-bg); border: 1px solid var(--success-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Answer text */
.pa-answer { font-size: 14.5px; line-height: 1.65; color: var(--text-primary); }
.pa-answer strong { font-weight: 600; }
.pa-cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: pa-blink 1s step-end infinite; }
.pa-cursor.sm { width: 6px; height: 13px; }

/* Data table (mirrors ask.css table.dt) */
.pa-dt-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.pa-table-card { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
table.pa-dt { width: 100%; border-collapse: collapse; font-size: 13px; }
table.pa-dt th { text-align: left; padding: 9px 14px; font-weight: 500; color: var(--text-subtle); font-size: 11.5px; border-bottom: 1px solid var(--border); background: var(--surface-header); }
table.pa-dt th.num, table.pa-dt td.num { text-align: right; font-family: var(--font-mono); }
table.pa-dt td { padding: 9px 14px; color: var(--text-secondary-strong); }
table.pa-dt td.dim { color: var(--text-subtle); }
table.pa-dt tr.total td { background: var(--surface-header); font-weight: 500; border-top: 1px solid var(--border); }

/* Significance callout (mirrors ask.css .callout) */
.pa-callout { border-radius: var(--r-xl); padding: 13px 15px; border: 1px solid var(--border); background: var(--surface); }
.pa-callout-head { display: flex; align-items: center; gap: 9px; }
.pa-callout-head .dot { width: 8px; height: 8px; border-radius: 50%; }
.pa-callout-head .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; font-weight: 500; }
.pa-callout-head .p { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-secondary-strong); font-weight: 500; }
.pa-callout .desc { font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); margin-top: 7px; }
.pa-callout.sig .k { color: var(--success-text); } .pa-callout.sig .dot { background: var(--success); }
.pa-callout.nsig .k { color: var(--warn-text); } .pa-callout.nsig .dot { background: var(--warn); }

/* Analysis-stats strip (mirrors ask.css .stats/.stat-cell) */
.pa-stats { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); padding: 9px 4px; display: flex; align-items: center; flex-wrap: wrap; }
.pa-stat { display: flex; flex-direction: column; gap: 2px; padding: 4px 15px; }
.pa-stat + .pa-stat { border-left: 1px solid var(--divider); }
.pa-stat .n { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text-primary); }
.pa-stat .l { font-size: 10.5px; color: var(--text-subtle); }

/* Next-step actionable */
.pa-action { display: flex; align-items: flex-start; gap: 11px; background: var(--surface-subtle); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 13px 15px; }
.pa-action-ic { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; background: var(--accent-chip-bg); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.pa-action .t { font-size: 13px; line-height: 1.55; color: var(--text-primary); }
.pa-action .t strong { font-weight: 600; }

/* Mini charts (rendered in the real product viz palette) */
.pa-chart { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); padding: 11px 12px 9px; }
.pa-chart-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; line-height: 1.3; }
.pa-chart-plot svg { display: block; width: 100%; height: auto; }
.pa-chart-plot svg text { font-family: var(--font-mono); }
.pa-chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; padding-left: 2px; }
.pa-chart-legend .lg { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-subtle); }
.pa-chart-legend .lg i { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
@keyframes pa-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pa-draw { to { stroke-dashoffset: 0; } }
.pa-chart.pop .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: pa-grow .55s var(--ease) both; }
.pa-chart.pop .line { stroke-dasharray: 640; stroke-dashoffset: 640; animation: pa-draw .9s var(--ease) .1s forwards; }
@media (prefers-reduced-motion: reduce) { .pa-chart.pop .bar, .pa-chart.pop .line { animation: none; stroke-dashoffset: 0; } }

/* Data-table visual (compact report table) */
.pa-viz-table .pa-chart-label { margin-bottom: 8px; }
.pa-tbl { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.pa-compact .pa-dt { font-size: 11px; }
.pa-compact .pa-dt th { padding: 6px 9px; font-size: 10px; }
.pa-compact .pa-dt td { padding: 6px 9px; }
.pa-dt .heat { display: inline-block; padding: 1px 6px; border-radius: 5px; background: rgba(162, 79, 48, .13); color: var(--text-secondary-strong); font-family: var(--font-mono); }

/* Key-takeaway callout (the conclusion block between/after charts) */
.pa-take { border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: var(--r-lg); background: var(--surface); padding: 9px 12px; }
.pa-take .lead { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.pa-take .tk { font-size: 12px; line-height: 1.55; color: var(--text-secondary-strong); }
.pa-take .tk strong { color: var(--text-primary); font-weight: 600; }

/* Compact variant for the teaser preview */
/* fixed-height scroll viewport — the thread streams and auto-scrolls inside it */
.pa-compact .pa-body.pa-scroll { padding: 0; min-height: 0; height: 404px; overflow: hidden; position: relative; }
.pa-thread { display: flex; flex-direction: column; gap: 14px; padding: 18px; transition: transform .5s var(--ease); will-change: transform; }
/* soft fades at the top/bottom edges so content scrolls in/out gracefully */
.pa-compact .pa-body.pa-scroll::before,
.pa-compact .pa-body.pa-scroll::after { content: ''; position: absolute; left: 0; right: 0; height: 20px; pointer-events: none; z-index: 2; }
.pa-compact .pa-body.pa-scroll::before { top: 0; background: linear-gradient(var(--surface-subtle), transparent); }
.pa-compact .pa-body.pa-scroll::after { bottom: 0; background: linear-gradient(transparent, var(--surface-subtle)); }
.pa-turn-user { display: flex; justify-content: flex-end; }
.pa-compact .pa-bubble { max-width: 90%; border-radius: 12px 4px 12px 12px; font-size: 12.5px; padding: 10px 13px; }
.pa-compact .pa-av { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
.pa-compact .pa-answer { font-size: 12.5px; line-height: 1.6; }
/* stats strip → tidy 3×2 grid, bordered like the other boxes */
.pa-compact .pa-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.pa-compact .pa-stat { align-items: center; text-align: center; gap: 1px; padding: 8px 4px; border-left: 1px solid var(--divider); border-top: 1px solid var(--divider); }
.pa-compact .pa-stat:nth-child(3n+1) { border-left: none; }
.pa-compact .pa-stat:nth-child(-n+3) { border-top: none; }
.pa-compact .pa-stat .n { font-size: 12px; }
.pa-compact .pa-stat .l { font-size: 9px; line-height: 1.2; }

/* Scenario dots (teaser) */
.pa-dots { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; }
.pa-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border-dashed); transition: all .3s var(--ease); }
.pa-dots i.on { width: 18px; background: var(--accent); }

/* Metric-graph SVG accents */
.mg-node-primary { fill: var(--accent); }
.mg-edge { stroke: var(--success); stroke-width: 2; }
.mg-edge.weak { stroke: var(--border-dashed); stroke-width: 1.6; stroke-dasharray: 4 4; }

/* Scheduled-report card */
.sr-card { border: 1px solid var(--border-soft); border-radius: var(--r-3xl); background: var(--surface); box-shadow: 0 20px 50px -30px rgba(90,65,40,.4); padding: 20px; min-height: 236px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.sr-title { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.sr-chips { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.sr-chip { font-family: var(--font-mono); font-size: 11px; padding: 6px 11px; border-radius: 8px; background: var(--surface-header); border: 1px solid var(--border-soft); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.sr-chip.accent { background: var(--accent-chip-bg); border-color: var(--accent-border); color: var(--accent-text); }
.sr-chip .d { width: 6px; height: 6px; border-radius: 50%; }
.sr-next { margin-top: 4px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--surface-subtle); border: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }

/* Actionables list (feature 3) */
.act-list { border: 1px solid var(--border-soft); border-radius: var(--r-3xl); background: var(--surface); box-shadow: 0 20px 50px -30px rgba(90,65,40,.4); padding: 20px; min-height: 236px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.act-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 13px; border-radius: 11px; background: var(--surface-subtle); border: 1px solid var(--border-soft); }
.act-n { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; background: var(--accent-chip-bg); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.act-item .t { font-size: 12.5px; line-height: 1.5; color: var(--text-primary); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(18px, 2.5vw, 26px); margin-top: clamp(36px, 5vw, 56px); align-items: stretch; }
.price-card { display: flex; flex-direction: column; border: 1px solid var(--border-soft); border-radius: var(--r-3xl); background: var(--surface); padding: 26px 24px; box-shadow: var(--shadow-card); }
.price-card.featured { border-color: var(--accent-border); box-shadow: 0 30px 70px -34px rgba(90,65,40,.4); position: relative; }
.price-badge { position: absolute; top: -11px; left: 24px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--text-on-accent); background: var(--accent); padding: 4px 10px; border-radius: var(--r-full); }
.price-name { font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -.01em; color: var(--text-base); }
.price-tagline { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text-subtle); min-height: 2.9em; }
.price-amount { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price-amount .amt { font-family: var(--font-serif); font-weight: 500; font-size: 40px; letter-spacing: -.02em; color: var(--text-base); line-height: 1; }
.price-amount .per { font-size: 13px; color: var(--text-subtle); }
.price-amount .free { font-family: var(--font-serif); font-weight: 500; font-size: 40px; letter-spacing: -.02em; color: var(--text-base); line-height: 1; }
.price-cta { margin-top: 20px; }
.price-cta .btn { width: 100%; justify-content: center; }
.price-overage { margin-top: 12px; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }
.price-overage .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.price-feats { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 11px; }
.price-feats .fh { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: -2px; }
.price-feats li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary-strong); }
.price-feats li .ic { flex-shrink: 0; margin-top: 2px; color: var(--success); display: inline-flex; }
.price-feats li.muted { color: var(--text-fainter); }
.price-feats li.muted .ic { color: var(--text-fainter); }
.price-note { margin-top: 22px; text-align: center; font-size: 13px; color: var(--text-subtle); }

/* Wide inclusion card (data warehouse) — spans the grid below the seat cards */
.price-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(230px, 320px) 1fr; gap: 18px 44px; align-items: center; }
.price-card.wide .price-feats { border-top: 0; padding-top: 0; margin-top: 0; }
@media (max-width: 640px) {
  .price-card.wide { display: flex; flex-direction: column; }
  .price-card.wide .price-feats { border-top: 1px solid var(--divider); padding-top: 20px; margin-top: 20px; }
}

/* Overage explainer + FAQ */
.info-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.info-item h3 { margin: 10px 0 0; font-family: var(--font-serif); font-weight: 500; font-size: 20px; letter-spacing: -.01em; color: var(--text-base); }
.info-item p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.info-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-chip-bg); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; color: var(--accent-text); }
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { font-size: 15.5px; font-weight: 600; color: var(--text-primary); }
.faq-a { margin: 8px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }

/* ── Legal docs ─────────────────────────────────────────────────────────── */
.doc { max-width: 760px; width: 100%; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 60px) 40px; flex: 1; }
.doc .legal-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.doc h1 { margin: 14px 0 0; font-family: var(--font-serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(34px, 5vw, 52px); color: var(--text-base); }
.doc-meta { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-subtle); }
.doc-meta strong { color: var(--text-secondary-strong); font-weight: 400; }
.doc-meta .sep { color: var(--border-dashed); }
.doc .intro { margin: 34px 0 0; font-size: 15px; line-height: 1.72; color: var(--text-secondary-strong); }
.doc section { margin-top: 40px; }
.doc h2 { margin: 0; display: flex; align-items: baseline; gap: 12px; font-family: var(--font-serif); font-weight: 500; font-size: 24px; letter-spacing: -.01em; color: var(--text-base); }
.doc h2 .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); font-weight: 500; }
.doc p { margin: 14px 0 0; font-size: 15px; line-height: 1.72; color: var(--text-secondary-strong); }
.doc ul { margin: 14px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.doc li { display: flex; gap: 11px; font-size: 15px; line-height: 1.65; color: var(--text-secondary-strong); }
.doc li .b { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 9px; }
.doc-contact { margin-top: 48px; padding: 22px 24px; background: var(--surface-subtle); border: 1px solid var(--border-2); border-radius: var(--r-3xl); }
.doc-contact .h { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.doc-contact p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.doc-contact a { color: var(--accent-text); text-decoration: none; font-weight: 500; }

/* ── Docs page (docs.html) — extends the legal .doc layout ──────────────── */
.doc .toc { margin: 30px 0 0; padding: 18px 20px; background: var(--surface-subtle); border: 1px solid var(--border-2); border-radius: var(--r-3xl); display: flex; flex-direction: column; gap: 9px; }
.doc .toc a { font-size: 14px; color: var(--text-secondary-strong); text-decoration: none; display: flex; gap: 11px; align-items: baseline; }
.doc .toc a .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }
.doc .toc a:hover { color: var(--text-base); }
.doc pre { margin: 14px 0 0; padding: 15px 18px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-xl); overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; color: var(--text-secondary-strong); }
.doc code { font-family: var(--font-mono); font-size: .92em; background: var(--surface-header); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.doc pre code { background: none; border: none; padding: 0; font-size: inherit; white-space: pre; }
.doc section { scroll-margin-top: 70px; }

/* ── Comparison matrix + head-to-heads (vs.html) ────────────────────────── */
.cmp-wrap { margin-top: clamp(32px, 4vw, 48px); border: 1px solid var(--border); border-radius: var(--r-3xl); background: var(--surface); overflow-x: auto; box-shadow: var(--shadow-card); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
table.cmp th { text-align: center; padding: 13px 14px; font-weight: 500; font-size: 12.5px; color: var(--text-subtle); border-bottom: 1px solid var(--border); background: var(--surface-header); white-space: nowrap; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; }
table.cmp th.us { color: var(--accent-text); font-weight: 600; }
table.cmp td { padding: 11px 14px; text-align: center; color: var(--text-secondary-strong); border-bottom: 1px solid var(--divider); }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp td.us { background: var(--surface-subtle); }
.cmp-yes { color: var(--success-text); font-weight: 600; }
.cmp-no { color: var(--text-fainter); }
.cmp-part, .cmp-wip { font-family: var(--font-mono); font-size: 11px; color: var(--warn-text); white-space: nowrap; }
.cmp-note { margin-top: 16px; font-size: 12.5px; color: var(--text-subtle); }
.h2h { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.h2h .col { border: 1px solid var(--border-soft); border-radius: var(--r-xl); background: var(--surface); padding: 16px 18px; }
.h2h .col .t { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.h2h .them .t { color: var(--text-subtle); }
.h2h .us .t { color: var(--accent-text); }
.h2h .col p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }
@media (max-width: 640px) { .h2h { grid-template-columns: 1fr; } }

/* ── Fixed-height viewport for the full showcase replay (#pa-showcase on
   home + how-it-works) — mirrors the teaser's .pa-scroll idiom so the page
   never reflows as the session streams and loops ────────────────────────── */
.pa-showcase-vp { height: min(540px, 78vh); overflow: hidden; position: relative; }
.pa-showcase-vp .pa-showcase-inner { transition: transform .5s var(--ease); will-change: transform; }
.pa-showcase-vp::before, .pa-showcase-vp::after { content: ''; position: absolute; left: 0; right: 0; height: 22px; pointer-events: none; z-index: 2; }
.pa-showcase-vp::before { top: 0; background: linear-gradient(var(--surface-subtle), transparent); }
.pa-showcase-vp::after { bottom: 0; background: linear-gradient(transparent, var(--surface-subtle)); }

/* ── Section chart figures (how-it-works.html) — reuse the .pa-chart viz
   idiom from the teaser threads at section-figure scale ─────────────────── */
.hiw-fig { margin: clamp(28px, 4vw, 44px) auto 0; max-width: 640px; border: 1px solid var(--border-soft); border-radius: var(--r-3xl); background: var(--surface); box-shadow: var(--shadow-card); padding: 18px 22px 16px; }
.hiw-fig .fig-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.hiw-fig .fig-title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.hiw-fig .fig-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; padding: 4px 10px; border-radius: var(--r-full); background: var(--surface-subtle); border: 1px solid var(--border-soft); color: var(--text-muted); white-space: nowrap; }
.hiw-fig .fig-chip .d { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.hiw-fig svg { display: block; width: 100%; height: auto; }
.hiw-fig svg text { font-family: var(--font-mono); }
.hiw-fig figcaption { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-subtle); }

/* ── Waitlist modal (teaser) ────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(43,38,32,.34); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; animation: pa-fade .14s ease; }
.scrim.open { display: flex; }
.modal { width: 480px; max-width: 100%; background: var(--surface-subtle); border: 1px solid var(--border-2); border-radius: var(--r-modal); box-shadow: var(--shadow-modal); overflow: hidden; animation: pa-pop .22s var(--ease); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 24px 0; }
.modal-head .h { font-family: var(--font-serif); font-size: 24px; font-weight: 500; letter-spacing: -.01em; color: var(--text-base); }
.modal-head .sub { font-size: 13.5px; color: var(--text-subtle); margin-top: 4px; }
.modal-x { flex-shrink: 0; border: 1px solid var(--border-input-2); background: var(--surface); cursor: pointer; color: var(--text-subtle); border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.modal-x:hover { background: var(--surface-hover); color: var(--text-base); }
.modal-body { padding: 20px 24px 24px; }
.wl-form { display: flex; flex-direction: column; gap: 11px; }
.wl-form label { display: flex; flex-direction: column; gap: 6px; }
.wl-form label .lbl { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.wl-form label .opt { color: var(--text-fainter); font-weight: 400; }
.wl-form .row { display: flex; gap: 11px; flex-wrap: wrap; }
.wl-form .row label { flex: 1; min-width: 130px; }
.wl-form input { padding: 12px 14px; border: 1px solid var(--border-input-2); background: var(--surface); border-radius: 11px; font-size: 14px; color: var(--text-primary); outline: none; font-family: inherit; }
.wl-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.wl-form button[type=submit] { margin-top: 6px; justify-content: center; }
.wl-fine { display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 12px; color: var(--text-faint); }
.wl-err { font-size: 12.5px; line-height: 1.5; color: var(--danger-text); }
.wl-form button[type=submit][aria-busy=true] { opacity: .7; cursor: progress; }
.wl-ok { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 6px; animation: pa-pop .3s var(--ease); }
.wl-ok .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--success-bg); border: 1px solid var(--success-border); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.wl-ok .h { font-family: var(--font-serif); font-size: 21px; font-weight: 500; color: var(--text-base); }
.wl-ok .p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin-top: 6px; max-width: 320px; }
.wl-ok .p strong { color: var(--text-primary); font-weight: 500; }
