/* Site layout: page structure only. Components come from components.css, tokens from tokens.css. */

/* ---------- Base ---------- */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
:where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
main:focus { outline: none; }
[hidden] { display: none !important; }

/* Reduced motion: no transitions or animation beyond what the components already switch off. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Theme fixes for the logo swap ---------- */

/* components.css swaps the logos on [data-theme="dark"] only. These rules do the same for a visitor whose system
   is dark and whose page pins nothing, and keep the light logo inside a panel that pins the light ground. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .blabr-for-dark { display: block; }
  :root:not([data-theme="light"]) .blabr-for-light { display: none; }
}
:root [data-theme="light"] .blabr-for-light { display: block; }
:root [data-theme="light"] .blabr-for-dark { display: none; }

/* ---------- Skip link ---------- */

.skip-link { position: absolute; top: var(--space-2); left: var(--space-2); z-index: 10; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Header and footer ---------- */

.site-header { border-bottom: 1px solid var(--hairline); }
.blabr-nav-link { padding: var(--space-2) 0; }
/* Phones: the nav links fold into a native disclosure menu (works without scripts). */
.site-header { position: relative; }
.nav-menu { display: none; }
@media (max-width: 640px) {
  .blabr-nav { gap: var(--space-3); }
  .nav-menu { display: block; }
  .nav-menu-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--hairline-strong); color: var(--ink); font-weight: 600; list-style: none; cursor: pointer; transition: background-color var(--duration-fast) ease-out; }
  .nav-menu-button::-webkit-details-marker { display: none; }
  .nav-menu[open] .nav-menu-button { background: var(--blush); }
  .nav-menu-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 0; padding: 0 var(--space-4) var(--space-2); list-style: none; background: var(--paper); border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-card); }
  .nav-menu-link { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; }
  .nav-menu-list li + li { border-top: 1px solid var(--hairline); }
  .nav-menu-link[aria-current="page"] { font-weight: 600; }
}
.nav-menu-button:focus-visible, .nav-menu-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.site-footer { margin-top: var(--space-24); }
@media (max-width: 640px) { .site-footer { margin-top: var(--space-16); } }

/* ---------- Sections ---------- */

.section { padding: var(--space-24) 0 0; }
.section-head { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-10); }
.section-head p { color: var(--ink-secondary); }
.band { margin-top: var(--space-24); padding: var(--space-16) 0; background: var(--blush); }
@media (max-width: 640px) {
  .section { padding-top: var(--space-16); }
  .band { margin-top: var(--space-16); }
}

.hero-section { padding-top: var(--space-10); }
.hero-caption { color: var(--ink-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); }

/* Inner pages: label, headline and lead. */
.page-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-24) 0 0; }
.page-head .lead { max-width: 60ch; color: var(--ink-secondary); }
.page-head .label { color: var(--ink-secondary); }
@media (max-width: 640px) { .page-head { padding-top: var(--space-10); } }

/* ---------- Placeholders (sections still to be built) ---------- */

.placeholder { box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-6); border: 2px dashed var(--hairline-strong); border-radius: var(--radius-lg); color: var(--ink-secondary); }
.placeholder-tag { display: inline-flex; padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--blush); color: var(--ink); }

/* ---------- Error page ---------- */

.notfound { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-24) 0 0; }
.notfound p { max-width: 60ch; color: var(--ink-secondary); }

/* ---------- Hero: the product at work (components.css stays untouched) ---------- */

/* Copy on the left; on the right, a terminal running Claude Code with the Fn key and blabe's pill under it.
   The hero follows the page theme. The terminal is ink on light pages and paper-raised on dark ones, so it
   always reads as a terminal. hero-scene.js plays one dictation; without it, this is a still mid-dictation frame. */
.hero-product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--space-10); background: none; overflow: visible; }
.hero-product .blabr-hero-copy { width: auto; min-width: 0; padding: var(--space-16) 0; }
.hero-product .blabr-hero-copy .display-xl { font-size: clamp(48px, 4.6vw, 60px); line-height: 1.07; }
.hero-product .blabr-hero-copy .subheading { font-size: 18px; line-height: 26px; }
.hero-product .caption { max-width: 44ch; }

