@charset "utf-8";
/* ============================================================
   TyCat — Components & Sections
   Depends on tokens.css (must be loaded first).
   ============================================================ */

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Floating nav zone: 8px inset + 68px pill (kiro metrics) + breathing room */
  scroll-padding-top: 92px;
}
@media (max-width: 1179px) {
  /* Mobile bar: 56px + breathing room */
  html { scroll-padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.45;
  font-weight: 400;
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary);
}
h1 { font-size: var(--step-h1); line-height: 1.10; letter-spacing: -0.03em; }
h2 { font-size: var(--step-h2); line-height: 1.20; letter-spacing: -0.03em; }
h3 { font-size: var(--step-h3); line-height: 1.30; letter-spacing: -0.03em; }
h4 { font-size: var(--step-h4); line-height: 1.30; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

/* Inline underlined links inside paragraphs */
.prose a,
a.ilink {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.prose a:hover,
a.ilink:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* Visible focus everywhere */
:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 500;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--space-page);
}
.container--wide {
  max-width: var(--max-canvas);
}
/* kiro steps its side padding up on desktop (px-6 -> md:px-10 -> lg:px-12 ->
   xl:px-20), so its 1600px canvas is really ~1280px at 1440 viewports.
   Without this the canvas sat 24px from the screen edge and read full-bleed. */
@media (min-width: 1024px) {
  .container--wide { padding-inline: 48px; }
}
@media (min-width: 1280px) {
  .container--wide { padding-inline: 80px; }
}
.section {
  padding-block: clamp(56px, 4vw + 32px, 80px);
}
.section--tight { padding-block: clamp(48px, 4vw + 24px, 72px); }

.section-lead {
  max-width: var(--max-lead);
  color: var(--color-text-muted);
  font-size: var(--step-lead);
  line-height: 1.4;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-align: center;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

/* Smooth inner slide/fill layer */
.btn__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease);
}
.btn:hover .btn__fill,
.btn:focus-visible .btn__fill { transform: translateY(0); }

/* Primary */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn--primary .btn__fill { background: var(--color-accent-hover); }
.btn--primary:active { background: var(--color-accent-active); }

/* Inverse — for orange canvas */
.btn--inverse {
  background: #ffffff;
  color: var(--btn-inverse-text);
}
.btn--inverse .btn__fill { background: var(--btn-inverse-fill); }

/* Outline — sits on the CTA canvas, so currentColor = --canvas-text.
   On hover the fill becomes canvas-text; the label must use the token
   made for text on that fill (--cta-copy-hover-text), NOT
   --color-text-inverted, which is dark in the dark theme (dark-on-dark). */
.btn--outline {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn--outline .btn__fill { background: currentColor; }
.btn--outline:hover,
.btn--outline:focus-visible { color: var(--cta-copy-hover-text); }

/* Outline variant sitting on dark page */
.btn--outline-dark { color: var(--color-text-primary); }
.btn--outline-dark:hover,
.btn--outline-dark:focus-visible { color: var(--color-bg-page); }

.btn--block { width: 100%; }

/* Text link with trailing chevron */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text-primary);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.textlink::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}
.textlink:hover { color: var(--color-accent); gap: 10px; }
.textlink:hover::after { transform: translateX(2px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ---------- Navigation (floating pill, kiro metrics) ----------
   Desktop (>=1180px): fixed pill, 8px inset top/sides, radius 18px, h 68px.
   Top of page: fully transparent bg + transparent 1px border (invisible).
   Scrolled (scrollY > 0): translucent bg (our #171310 @ 0.6) + warm border.
   blur(4px) is constant in both states; only colors animate (0.2s ease-in). */
.nav {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  max-width: 1480px;
  margin-inline: auto;
  border-radius: 18px;
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.2s cubic-bezier(0.4, 0, 1, 1),
              border-color 0.2s cubic-bezier(0.4, 0, 1, 1);
}
.nav.is-scrolled {
  /* Fallback: more opaque so it reads without blur support */
  background: var(--nav-scrolled-bg-strong);
  border-color: color-mix(in srgb, var(--color-border-strong) 75%, transparent);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-scrolled {
    background: var(--nav-scrolled-bg);
  }
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  /* kiro pill: p-2 pl-6 -> 8px sides, 24px left */
  padding: 0 8px 0 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__logo { width: 34px; height: 34px; }
.brand__word {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.nav__link.is-active { color: var(--color-text-primary); }
.nav__right { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--color-bg-card);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-text-primary);
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* Theme toggle (sun in dark theme -> switch to light; moon in light theme) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: var(--color-bg-card);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-text-primary);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.theme-toggle:hover,
.theme-toggle:focus-visible { color: var(--color-accent); }
.theme-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
/* Row variant inside the mobile panel */
.theme-toggle--row {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  gap: 10px;
  padding: 13px 12px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  margin-top: 6px;
}
.theme-toggle__label--dark { display: none; }
:root[data-theme="light"] .theme-toggle__label--light { display: none; }
:root[data-theme="light"] .theme-toggle__label--dark { display: inline; }

/* Smooth cross-theme color transition, only while switching */
@media (prefers-reduced-motion: no-preference) {
  html.theme-switching,
  html.theme-switching body,
  html.theme-switching *,
  html.theme-switching *::before,
  html.theme-switching *::after {
    transition:
      background-color 200ms ease,
      color 200ms ease,
      border-color 200ms ease,
      outline-color 200ms ease,
      box-shadow 200ms ease,
      fill 200ms ease,
      stroke 200ms ease !important;
  }
}

/* Mobile menu panel — docks to the solid 56px bar, no gap */
.nav__mobile {
  display: none;
  position: fixed;
  top: 56px; /* flush under the mobile bar */
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-bg-page);
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-menu);
  padding: 8px 16px 16px;
  flex-direction: column;
  gap: 2px;
}
.nav__mobile.is-open { display: flex; }
/* Scrim behind the open menu */
.nav__mobile::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--nav-scrim);
}
/* Opaque panel backing: negative-z children paint above the element's own
   background, so the fixed scrim would otherwise tint the panel itself
   (invisible in dark where scrim color = page color, wrong in light). */
