/* ============================================================
   OnBeat — shared stylesheet
   Tokens lifted from BRAND.md §4–6. Edit here, every page follows.
   ============================================================ */

:root {
  /* Color */
  --indigo: #4338CA;
  --indigo-dark: #3730A3;
  --indigo-light: #6366F1;
  --indigo-tint: #EEEDFE;
  --coral: #FF6B5B;
  --mint: #2ED3A3;            /* product surfaces only — never marketing */
  --ink: #0F0F1A;
  --ink-surface: #1A1A2A;
  --slate: #4A4A5C;
  --muted: #6B6B80;
  --dark-muted: #A5A5BC;
  --line: #E1E1EA;
  --line-dark: rgba(255,255,255,0.08);
  --mist: #F7F7FB;
  --white: #FFFFFF;

  /* Type */
  --font: "Manrope", Inter, system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-sm: 8px;   /* buttons, inputs */
  --r-md: 12px;  /* cards, panels */
  --r-lg: 14px;  /* product icons */

  /* Layout */
  --max: 1120px;
  --measure: 640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }

/* Type scale — BRAND.md §5 */
.t-display { font-size: 56px; line-height: 1.07; letter-spacing: -0.03em; }
.t-h1      { font-size: 40px; line-height: 1.1;  letter-spacing: -0.02em; }
.t-h2      { font-size: 28px; line-height: 1.21; letter-spacing: -0.015em; }
.t-h3      { font-size: 20px; line-height: 1.4;  letter-spacing: -0.01em; }
.t-lede    { font-size: 18px; line-height: 1.6;  color: var(--slate); }
.t-small   { font-size: 14px; line-height: 1.57; }
.t-caption { font-size: 12px; line-height: 1.5; font-weight: 500; }
.num       { font-variant-numeric: tabular-nums; }

.eyebrow { font-size: 14px; color: var(--muted); }
.eyebrow-i { font-size: 14px; font-weight: 600; color: var(--indigo); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--r-sm);
  font-family: var(--font); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-dark); }
.btn-secondary { background: transparent; color: var(--indigo); border-color: var(--line); }
.btn-secondary:hover { background: var(--indigo-tint); }
.btn-onink { background: var(--white); color: var(--ink); }
.btn-onink:hover { background: var(--mist); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }

/* Text link with a moving arrow */
.arrow { color: var(--indigo); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.arrow::after { content: "\2192"; transition: transform 140ms ease; }
.arrow:hover::after { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  /* Translucent white over a Mist page: content passing underneath gives the
     bar depth without the drop shadow BRAND.md §6 rules out. */
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; }

.links { display: flex; align-items: center; gap: 8px; }
.nav .btn { height: 40px; margin-left: 12px; }

/* The two products read as a pair, set apart from the CTA. */
.navgroup { display: flex; align-items: center; gap: 8px; }

/* Outlined pills, not bare text — they have to hold their own next to the
   solid CTA without competing with it, so: Ink label, Indigo glyph. */
.navlink {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.navlink .glyph {
  width: 18px; height: 18px; flex: none;
  color: var(--indigo);
  transition: color 140ms ease;
}

/* Hover: the whole pill turns indigo. */
.navlink:hover {
  background: var(--indigo-tint);
  border-color: var(--indigo);
  color: var(--indigo);
}
.navlink:hover .glyph { color: var(--indigo); }

/* Current page: the same indigo state, held. */
.navlink[aria-current="page"] {
  background: var(--indigo-tint);
  border-color: var(--indigo);
  color: var(--indigo);
}
.navlink[aria-current="page"] .glyph { color: var(--indigo); }

/* Soft indigo wash behind the hero, so the top of the page has some depth
   instead of a flat slab of Mist. Anchored to the section, not the body. */
.phead, .hero {
  position: relative;
  background-image:
    radial-gradient(900px 460px at 72% -20%, rgba(99,102,241,0.20), transparent 64%),
    radial-gradient(620px 380px at 4% -30%, rgba(67,56,202,0.10), transparent 62%);
  background-repeat: no-repeat;
}

/* ---------- Page header (interior pages) ---------- */
.phead .wrap { padding: 72px 24px 8px; }
.phead h1 { max-width: 16ch; margin: 8px 0 0; }
.phead .t-lede { max-width: 52ch; margin-top: 20px; }
.phead .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.phead .picon { width: 48px; height: 48px; margin-bottom: 20px; display: block; }

/* ---------- Sections ---------- */
.sec .wrap { padding: 80px 24px; }
.sec-tight .wrap { padding: 56px 24px; }
.sec-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-ink { background: var(--ink); color: var(--white); }
.sec-ink .t-lede, .sec-ink p { color: var(--dark-muted); }
.sec-ink h2, .sec-ink h3 { color: var(--white); }
.sec-head { margin-bottom: 40px; }
.sec-head p { color: var(--slate); max-width: 56ch; margin-top: 12px; }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.sec-white .card { background: var(--mist); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 15px; }
.card .ic {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--indigo-tint); color: var(--indigo);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .ic svg { width: 20px; height: 20px; }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 2px solid var(--indigo); padding-top: 16px; counter-increment: step; }
.step h3 { margin-bottom: 8px; }
.step h3::before { content: counter(step) ". "; color: var(--indigo); }
.step p { color: var(--slate); font-size: 15px; }

/* Feature row: text one side, visual the other */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.frow + .frow { margin-top: 80px; }
.frow.flip .frow-text { order: 2; }
.frow-text h2 { max-width: 16ch; }
.frow-text p { color: var(--slate); margin-top: 14px; max-width: 44ch; }
.sec-ink .frow-text p { color: var(--dark-muted); }

/* Checked list */
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--indigo); margin-top: 9px; flex: none;
}
.sec-ink .checks { color: var(--white); }
.sec-ink .checks li::before { background: var(--indigo-light); }