.hero-scene { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); margin: 0; }
.hero-term { width: 100%; border-radius: var(--radius-md); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-card); overflow: hidden; }
.hero-term-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 var(--space-4); border-bottom: 1px solid color-mix(in srgb, var(--paper) 12%, transparent); }
.hero-term-bar > span { width: 10px; height: 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--paper) 22%, transparent); }
.hero-term-title { flex: 1; margin: 0 38px 0 0; text-align: center; font-family: var(--font-system); font-size: 12px; line-height: 16px; opacity: .72; }
.hero-term-body { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-3); min-height: 212px; padding: var(--space-6); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; line-height: 22px; }
.hero-term-line { margin: 0; overflow-wrap: anywhere; }
.hero-term-sent { opacity: .7; }
.hero-term-reply { opacity: .7; padding-left: 2ch; }
.hero-term-mark { color: var(--coral-tongue); font-weight: 600; }
.hero-term-prompt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5ch; padding-top: var(--space-3); border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent); }
.hero-term-cursor { display: inline-block; width: .55em; height: 1.15em; align-self: center; background: var(--paper); opacity: .85; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-term { background: var(--paper-raised); color: var(--ink); box-shadow: var(--shadow-card), 0 0 0 1px var(--hairline); }
  :root:not([data-theme="light"]) .hero-term-bar, :root:not([data-theme="light"]) .hero-term-prompt { border-color: var(--hairline); }
  :root:not([data-theme="light"]) .hero-term-bar > span { background: var(--hairline-strong); }
  :root:not([data-theme="light"]) .hero-term-cursor { background: var(--ink); }
}
[data-theme="dark"] .hero-term { background: var(--paper-raised); color: var(--ink); box-shadow: var(--shadow-card), 0 0 0 1px var(--hairline); }
[data-theme="dark"] .hero-term-bar, [data-theme="dark"] .hero-term-prompt { border-color: var(--hairline); }
[data-theme="dark"] .hero-term-bar > span { background: var(--hairline-strong); }
[data-theme="dark"] .hero-term-cursor { background: var(--ink); }

/* Fn and the pill, side by side, the way they meet in real use. */
.hero-scene-keys { display: flex; align-items: center; gap: var(--space-4); min-height: 36px; }
.hero-scene-keys .blabr-key { transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out); }
.hero-scene-keys .blabr-key.is-held { transform: translateY(1px); box-shadow: none; }
.hero-scene-pill { transition: opacity var(--duration-fast) ease-out; }
.hero-scene-pill.is-gone, .hero-scene-keys .blabr-key.is-gone { opacity: 0; }
/* The still frame: a plausible microphone level, set in CSS because the page allows no inline styles. */
.hero-scene-pill .blabr-pill-bar { height: 6px; }
.hero-scene-pill .blabr-pill-bar:nth-child(3n+1) { height: 12px; }
.hero-scene-pill .blabr-pill-bar:nth-child(4n+2) { height: 17px; }
.hero-scene-pill .blabr-pill-bar:nth-child(5n+3) { height: 9px; }
.hero-scene-pill .blabr-pill-bar:nth-child(7n) { height: 20px; }
.hero-term-line.is-landing { animation: hero-land var(--duration-fast) ease-out both; }
@keyframes hero-land { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero-product { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .hero-product .blabr-hero-copy { padding: var(--space-10) 0 0; }
}
@media (max-width: 640px) {
  .hero-product .blabr-hero-copy { padding-top: var(--space-6); }
  .hero-term-body { min-height: 180px; padding: var(--space-4); font-size: 13px; line-height: 20px; }
}

/* ---------- Two-column blocks ---------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10); align-items: center; }
.split-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.split-copy .body { max-width: 52ch; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

.blabr-card--wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--space-10); padding: var(--space-10); }
.blabr-card--wide .blabr-card-art { margin-bottom: 0; }
.card-copy { display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 900px) { .blabr-card--wide { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6); } }
.blabr-card--text { max-width: 760px; gap: var(--space-4); padding: var(--space-10); }
@media (max-width: 640px) { .blabr-card--text { padding: var(--space-6); } }
code.kbd { padding: 0 3px; border-radius: var(--radius-sm); background: var(--blush); color: var(--ink); }

/* ---------- Demo ---------- */

.demo { display: flex; flex-direction: column; gap: var(--space-4); }
.demo-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-raised); box-shadow: var(--shadow-card); }
.demo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--paper); }
.demo figcaption { max-width: 68ch; }

/* ---------- How it works ---------- */

.blabr-steps { align-items: start; }
.blabr-step picture { display: block; width: 100%; }
.blabr-step .step-photo { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-2); }
.step-art-placeholder { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 8 / 5; margin-bottom: var(--space-2); padding: var(--space-4); border: 2px dashed var(--hairline-strong); border-radius: var(--radius-md); text-align: center; }
.step-art-placeholder .placeholder-tag { margin: 0; }
@media (max-width: 640px) { .step-art-placeholder { aspect-ratio: 16 / 5; } }