.nav__mobile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-bg-page);
  border-radius: inherit;
}
.nav__mobile a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--step-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  padding: 13px 12px;
  border-radius: var(--radius-pill);
  border-bottom: 1px solid var(--color-border);
}
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile .btn {
  margin-top: 12px;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 0;
}
.nav__mobile a.btn { font-family: var(--font-display); }

/* ---------- Hero ---------- */
/* Push content below the fixed floating nav (8px inset + 68px pill = 76px) */
#main { padding-top: 76px; }
.hero { padding-block: clamp(48px, 5vw, 88px) clamp(40px, 4vw, 64px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
.hero__title {
  margin-block: 0;
  max-width: 14ch;
  text-wrap: balance;
}
@media (max-width: 470px) {
  .hero__title { max-width: none; }
}
.hero__title .accent { color: var(--color-accent); }
.hero__subtitle {
  margin-top: 22px;
  max-width: 46ch;
  font-size: var(--step-lead);
  line-height: 1.4;
  color: var(--color-text-muted);
}
.hero__cta { margin-top: 32px; }

/* Hero product proof: live universal-reply demo card
   (component styles live at the end of this file, after .composer) */
.vcard--hero { max-width: 520px; }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
}

/* ---------- Orange canvas ---------- */
.canvas {
  position: relative;
  max-width: var(--max-canvas);
  margin-inline: auto;
  border-radius: var(--radius-canvas);
  background: var(--canvas-bg);
  color: var(--canvas-text);
  overflow: hidden;
  isolation: isolate;
}
.canvas > * { position: relative; z-index: 1; }
.canvas__inner {
  /* The canvas surface may bleed to --max-canvas, but its content stays on
     the --max-content grid so head/mockup/mascot don't drift to the corners. */
  max-width: var(--max-content);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px);
}

.product-canvas { margin-top: clamp(48px, 5vw, 72px); }

.canvas__head {
  max-width: 640px;
  margin-bottom: 32px;
}
.canvas__head h2 { color: var(--canvas-text); }
.canvas__head p { color: var(--canvas-text-muted); margin-top: 12px; font-size: var(--step-lead); line-height: 1.4; }

/* ---------- Extension mockup (CSS window) ---------- */

.window {
  border-radius: 20px;
  background: var(--color-bg-section);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  color: var(--color-text-primary);
  max-width: 560px;
  width: 100%;
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}
.window__dots { display: flex; gap: 7px; }
.window__dots span {
  width: 11px; height: 11px; border-radius: var(--radius-round);
  background: var(--color-border-strong);
}
.window__dots span:nth-child(1) { background: #E8654A; }
.window__dots span:nth-child(2) { background: #E8B24A; }
.window__dots span:nth-child(3) { background: var(--color-success); }
.window__title {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.window__body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

/* Chat bubbles */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: var(--step-sub);
  line-height: 1.4;
}
.bubble--them {
  align-self: flex-start;
  background: var(--color-bg-card);
  border-bottom-left-radius: 5px;
  color: var(--color-text-primary);
}
.bubble--me {
  align-self: flex-end;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-bottom-right-radius: 5px;
  font-weight: 500;
}
.bubble__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-bottom: 3px;
}

.chip__key {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  line-height: 1;
  color: var(--chip-key-color);
  background: var(--chip-key-bg);
  padding: 3px 6px;
  border-radius: 6px;
}

/* Input field mock */
.inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
}
.inputbar > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--color-text-muted);
  font-size: var(--step-sub);
  line-height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inputbar .send {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  display: grid; place-items: center;
  color: var(--color-on-accent);
  font-size: 1rem; font-weight: 700;
  line-height: 1;
}

/* ---------- Translator duel (DeepL vs ThankYouCat, cat narrating) ---------- */
.duel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center; /* the cat narrates from mid-height, not the floor */
}
@media (min-width: 1024px) {
  .duel { grid-template-columns: minmax(0, 1fr) 248px; gap: 40px; }
}
.duel__windows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-width: 0;
}
@media (min-width: 760px) {
  .duel__windows { grid-template-columns: 1fr 1fr; }
}
.window--duel { max-width: none; }
.window--tycat { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.window__title--accent { color: var(--color-accent); }

.duel__chat {
  height: 264px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}
.duel__chat .bubble { flex-shrink: 0; }

/* composer mock: drafts wrap, caret blinks while "typing" */
.window--duel .inputbar > span:first-child {
  white-space: normal;
  line-height: 1.4;
  padding: 6px 0;
  overflow: visible;
  text-overflow: clip;
}
.window--duel .inputbar > span:first-child.is-live { color: var(--color-text-primary); }
.window--duel .inputbar > span:first-child.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--color-accent);
  vertical-align: -0.12em;
  animation: demo-caret 800ms steps(1) infinite;
}
.window--duel .inputbar > span:first-child.is-swap { animation: demo-swap 420ms var(--ease); }
.window--duel .send { transition: transform var(--dur-fast) var(--ease); }
.window--duel .send.is-pressed { transform: scale(0.86); }