/* ---------- CTA band ---------- */
.band { background: var(--ink); color: var(--white); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 24px; flex-wrap: wrap; }
.band small { display: block; color: var(--dark-muted); font-size: 13px; margin-bottom: 6px; }
.band .with { font-size: 18px; font-weight: 600; }
.band .band-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Footer ---------- */
footer { background: var(--mist); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; padding: 28px 24px; font-size: 14px; color: var(--muted); flex-wrap: wrap; gap: 12px; }
footer .brand { font-size: 16px; color: var(--ink); }
footer .brand img { width: 22px; height: 22px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a:hover { color: var(--ink); }

/* ---------- Product mock: dark (Insights) ---------- */
.frame {
  background: var(--ink); border-radius: var(--r-md); padding: 14px;
  box-shadow: 0 24px 48px rgba(67,56,202,0.16);
}
.frame .bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--dark-muted); font-size: 12px; }
.frame .bar span { width: 8px; height: 8px; border-radius: 50%; background: #3A3A4C; }
.frame .bar em { font-style: normal; margin-left: 6px; }
.panel { background: var(--ink-surface); border-radius: var(--r-sm); padding: 12px; }
.panel small { display: block; font-size: 11px; color: var(--dark-muted); margin-bottom: 8px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.kpi small { margin-bottom: 4px; }
.kpi b { font-size: 22px; font-weight: 600; color: var(--white); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi b.risk { color: var(--coral); }
.bars { height: 88px; display: flex; align-items: flex-end; gap: 6px; }
.bars i { flex: 1; background: var(--indigo); border-radius: 3px 3px 0 0; display: block; }
.bars i.hi { background: var(--indigo-light); }
.ask {
  margin-top: 8px; background: var(--ink-surface); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 13px; color: var(--dark-muted);
  display: flex; justify-content: space-between; gap: 12px;
}
.ask b { color: var(--white); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  /* Keep both products reachable on mobile — as icon-only pills. */
  .nav .btn { margin-left: 4px; }
  .navgroup { gap: 6px; }
  .t-display { font-size: 40px; }
  .t-h1 { font-size: 32px; }
  .t-h2 { font-size: 24px; }
  .sec .wrap { padding: 56px 24px; }
  .phead .wrap { padding: 48px 24px 8px; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; gap: 24px; }
  .frow { grid-template-columns: 1fr; gap: 32px; }
  .frow + .frow { margin-top: 56px; }
  .frow.flip .frow-text { order: 0; }
}

/* ============================================================
   Screenshot slots
   Drop a real capture in as:
     <figure class="shot"><img src="assets/screenshots/x.png" alt="..."><figcaption>…</figcaption></figure>
   Until then, .shot-empty renders a correctly-proportioned placeholder
   so the page layout is final before the images exist.
   ============================================================ */
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
/* The one shadow BRAND.md §6 allows: under a hero screenshot. */
.shot-hero img, .shot-hero .shot-empty { box-shadow: 0 24px 48px rgba(67,56,202,0.16); border: 0; }
.shot figcaption { font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--muted); margin-top: 10px; }
.sec-ink .shot figcaption { color: var(--dark-muted); }

.shot-empty {
  border-radius: var(--r-md);
  border: 1px dashed var(--line);
  background:
    linear-gradient(135deg, rgba(67,56,202,0.04) 0%, rgba(99,102,241,0.07) 100%),
    var(--white);
  display: grid; place-items: center; text-align: center;
  padding: 24px; color: var(--muted);
  aspect-ratio: 16 / 10;
}
.sec-ink .shot-empty { background: var(--ink-surface); border-color: var(--line-dark); }
.shot-empty .lbl { font-size: 13px; font-weight: 600; color: var(--slate); }
.sec-ink .shot-empty .lbl { color: var(--dark-muted); }
.shot-empty .dim { font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.shot-empty svg { width: 22px; height: 22px; color: var(--indigo-light); margin-bottom: 10px; }
.shot-portrait .shot-empty { aspect-ratio: 4 / 5; }
.shot-wide .shot-empty { aspect-ratio: 16 / 9; }

/* ============================================================
   Reply mock — light, because Reply reads like a messaging tool (§8)
   ============================================================ */
.thread {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 24px 48px rgba(67,56,202,0.10);
}
.thread-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.thread-head .av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--indigo-tint); color: var(--indigo);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.thread-head .who { font-weight: 600; font-size: 15px; }
.thread-head .meta { font-size: 12px; color: var(--muted); }
.thread-head .tag {
  margin-left: auto; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: #FFF1EF; color: #C8402F;
}
.thread-body { padding: 16px; display: grid; gap: 10px; background: var(--mist); }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.msg.them { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.us { background: var(--indigo); color: var(--white); margin-left: auto; border-bottom-right-radius: 4px; }
.msg .stamp { display: block; font-size: 11px; margin-top: 4px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.thread-note {
  font-size: 12px; font-weight: 500; color: var(--muted);
  text-align: center; padding: 2px 0;
}
.thread-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--line); background: var(--white);
}
.thread-foot .box {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 14px; color: var(--muted);
}
.thread-foot .send {
  background: var(--indigo); color: var(--white);
  border-radius: var(--r-sm); padding: 9px 16px; font-size: 14px; font-weight: 600;
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { border-left: 2px solid var(--indigo); padding-left: 16px; }
.stat b { display: block; font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--slate); }
.sec-ink .stat { border-left-color: var(--indigo-light); }
.sec-ink .stat span { color: var(--dark-muted); }

@media (max-width: 880px) { .stats { grid-template-columns: 1fr; gap: 20px; } }

/* ============================================================
   Forms
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--indigo); outline: 2px solid var(--indigo); outline-offset: 1px;
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-foot { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .fine { font-size: 13px; color: var(--muted); max-width: 40ch; }
.hp { position: absolute; left: -9999px; }

/* Two-column page: form beside supporting copy */
.split { display: grid; grid-template-columns: 1fr 0.8fr; gap: 64px; align-items: start; }
.aside h3 { margin-bottom: 10px; }
.aside .card + .card { margin-top: 16px; }

/* Prose (privacy, legal) */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 28px; letter-spacing: -0.015em; margin: 48px 0 12px; }
.prose h3 { font-size: 20px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--slate); }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 8px; }
.prose a { color: var(--indigo); font-weight: 600; }
.prose .updated { font-size: 14px; color: var(--muted); }