/* ---------- Cost and privacy ---------- */

.stat-card { align-items: flex-start; justify-content: center; gap: var(--space-2); padding: var(--space-10); }
.stat-value { color: var(--coral-text); }
.stat-card p { margin: 0; }
.privacy-art { margin: 0; box-shadow: inset 0 0 0 1px var(--hairline); border-radius: var(--radius-lg); }
.wide-photo { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; margin-top: var(--space-10); border-radius: var(--radius-lg); }
@media (max-width: 640px) { .wide-photo { aspect-ratio: 16 / 9; margin-top: var(--space-6); } }

/* ---------- Compare table ---------- */

.blabr-compare-wrap { border-radius: var(--radius-md); }
.blabr-compare-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.blabr-compare a { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.blabr-compare a:hover { text-decoration-color: currentColor; }
.blabr-compare a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.blabr-compare th { min-width: 132px; }
.blabr-compare tbody th { min-width: 150px; }

/* ---------- FAQ ---------- */

.blabr-faq { max-width: 820px; }
.blabr-faq-q { font-size: 18px; line-height: 26px; }

/* ---------- Price card and switch ---------- */

.price-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--space-10); align-items: start; }
@media (max-width: 900px) { .price-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.price-layout > .placeholder { align-self: stretch; justify-content: center; min-height: 240px; }
.blabr-price { max-width: none; }
@media (max-width: 640px) { .blabr-price { padding: var(--space-6); } }
.price-panels > div { display: flex; flex-direction: column; gap: var(--space-2); }
.blabr-price .display-xl { font-size: 56px; line-height: 60px; }
.price-switch { display: flex; align-self: stretch; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.price-switch-btn { flex: 1 1 auto; min-width: 0; white-space: nowrap; text-align: center; margin: 0; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink-secondary); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .12s ease-out, color .12s ease-out; }
.price-switch-btn:hover { color: var(--ink); }
.price-switch-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.price-switch-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.price-secondary { align-self: center; }
.fine-print { margin-top: var(--space-4); max-width: 68ch; }

/* ---------- Docs ---------- */

.docs-section { padding-top: var(--space-10); }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-10); align-items: start; }
.docs-sidebar { position: sticky; top: var(--space-6); }
.docs-nav-label { margin: 0 0 var(--space-2) var(--space-3); color: var(--ink-secondary); }
.docs-nav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.docs-nav-link { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); color: var(--ink-secondary); text-decoration: none; }
.docs-nav-link:hover { background: var(--blush); color: var(--ink); }
.docs-nav-link[aria-current="page"] { background: var(--blush); color: var(--ink); font-weight: 600; }
.docs-nav-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 900px) {
  .docs-section { padding-top: var(--space-10); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .docs-sidebar { position: static; }
  .docs-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-2); }
}

.docs-article { min-width: 0; max-width: 72ch; overflow-wrap: anywhere; }
.docs-article > * + * { margin-top: var(--space-4); }
.docs-article > h2 { margin-top: var(--space-16); }
.docs-article > h2 + * { margin-top: var(--space-4); }
.docs-article [id] { scroll-margin-top: var(--space-6); }
.docs-article .docs-art { margin: 0; max-width: 480px; }
.docs-article > .docs-art + * { margin-top: var(--space-10); }
.docs-list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding-left: 1.4em; }
.docs-code { box-sizing: border-box; overflow-x: auto; margin: 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink); font-family: var(--font-mono); font-size: 13px; line-height: 20px; }
.docs-code:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.docs-code code { font: inherit; background: none; padding: 0; white-space: pre; overflow-wrap: normal; }
.docs-article code.kbd, .download-card code.kbd { overflow-wrap: anywhere; }
.docs-article .blabr-key { margin: 0 1px; }

.docs-card { color: inherit; text-decoration: none; transition: box-shadow .12s ease-out; }
.docs-card:hover { box-shadow: var(--shadow-card), 0 0 0 1px var(--hairline-strong); }
.docs-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.docs-pn-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-16) !important; padding-top: var(--space-6); border-top: 1px solid var(--hairline); }
.docs-pn { display: flex; flex-direction: column; gap: var(--space-1); color: var(--ink); text-decoration: none; }
.docs-pn-next { align-items: flex-end; margin-left: auto; text-align: right; }
.docs-pn:hover .subheading { color: var(--coral-text); }
.docs-pn:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }

/* Troubleshooting: one card per message. */
.ts-entry { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--paper-raised); box-shadow: var(--shadow-card); }
.ts-entry > * { margin: 0; }
.ts-entry .subheading { color: var(--ink); }
.ts-where { color: var(--ink-muted); }
.docs-article > .ts-entry + .ts-entry { margin-top: var(--space-4); }
.ts-jump { display: flex; flex-direction: column; gap: var(--space-2); }
.ts-jump > * { margin: 0; }
.ts-jump .label { margin-top: var(--space-4); }
.ts-jump-group { color: var(--ink-secondary); text-decoration: none; }
.ts-jump-group:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ts-jump-list { display: flex; flex-direction: column; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
@media (max-width: 640px) { .ts-entry { padding: var(--space-4); } }

/* ---------- Download ---------- */

.download-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .download-layout { grid-template-columns: minmax(0, 1fr); } }
.download-card { align-items: flex-start; padding: var(--space-10); }
.download-card > * { margin: 0; }
@media (max-width: 640px) { .download-card { padding: var(--space-6); } }
.download-btn { padding: calc(var(--space-4) - 2px) calc(var(--space-10) - 2px); font-size: 20px; line-height: 28px; }
.sha-line { overflow-wrap: anywhere; }
.download-card .docs-code { align-self: stretch; }
.download-reqs { max-width: 68ch; }
.download-trial { margin-top: var(--space-6); }

/* ---------- Compare and use-case pages (/vs/, /for/) ---------- */

.cmp-art { max-width: 640px; margin: var(--space-10) 0 0; box-shadow: inset 0 0 0 1px var(--hairline); border-radius: var(--radius-lg); }
.cmp-art--small { max-width: 480px; }
@media (max-width: 640px) { .cmp-art { margin-top: var(--space-6); } }
.cmp-copy { max-width: 72ch; }
.cmp-copy > * + * { margin-top: var(--space-4); }
.cmp-copy > h2 + * { margin-top: var(--space-4); }
.cmp-list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding-left: 1.4em; }
.cmp-list a, .cmp-copy p a { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cmp-list a:hover, .cmp-copy p a:hover { text-decoration-color: currentColor; }
.cmp-list a:focus-visible, .cmp-copy p a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.cmp-copy code.kbd, .choose-grid code.kbd { overflow-wrap: anywhere; }
.cmp-copy .blabr-key, .choose-grid .blabr-key { margin: 0 1px; }
.cmp-table { min-width: 0; table-layout: fixed; }
.cmp-table th, .cmp-table td { overflow-wrap: anywhere; }
.cmp-table thead th { min-width: 0; }
.cmp-table tbody th { width: 22%; min-width: 0; }
@media (max-width: 640px) {
  .cmp-table th, .cmp-table td { padding: var(--space-2) var(--space-2); }
  .cmp-table tbody th { width: 26%; }
}
.choose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); align-items: start; }
.choose-grid .blabr-card { gap: var(--space-4); }
.choose-grid .blabr-card .cmp-list { padding-left: 1.2em; }
@media (max-width: 900px) { .choose-grid { grid-template-columns: minmax(0, 1fr); } }
.blabr-callout .cta-row { flex-shrink: 0; }

/* ---------- Changelog and support (W9) ---------- */

.release { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 72ch; }
.release > * { margin: 0; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); }
.release-head > * { margin: 0; }
.release-tag, .release-date { color: var(--ink-secondary); }
.release-intro { color: var(--ink-secondary); }
.release > h3 { margin-top: var(--space-4); }
.release-updates .blabr-callout-copy { max-width: 72ch; }
.support-list { max-width: 72ch; }
.support-copy { max-width: 72ch; }
.support-faq { display: flex; flex-direction: column; gap: var(--space-4); max-width: 72ch; }
.support-faq .ts-entry { overflow-wrap: anywhere; }

/* ---------- Motion ("Alive", design system 2026-09-30) ---------- */

/* Everything below is either gated on .motion, which the motion script adds only when the visitor hasn't asked for
   reduced motion, or sits inside a no-preference query. Without it the page is complete and still. */

/* In-view reveals: a fade and a 16px rise, once. */
.motion [data-reveal] { transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out); }
.motion [data-reveal].reveal-pending { opacity: 0; transform: translateY(var(--reveal-distance)); }

/* Hero headline: its words rise in once, 60ms apart, about 0.7s in all. CSS only, so it starts with the
   first paint instead of flashing. */