/* the narrating cat */
.duel__cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-self: center;
  min-width: 0;
  margin: 0; /* figure UA margins would squeeze the fixed-width gif */
}
.duel__cat img {
  width: 190px;
  height: auto; /* never let max-width clamping squash the square gif */
  border-radius: 20px;
  image-rendering: pixelated;
}
.duel__say {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 96px; /* reserved for 4 lines so retorts don't jiggle the cat */
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--color-bg-section);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-window);
  font-size: var(--step-sub);
  line-height: 1.45;
}
.duel__say::after { /* tail pointing down at the cat */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
.duel__say.is-pop { animation: demo-pop 240ms var(--ease); }
.duel__replay {
  border: 1px solid var(--canvas-slot-outline);
  background: var(--color-bg-section);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
}
.duel__replay:hover { border-color: var(--color-accent); color: var(--color-accent); }
@media (prefers-reduced-motion: reduce) {
  .duel__say.is-pop, .window--duel .inputbar > span:first-child.is-swap { animation: none; }
}

/* ---------- Growth chart (why profit grows) ----------
   Series colors validated per theme (lightness band, chroma, CVD, contrast)
   against the card surface with scripts/validate_palette.js (dataviz skill). */
.growth {
  --s-profit: #F0561F;
  --s-ret: #1898CC;
  --s-time: #3EA873;
  position: relative;
}
:root[data-theme="light"] .growth {
  --s-profit: #B24505;
  --s-ret: #0B7DC0;
  --s-time: #176B41;
}

.growth__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 6px;
}
.growth__key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step-small);
  color: var(--color-text-primary);
}
.growth__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-round);
}
.growth__dot--profit { background: var(--s-profit); }
.growth__dot--ret { background: var(--s-ret); }
.growth__dot--time { background: var(--s-time); }

.growth-chart { width: 100%; height: auto; display: block; }
.growth-chart__grid line { stroke: var(--color-border); stroke-width: 1; }
.growth-chart__grid .growth-chart__base { stroke: var(--color-border-strong); }
.growth-chart__lab text,
.growth-chart .gend text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  fill: var(--color-text-muted);
}
.growth-chart .gend text { fill: var(--color-text-primary); }
@media (max-width: 560px) {
  /* the viewBox shrinks hard on phones — bump user-unit type to stay legible */
  .growth-chart__lab text, .growth-chart .gend text { font-size: 17px; }
}

.gline {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gline--profit { stroke: var(--s-profit); }
.gline--ret { stroke: var(--s-ret); }
.gline--time { stroke: var(--s-time); }
.gdot { stroke: var(--color-bg-card); stroke-width: 2; }
.gdot--profit { fill: var(--s-profit); }
.gdot--ret { fill: var(--s-ret); }
.gdot--time { fill: var(--s-time); }

/* draw-in on reveal (no-JS keeps the lines plainly visible) */
.js .growth .gline { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .reveal.is-visible .growth .gline { animation: gdraw 1100ms var(--ease) forwards; }
.js .reveal.is-visible .growth .gline--ret { animation-delay: 160ms; }
.js .reveal.is-visible .growth .gline--profit { animation-delay: 320ms; }
.js .growth .gend { opacity: 0; }
.js .reveal.is-visible .growth .gend { transition: opacity var(--dur) var(--ease) 1250ms; opacity: 1; }
@keyframes gdraw { to { stroke-dashoffset: 0; } }

.growth-chart__cross {
  stroke: var(--color-border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.growth__tip {
  position: absolute;
  z-index: 3;
  min-width: 148px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-menu);
  font-size: var(--step-small);
  color: var(--color-text-primary);
  pointer-events: none;
}
.growth__tip[hidden] { display: none; }
.growth__tip strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 400;
}
.growth__tip-row { display: flex; align-items: center; gap: 7px; line-height: 1.5; }
.growth__tip-row .growth__dot { flex: 0 0 auto; }
.growth__tip-row b { margin-left: auto; font-weight: 600; padding-left: 10px; }

.growth__note {
  margin-top: 10px;
  font-size: var(--step-small);
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .js .growth .gline { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js .growth .gend { opacity: 1; transition: none; }
}

/* ---------- Panel demo: 40-message thread, Key moments, AI Q&A ---------- */
.browser--wide { margin-top: 48px; --spanel-w: min(44%, 330px); }
.browser--wide .browser__body {
  height: 560px;
  --spanel-w: min(44%, 330px);
}
.browser__page.browser__page--split { display: flex; flex-direction: row; padding: 0; }
/* replay must not sit on the open sidepanel — park it by the clients column */
.browser--wide .browser__replay {
  right: calc(var(--spanel-w) + 14px);
  bottom: 14px;
}

/* the platform's chat column */
.bigb-chat {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
}
.bigb-chat__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text-primary);
}
.bigb-chat__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background: var(--color-success);
}
.bigb-chat__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain; /* rewinding the thread never scrolls the page */
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 6px;
}
.bigb-chat__scroll::-webkit-scrollbar { width: 8px; }
.bigb-chat__scroll::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 8px;
}
.bigb-chat__scroll .bubble {
  flex-shrink: 0;
  max-width: 74%;
  padding: 8px 12px;
  font-size: var(--step-small);
  border-radius: 12px;
}
.bigb-chat__composer { margin-top: 10px; flex: 0 0 auto; }