/* Centered confirmation */
.center-note { text-align: center; max-width: 52ch; margin: 0 auto; }
.center-note .tick {
  width: 56px; height: 56px; border-radius: 50%; background: var(--indigo-tint);
  color: var(--indigo); display: grid; place-items: center; margin: 0 auto 24px;
}
.center-note .tick svg { width: 28px; height: 28px; }
.center-note p { color: var(--slate); margin-top: 14px; }
.center-note .cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .form-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* Mini inline bar row used inside an answer */
.mini { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin: 10px 0 2px; }
.mini i { flex: 1; background: var(--indigo); border-radius: 2px 2px 0 0; display: block; }
.mini i.hi { background: var(--indigo-light); }

/* ============================================================
   Churn decay case study
   ============================================================ */
.churn {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px;
}
.sec-ink .churn { background: var(--ink-surface); border-color: var(--line-dark); }
.churn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.churn-head .av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--indigo-tint); color: var(--indigo);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.churn-head .who { font-weight: 600; font-size: 15px; }
.sec-ink .churn-head .who { color: var(--white); }
.churn-head .meta { font-size: 12px; color: var(--muted); }
.sec-ink .churn-head .meta { color: var(--dark-muted); }
.churn-head .val { margin-left: auto; text-align: right; }
.churn-head .val b { display: block; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sec-ink .churn-head .val b { color: var(--white); }
.churn-head .val .tag {
  font-size: 11px; font-weight: 600; color: var(--coral);
}

.decay { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.decay .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 6px; }
.decay .col i { display: block; background: var(--indigo); border-radius: 3px 3px 0 0; }
.decay .col.flag i { background: var(--coral); }
.decay .col span {
  font-size: 11px; font-weight: 500; text-align: center; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sec-ink .decay .col span { color: var(--dark-muted); }
.decay-axis {
  display: flex; justify-content: space-between; font-size: 11px;
  color: var(--muted); margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--line);
}
.sec-ink .decay-axis { border-top-color: var(--line-dark); color: var(--dark-muted); }

.compare { display: grid; gap: 10px; margin-top: 18px; }
.compare div {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: var(--r-sm);
}
.compare .old { background: var(--mist); color: var(--slate); }
.sec-ink .compare .old { background: rgba(255,255,255,0.04); color: var(--dark-muted); }
.compare .new { background: var(--indigo-tint); color: var(--ink); }
.sec-ink .compare .new { background: rgba(99,102,241,0.14); color: var(--white); }
.compare .lbl { font-weight: 600; flex: none; }

/* Wide stat row (4 up) */
.stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-4 .stat b { font-size: 32px; }

@media (max-width: 880px) {
  .stats-4 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ask-q { max-width: 88%; }
}
@media (max-width: 520px) {
  .stats-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Home page only
   ============================================================ */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 88px 24px 72px; }
.hero h1 { max-width: 12ch; }
.hero .lede { max-width: 46ch; margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .mark { width: 56px; height: 56px; margin-bottom: 28px; }
.hero .mark .pulse { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw 900ms 250ms cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .mark .pulse { animation: none; stroke-dashoffset: 0; } }

.products .wrap { display: grid; grid-template-columns: 1fr 1fr; padding: 72px 24px; }
.product { padding: 0 40px 0 0; }
.product + .product { border-left: 1px solid var(--line); padding: 0 0 0 40px; }
.product img { width: 48px; height: 48px; margin-bottom: 20px; }
.product h2 { margin: 2px 0 12px; }
.product > p { color: var(--slate); max-width: 40ch; }
.product .checks { margin: 20px 0 24px; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 48px; }
  .products .wrap { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px; }
  .product, .product + .product { padding: 0; border-left: 0; }
  .product + .product { border-top: 1px solid var(--line); padding-top: 40px; }
}

/* Eyebrow inside a section head must stay indigo and tight to its heading
   (.sec-head p would otherwise win on specificity and make it slate). */
.sec-head .eyebrow-i, .sec-head .eyebrow { color: var(--indigo); margin-top: 0; max-width: none; }
.sec-head .eyebrow { color: var(--muted); }
.sec-ink .sec-head .eyebrow-i { color: var(--indigo-light); }
.frow-text .eyebrow-i + h2, .sec-head .eyebrow-i + h2 { margin-top: 8px; }

/* ============================================================
   Ask OnBeat — live agent demo (the Insights hero)
   Behaviour lives in assets/agent.js
   ============================================================ */
.agent-hero .wrap { padding: 72px 24px 80px; }
.agent-hero .frow { grid-template-columns: 0.9fr 1.1fr; align-items: center; }

.agent {
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  box-shadow: 0 24px 48px rgba(67,56,202,0.18);
  display: flex; flex-direction: column; overflow: hidden;
}
.agent-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-dark);
}
.agent-head .who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--white); }
.agent-head .who img { width: 18px; height: 18px; }
.agent-head .sync {
  margin-left: auto; font-size: 12px; color: var(--dark-muted);
  font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px;
}
.agent-head .dot {
  /* Indigo, not Mint — BRAND.md §8: Mint never appears in marketing. */
  width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

.agent-chat {
  height: 392px; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.agent-chat::-webkit-scrollbar { width: 6px; }
.agent-chat::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.bubble {
  max-width: 88%; padding: 12px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.6; white-space: pre-wrap;
  animation: rise 220ms cubic-bezier(.4,0,.2,1) both;
}
.bubble.user {
  background: var(--indigo); color: var(--white);
  margin-left: auto; border-bottom-right-radius: 4px;
}
.bubble.bot {
  background: var(--ink-surface); color: var(--dark-muted);
  border-bottom-left-radius: 4px; max-width: 94%;
}
.bubble.bot .hl { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.bubble.bot .play {
  display: block; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-dark); color: var(--white);
}
.bubble.bot .play::before {
  content: "The play"; display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--indigo-light); margin-bottom: 5px;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.thinking {
  display: flex; gap: 5px; align-items: center; width: fit-content;
  padding: 14px; background: var(--ink-surface);
  border-radius: 14px; border-bottom-left-radius: 4px;
}
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--dark-muted); animation: blink 1.3s infinite; }
.thinking i:nth-child(2) { animation-delay: 0.18s; }
.thinking i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.28; } 30% { opacity: 1; } }

