/* Product pages (/cli, later /mcp): plan-047. Loaded after page-base.css
   (fonts, base tokens, links, focus ring, skip link); the site is
   light-only, the terminal windows are the dark surfaces. */

:root {
  --forest-2: #0b3d1c;
  --card: #ffffff;
  --term-bg: #0d1a12;
  --term-ink: #e6efe8;
  --term-muted: #9fb3a5;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  /* ✕ marks: about 6:1 on white and on --danger-bg. */
  --danger: #b42318;
  --danger-bg: #fbeceb;
  /* Command tokens, on the dark terminal background (all over 7:1). */
  --tok-bin: #e1ff00;
  --tok-area: #7cc7ff;
  --tok-resource: #c9a7ff;
  --tok-action: #ffd166;
  --tok-flag: #7ee2b8;
  --tok-value: #ffb4a8;
  --tok-arg: #b9c8bd;
  --tok-builtin: #ffffff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- highlighted commands ---------- */
.tok-bin {
  color: var(--tok-bin);
  font-weight: 700;
}
.tok-area {
  color: var(--tok-area);
}
.tok-resource {
  color: var(--tok-resource);
}
.tok-action {
  color: var(--tok-action);
  font-weight: 700;
}
.tok-flag {
  color: var(--tok-flag);
}
.tok-value {
  color: var(--tok-value);
}
.tok-arg {
  color: var(--tok-arg);
  font-style: italic;
}
.tok-plain {
  color: var(--term-ink);
}
.tok-builtin {
  color: var(--tok-builtin);
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
}
/* Commands wrap only between tokens, never inside one (no "--" / "status"). */
.tok {
  white-space: nowrap;
}
/* An inline command in copy: a small dark terminal chip. */
.cmd-chip {
  display: inline;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--term-bg);
  font-family: var(--mono);
  font-size: 0.86em;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.compare-cell--after .cmd-chip,
.pp-section--dark .cmd-chip,
.pp-hero .cmd-chip,
.pp-final .cmd-chip {
  background: rgba(0, 0, 0, 0.35);
}

button:focus-visible {
  outline: 3px solid #48733b;
  outline-offset: 4px;
  border-radius: 4px;
}
/* #48733b is under 3:1 on the dark surfaces: lime there (about 13:1). */
.pp-hero :focus-visible,
.pp-section--dark :focus-visible,
.pp-final :focus-visible,
.install-command :focus-visible {
  outline-color: var(--lime);
}
/* The window clips overflow, so the scroller's ring is drawn inside it. */
.terminal-body:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: -3px;
  border-radius: 0 0 16px 16px;
}

.pp {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
  display: grid;
  /* An explicit shrinkable column: long terminal lines must scroll inside
     their window, not widen the page. */
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 64px;
}
h1,
h2,
h3 {
  font-family: 'Funnel Display', sans-serif;
  color: var(--forest);
  line-height: 1.08;
  margin: 0;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
p {
  margin: 0;
  line-height: 1.55;
}

/* ---------- hero ---------- */
.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 48px 52px;
  border-radius: 30px;
  /* Background: the home hero's .surface-dither (styles/surfaces.css). */
  color: white;
}
.pp-hero h1 {
  color: white;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin: 10px 0 18px;
}
.pp-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}
.pp-hero-subtitle {
  color: #d5e2d8;
  font-size: 1.15rem;
  max-width: 34ch;
  margin-bottom: 28px;
}
.pp-cta-secondary {
  display: inline-block;
  margin-top: 16px;
  color: var(--lime);
  font-weight: 700;
}
/* WhatsApp as the main CTA (pages without an install command). */
.pp-cta-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}
.pp-cta-primary:hover {
  filter: brightness(0.95);
}

/* ---------- hero picture with its chat (voice page) ----------
   The chat never overlaps the picture (her face and hands). Over 1180px:
   text | picture | chat. 901–1180px: text on top, picture and chat side by
   side below. Phones: stacked.
   Measured by a face-box check at 1440/1280/1024/390 (plan-050). */