/* client list on the right of the page */
.bigb-clients {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-right: 1px solid var(--color-border); /* the list sits LEFT of the thread */
  overflow-y: auto;
  scrollbar-width: thin;
}
.bigb-clients__title {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: 0 4px 4px;
}
.bigb-client {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.bigb-client:hover { background: var(--color-bg-elevated); }
.bigb-client.is-active {
  background: var(--color-bg-elevated);
  outline: 1.5px solid var(--color-accent);
  outline-offset: -1.5px;
}
.bigb-client__ava {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.bigb-client__meta { min-width: 0; display: flex; flex-direction: column; }
.bigb-client__meta strong { font-size: var(--step-small); color: var(--color-text-primary); }
.bigb-client__meta em {
  font-style: normal;
  font-size: var(--step-mono);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .bigb-clients { display: none; } /* phones: the thread itself is the story */
}

/* AI chat inside the sidepanel */
.aip {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
.aip__chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}
.aip__chat .bubble {
  flex-shrink: 0;
  max-width: 88%;
  padding: 8px 12px;
  font-size: var(--step-small);
  border-radius: 12px;
}
.aip__empty {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: var(--step-small);
  color: var(--color-text-muted);
  padding: 0 16px;
}
.aip__empty[hidden] { display: none; } /* beat .aip__empty's display:flex */
.aip__spark { font-size: 20px; color: var(--color-accent-2); }
.aip__pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: none;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.aip__pill:hover { color: var(--color-accent); border-color: var(--color-accent); }
.aip__pill.is-pressed { transform: scale(0.92); }
.aip__composer { margin-top: 0; }

/* Key moments overlay: slides over the AI chat, dense and highlighted */
.aip-moments {
  position: absolute;
  top: 51px; /* below the sidepanel head */
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  animation: demo-pop 240ms var(--ease);
}
.aip-moments[hidden] { display: none; }
.aip-moments__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 8px;
}
.aip-moments__head > span:first-child {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  font-weight: 700;
}
.aip-moments__stamp {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  color: var(--color-text-muted);
  margin-left: auto;
}
.aip-moments__close {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: none;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}
.aip-moments__close:hover { color: var(--color-accent); border-color: var(--color-accent); }
.aip-moments__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 14px 14px;
}
.aip-m__k {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-highlight);
}
.aip-m p { font-size: var(--step-small); line-height: 1.5; color: var(--color-text-primary); }
.aip-m mark {
  background: var(--color-accent-subtle);
  color: var(--color-text-primary);
  border-radius: 4px;
  padding: 0 4px;
}
@media (prefers-reduced-motion: reduce) {
  .aip-moments { animation: none; }
}

/* ---------- Steering demo (composer line drives the universal reply) ---------- */
.js .vcard--steer { height: 540px; } /* smaller cast than the hero card */
@media (max-width: 480px) {
  .js .vcard--steer { height: 620px; } /* wrapped panel items need more room */
}
.steer-cap {
  display: block;
  margin-bottom: 2px; /* the list's own gap supplies the rest */
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.steer__replay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}
/* calling the universal reply "selects" the draft — one keystroke deletes it */
.demo-select {
  background: rgba(56, 182, 230, 0.32);
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
:root[data-theme="light"] .demo-select { background: rgba(11, 125, 192, 0.22); }
/* the viewer edits the draft themselves in the live phase */
.composer--demo .composer__input--mock[contenteditable="true"] {
  display: block; /* flex breaks caret placement while editing */
  outline: none;
  cursor: text;
  caret-color: var(--color-accent);
}
/* real placeholder: drawn only while the editable field is empty, so it can
   never mix with what the viewer types */
.composer--demo .composer__input--mock[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* ---------- Personal voice: hierarchy ladder + sidepanel demo ---------- */
.ladder {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
}
.ladder__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-bg-card);
  font-size: 1rem;
  color: var(--color-text-muted);
}
.ladder__row strong { color: var(--color-text-primary); }
.ladder__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-bg-elevated);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 700;
}
.ladder__row--top {
  background: var(--color-accent-subtle);
  outline: 1.5px solid var(--color-accent);
  outline-offset: -1.5px;
}
.ladder__row--top .ladder__num {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.ladder__tag {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ladder__note {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Chrome-like browser mockup */
.browser {
  position: relative;
  border-radius: 20px;
  background: var(--color-bg-section);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}
.browser__url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-page);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser__ext {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 9px;
  background: var(--color-bg-card);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.browser__ext:hover { box-shadow: 0 0 0 3px var(--color-accent-subtle); }
.browser__ext.is-pressed { transform: scale(0.86); }
.browser__ext img { display: block; }

.browser__body {
  --spanel-w: min(58%, 250px);
  position: relative;
  height: 380px;
  overflow: hidden;
}
.browser__page {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  /* the page yields to the sidepanel, like a real Chrome side panel */
  transition: right var(--dur-slow) var(--ease);
}
.browser__body.has-spanel .browser__page { right: var(--spanel-w); }
.vd-chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.vd-chat .bubble { flex-shrink: 0; }
.vd-composer { margin-top: 12px; flex: 0 0 auto; }

/* mini universal-reply popover above the composer */
.vd-suggest {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  animation: demo-pop 240ms var(--ease);
}
.vd-suggest[hidden] { display: none; }
.vd-suggest__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.vd-suggest__item {
  position: relative;
  display: block;
  padding: 6px 8px 6px 20px;
  border-radius: 10px;
  font-size: var(--step-sub);
  line-height: 1.45;
  color: var(--color-text-primary);
}
.vd-suggest__item + .vd-suggest__item { margin-top: 4px; }
.vd-suggest__item.is-picked { background: var(--color-accent-subtle); }
.vd-suggest__item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-round);
  background: var(--color-accent);
}

/* extension sidepanel sliding over the page */
.spanel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--spanel-w);
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border-left: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-menu);
  transform: translateX(105%);
  transition: transform var(--dur-slow) var(--ease);
}
.spanel.is-open { transform: none; }
.spanel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}
.spanel__logo {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-bg-elevated);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.spanel__logo.is-pressed { transform: scale(0.86); }
.spanel__logo img { display: block; }
.spanel__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: var(--step-small);
  color: var(--color-text-primary);
}
.spanel__menu {
  position: absolute;
  top: 48px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 6px;
  border-radius: 12px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-menu);
  animation: demo-pop 200ms var(--ease);
}
.spanel__menu[hidden] { display: none; }
.spanel__mitem {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: var(--step-small);
  color: var(--color-text-primary);
}
.spanel__mitem--hot { background: var(--color-accent-subtle); }
.spanel__mitem.is-pressed { background: var(--color-accent); color: var(--color-on-accent); }
.spanel__view {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}
.spanel__view[hidden] { display: none; }
.spanel__ghost {
  height: 34px;
  border-radius: 10px;
  background: var(--color-bg-elevated);
}
.spanel__ghost--short { width: 62%; }
.spanel__label {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.spanel__hint { font-size: var(--step-small); color: var(--color-text-muted); }
.spanel__ta {
  min-height: 64px; /* two fields (universal reply + translation) share the panel */
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-strong);
  font-size: var(--step-sub);
  line-height: 1.45;
  color: var(--color-text-primary);
}
.spanel__ta.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--color-accent);
  vertical-align: -0.12em;
  animation: demo-caret 800ms steps(1) infinite;
}
.spanel__saved {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  color: var(--color-success);
}
.spanel__saved[hidden] { visibility: hidden; display: block; } /* reserve the line */