.caret {
  display: inline-block; width: 2px; height: 1.05em;
  background: var(--indigo-light); vertical-align: -3px;
  animation: caretblink 900ms steps(1, end) infinite;
}
@keyframes caretblink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.agent-field {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-top: 1px solid var(--line-dark);
  font-size: 13px; color: var(--white); min-height: 48px;
}
.agent-field .txt { flex: 1; }
.agent-field .ph { color: var(--dark-muted); }
.agent-field .go {
  font-size: 12px; font-weight: 600; color: var(--indigo-light);
  border: 1px solid rgba(99,102,241,0.32); border-radius: 6px; padding: 4px 10px;
}

/* Bars that can appear inside an answer */
.bubble .mini { margin: 14px 0 5px; }
.bubble .mini-x {
  display: flex; gap: 4px; font-size: 10px; color: var(--dark-muted);
  font-variant-numeric: tabular-nums;
}
.bubble .mini-x span { flex: 1; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; }
  .caret, .thinking i { animation: none; }
}
@media (max-width: 880px) {
  .agent-hero .frow { grid-template-columns: 1fr; }
  .agent-chat { height: 340px; }
  .bubble { max-width: 92%; }
}

/* Visually hidden, still read by screen readers. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Narrow screens: pills go icon-only so both products stay in the nav. */
@media (max-width: 620px) {
  .navlink { padding: 0; width: 40px; justify-content: center; }
  .navlink span { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 26px; height: 26px; }
  .nav .btn { padding: 0 14px; font-size: 14px; }
  .nav .wrap { padding: 0 16px; }
}