.pp-hero:has(.pp-hero-media) {
  grid-template-columns: minmax(0, 1fr);
}
.pp-hero-media {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 400px);
  gap: 28px;
  align-items: end;
}
.pp-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  aspect-ratio: 1200 / 1490;
  object-fit: cover;
}
/* Wide screens: text beside the picture and chat, so the whole hero fits a
   1366x768 laptop above the fold. The chat still never covers the picture. */
@media (min-width: 1181px) {
  .pp-hero:has(.pp-hero-media) {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
  }
  .pp-hero:has(.pp-hero-media) h1 {
    font-size: clamp(2.2rem, 3.3vw, 3.1rem);
  }
  .pp-hero-media {
    /* The chat or call gets the wider column so its header stays on one line. */
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: center;
  }
}

/* ---------- live voice conversation (real-time page) ---------- */
/* WhatsApp dark palette, shared by the chats and the live calls. */
.wa-chat,
.live-call {
  --wa-bg: #0b141a;
  --wa-bar: #202c33;
  --wa-in: #202c33;
  --wa-out: #005c4b;
  --wa-ink: #e9edef;
  --wa-muted: #8696a0;
  /* On the green business bubble, the muted grey is too faint: about 5:1 here. */
  --wa-muted-out: #b3d9cf;
  --wa-transcript: #d1d7db;
  --wa-wave-in: #53bdeb;
  --wa-wave-out: var(--lime);
}
.live-call {
  margin: 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--wa-bg);
  color: var(--wa-ink);
  box-shadow: 0 18px 40px rgba(0, 30, 10, 0.25);
  font-size: 0.9rem;
}
.lc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--wa-bar);
}
.lc-avatar {
  border-radius: 50%;
  object-fit: cover;
}
.lc-contact {
  font-weight: 700;
  line-height: 1.2;
  /* Keep the name whole: the live badge wraps to its own line instead. */
  white-space: nowrap;
}
.lc-status {
  color: var(--wa-muted);
  font-size: 0.78rem;
  line-height: 1.2;
}
.lc-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(225, 255, 0, 0.14);
  color: var(--wa-wave-out);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.lc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa-wave-out);
}
.lc-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 56px;
  padding: 10px 18px;
}
.lc-wave i {
  flex: 1;
  height: var(--h);
  border-radius: 3px;
  background: var(--wa-wave-out);
  opacity: 0.85;
}
.lc-captions {
  list-style: none;
  margin: 0;
  padding: 4px 16px 16px;
  display: grid;
  gap: 10px;
}
.lc-turn {
  display: grid;
  gap: 2px;
}
.lc-speaker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lc-turn--customer .lc-speaker {
  color: var(--wa-wave-in);
}
.lc-turn--business .lc-speaker {
  color: var(--wa-wave-out);
}
.lc-text {
  margin: 0;
  line-height: 1.45;
}
.screen-card > .live-call {
  align-self: start;
}

/* ---------- WhatsApp chat (illustrative conversations) ---------- */
.wa-chat {
  margin: 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--wa-bg);
  color: var(--wa-ink);
  box-shadow: 0 18px 40px rgba(0, 30, 10, 0.25);
  font-size: 0.9rem;
}
.wa-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--wa-bar);
}
.wa-avatar {
  border-radius: 50%;
  object-fit: cover;
}
.wa-contact {
  font-weight: 700;
  line-height: 1.2;
}
.wa-status {
  color: var(--wa-muted);
  font-size: 0.78rem;
  line-height: 1.2;
}
.wa-body {
  list-style: none;
  margin: 0;
  padding: 14px 12px;
  display: grid;
  gap: 8px;
}
.wa-msg {
  position: relative;
  max-width: 86%;
  padding: 8px 10px 18px;
  border-radius: 10px;
  background: var(--wa-in);
}
.wa-msg--business {
  justify-self: end;
  background: var(--wa-out);
}
.wa-text,
.wa-transcript {
  margin: 0;
  line-height: 1.4;
}
.wa-transcript {
  margin-top: 6px;
  color: var(--wa-transcript);
  font-size: 0.8rem;
  font-style: italic;
}
.wa-time {
  position: absolute;
  right: 8px;
  bottom: 4px;
  color: var(--wa-muted);
  font-size: 0.68rem;
}
.wa-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}
.wa-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}
.wa-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
}
/* Played bars: the final (and no-animation) state. */
.wa-wave i {
  flex: 1;
  height: var(--h);
  border-radius: 2px;
  background: var(--wa-wave-out);
}
.wa-msg--customer .wa-wave i {
  background: var(--wa-wave-in);
}
.wa-msg--business .wa-time,
.wa-msg--business .wa-duration {
  color: var(--wa-muted-out);
}
/* In a card, a short chat keeps its height instead of stretching to the tallest. */
.screen-card > .wa-chat {
  align-self: start;
}
.pp-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.wa-duration {
  flex: none;
  color: var(--wa-muted);
  font-size: 0.75rem;
}