.browser__replay {
  position: absolute;
  right: 12px;
  bottom: 78px; /* floats above the composer row, not on its buttons */
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .spanel, .browser__page { transition: none; }
  .vd-suggest, .spanel__menu { animation: none; }
  .spanel__ta.is-typing::after { animation: none; }
}

/* ---------- Feature sections (alternating 2-col) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature--swap .feature__text { order: 2; }
  .feature--swap .feature__visual { order: 1; }
}
.feature + .feature { margin-top: clamp(56px, 6vw, 88px); }
.feature__text h2 { margin-block: 0; }
.feature__text p { margin-top: 16px; color: var(--color-text-muted); max-width: 48ch; }
.feature__list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}
.feature__list .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: var(--radius-round);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  display: grid; place-items: center;
  font-size: var(--step-small); font-weight: 700;
  margin-top: 1px;
}
.feature__cta { margin-top: 26px; }

/* Generic dark visual card */
.vcard {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 28px;
}
.vcard__label {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: block;
}


/* "Send" in the mockup is illustrative, not a control */

/* Side-chat tabs card (feature C) */
.tabpills {
  display: flex;
  gap: 8px;
  padding: 5px;
  background: var(--color-bg-page);
  border-radius: 14px;
  margin-bottom: 18px;
}
.tabpill {
  flex: 1;
  text-align: center;
  padding: 9px 8px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-sub);
  color: var(--color-text-muted);
}
.tabpill.is-active {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.sidechat-line {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--step-sub);
}
.sidechat-line:last-child { border-bottom: 0; }
.sidechat-line .who {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  min-width: 62px;
  flex-shrink: 0;
  padding-top: 2px;
}
.sidechat-line p { color: var(--color-text-muted); }
.sidechat-tools {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.tooltag {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

/* ---------- Control plane cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-inner);
  margin-top: 48px;
}
@media (min-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: var(--space-card);
  display: flex;
  flex-direction: column;
  gap: var(--gap-inner);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-tile-sm);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  display: grid; place-items: center;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--step-h3); }
.card > p { color: var(--color-text-muted); font-size: 1rem; }

/* ---------- Expert workflow: four sequential steps ---------- */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 48px;
  padding: 0;
}
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 34px; }
}
.flow__step { position: relative; gap: 14px; } /* .card supplies bg/radius/padding */
.flow__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.flow__step h3 { font-size: var(--step-h4); }
.flow__step p { color: var(--color-text-muted); font-size: 1rem; }
.flow__step .chip__key { vertical-align: 1px; }

/* Connectors read the sequence: ↓ between stacked cards, → between columns */
.flow__step + .flow__step::before {
  content: "↓" / "";
  position: absolute;
  top: -27px;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}
@media (min-width: 1024px) {
  .flow__step + .flow__step::before {
    content: "→" / "";
    top: 50%;
    left: -17px;
  }
}

/* The steps reveal one after another — the order is part of the story */
.js .flow__step:nth-child(2) { transition-delay: 120ms; }
.js .flow__step:nth-child(3) { transition-delay: 240ms; }
.js .flow__step:nth-child(4) { transition-delay: 360ms; }

/* Mini table / rows inside cards */
.minirows { display: flex; flex-direction: column; gap: 8px; }
.minirow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-tile-sm);
  background: var(--color-bg-elevated);
  font-size: var(--step-small);
}
.minirow .k { color: var(--color-text-primary); font-weight: 500; }
.minirow .v {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  color: var(--color-text-muted);
}
.dot-ok { color: var(--color-success); }
.pill-tiny {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: var(--radius-round);
  background: var(--color-accent-subtle);
  color: var(--color-highlight);
}
/* Provider chips */
/* Quota bars */
.quota { display: flex; flex-direction: column; gap: 14px; }
.quota__row .quota__top {
  display: flex; justify-content: space-between;
  font-size: var(--step-small); margin-bottom: 6px;
}
.quota__top .v { font-family: var(--font-mono); color: var(--color-text-muted); }
.quota__track {
  height: 8px; border-radius: var(--radius-round);
  background: var(--color-bg-page);
  overflow: hidden;
}
.quota__fill {
  height: 100%; border-radius: var(--radius-round);
  background: var(--color-accent);
}