@media (prefers-reduced-motion: no-preference) {
  .hero-words > span { display: inline-block; animation: hero-word var(--duration-reveal) var(--ease-out) both; }
  .hero-words > span:nth-child(2) { animation-delay: 60ms; }
  .hero-words > span:nth-child(3) { animation-delay: 120ms; }
  .hero-words > span:nth-child(4) { animation-delay: 180ms; }
  .hero-words > span:nth-child(5) { animation-delay: 240ms; }
  .hero-words > span:nth-child(6) { animation-delay: 300ms; }
  .hero-words > span:nth-child(n+7) { animation-delay: 360ms; }
}
@keyframes hero-word { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }

/* Cards lift 2px under the pointer. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .blabr-cards > .blabr-card, .stat-card { transition: transform var(--duration-hover) var(--ease-out), box-shadow var(--duration-hover) var(--ease-out); }
  .blabr-cards > .blabr-card:hover, .stat-card:hover { transform: translateY(var(--hover-lift)); box-shadow: var(--shadow-lift); }
}

/* A key cap that presses once when its step appears. */
.blabr-key[data-press] { display: inline-block; transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.blabr-key[data-press].is-pressed { transform: translateY(1px); box-shadow: none; }

/* Agent names: a wrapped list of chips, which motion.js turns into one slow marquee. */
.agent-marquee { margin-top: var(--space-6); overflow: hidden; }
.agent-marquee-row { display: flex; width: max-content; }
.agent-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.agent-list li { padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--hairline-strong); background: var(--paper-raised); color: var(--ink); white-space: nowrap; }
.agent-marquee:not(.is-running) .agent-marquee-row { width: auto; }
.agent-marquee.is-running .agent-list { flex-wrap: nowrap; padding-right: var(--space-2); }
.agent-marquee.is-running .agent-marquee-row { animation: agent-marquee var(--marquee-duration) linear infinite; }
.agent-marquee.is-running:hover .agent-marquee-row,
.agent-marquee.is-running:focus-within .agent-marquee-row,
.agent-marquee.is-offscreen .agent-marquee-row { animation-play-state: paused; }
@keyframes agent-marquee { to { transform: translateX(-50%); } }

/* FAQ answers ease open (motion.js animates the height). */
.motion .blabr-faq-a { overflow: hidden; box-sizing: border-box; }

/* Price digits roll (price-switch.js). */
.price-roll { display: inline-flex; }
.price-roll-col { display: inline-block; height: 1lh; overflow: hidden; }
.price-roll-col.is-empty { width: 0; }
.price-roll-strip { display: flex; flex-direction: column; transition: transform var(--duration-base) var(--ease-out); }
.price-roll-strip > span { display: block; height: 1lh; }

@media (prefers-reduced-motion: reduce) {
  .agent-marquee-row { animation: none !important; }
  .agent-marquee .agent-list { flex-wrap: wrap; }
}

/* ---------- Comparison tables on phones ---------- */

/* Below 641px each row becomes a small card, and each cell names its column (data-label), so no competitor
   hides behind a sideways scroll. The column headings stay in the markup for screen readers. */
@media (max-width: 640px) {
  .blabr-compare-wrap { overflow: visible; }
  .blabr-compare { min-width: 0; }
  .blabr-compare, .blabr-compare tbody, .blabr-compare tr, .blabr-compare tbody th, .blabr-compare td { display: block; }
  .blabr-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .blabr-compare caption { display: block; padding: var(--space-4) 0 0; }
  .blabr-compare tr { padding: var(--space-4) 0; border-bottom: 1px solid var(--hairline); }
  .blabr-compare tbody th { padding: 0 0 var(--space-2); border: 0; font-weight: 600; }
  .blabr-compare td { position: relative; padding: var(--space-2) var(--space-3) var(--space-2) calc(7.5em + var(--space-6)); border: 0; }
  .blabr-compare td::before { content: attr(data-label); position: absolute; top: var(--space-2); left: var(--space-3); width: 7.5em; color: var(--ink-secondary); font-weight: 500; }
  .blabr-compare .blabr-compare-us, .blabr-compare tbody tr:last-child .blabr-compare-us { border-radius: var(--radius-md); }
}

/* ---------- Small fixes from the design critique (2026-09-30) ---------- */

/* Step labels are real text now, so screen readers get them; drop the component's CSS counter. */
.blabr-step-label::before { content: none; }
/* The hero's label wraps to two lines on phones; give it reading leading. */
.blabr-hero-copy .label { line-height: 20px; }