/* ---------- install command ---------- */
.install-command {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: var(--term-bg);
  border: 1px solid #2b4634;
}
.install-command-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--term-ink);
}
.install-command-text::before {
  content: '$ ';
  color: var(--lime);
}
.install-command-copy {
  flex: none;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: var(--forest);
  font: 700 0.9rem 'Nunito Sans', sans-serif;
  cursor: pointer;
}
.install-command-copy:hover {
  filter: brightness(0.95);
}
.install-command-status {
  /* Visible feedback for everyone. Never display:none: a live region must
     stay rendered to be announced. An empty flex item takes no height. */
  flex-basis: 100%;
  color: var(--lime);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- terminal and chat windows ---------- */
.terminal-window,
.chat-window {
  margin: 0;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--term-bg);
  color: var(--term-ink);
  box-shadow: 0 18px 40px rgba(0, 30, 10, 0.18);
}
.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #16271c;
}
.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a5644;
}
.terminal-body {
  padding: 16px 18px 18px;
  max-height: 420px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
}
.terminal-line {
  margin: 0 0 10px;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-prompt {
  color: var(--lime);
}
.terminal-command {
  font-family: inherit;
  color: white;
  font-weight: 700;
}
.terminal-stdout,
.terminal-stderr {
  margin: 0;
  font-family: inherit;
  white-space: pre;
}
.terminal-stderr {
  margin-top: 10px;
  color: var(--term-muted);
  white-space: pre-wrap;
}
.terminal-exit {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #3b1f1f;
  color: #ffb4a8;
}
.chat-bar {
  padding: 12px 16px;
  background: #16271c;
  font-weight: 700;
}
.chat-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.chat-turn {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  background: #1c3324;
}
.chat-turn--user {
  justify-self: end;
  background: var(--lime);
  color: var(--forest);
}
.chat-turn--tool {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--term-muted);
  background: transparent;
  border: 1px dashed #3a5644;
}

/* ---------- sections ---------- */
.pp-section {
  padding: 48px 52px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--line);
}
.pp-section--dark {
  background: var(--forest-2);
  border-color: var(--forest-2);
  color: #d5e2d8;
}
.pp-section--dark h2,
.pp-section--dark h3 {
  color: white;
}
.pp-section-lead {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* ---------- before/after rows: same task, ✕ pain, ✓ gain ---------- */
.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: stretch;
}
.compare-head {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare-head--before {
  color: var(--danger);
}
.compare-head--after {
  color: var(--forest);
}
.compare-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.compare-task {
  align-self: center;
  margin: 0;
  font-size: 1.05rem;
}
.compare-cell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.45;
}
.compare-cell--before {
  background: var(--danger-bg);
  color: var(--ink);
}
.compare-cell--after {
  background: var(--forest);
  color: white;
}
.compare-text {
  flex: 1;
  min-width: 0;
}
/* Wide screens: the head row names the columns, so the per-cell label is for screen readers. */
.compare-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.compare-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.8rem;
}
.compare-cell--before .compare-mark {
  background: var(--danger);
  color: white;
}
.compare-cell--after .compare-mark {
  background: var(--lime);
  color: var(--forest);
}