/* ---------- Built for organizations (roles) ---------- */
.roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-inner);
  margin-top: 48px;
}
@media (min-width: 640px)  { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roles { grid-template-columns: repeat(4, 1fr); } }
.role {
  background: var(--color-bg-card);
  border-radius: var(--radius-tile);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.role__badge {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.role__scope {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  font-size: var(--step-mono);
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-round);
  background: var(--color-accent-subtle);
  color: var(--color-highlight);
}
.role h4 { font-size: var(--step-h4); }
.role p { color: var(--color-text-muted); font-size: var(--step-sub); line-height: 1.45; }
.roles__caption {
  margin-top: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.roles__caption code {
  font-family: var(--font-mono);
  color: var(--color-highlight);
  background: var(--color-bg-card);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8125em;
}
/* Left-aligned closing note (non-centered counterpart of roles__caption) */
.section-note {
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: var(--max-text);
}

/* ---------- Profit band (wide ribbon: chain + outcomes) ---------- */

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--max-text);
  margin-inline: auto;
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
}
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 24px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}
.faq__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform var(--dur) var(--ease);
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur) var(--ease);
}
.faq__a-inner {
  padding: 0 4px 26px;
  color: var(--color-text-muted);
  max-width: 62ch;
  line-height: 1.55;
}

/* ---------- Final CTA canvas ---------- */
.cta-canvas { margin-top: clamp(48px, 5vw, 72px); }
.cta-canvas .canvas__inner {
  text-align: center;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.cta-canvas h2 { color: var(--canvas-text); max-width: 20ch; margin-inline: auto; }
.cta-canvas p {
  color: var(--canvas-text-muted);
  max-width: 52ch;
  margin: 16px auto 0;
  font-size: var(--step-lead);
  line-height: 1.4;
}
.cta-canvas .btn-row { justify-content: center; margin-top: 32px; }
/* the mascot keeps the bottom-right corner, off the reading line */
.cta-mascot {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 64px);
  bottom: 10px; /* fully inside the canvas — the chair stays uncropped */
  width: clamp(112px, 15vw, 176px);
  height: auto;
  border-radius: 20px;
  image-rendering: pixelated;
  pointer-events: none; /* never intercept taps meant for the CTA buttons */
}
@media (max-width: 560px) {
  .cta-mascot { width: 92px; right: 10px; bottom: 8px; }
  .cta-canvas .canvas__inner { padding-bottom: 104px; } /* clear the corner cat */
  .cta-canvas .btn-row { gap: 12px; }
}
/* One quiet pill: the address IS the "email us", the copy is one tap away */
.cta-email {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--canvas-slot-outline);
  border-radius: var(--radius-round);
}
.cta-email__addr {
  font-family: var(--font-mono);
  font-size: var(--step-sub);
  letter-spacing: 0.01em;
  color: var(--canvas-text);
  font-weight: 700;
  text-decoration: none;
}
.cta-email__addr:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta-email__copy {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cta-copy-hover-text);
  background: var(--canvas-text);
  border: 0;
  border-radius: var(--radius-round);
  padding: 8px 14px;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease);
}
.cta-email__copy:hover,
.cta-email__copy:focus-visible { opacity: 0.85; }
@media (max-width: 420px) {
  .cta-email { padding: 6px 6px 6px 12px; gap: 8px; }
  .cta-email__addr { font-size: var(--step-small); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-page);
  padding-block: 64px 32px;
  border-top: 1px solid var(--color-border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
.footer__brand .brand { margin-bottom: 16px; }
.footer__brand p {
  color: var(--color-text-muted);
  font-size: var(--step-sub);
  max-width: 32ch;
}
.footer__col h3 {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 16px;
  font-weight: 700;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--color-accent); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--step-small);
}
.footer__stamp { display: inline-flex; align-items: center; gap: 8px; }
.footer__paw { image-rendering: pixelated; opacity: 0.9; }

/* ---------- Scroll reveal (progressive: hidden state only when JS is present) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn__fill, .faq__icon, .textlink { transition: none; }
}

/* ---------- Feature pain / leverage lines ---------- */
.feature__pain {
  margin-top: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  font-style: italic;
  max-width: 44ch;
}
.feature__text .feature__pain { margin-bottom: 2px; }
.feature__leverage {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-highlight);
  max-width: 48ch;
}

/* ---------- Video slot (reusable) ---------- */
.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 380px;
  border-radius: var(--radius-canvas);
  background: var(--color-bg-card);
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  place-items: center;
}
.video-slot--onCanvas {
  margin-top: clamp(28px, 4vw, 40px);
  background: var(--canvas-slot-bg);
  outline: 1px solid var(--canvas-slot-outline);
  outline-offset: -1px;
}
.video-slot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}
/* Static poster mark — decorative, deliberately not a control */
.video-slot__mark {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  user-select: none;
}
.video-slot--onCanvas .video-slot__mark {
  background: var(--canvas-slot-mark-bg);
  color: var(--canvas-highlight);
}
.video-slot__badge {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: var(--radius-round);
  border: 1px solid var(--color-border-strong);
  color: var(--color-highlight);
}
.video-slot--onCanvas .video-slot__badge {
  border-color: var(--canvas-slot-badge-border);
  color: var(--canvas-highlight);
}
.video-slot__caption {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 40ch;
}
.video-slot--onCanvas .video-slot__caption { color: var(--color-text-primary); }

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
}
.composer__input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--step-sub);
  line-height: 32px;
}
.composer__input::placeholder { color: var(--color-text-muted); }
.composer__send {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  color: var(--color-on-accent);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}