/* ============================================================
   Reply demo — the booking action row (static/reply-demo.js)
   Light surface, because Reply reads like a messaging tool (§8).
   ============================================================ */
.thread-body.live { height: 336px; overflow-y: auto; align-content: start; }
.thread-body.live::-webkit-scrollbar { width: 6px; }
.thread-body.live::-webkit-scrollbar-thumb { background: rgba(15,15,26,0.14); border-radius: 3px; }

.msg .hl { font-weight: 600; }

/* The assistant doing the work, not describing it. */
.act {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line);
  border-left: 2px solid var(--indigo);
  border-radius: var(--r-sm); padding: 10px 12px;
  animation: rise 220ms cubic-bezier(.4,0,.2,1) both;
}
.act-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.act-text b { font-size: 13px; font-weight: 600; color: var(--ink); }
.act-text i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.act-spin {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid var(--indigo-tint); border-top-color: var(--indigo);
  animation: actspin 700ms linear infinite;
}
@keyframes actspin { to { transform: rotate(360deg); } }

.act-tick { width: 14px; height: 14px; flex: none; color: var(--indigo); }
.act-tick svg { width: 14px; height: 14px; display: block; }
.act.done { border-left-color: var(--indigo); }

/* Thinking dots on a light surface. */
.thinking.light {
  background: var(--white); border: 1px solid var(--line);
  padding: 12px; width: fit-content;
}
.thinking.light i { background: var(--muted); }

.thread-foot .box .caret { vertical-align: -2px; }
.thread-foot .box.typing { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .act { animation: none; }
  .act-spin { animation: none; }
}
@media (max-width: 880px) { .thread-body.live { height: 300px; } }

/* Live composer inside .thread-foot — mirrors .box/.send, but the text
   node is typed into, so it needs the same shape without being an input. */
.thread-foot .txt {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 14px; color: var(--ink);
  min-height: 38px; display: flex; align-items: center;
}
.thread-foot .txt .ph { color: var(--muted); }
.thread-foot .go {
  background: var(--indigo); color: var(--white);
  border-radius: var(--r-sm); padding: 9px 16px;
  font-size: 14px; font-weight: 600; flex: none;
}

/* The assistant demo sits on the dark section: the thread card stays light
   (Reply reads like a messaging tool, §8) but needs its own shadow so it
   does not float flat against the ink background, and a calm status pill
   instead of the hero's red "At risk". */
.sec-ink .thread { box-shadow: 0 24px 48px rgba(0,0,0,0.38); border-color: transparent; }
.thread-head .tag-ok { background: var(--indigo-tint); color: var(--indigo); }

/* ⚠️ The ink section paints its text white. The Reply thread card stays LIGHT
   inside it, so every text node in the card must reclaim its own colour or it
   renders white-on-white — invisible, while the DOM still reports the text as
   present. Found by looking at the rendered page, not by reading the DOM. */
.sec-ink .thread .who { color: var(--ink); }
.sec-ink .thread .meta { color: var(--muted); }
.sec-ink .thread .thread-note { color: var(--muted); }
.sec-ink .thread .msg.them { color: var(--ink); }
.sec-ink .thread .msg.us { color: var(--white); }
.sec-ink .thread .act-text b { color: var(--ink); }
.sec-ink .thread .act-text i { color: var(--muted); }
.sec-ink .thread .thread-foot .txt { color: var(--ink); }
.sec-ink .thread .thread-foot .txt .ph { color: var(--muted); }
.sec-ink .thread .thread-foot .go { color: var(--white); }

/* ---------- Product film (home) ---------- */
.film video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: var(--ink); border-radius: var(--r-md);
  border: 1px solid var(--line-dark);
  box-shadow: 0 24px 48px rgba(67,56,202,0.16);
}
/* .sec-head p sets slate for light sections and wins over .sec-ink p. */
.film .sec-head p { color: var(--dark-muted); }