/* ---------- command grammar ---------- */
.grammar-pattern code,
.grammar-parts code {
  font-family: var(--mono);
}
.grammar-pattern {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--term-bg);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  overflow-wrap: anywhere;
}
.grammar-parts {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.grammar-part {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--term-bg);
  border-top: 4px solid var(--part-colour, var(--term-ink));
}
.grammar-part code {
  font-size: 1.05rem;
}
.grammar-label {
  color: var(--term-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.grammar-part--bin {
  --part-colour: var(--tok-bin);
}
.grammar-part--area {
  --part-colour: var(--tok-area);
}
.grammar-part--resource {
  --part-colour: var(--tok-resource);
}
.grammar-part--action {
  --part-colour: var(--tok-action);
}
.grammar-part--option {
  --part-colour: var(--tok-flag);
}
.command-groups-heading {
  margin-bottom: 16px;
}
.command-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.command-group {
  padding: 20px;
  border-radius: 18px;
  background: var(--paper);
}
.command-group h4 {
  margin: 0 0 12px;
  font: 800 0.85rem 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
}
.command-group dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
.command-group dt {
  margin-bottom: 4px;
}
.command-group dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.screen-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.screen-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-width: 0;
}
.screen-card .terminal-body {
  max-height: 300px;
}
/* Only the card's own caption; screens inside the card keep their colours. */
.screen-card-text p {
  color: var(--muted);
}

.pp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.titled-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.titled-list li {
  padding-left: 18px;
  border-left: 3px solid var(--lime);
}

.step-list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.step {
  counter-increment: step;
  min-width: 0;
  padding: 24px;
  border-radius: 20px;
  background: var(--paper);
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font: 700 1rem 'Funnel Display', sans-serif;
}
.step p {
  color: var(--muted);
}
/* A step's illustration (inlined like the home's feature cards, so
   feature-art-draw.js draws it in on scroll), at the card's foot: the art of
   cards in a row lines up whatever the copy's length. */
.step:has(.feature-art) {
  display: flex;
  flex-direction: column;
}
.step .feature-art {
  display: block;
  /* Isolate the animated art from the page's layout and paint, as on the home. */
  contain: layout paint;
  flex-shrink: 0;
  width: 100%;
  max-width: 440px;
  height: auto;
  /* The step art is drawn at 600×480 (plan 54): the box keeps that shape before the SVG lays out. */
  aspect-ratio: 600 / 480;
  margin: auto auto 0;
  padding-top: 16px;
}
.step-code {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 10px;
  background: var(--term-bg);
  color: var(--term-ink);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.pp-related {
  font-size: 1.1rem;
}
.pp-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font-weight: 800;
  font-size: 0.85rem;
}

/* FAQ: same markup as the home, bound by faq-accordion.js. */
.pp-faq {
  display: grid;
  gap: 12px;
}
.faq-item {
  border-radius: 16px;
  background: var(--paper);
}
.faq-question {
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: none;
  text-align: left;
  font: 700 1.05rem 'Nunito Sans', sans-serif;
  color: var(--forest);
  cursor: pointer;
}
.faq-question::after {
  content: '+' / '';
  float: right;
}
.faq-active .faq-question::after {
  content: '–' / '';
}
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-active .faq-content {
  grid-template-rows: 1fr;
}
.faq-content-inner {
  overflow: hidden;
  padding: 0 22px;
  /* Collapsed answers are hidden from screen readers too, not just clipped. */
  visibility: hidden;
  transition: visibility 0.25s;
}
.faq-active .faq-content-inner {
  visibility: visible;
}
.faq-active .faq-content-inner {
  padding-bottom: 18px;
}

.pp-final {
  padding: 56px 52px;
  border-radius: 30px;
  background: var(--forest);
  color: #d5e2d8;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.pp-final h2 {
  color: white;
  margin: 0;
}
.pp-final .install-command {
  width: min(560px, 100%);
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .pp {
    width: calc(100% - 32px);
    gap: 20px;
  }
  .pp-hero,
  .pp-split,
  .screen-cards,
  .step-list,
  .command-groups {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Rows stack: the task, then ✕, then ✓; each cell shows its column label. */
  .compare-head {
    display: none;
  }
  .compare-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .compare-cell--before .compare-label {
    color: var(--danger);
  }
  .compare-cell--after .compare-label {
    color: var(--lime);
  }
  .compare-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-bottom: 8px;
  }
  .pp-hero,
  .pp-section,
  .pp-final {
    padding: 28px 20px;
    border-radius: 22px;
  }
  .install-command-text {
    font-size: 0.8rem;
  }
  /* Voice page hero on phones: the picture, then its chat below it. */
  .pp-hero-media {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .terminal-body {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-content,
  .faq-content-inner {
    transition: none;
  }
}

/* ---------- animation (only when the head script set .js-anim) ----------
   Not-yet-played parts are transparent (opacity), so the final layout is
   reserved from the start (no layout shift) and the text stays in the
   accessibility tree. Reduced motion or no JavaScript: no .js-anim, final
   state. Printing always shows the final state. */
.js-anim .terminal-window:not(.is-done) .terminal-command,
.js-anim .terminal-window:not(.is-done) .tl {
  opacity: 0;
}
.js-anim .terminal-window.is-playing .terminal-command {
  opacity: 1;
}
.js-anim .terminal-window.is-playing .terminal-command .ch:not(.on) {
  opacity: 0;
}
.js-anim .terminal-window.is-playing .tl.on {
  opacity: 1;
}
/* Live calls: captions appear turn by turn while the waveform moves and the
   live dot pulses; still once the call is done (and never without .js-anim). */
.js-anim .live-call:not(.is-done) .lc-turn {
  opacity: 0;
}
.js-anim .live-call.is-playing .lc-turn.on {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.js-anim .live-call.is-playing .lc-wave i {
  animation: lc-talk 0.9s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -70ms);
}
.js-anim .live-call.is-playing .lc-dot {
  animation: lc-pulse 1.2s ease-in-out infinite;
}
@keyframes lc-talk {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes lc-pulse {
  50% {
    opacity: 0.3;
  }
}

/* Chats: messages appear one by one; a voice note's bars fill as it "plays". */
.js-anim .wa-chat:not(.is-done) .wa-msg {
  opacity: 0;
}
.js-anim .wa-chat.is-playing .wa-msg.on {
  opacity: 1;
  transition: opacity 0.25s ease;
}
.js-anim .wa-chat:not(.is-done) .wa-wave i {
  background: rgba(255, 255, 255, 0.28);
}
.js-anim .wa-chat.is-playing .wa-msg--business .wa-wave i.on {
  background: var(--wa-wave-out);
}
.js-anim .wa-chat.is-playing .wa-msg--customer .wa-wave i.on {
  background: var(--wa-wave-in);
}
.js-anim .pp-section,
.js-anim .pp-final {
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js-anim .pp-section:not(.is-visible),
.js-anim .pp-final:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}
@media print {
  .js-anim .pp-section,
  .js-anim .pp-final,
  .js-anim .terminal-window .terminal-command,
  .js-anim .terminal-window .ch,
  .js-anim .terminal-window .tl,
  .js-anim .wa-chat .wa-msg,
  .js-anim .live-call .lc-turn {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- real-time hero: persona composite + the home's phone (plan-052) ----------
   Like the home hero: the persona full size, anchored to the card's bottom,
   blended into the dithered background (masks fade her backdrop's edges into
   it; no frame). The phone stands on the background, never on her face or
   hands (hero.image.protect, checked by the layout test). */
.pp-hero--phone {
  position: relative;
  overflow: hidden;
  --hero-h: 700px;
  --persona-w: calc(var(--hero-h) * 1200 / 1490);
  min-height: var(--hero-h);
  align-items: center;
}
.pp-hero--phone .pp-hero-text {
  position: relative;
  z-index: 2;
  max-width: 360px;
}
.pp-hero--phone h1 {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
}
.pp-hero-composite {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pp-hero-persona {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  /* Her backdrop's left and top edges fade into the dither. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, transparent 0, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, transparent 0, #000 14%);
  mask-composite: intersect;
}
.pp-hero-device {
  position: absolute;
  bottom: 28px;
  /* Left of her protected face and hands: the phone overlaps only her backdrop. */
  right: calc(var(--persona-w) - 110px);
  width: 300px;
  height: calc(var(--hero-h) - 120px);
  pointer-events: auto;
}
.vc,
.vc-stage {
  height: 100%;
}
.vc {
  display: flex;
  flex-direction: column;
}
.vc-stage {
  flex: 1;
  min-height: 0;
}

/* 901–1279px: text on top; the composite below it, the phone left of her.
   (Side by side, the phone would reach under the headline below ~1260px.) */
@media (max-width: 1279px) {
  .pp-hero--phone {
    --hero-h: 620px;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .pp-hero--phone .pp-hero-text {
    max-width: none;
  }
  .pp-hero-composite {
    position: relative;
    inset: auto;
    height: var(--hero-h);
    margin: 0 -52px -48px;
  }
  .pp-hero-device {
    left: 52px;
    right: auto;
  }
}

/* Phones: her, then the phone below. */
@media (max-width: 900px) {
  .pp-hero--phone {
    --hero-h: 460px;
  }
  .pp-hero-composite {
    height: auto;
    margin: 0 -20px -28px;
    display: grid;
  }
  .pp-hero-persona {
    position: relative;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
  }
  .pp-hero-device {
    position: relative;
    inset: auto;
    width: auto;
    height: 560px;
    margin: 8px 20px 28px;
  }
}

/* ---------- the live-call screen (402×874 CSS px, inside the phone) ---------- */
.vc-screen {
  width: 402px;
  height: 874px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 28px 40px;
  border-radius: 55px;
  overflow: hidden;
  background: radial-gradient(120% 70% at 50% 18%, #13402a 0%, #0b1f15 55%, #07120c 100%);
  color: #e9edef;
  font-family: 'Nunito Sans', sans-serif;
  text-align: center;
}
.vc-status {
  margin: 0 0 28px;
  color: #8696a0;
  font-size: 15px;
}
.vc-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(225, 255, 0, 0.18);
}
.vc-contact {
  margin: 18px 0 6px;
  font: 700 26px 'Funnel Display', sans-serif;
}
.vc-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--lime);
  font-weight: 800;
  font-size: 15px;
}
.vc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}
.vc-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 92px;
  margin: 36px 0 24px;
}
.vc-wave i {
  flex: 1;
  height: var(--h);
  border-radius: 4px;
  background: var(--lime);
  transform: scaleY(0.4);
  transition: background-color 0.3s ease;
}
.vc-wave--customer i {
  background: #53bdeb;
}
/* Closed captions: the current turn, the previous one faded above it. */
.vc-cc {
  list-style: none;
  margin: 0;
  padding: 18px 18px 16px;
  width: 100%;
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 10px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.55);
  text-align: left;
}
/* Every turn shows without JavaScript; once the player script runs (.is-ready), one at a time. */
.vc-cc-turn {
  font-size: 19px;
  line-height: 1.35;
}
.vc.is-ready .vc-cc-turn {
  display: none;
}
.vc.is-ready .vc-cc-turn.is-current {
  display: block;
}
.vc.is-ready .vc-cc-turn.is-past:has(+ .is-current) {
  display: block;
  opacity: 0.55;
  font-size: 16px;
}
.vc-cc-speaker {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vc-cc-turn--customer .vc-cc-speaker {
  color: #53bdeb;
}
.vc-cc-turn--business .vc-cc-speaker {
  color: var(--lime);
}
.vc-controls {
  display: flex;
  gap: 34px;
  margin-top: auto;
}
.vc-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.vc-btn--end {
  background: #e5484d;
}
/* Talking: during the preview and while the audio plays. Still otherwise. */
.vc.is-previewing .vc-wave i,
.vc.is-playing .vc-wave i {
  animation: lc-talk 0.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -60ms);
}
.vc.is-playing .vc-dot,
.vc.is-previewing .vc-dot {
  animation: lc-pulse 1.2s ease-in-out infinite;
}
/* Playing with the measured levels (voice-call/levels.ts): each bar's height is
   set from the audio, so the flowing animation is off; a short transition
   smooths the 25 ms steps. */
.vc.is-driven .vc-wave i {
  animation: none;
  transition: transform 60ms linear, background-color 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .vc .vc-wave i,
  .vc .vc-dot {
    animation: none !important;
  }
}

/* The audio player under the phone: play/pause, never autoplay. */
.vc-player {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.vc-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font: 800 0.95rem 'Nunito Sans', sans-serif;
  cursor: pointer;
}
.vc-play-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}
.vc.is-playing .vc-play-icon {
  width: 11px;
  height: 14px;
  border: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}
.vc-player-hint {
  color: #d5e2d8;
  font-size: 0.85rem;
}