/* Numbered side points, distributed over the mockup's full height */

/* Mockup (b): TyCat sidepanel with assistant */
.tycat-panel {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--color-text-primary);
}
.tycat-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}
.tycat-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--step-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}
.tycat-panel__pin {
  border: 0;
  background: none;
  cursor: default;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}
.tycat-panel__context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
}
.tycat-panel__client {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
}
.tycat-panel__avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-round);
  background: var(--color-accent-subtle);
  color: var(--color-highlight);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-small);
}
.tycat-panel__mode {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-round);
}
.tycat-panel__thread {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.assist-line {
  display: flex;
  gap: 10px;
  font-size: var(--step-sub);
  line-height: 1.5;
}
.assist-line__caret {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  padding-top: 1px;
}
.assist-line--you .assist-line__caret { color: var(--color-text-muted); }
.assist-line--you p { color: var(--color-text-muted); font-family: var(--font-mono); font-size: var(--step-small); }
.assist-line--ai .assist-line__caret { color: var(--color-accent); }
.assist-line--ai p { color: var(--color-text-primary); }
.assist-line--ai p + p { margin-top: 10px; }
.assist-line--ai strong { color: var(--color-highlight); font-weight: 600; }
.tycat-panel__input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 18px;
  padding: 8px 10px 8px 14px;
  border-radius: 14px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
}
.tycat-panel__input input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--step-sub);
  line-height: 30px;
}
.tycat-panel__input input::placeholder { color: var(--color-text-muted); }
.tycat-panel__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.08em;
  color: var(--color-on-accent);
  background: var(--color-accent);
  padding: 5px 9px;
  border-radius: var(--radius-round);
}

/* Mockup (c): Key moments card */

/* ---------- Responsive nav: pill -> solid bar below 1180px (kiro nav-md) ---------- */
@media (max-width: 1179px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .nav__right .theme-toggle { display: none; } /* the mobile panel has its own */
  .nav__toggle { display: inline-flex; }

  /* Solid edge-to-edge bar: no inset, no radius, no border, opaque bg,
     no state change on scroll */
  .nav,
  .nav.is-scrolled {
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    max-width: none;
    border-radius: 0;
    border: 0;
    background: var(--color-bg-page);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: none;
  }
  .nav__inner { padding: 0 16px; }
  #main { padding-top: 56px; }
}
@media (max-width: 560px) {
  .brand__word { font-size: var(--step-sub); }
}

/* ==========================================================================
   HERO DEMO — universal reply, live
   A scripted mini-chat: client writes in German, the paw (or ⌃⇧4) opens the
   universal-reply panel, a step is picked with a visible cursor, translated
   (typing cat) and sent. After the intro the remaining steps are clickable.
   ========================================================================== */
.vcard--demo { position: relative; }
/* Fixed-height flex card: the chat absorbs whatever the panel/composer free
   up, so toggling the panel never shifts the page. */
.js .vcard--demo {
  display: flex;
  flex-direction: column;
  height: 644px;
}

/* --- mini chat ------------------------------------------------------------ */
.demo-chat {
  height: 240px; /* no-JS fallback; with JS the chat flexes */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  scrollbar-width: thin;
}
.js .demo-chat {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.demo-chat .bubble { flex-shrink: 0; }
@keyframes demo-bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.bubble.is-in { animation: demo-bubble-in 320ms var(--ease) both; }

/* client "is typing" dots */
.bubble--typing { display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px; }
.bubble--typing i {
  width: 6px; height: 6px;
  border-radius: var(--radius-round);
  background: var(--color-text-muted);
  animation: demo-dot 900ms ease-in-out infinite;
}
.bubble--typing i:nth-child(2) { animation-delay: 150ms; }
.bubble--typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes demo-dot {
  0%, 60%, 100% { opacity: 0.35; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* --- universal reply panel ------------------------------------------------ */
/* With JS the panel collapses to zero height when closed — the chat above
   flexes into the freed space (the card keeps its fixed height, no page
   shift). Without JS the panel is simply visible. */
.uni {
  flex: 0 0 auto;
  margin-top: 14px;
  background: var(--color-bg-elevated);
  border-radius: 18px;
  padding: 14px 16px;
}
/* grid-rows 0fr→1fr animates the panel's TRUE height, so the chat above
   resizes in perfect sync with the fade — one duration, one easing */
.js .uni {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: grid-template-rows var(--dur-slow) var(--ease),
              opacity var(--dur-slow) var(--ease),
              margin var(--dur-slow) var(--ease),
              padding var(--dur-slow) var(--ease),
              visibility 0s linear var(--dur-slow);
}
.js .uni.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  margin-top: 14px;
  padding: 14px 16px;
  transition: grid-template-rows var(--dur-slow) var(--ease),
              opacity var(--dur-slow) var(--ease),
              margin var(--dur-slow) var(--ease),
              padding var(--dur-slow) var(--ease);
}
.js .uni .uni__list {
  min-height: 0;
  overflow: hidden;
}
.uni__list { display: flex; flex-direction: column; gap: 6px; }
.uni__item {
  position: relative;
  text-align: left;
  border: 0;
  background: none;
  padding: 6px 26px 6px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: var(--step-sub);
  line-height: 1.45;
  color: var(--color-text-primary);
  cursor: default;
  pointer-events: none; /* enabled once the panel goes .is-live */
  transition: background var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.uni__item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.72em;
  width: 6px; height: 6px;
  border-radius: var(--radius-round);
  background: var(--color-accent);
}
/* staggered entrance when the panel opens */
.js .uni .uni__item { opacity: 0; transform: translateY(6px); }
.js .uni.is-open .uni__item {
  opacity: 1;
  transform: none;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.js .uni.is-open .uni__item:nth-child(2) { transition-delay: 80ms; }
.js .uni.is-open .uni__item:nth-child(3) { transition-delay: 160ms; }
.js .uni.is-open .uni__item:nth-child(4) { transition-delay: 240ms; }

.uni.is-live .uni__item:not(.is-used) { pointer-events: auto; cursor: pointer; }
.uni.is-live .uni__item:not(.is-used):hover { background: var(--color-accent-subtle); }
.uni__item.is-picked { background: var(--color-accent-subtle); }
.uni__item.is-used { opacity: 0.45 !important; }
.uni__item.is-used::after {
  content: "✓";
  position: absolute;
  right: 6px;
  top: 5px;
  color: var(--color-success);
  font-weight: 700;
}

/* --- composer extras -------------------------------------------------------- */
.composer--demo { position: relative; flex: 0 0 auto; }
.composer--demo .composer__input--mock {
  color: var(--color-text-muted);
  white-space: normal;      /* drafts wrap like in the real composer */
  line-height: 1.45;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.composer--demo .composer__input--mock.is-live { color: var(--color-text-primary); }
.composer--demo .composer__input--mock.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--color-accent);
  vertical-align: -0.12em;
  animation: demo-caret 800ms steps(1) infinite;
}
@keyframes demo-caret { 50% { opacity: 0; } }
.composer--demo .composer__input--mock.is-swap { animation: demo-swap 420ms var(--ease); }
@keyframes demo-swap {
  0% { opacity: 0.15; filter: blur(3px); }
  100% { opacity: 1; filter: none; }
}

.composer__uni {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-round);
  background: var(--color-accent-subtle);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.composer__uni img { width: 18px; height: 18px; display: block; }
.composer__uni:hover { box-shadow: 0 0 0 3px var(--color-accent-subtle); }
.composer__uni.is-pressed { transform: scale(0.86); }
.composer--demo .composer__send { transition: transform var(--dur-fast) var(--ease); }
.composer--demo .composer__send.is-pressed { transform: scale(0.86); }

/* --- ⌘N preview: the draft in the expert's own language -------------------- */
.demo-preview {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 4;
  padding: 14px 16px 13px;
  border-radius: 14px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-menu);
  animation: demo-pop 240ms var(--ease) both;
}
.demo-preview[hidden] { display: none; }
.demo-preview::after { /* caret pointing at the composer */
  content: "";
  position: absolute;
  left: 26px;
  bottom: -6px;
  width: 10px; height: 10px;
  background: inherit;
  border-right: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-border-strong);
  transform: rotate(45deg);
}
.demo-preview__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-highlight);
}
.demo-preview__text {
  font-size: var(--step-sub);
  line-height: 1.45;
  color: var(--color-text-primary);
}

/* --- floating translate status (the cat at work) --------------------------- */
.demo-status {
  position: absolute;
  right: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-menu);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  color: var(--color-text-primary);
  animation: demo-pop 240ms var(--ease) both;
}
.demo-status[hidden] { display: none; } /* our display beats the [hidden] UA rule otherwise */
.demo-status img { width: 28px; height: 28px; border-radius: 8px; }
.demo-status.is-ok { color: var(--color-success); border-color: var(--color-success); }
@keyframes demo-pop {
  from { opacity: 0; transform: translateY(6px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}

/* --- hotkey keycap flash ---------------------------------------------------- */
.demo-key {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -100%);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--chip-key-color);
  background: var(--chip-key-bg);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 2px 0 var(--color-border-strong);
  border-radius: 8px;
  padding: 5px 9px;
  animation: demo-key-pop 950ms var(--ease) both;
}
@keyframes demo-key-pop {
  0%   { opacity: 0; transform: translate(-50%, -88%) scale(0.8); }
  14%  { opacity: 1; transform: translate(-50%, -102%) scale(1.08); }
  24%  { transform: translate(-50%, -100%) scale(1); }
  78%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -116%); }
}

/* --- fake mouse cursor ------------------------------------------------------ */
.demo-cursor {
  position: absolute;
  left: 0; top: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transition: transform 680ms var(--ease), opacity var(--dur) var(--ease);
}
.demo-cursor.is-shown { opacity: 1; }
.demo-cursor svg { display: block; transition: transform 120ms var(--ease); transform-origin: 6px 4px; }
.demo-cursor.is-down svg { transform: scale(0.82); }
.demo-cursor__ripple {
  position: absolute;
  left: 4px; top: 2px; /* centered on the arrow tip */
  width: 26px; height: 26px;
  border-radius: var(--radius-round);
  border: 2px solid var(--color-accent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
}
.demo-cursor.is-click .demo-cursor__ripple { animation: demo-ripple 460ms var(--ease); }
@keyframes demo-ripple {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(0.35); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.6); }
}

/* --- reduced motion: static, instant, no theatre ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  .demo-cursor, .demo-key { display: none !important; }
  .bubble.is-in, .composer--demo .composer__input--mock.is-swap, .demo-status, .demo-preview { animation: none; }
  .bubble--typing i { animation: none; }
  .js .uni, .js .uni .uni__item { transition: none; }
}

@media (max-width: 480px) {
  .demo-chat { height: 216px; } /* no-JS fallback */
  .js .vcard--demo { height: 690px; } /* wrapped panel steps need more room */
}
