/* ============================================
   AUDITCASH v2 · MERCURY/BREX-STYLE LANDING
   Editorial typography, bento layouts, real product UI
   ============================================ */

:root {
  /* Tokens (unchanged) */
  --bg-canvas: #F7F8FB;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F3F8;
  --bg-muted: #E8EBF2;
  --bg-deep: #0A0F1E;

  --text-primary: #0A0F1E;
  --text-secondary: #3F4A63;
  --text-tertiary: #5A6178; /* WCAG AA contrast ≥ 4.5:1 em #f7f8fb (11px) */
  --text-disabled: #5F647B; /* WCAG AA contrast ≥ 4.5:1 em #f7f8fb (12px) */

  --brand-50: #EEF4FF;
  --brand-100: #D9E5FF;
  --brand-300: #7BA3F0;
  --brand-500: #2E5BDB;
  --brand-700: #1C3FA8;
  --brand-900: #0F1F5C;

  --accent-black: #0A0F1E;
  --accent-black-hover: #1A2138;

  --danger-50: #FEF1F2;
  --danger-200: #FECACA;
  --danger-500: #E53E45;
  --danger-700: #A8232A;
  --warning-50: #FFF7E6;
  --warning-500: #E89523;
  --warning-700: #A6630E;
  --success-50: #ECFAF3;
  --success-200: #C8EBD9;
  --success-500: #1E9E62;
  --success-700: #0F6B43;

  --border-subtle: #EAEDF3;
  --border-default: #D5DAE5;
  --border-strong: #A8AEC2;
  --border-focus: #2E5BDB;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-3xl: 36px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(10, 15, 30, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 15, 30, 0.04);
  --shadow-md: 0 6px 24px rgba(10, 15, 30, 0.06);
  --shadow-lg: 0 16px 48px rgba(10, 15, 30, 0.08);
  --shadow-xl: 0 32px 80px rgba(10, 15, 30, 0.12);
  --shadow-product: 0 40px 100px -20px rgba(10, 15, 30, 0.18), 0 8px 24px rgba(10, 15, 30, 0.08);

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

#root { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.tabular { font-feature-settings: 'tnum'; }
.italic-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  /* A landing precisa respirar, mas não pode virar um layout sem eixo em
   * monitor largo. Mantemos full-bleed visual com um cap generoso no conteúdo. */
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 64px);
  position: relative;
}
.container-wide {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 64px);
}
@media (max-width: 768px) {
  .container, .container-wide { padding: 0 20px; }
}

.section { padding: 72px 0; position: relative; }
.section-tight { padding: 56px 0; }
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-tight { padding: 56px 0; }
}

.text-center { text-align: center; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display-mega {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.5vw, 124px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--text-primary);
}
.display-mega .italic { font-style: italic; font-weight: 400; }
.display-mega .accent { color: var(--brand-700); }

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.display-hero .italic { font-style: italic; }

.display-section {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.display-section .italic { font-style: italic; }
.display-section .accent { color: var(--brand-700); font-style: italic; }

.h1-sans {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.h4 { font-size: 17px; font-weight: 600; line-height: 1.4; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.eyebrow .eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(46, 91, 219, 0.12);
}

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

.body-l { font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.body-m { font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.body-s { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.caption { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }

.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-primary { color: var(--text-primary); }
.text-brand { color: var(--brand-500); }
.text-success { color: var(--success-700); }
.text-danger { color: var(--danger-700); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms var(--ease-default);
  white-space: nowrap;
  user-select: none;
  position: relative;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent-black);
  color: #fff;
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}
.btn-primary:hover { background: var(--accent-black-hover); transform: translateY(-1px); }
.btn-primary.lg { height: 56px; padding: 0 28px; font-size: 16px; }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  height: 48px;
  padding: 0 20px;
  font-size: 15px;
}
.btn-secondary:hover { border-color: var(--text-primary); background: var(--bg-canvas); }
.btn-secondary.lg { height: 56px; padding: 0 24px; font-size: 16px; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-subtle); }

.btn-mini {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-black);
  color: #fff;
}
.btn-mini:hover { background: var(--accent-black-hover); }

.btn-white {
  background: #fff;
  color: var(--accent-black);
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 500;
}
.btn-white:hover { background: rgba(255,255,255,0.92); transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.24);
  height: 56px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 500;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ============================================
   PILLS / BADGES
   ============================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.pill .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 4px rgba(30, 158, 98, 0.16);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.status-badge .dot { width: 5px; height: 5px; border-radius: 50%; }
.status-success { background: var(--success-50); color: var(--success-700); }
.status-success .dot { background: var(--success-500); }
.status-warning { background: var(--warning-50); color: var(--warning-700); }
.status-warning .dot { background: var(--warning-500); }
.status-danger { background: var(--danger-50); color: var(--danger-700); }
.status-danger .dot { background: var(--danger-500); }
.status-info { background: var(--brand-50); color: var(--brand-700); }
.status-info .dot { background: var(--brand-500); }
.status-neutral { background: var(--bg-subtle); color: var(--text-tertiary); }
.status-neutral .dot { background: var(--text-tertiary); }

/* ============================================
   NAVBAR (mercury-style)
   ============================================ */
.navbar-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 20px;
  pointer-events: none;
}
.navbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 6px 6px 6px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  max-width: 980px;
  margin: 0 auto;
  pointer-events: auto;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-right: 24px;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-black);
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(52, 209, 127, 0.22), transparent 65%);
  pointer-events: none;
}

/* Logo monograma A com seta de retorno — vetor + animação */
.logo-mark-svg {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.logo-mark-svg .logo-a path,
.logo-mark-svg .logo-arrow path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: logo-draw 0.85s cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
}
.logo-mark-svg .logo-a path:nth-child(1) { animation-delay: 0.10s; }
.logo-mark-svg .logo-a path:nth-child(2) { animation-delay: 0.22s; }
.logo-mark-svg .logo-arrow path:nth-child(1) { animation-delay: 0.55s; }
.logo-mark-svg .logo-arrow path:nth-child(2) { animation-delay: 0.72s; }
.logo-mark-svg .logo-arrow {
  transform-origin: center;
  animation: logo-arrow-pulse 4s ease-in-out 1.6s infinite;
}
@keyframes logo-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes logo-arrow-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(52, 209, 127, 0)); }
  50%      { filter: drop-shadow(0 0 3px rgba(52, 209, 127, 0.6)); }
}
.navbar-logo:hover .logo-mark-svg .logo-arrow path,
.footer-brand:hover .logo-mark-svg .logo-arrow path {
  animation: logo-draw 0.5s cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark-svg .logo-a path,
  .logo-mark-svg .logo-arrow path,
  .logo-mark-svg .logo-arrow {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    filter: none !important;
  }
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.navbar-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background 150ms, color 150ms;
}
.navbar-links a:hover { background: var(--bg-subtle); color: var(--text-primary); }
.navbar-cta { display: flex; align-items: center; gap: 4px; }
@media (max-width: 880px) {
  .navbar-links { display: none; }
  .navbar-logo { margin-right: auto; }
}

/* ============================================
   HERO BENTO
   ============================================ */
.hero {
  position: relative;
  padding: 112px 0 80px;
  overflow: hidden;
}
@media (max-width: 768px) { .hero { padding: 72px 0 56px; } }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg .blob {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 229, 255, 0.65) 0%, rgba(123, 163, 240, 0.18) 30%, transparent 60%);
  filter: blur(8px);
}
.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,15,30,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,15,30,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 0%, transparent 75%);
}

/* Asymmetric hero split */
.hero-split { padding-bottom: 56px; padding-top: 24px; }
.hero-split-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 3vw, 56px);
  align-items: center;
  margin-top: 24px;
}
@media (max-width: 1024px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-split-left { min-width: 0; }
.hero-split-left .pill { margin-bottom: 24px; }
.hero-split-left .hero-headline { max-width: 100%; text-wrap: pretty; }
.hero-split-left .hero-subtitle { max-width: 100%; margin-top: 20px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }
.hero-split-left .hero-ctas { margin-top: 28px; }
.hero-microproof {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 20px;
  font-size: 12.5px; color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.hero-microproof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-microproof svg { color: var(--success-500); }

/* Live counter card — technical / data-feel */
.counter-card {
  background: var(--accent-black);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 30px 60px -20px rgba(10,15,30,0.4), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.counter-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.counter-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  position: relative; z-index: 1;
}
.counter-amount {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 16px; margin-bottom: 24px;
  position: relative; z-index: 1;
  white-space: nowrap;
}
.counter-amount .currency { font-size: 22px; color: rgba(255,255,255,0.55); font-weight: 500; }
.counter-amount .num {
  font-size: 56px; font-weight: 500; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.counter-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 14px 0; margin-bottom: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 1;
}
.counter-meta .lab { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.counter-meta .val { font-size: 16px; color: #fff; margin-top: 4px; letter-spacing: -0.01em; white-space: nowrap; }
.counter-ticker {
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1;
}
.ticker-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.ticker-row:last-child { border-bottom: none; }
.ticker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 3px rgba(60,180,120,0.18);
}
.ticker-row .amt { color: var(--success-500); font-weight: 500; }
.ticker-row .time { color: rgba(255,255,255,0.4); font-size: 11px; }
.live-dot.pulse { animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60,180,120,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(60,180,120,0); }
}
.hero-center-stack {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 24px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-center-stack .pill { margin-bottom: 28px; }
.hero-headline {
  max-width: 100%;
  text-wrap: pretty;
}
.hero-subtitle {
  margin-top: 24px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Hero stage — large video with floating cards */
.hero-stage {
  position: relative;
  margin: 64px auto 0;
  max-width: 1180px;
}
.hero-video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 60px -20px rgba(10,15,30,0.3);
}
.hero-video-below { margin-top: 56px; }
.hero-counter-row { margin-top: 40px; }
.hero-counter-row .counter-card { max-width: 100%; }
.hero-video-stage video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.18) 100%);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
@media (max-width: 1024px) { .hero-stats-row { gap: 24px; } }

.hero-social {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
@media (max-width: 1024px) { .hero-social { justify-content: center; } }

.hero-social-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-social-item .num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}
.hero-social-item .label {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.3;
}
.hero-social-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* ============================================
   PRODUCT MOCKUP CHROME
   ============================================ */
.mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-product);
  overflow: hidden;
  position: relative;
}
.mockup-chrome {
  height: 36px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-muted); }
.chrome-dot.r { background: #FF6058; }
.chrome-dot.y { background: #FFBC2F; }
.chrome-dot.g { background: #2AC53F; }
.chrome-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 0 80px 0 12px;
  letter-spacing: -0.01em;
}

/* Mini product mockup: dashboard */
.mockup-dashboard {
  display: flex;
  height: 100%;
  min-height: 480px;
}
.mockup-sidebar {
  width: 168px;
  border-right: 1px solid var(--border-subtle);
  padding: 16px 12px;
  background: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.mockup-side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}
.mockup-side-brand .logo-mark { width: 22px; height: 22px; border-radius: 6px; }
.mockup-side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
.mockup-side-link.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}
.mockup-side-link .icon { color: var(--text-tertiary); display: flex; }
.mockup-side-link.active .icon { color: var(--brand-500); }
.mockup-side-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 0;
}
.mockup-side-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 4px 10px;
  margin-top: 4px;
}

.mockup-main {
  flex: 1;
  padding: 18px 20px;
  min-width: 0;
  overflow: hidden;
}
.mockup-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mockup-main-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.mockup-main-subtitle { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.mockup-period-tabs { display: flex; gap: 2px; background: var(--bg-canvas); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 2px; }
.mockup-period-tab { font-size: 11px; padding: 4px 9px; border-radius: 6px; color: var(--text-tertiary); font-weight: 500; }
.mockup-period-tab.active { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-xs); }

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mockup-kpi {
  padding: 10px 12px;
  background: var(--bg-canvas);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.mockup-kpi .lab { font-size: 9.5px; color: var(--text-tertiary); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.mockup-kpi .val { font-family: var(--font-mono); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-top: 4px; line-height: 1; }
.mockup-kpi .delta { font-family: var(--font-mono); font-size: 10px; color: var(--success-700); font-weight: 500; margin-top: 6px; display: flex; align-items: center; gap: 3px; }
.mockup-kpi .delta.down { color: var(--danger-700); }

.mockup-chart {
  height: 88px;
  margin-bottom: 14px;
  position: relative;
}
.mockup-chart svg { width: 100%; height: 100%; display: block; }

.mockup-table {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mockup-row {
  display: grid;
  grid-template-columns: 1fr 90px 80px 60px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  border-top: 1px solid var(--border-subtle);
}
.mockup-row:first-child { border-top: none; background: var(--bg-canvas); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); padding: 7px 12px; }
.mockup-row .protocol { font-family: var(--font-mono); color: var(--text-tertiary); font-size: 10.5px; }
.mockup-row .order { font-weight: 500; color: var(--text-primary); }
.mockup-row .order .protocol { display: block; }
.mockup-row .value { font-family: var(--font-mono); font-weight: 500; text-align: right; font-size: 12px; letter-spacing: -0.01em; white-space: nowrap; }
.mockup-row .value.danger { color: var(--danger-700); }
.mockup-row .value.success { color: var(--success-700); }
.mockup-row .chevron { color: var(--text-tertiary); display: flex; justify-content: flex-end; }

/* ============================================
   HERO VIDEO TILE (smaller, inside bento)
   ============================================ */
.hero-video-tile {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-product);
}
.hero-video-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-tile-label {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.hero-video-tile-label .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FF4444;
  box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.25);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   HERO RIGHT — Composition
   ============================================ */
.hero-comp {
  position: relative;
}
.hero-comp-dash {
  width: 100%;
}
.hero-comp-card-float {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 2;
}
.hero-comp-card-float.tl {
  top: 8%;
  left: -40px;
  width: 268px;
  animation: float-y 6s ease-in-out infinite;
}
.hero-comp-card-float.br {
  bottom: 8%;
  right: -40px;
  width: 264px;
  animation: float-y 7s ease-in-out infinite reverse;
}
@media (max-width: 1180px) {
  .hero-comp-card-float.tl { left: 12px; }
  .hero-comp-card-float.br { right: 12px; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 1024px) {
  .hero-comp-card-float.tl { left: 0; top: -16px; }
  .hero-comp-card-float.br { right: 0; bottom: -16px; }
}
@media (max-width: 640px) {
  .hero-comp-card-float { display: none; }
}

.float-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.float-card-head > div:last-child { min-width: 0; flex: 1; }
.float-card-head .icon-box {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
}
.float-card-head .ttl { font-size: 12.5px; font-weight: 600; color: var(--text-primary); line-height: 1.25; margin-bottom: 2px; }
.float-card-head .sub { font-size: 10.5px; color: var(--text-tertiary); line-height: 1.3; }

.float-card-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font-size: 11.5px;
  border-top: 1px solid var(--border-subtle);
}
.float-card-row:first-of-type { border-top: none; }
.float-card-row .l { color: var(--text-secondary); }
.float-card-row .v { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.float-card-row .l { white-space: nowrap; }
.float-card-row .v.danger { color: var(--danger-700); }
.float-card-row .v.success { color: var(--success-700); }
.float-card-row .v.delta { color: var(--danger-700); }

.float-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.float-total .lab { font-size: 10px; color: var(--text-tertiary); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.float-total .val { font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--success-700); letter-spacing: -0.02em; white-space: nowrap; }

/* ============================================
   LOGO MARQUEE
   ============================================ */
.logo-row {
  margin-top: 120px;
  display: flex;
  align-items: center;
  gap: 48px;
}
@media (max-width: 768px) { .logo-row { flex-direction: column; gap: 24px; margin-top: 64px; } }
.logo-row-label {
  flex-shrink: 0;
  max-width: 220px;
}
.logo-row-label .caption { display: block; margin-bottom: 6px; }
.logo-row-label .body-s { font-size: 13px; }
.marquee-track-wrap {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.5;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
}

/* ============================================
   SECTION HEAD (editorial style)
   ============================================ */
.section-head-ed {
  margin-bottom: 72px;
  max-width: 880px;
}
.section-head-ed.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-ed .eyebrow { margin-bottom: 24px; }
.section-head-ed h2 { margin-bottom: 20px; }

/* ============================================
   PAIN — Editorial split
   ============================================ */
.pain-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1024px) {
  .pain-hero { grid-template-columns: 1fr; gap: 48px; }
}
.pain-hero-text .eyebrow { margin-bottom: 24px; }
.pain-hero-text .lead { margin-top: 24px; max-width: 460px; font-size: 18px; line-height: 1.55; color: var(--text-secondary); }
.pain-cta-row { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.pain-cta-meta { font-size: 13px; color: var(--text-tertiary); }

.pain-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1024px) {
  .pain-split { grid-template-columns: 1fr; gap: 56px; }
}

.pain-bullets {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pain-bullet {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: default;
}
.pain-bullet:last-child { border-bottom: none; }
.pain-bullet .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.pain-bullet .body { display: flex; flex-direction: column; gap: 2px; }
.pain-bullet .body .ttl { font-size: 17px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.01em; }
.pain-bullet .body .sub { font-size: 13.5px; color: var(--text-secondary); }
.pain-bullet .loss {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--danger-700);
  letter-spacing: -0.01em;
  text-align: right;
  white-space: nowrap;
}

.divergence-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.divergence-mockup::before {
  content: '';
  position: absolute;
  inset: -8px -8px auto auto;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(229, 62, 69, 0.16), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.div-mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.div-mockup-head .left { display: flex; align-items: center; gap: 12px; }
.div-mockup-head .icon-box {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--danger-50);
  color: var(--danger-700);
  display: grid; place-items: center;
}
.div-mockup-head .ttl { font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.div-mockup-head .sub { font-size: 11.5px; color: var(--text-tertiary); margin-top: 2px; font-family: var(--font-mono); }

.div-diff {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.div-diff-side { display: flex; flex-direction: column; gap: 2px; }
.div-diff-side .lab { font-size: 10.5px; color: var(--text-tertiary); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.div-diff-side .val { font-family: var(--font-mono); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.div-diff-side.expected .val { color: var(--text-secondary); }
.div-diff-side.actual .val { color: var(--danger-700); }
.div-diff-arrow { color: var(--text-tertiary); }

.div-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.div-actions .meta { display: flex; flex-direction: column; gap: 2px; }
.div-actions .meta .lab { font-size: 10px; color: var(--text-tertiary); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.div-actions .meta .val { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--danger-700); white-space: nowrap; }
.div-actions .meta .lab { white-space: nowrap; }

.contest-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-black);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* ============================================
   HIGHLIGHT QUOTE (used in pain)
   ============================================ */
.pull-quote {
  margin: 80px auto 0;
  max-width: 900px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}
.pull-quote .mono { font-family: var(--font-mono); font-weight: 500; color: var(--text-primary); letter-spacing: -0.01em; }
.pull-quote .italic { font-style: italic; color: var(--text-primary); }

/* ============================================
   HOW IT WORKS — Vertical timeline w/ real UI
   ============================================ */
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 96px;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) { .how-steps { gap: 64px; } }

.how-step {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.how-step:nth-child(even) { grid-template-columns: 1.1fr 1fr; }
.how-step:nth-child(even) .how-step-text { order: 2; }
.how-step:nth-child(even) .how-step-visual { order: 1; }

@media (max-width: 1024px) {
  .how-step, .how-step:nth-child(even) { grid-template-columns: 1fr; gap: 40px; }
  .how-step:nth-child(even) .how-step-text { order: 1; }
  .how-step:nth-child(even) .how-step-visual { order: 2; }
}

.how-step-text .step-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.how-step-text .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-500);
  letter-spacing: 0;
}
.how-step-text .step-lab {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.how-step-text h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.how-step-text h3 .italic { font-style: italic; }
.how-step-text p {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 460px;
}

.how-step-visual {
  position: relative;
  min-height: 280px;
}

/* Step 1: connect screen */
.connect-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.connect-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.connect-head .icon-box {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid; place-items: center;
}
.connect-head .ttl { font-size: 15px; font-weight: 600; }
.connect-head .sub { font-size: 12px; color: var(--text-tertiary); }

.connect-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.connect-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.connect-item .brand-logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.connect-item .name { font-weight: 500; }

/* Step 2: timeline */
.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.timeline-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.timeline-card-head .ttl { font-size: 13px; font-weight: 600; }
.timeline-card-head .protocol { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); }

.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border-subtle);
}
.timeline-event {
  position: relative;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.timeline-event::before {
  content: '';
  position: absolute;
  left: -22px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--success-500);
}
.timeline-event.warn::before { border-color: var(--warning-500); }
.timeline-event.danger::before { border-color: var(--danger-500); }
.timeline-event:last-child { padding-bottom: 0; }
.timeline-event .ev-l { display: flex; flex-direction: column; gap: 2px; }
.timeline-event .ev-ttl { font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.timeline-event .ev-sub { font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); }
.timeline-event .ev-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.timeline-event .ev-val.danger { color: var(--danger-700); }
.timeline-event .ev-val.success { color: var(--success-700); }

/* Step 3: detect — diff highlight */
.detect-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.detect-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detect-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
}
.detect-row.flagged {
  background: var(--danger-50);
  border-color: rgba(229, 62, 69, 0.2);
  position: relative;
}
.detect-row.flagged::before {
  content: '';
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--danger-500);
  border-radius: 3px 0 0 3px;
}
.detect-row .name { font-size: 12.5px; font-weight: 500; }
.detect-row .name .sku { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-tertiary); display: block; margin-top: 1px; }
.detect-row .val { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; text-align: right; white-space: nowrap; }
.detect-row .val.danger { color: var(--danger-700); }

/* Step 4: contestation flow */
.contest-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.contest-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 18px;
}
.contest-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.contest-step .dot-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--success-500);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: grid; place-items: center;
}
.contest-step.pending .dot-num { background: var(--bg-muted); color: var(--text-tertiary); }
.contest-step .lab { font-size: 11px; font-weight: 500; color: var(--text-primary); }
.contest-step.pending .lab { color: var(--text-tertiary); }
.contest-arrow {
  margin-top: 10px;
  color: var(--border-default);
  margin: 0 4px;
  align-self: flex-start;
  padding-top: 8px;
}

.contest-detail {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.contest-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 0;
}
.contest-detail-row .l { color: var(--text-secondary); }
.contest-detail-row { gap: 16px; align-items: baseline; }
.contest-detail-row .l { white-space: nowrap; flex-shrink: 0; }
.contest-detail-row .v { font-family: var(--font-mono); font-weight: 500; color: var(--text-primary); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Step 5: recovery */
.recover-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.recover-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(30, 158, 98, 0.08), transparent 60%);
  pointer-events: none;
}
.recover-amount {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--success-700);
  line-height: 1;
  position: relative;
}
.recover-card .lab {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  position: relative;
}
.recover-card .sublab {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 14px;
  position: relative;
}
.recover-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.recover-item {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px;
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
}
.recover-item:first-child { border-top: none; }
.recover-item .meta { font-family: var(--font-mono); color: var(--text-tertiary); font-size: 11px; }
.recover-item .ttl { font-weight: 500; font-size: 12.5px; }
.recover-item .val { font-family: var(--font-mono); font-weight: 500; color: var(--success-700); }

/* ============================================
   METRICS — Full bleed editorial
   ============================================ */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 768px) { .metrics-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .metrics-row { grid-template-columns: 1fr; } }

.metric-cell {
  padding: 56px 32px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric-cell:last-child { border-right: none; }
.metric-cell .value {
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}
.metric-cell .value .unit { color: var(--text-tertiary); font-size: 0.6em; margin-left: 2px; }
.metric-cell .label {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 220px;
}
@media (max-width: 768px) {
  .metric-cell { padding: 32px 24px; }
  .metric-cell:nth-child(2) { border-right: none; }
  .metric-cell:nth-child(1), .metric-cell:nth-child(2) { border-bottom: 1px solid var(--border-subtle); }
}

/* ============================================
   PRODUCT BENTO
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
}

.bento-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 280ms var(--ease-default);
}
.bento-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-default);
}
.bento-tile .head { margin-bottom: auto; max-width: 380px; }
.bento-tile .eyebrow { margin-bottom: 14px; }
.bento-tile .t {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.bento-tile .t .italic { font-style: italic; }
.bento-tile .d {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.bento-tile .visual {
  margin-top: 32px;
  position: relative;
}

/* tile sizing */
.tile-2x2 { grid-column: span 4; grid-row: span 2; }
.tile-2x1 { grid-column: span 2; grid-row: span 1; }
.tile-3x1 { grid-column: span 3; grid-row: span 1; }
.tile-3x2 { grid-column: span 3; grid-row: span 2; }
.tile-4x1 { grid-column: span 4; grid-row: span 1; }
.tile-6x1 { grid-column: span 6; grid-row: span 1; }
@media (max-width: 1024px) {
  .tile-2x2, .tile-2x1, .tile-3x1, .tile-3x2, .tile-4x1, .tile-6x1 { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
  .tile-2x2, .tile-2x1, .tile-3x1, .tile-3x2, .tile-4x1, .tile-6x1 { grid-column: span 1; }
}

/* Bento mini-mockups */
.mini-radar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-radar-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
}
.mini-radar-row.alert {
  background: var(--danger-50);
  border-color: rgba(229,62,69,0.2);
  animation: alert-glow 3s ease-in-out infinite;
}
@keyframes alert-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,62,69,0); }
  50% { box-shadow: 0 0 0 4px rgba(229,62,69,0.06); }
}
.mini-radar-row .lab { font-weight: 500; }
.mini-radar-row .sku { font-family: var(--font-mono); color: var(--text-tertiary); font-size: 10.5px; }
.mini-radar-row .v { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.mini-radar-row .v.danger { color: var(--danger-700); }

/* Bento mockup: open finance */
.open-fin {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.open-fin-bank {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.open-fin-bank .l { display: flex; align-items: center; gap: 12px; }
.open-fin-bank .logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.open-fin-bank .name { font-size: 13.5px; font-weight: 500; }
.open-fin-bank .acct { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-tertiary); }

/* Sparkline / chart for bento */
.spark-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spark-stat {
  display: flex; align-items: baseline; gap: 8px;
}
.spark-stat .val { font-family: var(--font-mono); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.spark-stat .delta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--success-700);
  background: var(--success-50);
  padding: 2px 7px; border-radius: 6px;
  font-weight: 500;
}

/* Bento: history log */
.audit-log {
  display: flex; flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
}
.audit-log-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border-subtle); }
.audit-log-row .ts { color: var(--text-tertiary); }
.audit-log-row .ev { color: var(--text-primary); font-weight: 500; }
.audit-log-row .ev .tag { background: var(--brand-50); color: var(--brand-700); padding: 1px 6px; border-radius: 4px; font-size: 10px; margin-right: 4px; }

/* ============================================
   USE CASES — Editorial
   ============================================ */
.usecase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .usecase-row { grid-template-columns: 1fr; } }

.usecase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.usecase .visual {
  height: 200px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-surface) 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.usecase .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-500);
  font-weight: 500;
}
.usecase h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.usecase h3 .italic { font-style: italic; }
.usecase p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.usecase p .mono { color: var(--text-primary); font-weight: 500; }

/* visual variants */
.uc-visual-multi {
  width: 100%; height: 100%; position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 8px;
}
.uc-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}
.uc-chip.b { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }

.uc-visual-volume {
  width: 100%; height: 100%; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.uc-mega-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}
.uc-mega-num .sub { display: block; font-size: 13px; color: var(--text-tertiary); font-family: var(--font-sans); font-weight: 400; margin-top: 6px; letter-spacing: 0; }

.uc-visual-team {
  display: flex; padding: 24px; width: 100%; align-items: center; gap: -10px;
}
.uc-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--bg-surface);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  color: #fff;
  margin-left: -12px;
  box-shadow: var(--shadow-xs);
}
.uc-avatar:first-child { margin-left: 0; }

/* ============================================
   TESTIMONIALS — Editorial
   ============================================ */
.testimonial-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}
@media (max-width: 1024px) { .testimonial-hero { grid-template-columns: 1fr; gap: 40px; } }

.testimonial-hero blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.testimonial-hero blockquote .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.testimonial-hero .attr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}
.testimonial-hero .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-700));
  color: #fff;
  display: grid; place-items: center;
  font-size: 18px;
  font-weight: 600;
}
.testimonial-hero .name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.testimonial-hero .role { font-size: 13px; color: var(--text-tertiary); line-height: 1.4; margin-top: 2px; }

.testimonial-hero-aside {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-aside-stat {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--success-700);
  line-height: 1;
}
.testimonial-aside-lab {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.4;
}
.testimonial-aside-divider { height: 1px; background: var(--border-subtle); margin: 20px 0; }
.testimonial-aside-list { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.testimonial-aside-list-item { display: flex; justify-content: space-between; }
.testimonial-aside-list-item .l { color: var(--text-secondary); }
.testimonial-aside-list-item .v { font-family: var(--font-mono); color: var(--text-primary); font-weight: 500; }

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  flex: 1;
}
.testimonial-card blockquote .mono { font-family: var(--font-mono); font-size: 0.95em; font-weight: 500; }
.testimonial-card .attr {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 12px;
}
.testimonial-card .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
}
.testimonial-card .name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.testimonial-card .role { font-size: 12px; color: var(--text-tertiary); line-height: 1.4; margin-top: 1px; }

/* ============================================
   PRICING — Mercury-style
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: var(--accent-black);
  color: #fff;
  border-color: var(--accent-black);
}
.price-card.featured .pop-badge {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--brand-500);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card .plan-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.price-card .plan-range { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.price-card.featured .plan-range { color: rgba(255,255,255,0.55); }

.price-row { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 8px; flex-wrap: nowrap; white-space: nowrap; }
.price-row .amount { font-family: var(--font-mono); font-size: 44px; font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.price-row .per { font-size: 14px; color: var(--text-secondary); }
.price-card.featured .price-row .per { color: rgba(255,255,255,0.55); }
.price-row .custom { font-family: var(--font-mono); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.price-card .price-prefix { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.price-card.featured .price-prefix { color: rgba(255,255,255,0.55); }

.price-features { display: flex; flex-direction: column; gap: 11px; flex: 1; margin: 28px 0; }
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.price-card.featured .price-features li { color: rgba(255,255,255,0.78); }
.price-features svg { color: var(--success-500); flex-shrink: 0; margin-top: 1.5px; }
.price-card.featured .price-features svg { color: #fff; }

.price-card .btn { width: 100%; }
.price-card.featured .btn-white { width: 100%; height: 48px; font-size: 14px; }

.pricing-guarantee {
  margin: 48px auto 0;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--success-50);
  border: 1px solid var(--success-200);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pricing-guarantee svg { color: var(--success-700); flex-shrink: 0; }
.pricing-guarantee b { color: var(--text-primary); }

/* ============================================
   FAQ
   ============================================ */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1024px) { .faq-wrap { grid-template-columns: 1fr; gap: 40px; } }

.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  transition: all 200ms;
}
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.faq-q .icon {
  flex-shrink: 0;
  transition: transform 280ms var(--ease-out-expo);
  color: var(--text-tertiary);
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--text-primary); }
.faq-a { overflow: hidden; }
.faq-a-inner {
  padding: 0 4px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
}
.faq-a-inner .mono { color: var(--text-primary); font-weight: 500; }

.faq-aside .display-section { margin-bottom: 20px; }
.faq-aside p { font-size: 16px; color: var(--text-secondary); line-height: 1.55; }
.faq-aside .btn { margin-top: 28px; }

/* ============================================
   FINAL CTA — Editorial dark
   ============================================ */
.final-cta {
  background: var(--accent-black);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  padding: 120px 64px;
  text-align: center;
  margin: 0 auto;
  max-width: 1280px;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(46, 91, 219, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(123, 163, 240, 0.15), transparent 55%);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta .eyebrow { color: var(--brand-300); margin-bottom: 28px; }
.final-cta .eyebrow .eyebrow-dot { background: var(--brand-300); box-shadow: 0 0 0 4px rgba(123, 163, 240, 0.18); }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
}
.final-cta h2 .italic { font-style: italic; }
.final-cta p {
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 28px auto 44px;
}
.final-cta .ctas {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.final-cta .microcopy {
  margin-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-mono);
}
@media (max-width: 768px) {
  .final-cta { padding: 72px 28px; border-radius: var(--radius-2xl); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 96px 0 32px;
  margin-top: 96px;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer .brand-row { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.footer .tagline { font-size: 14px; color: var(--text-secondary); max-width: 320px; line-height: 1.5; }
.footer .col-title {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 150ms;
}
.footer ul a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .copyright {
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.5;
  font-family: var(--font-mono);
}
.footer-bottom .social { display: flex; gap: 8px; }
.footer-bottom .social a {
  color: var(--text-tertiary);
  transition: all 200ms;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}
.footer-bottom .social a:hover { color: var(--text-primary); border-color: var(--text-primary); }

/* ============================================
   HERO LOSS PREVIEW — interactive GMV slider
   ============================================ */
.loss-preview {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
  position: relative;
  overflow: hidden;
}
.loss-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229,62,69,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.loss-preview > * { position: relative; z-index: 1; }
.loss-preview-input label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.loss-preview-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.loss-preview-control .prefix {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.loss-preview-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand-500) 0%, var(--brand-500) var(--pct, 50%), var(--bg-muted) var(--pct, 50%), var(--bg-muted) 100%);
  outline: none;
}
.loss-preview-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-black);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(10,15,30,0.2);
  cursor: pointer;
  transition: transform 120ms;
}
.loss-preview-control input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.loss-preview-control input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-black);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(10,15,30,0.2);
  cursor: pointer;
}
.loss-preview-control .value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  min-width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.loss-preview-output {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0 16px;
  margin-top: 18px;
  border-top: 1px dashed var(--border-subtle);
}
.loss-preview-output .lp-lab {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.loss-preview-output .lp-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}
.loss-preview-output .lp-val.danger { color: var(--danger-700); }
.loss-preview-output .lp-sep {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}
.loss-preview-cta {
  width: 100%;
  margin-top: 16px;
}
@media (max-width: 480px) {
  .loss-preview-output { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .loss-preview-output .lp-sep { display: none; }
}

/* ============================================
   BEFORE / AFTER section
   ============================================ */
.ba-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.ba-head .display-section { margin: 16px 0 24px; }
.ba-toggle {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  border: 1px solid var(--border-subtle);
}
.ba-tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 200ms var(--ease-default);
  border: none;
  background: transparent;
}
.ba-tab.active.danger {
  background: var(--accent-black);
  color: #fff;
}
.ba-tab.active.success {
  background: var(--accent-black);
  color: #fff;
}

.ba-stage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: stretch;
  transition: opacity 300ms;
}
@media (max-width: 1024px) { .ba-stage { grid-template-columns: 1fr; } }

.ba-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-product);
  transition: all 400ms var(--ease-out-expo);
}
.ba-before .ba-mockup { filter: saturate(0.6) brightness(0.98); }
.ba-mockup-body { padding: 24px; }
.ba-mockup-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.ba-mockup-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.ba-mockup-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; font-family: var(--font-mono); }

.ba-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .ba-kpis { grid-template-columns: 1fr; } }
.ba-kpi {
  padding: 14px 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.ba-kpi .lab { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.ba-kpi .val { font-family: var(--font-mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; line-height: 1; }
.ba-kpi .val.danger { color: var(--danger-700); }
.ba-kpi .val.success { color: var(--success-700); }
.ba-kpi .sublab { font-size: 11px; margin-top: 6px; color: var(--text-tertiary); }
.ba-kpi .sublab.danger { color: var(--danger-700); }
.ba-kpi .sublab.success { color: var(--success-700); }

.ba-rows { display: flex; flex-direction: column; gap: 6px; }
.ba-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.ba-row .name { font-weight: 500; }
.ba-row .sku { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-tertiary); display: block; margin-top: 2px; }
.ba-row .val { font-family: var(--font-mono); font-weight: 500; font-size: 14px; white-space: nowrap; letter-spacing: -0.01em; }
.ba-row .val.success { color: var(--success-700); }
.ba-row .val.unknown { color: var(--text-disabled); }

.ba-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ba-side-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
}
.ba-side-card.danger { border-color: rgba(229,62,69,0.25); background: linear-gradient(180deg, var(--danger-50) 0%, #fff 100%); }
.ba-side-card.success { border-color: rgba(30,158,98,0.25); background: linear-gradient(180deg, var(--success-50) 0%, #fff 100%); }
.ba-side-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.ba-side-card.danger .ba-side-icon { background: var(--danger-500); color: #fff; }
.ba-side-card.success .ba-side-icon { background: var(--success-500); color: #fff; }
.ba-side-ttl { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px; }
.ba-side-sub { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

.ba-side-stats {
  background: var(--accent-black);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.ba-side-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ba-side-stats > div:last-child { border-bottom: none; }
.ba-side-stats .num { font-family: var(--font-mono); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.ba-side-stats .num.danger { color: #FF8589; }
.ba-side-stats .num.success { color: #4FD89F; }
.ba-side-stats .lab { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* Cinema split image (Nano Banana 2) */
.ba-cinema {
  position: relative;
  margin: 0 auto 40px;
  max-width: 1280px;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 30px 80px -24px rgba(8, 12, 26, 0.45),
    0 12px 28px -12px rgba(8, 12, 26, 0.22);
  isolation: isolate;
}
.ba-cinema img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8,12,26,0.45) 100%);
  z-index: 1;
}
.ba-cinema-tag {
  position: absolute;
  bottom: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.ba-cinema-tag.left {
  left: 18px;
  background: rgba(229, 62, 69, 0.22);
  color: #FFD8DA;
  border: 1px solid rgba(229, 62, 69, 0.45);
}
.ba-cinema-tag.right {
  right: 18px;
  background: rgba(30, 158, 98, 0.22);
  color: #BDF1D2;
  border: 1px solid rgba(30, 158, 98, 0.45);
}
@media (max-width: 640px) {
  .ba-cinema-tag { font-size: 10px; padding: 5px 10px; bottom: 12px; }
  .ba-cinema-tag.left { left: 12px; }
  .ba-cinema-tag.right { right: 12px; }
}

/* Compare row (sem | com) */
.ba-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.ba-compare-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 1024px) { .ba-compare { grid-template-columns: 1fr; } }

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comp-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  max-width: 1100px;
  margin: 0 auto;
}
.comp-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1.1fr;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 150ms;
}
.comp-row:last-child { border-bottom: none; }
.comp-row:hover:not(.comp-head) { background: var(--bg-canvas); }
.comp-row.comp-head {
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-default);
}
.comp-cell-label {
  padding: 18px 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}
.comp-head .comp-cell-label { background: var(--bg-canvas); }
.comp-cell {
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}
.comp-cell:last-child { border-right: none; }
.comp-cell.muted { color: var(--text-tertiary); }
.comp-head .comp-cell {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.comp-cell.featured {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}
.comp-row:not(.comp-head) .comp-cell.featured {
  background: rgba(46, 91, 219, 0.04);
  color: var(--text-primary);
}

/* =========================================
   BATTLE REVEAL — 3 fases (Planilha → Contador → Auditcash)
   ========================================= */
/* Estado inicial: células de conteúdo invisíveis. Label (col 1) entra junto na fase 1. */
.comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell,
.comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell-label {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
}

/* Fase 1 — Coluna label (col 1) + Planilha (col 2): sobem e Planilha vira riscada */
.comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell-label {
  animation: comp-rise 0.42s cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
  animation-delay: calc(var(--row-i, 0) * 70ms);
}
.comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell:nth-child(2) {
  animation:
    comp-rise 0.42s cubic-bezier(0.22, 0.7, 0.25, 1) forwards,
    comp-strike 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay:
    calc(var(--row-i, 0) * 70ms),
    calc(var(--row-i, 0) * 70ms + 500ms);
}

/* Fase 2 — Contador (col 3): mesma coreografia, +1200ms offset */
.comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell:nth-child(3) {
  animation:
    comp-rise 0.42s cubic-bezier(0.22, 0.7, 0.25, 1) forwards,
    comp-strike 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay:
    calc(var(--row-i, 0) * 70ms + 1200ms),
    calc(var(--row-i, 0) * 70ms + 1700ms);
}

/* Tick verde inline que aparece antes do texto */
.comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell.featured::before {
  content: "✓ ";
  color: var(--success-700);
  font-weight: 600;
  opacity: 0;
  animation: comp-tick-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--row-i, 0) * 70ms + 2600ms);
}

@keyframes comp-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes comp-strike {
  to {
    color: var(--text-disabled);
    text-decoration: line-through;
    text-decoration-color: rgba(229, 62, 69, 0.55);
    text-decoration-thickness: 1.5px;
  }
}
@keyframes comp-rise-glow {
  0%   { opacity: 0; transform: translateY(8px) scale(0.97); background: rgba(46, 91, 219, 0.04); }
  55%  { opacity: 1; transform: translateY(0) scale(1.015); background: rgba(30, 158, 98, 0.16); box-shadow: inset 0 0 0 1px rgba(30, 158, 98, 0.32), 0 0 24px rgba(30, 158, 98, 0.28); }
  100% { opacity: 1; transform: translateY(0) scale(1); background: rgba(30, 158, 98, 0.08); box-shadow: inset 0 0 0 1px rgba(30, 158, 98, 0.15), 0 0 0 rgba(30, 158, 98, 0); }
}
@keyframes comp-tick-pop {
  from { opacity: 0; transform: translateX(-3px) scale(0.6); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Fase 3 — Auditcash (col 4 featured): sobe brilhando + glow contínuo sutil */
@keyframes comp-glow-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(30, 158, 98, 0.10); }
  50%      { box-shadow: inset 0 0 0 1px rgba(30, 158, 98, 0.22), 0 0 16px rgba(30, 158, 98, 0.12); }
}
.comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell.featured {
  animation: comp-rise-glow 0.8s cubic-bezier(0.22, 0.7, 0.25, 1) forwards,
             comp-glow-pulse 3.2s ease-in-out infinite;
  animation-delay: calc(var(--row-i, 0) * 70ms + 2400ms),
                   calc(var(--row-i, 0) * 70ms + 3400ms);
}

/* Respeita prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell,
  .comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell-label,
  .comp-table.is-revealing .comp-row:not(.comp-head) > .comp-cell.featured::before {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--accent-black);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
@media (max-width: 900px) {
  .comp-row { grid-template-columns: 1fr; }
  .comp-cell-label { border-right: none; border-bottom: 1px solid var(--border-subtle); background: var(--bg-canvas); }
  .comp-head { display: none; }
  .comp-row { padding: 8px 0; }
  .comp-row .comp-cell-label::before { content: ''; }
  .comp-cell { border-right: none; padding: 8px 22px; }
  .comp-cell::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-right: 8px;
  }
}

/* ============================================
   PERFORMANCE PRICING CARD
   ============================================ */
.price-card-featured-perf {
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-canvas) 100%);
  border: 2px solid var(--accent-black);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.price-card-featured-perf::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(46, 91, 219, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.price-card-featured-perf .perf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent-black);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  align-self: flex-start;
  margin-bottom: 12px;
  position: relative;
}
.price-card-featured-perf .plan-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  position: relative;
}
.price-card-featured-perf .plan-range { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; position: relative; }
.price-card-featured-perf .price-prefix { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; position: relative; }
.price-card-featured-perf .price-row {
  margin: 4px 0 0;
  display: flex; align-items: baseline; gap: 8px;
  position: relative;
  white-space: nowrap;
}
.price-card-featured-perf .price-row .amount {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent-black);
}
.price-card-featured-perf .price-row .per { font-size: 14px; color: var(--text-secondary); }
.perf-zero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px;
  background: var(--success-50);
  border: 1px solid var(--success-200);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--success-700);
  align-self: flex-start;
  position: relative;
}
.perf-zero .zero-amt { font-family: var(--font-mono); font-weight: 500; }
.price-card-featured-perf .price-features { margin: 28px 0; position: relative; }
.price-card-featured-perf .btn { position: relative; }


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Safety net: if IntersectionObserver never fires (background tab, reduced motion, etc.) reveal after 2s */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1 !important; transform: none !important; }
  .hero-rise { animation: none !important; opacity: 1 !important; }
}
.hero-rise {
  opacity: 1;
  animation: hero-rise 800ms var(--ease-out-expo) forwards;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   DARK THEME · A11Y · SETTINGS · COMPACT HERO
   ============================================ */

/* DARK MODE — invert tokens */
[data-theme="dark"] {
  --bg-canvas: #0A0F1E;
  --bg-surface: #131A2D;
  --bg-subtle: #1A2138;
  --bg-muted: #232B45;
  --bg-deep: #050811;

  --text-primary: #F5F7FB;
  --text-secondary: #B5BDD0;
  --text-tertiary: #8088A0;
  --text-disabled: #4F5773;

  --brand-50: rgba(46, 91, 219, 0.14);
  --brand-100: rgba(46, 91, 219, 0.22);
  --brand-300: #7BA3F0;
  --brand-500: #4F7FE8;
  --brand-700: #93B5F5;
  --brand-900: #D9E5FF;

  --accent-black: #F5F7FB;
  --accent-black-hover: #FFFFFF;

  --danger-50: rgba(229, 62, 69, 0.14);
  --danger-200: rgba(229, 62, 69, 0.3);
  --danger-500: #FF5A60;
  --danger-700: #FF8589;
  --warning-50: rgba(232, 149, 35, 0.14);
  --warning-500: #FFB04A;
  --warning-700: #FFC97A;
  --success-50: rgba(30, 158, 98, 0.14);
  --success-200: rgba(30, 158, 98, 0.3);
  --success-500: #3FC585;
  --success-700: #5FD89F;

  --border-subtle: #232B45;
  --border-default: #2E3958;
  --border-strong: #4F5773;
}
[data-theme="dark"] body { background: var(--bg-canvas); color: var(--text-primary); }

/* Dark mode component fixes — buttons invert to white-on-dark */
[data-theme="dark"] .btn-primary { background: #F5F7FB; color: #0A0F1E; }
[data-theme="dark"] .btn-primary:hover { background: #FFFFFF; }
[data-theme="dark"] .btn-mini,
[data-theme="dark"] .btn-nav-cta { background: #F5F7FB; color: #0A0F1E; }
[data-theme="dark"] .btn-secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-default); }
[data-theme="dark"] .btn-secondary:hover { border-color: var(--text-primary); background: var(--bg-subtle); }
[data-theme="dark"] .logo-mark { background: #F5F7FB; color: #0A0F1E; }
[data-theme="dark"] .navbar { background: rgba(19,26,45,0.78); }
[data-theme="dark"] .final-cta { background: #050811; }
[data-theme="dark"] .final-cta .btn-white { background: #F5F7FB; color: #0A0F1E; }
[data-theme="dark"] .price-card-featured-perf {
  border-color: #F5F7FB;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-canvas) 100%);
}
[data-theme="dark"] .perf-badge { background: #F5F7FB; color: #0A0F1E; }
[data-theme="dark"] .price-card-featured-perf .btn-primary { background: #F5F7FB; color: #0A0F1E; }
[data-theme="dark"] .price-card.featured { background: #050811; }
[data-theme="dark"] .price-card.featured .btn-white { background: #F5F7FB; color: #0A0F1E; }
[data-theme="dark"] .ba-side-stats { background: #050811; }
[data-theme="dark"] .counter-card { background: #050811; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
[data-theme="dark"] .ba-tab.active.danger,
[data-theme="dark"] .ba-tab.active.success { background: #F5F7FB; color: #0A0F1E; }
[data-theme="dark"] .hero-video-stage { border-color: var(--border-default); }

/* Marketplace integration tiles legibility */
[data-theme="dark"] .integ-logo { background: var(--bg-subtle); color: var(--text-secondary); }

/* SIZE SCALING — use zoom for full-page text scale (px values don't auto-scale with root font-size) */
html { font-size: 15px; }
html[data-size="sm"] { zoom: 0.9; }
html[data-size="md"] { zoom: 1; }
html[data-size="lg"] { zoom: 1.14; }

/* HIGH CONTRAST */
[data-contrast="high"] {
  --text-secondary: var(--text-primary);
  --text-tertiary: var(--text-primary);
  --border-subtle: var(--text-tertiary);
  --border-default: var(--text-primary);
}
[data-contrast="high"][data-theme="dark"] {
  --text-secondary: #FFFFFF;
  --text-tertiary: #E0E5F0;
}
[data-contrast="high"] *:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
}

/* REDUCE MOTION — user toggle */
[data-motion="reduce"] *,
[data-motion="reduce"] *::before,
[data-motion="reduce"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
[data-motion="reduce"] .fade-in { opacity: 1 !important; transform: none !important; }
[data-motion="reduce"] .hero-rise { opacity: 1 !important; animation: none !important; }
[data-motion="reduce"] .marquee-track { animation: none !important; }
[data-motion="reduce"] .blob,
[data-motion="reduce"] .pulse,
[data-motion="reduce"] .live-dot.pulse,
[data-motion="reduce"] .hero-comp-card-float { animation: none !important; }
[data-motion="reduce"] video { /* no autoplay override */ }

/* GLOBAL FOCUS */
*:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent-black);
  color: var(--bg-surface);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  transition: top 200ms;
  white-space: nowrap;
}
.skip-link:focus {
  top: 16px;
}
[data-theme="dark"] .skip-link { background: #F5F7FB; color: #0A0F1E; }

/* SETTINGS MENU */
.settings-wrap { position: relative; display: inline-block; }
.settings-trigger {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  display: grid; place-items: center;
  transition: all 150ms;
  cursor: pointer;
  border: none;
}
.settings-trigger:hover { background: var(--bg-subtle); color: var(--text-primary); }
.settings-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: pop-in 180ms var(--ease-out-expo);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.settings-header {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 10px 8px 4px;
}
.settings-divider { height: 1px; background: var(--border-subtle); margin: 6px 0; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.settings-lab {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}
.settings-seg {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.settings-seg button {
  padding: 5px 9px;
  border-radius: 5px;
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 28px;
  justify-content: center;
  transition: all 150ms;
}
.settings-seg button:hover { color: var(--text-primary); }
.settings-seg button.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}
.settings-toggle {
  width: 34px; height: 20px;
  background: var(--bg-muted);
  border-radius: 999px;
  padding: 2px;
  border: none;
  cursor: pointer;
  transition: background 200ms;
  display: flex;
  align-items: center;
}
.settings-toggle span {
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: transform 200ms var(--ease-out-expo);
}
.settings-toggle.on { background: var(--brand-500); }
.settings-toggle.on span { transform: translateX(14px); }

/* ============================================
   ONE-VIEWPORT SNAP SECTIONS
   ============================================ */
.snap-section {
  min-height: auto;
  display: block;
  padding: clamp(72px, 8vw, 120px) 0;
  position: relative;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .snap-section { padding: 56px 0; }
}
.snap-section > .container { width: min(100%, 1680px); margin: 0 auto; }
.snap-section .section-head-ed { margin-bottom: 20px; }
.snap-section .section-head-ed .lead { display: none; }
.snap-section .display-section { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.05; }
.snap-section .lead { font-size: 15px; }

/* BeforeAfter compact */
.snap-section .ba-head { margin-bottom: 18px; }
.snap-section .ba-head .display-section { margin: 8px 0 14px; }
.snap-section .ba-mockup-body { padding: 14px; }
.snap-section .ba-mockup-head { margin-bottom: 12px; padding-bottom: 10px; }
.snap-section .ba-mockup-title { font-size: 14px; }
.snap-section .ba-mockup-sub { font-size: 11px; }
.snap-section .ba-kpis { gap: 8px; margin-bottom: 10px; }
.snap-section .ba-kpi { padding: 8px 10px; }
.snap-section .ba-kpi .val { font-size: 16px; margin-top: 4px; }
.snap-section .ba-kpi .lab { font-size: 9.5px; }
.snap-section .ba-kpi .sublab { font-size: 10px; margin-top: 4px; }
.snap-section .ba-row { padding: 6px 12px; font-size: 11.5px; }
.snap-section .ba-row .val { font-size: 12.5px; }
.snap-section .ba-rows { gap: 4px; }
.snap-section .ba-stage { gap: 20px; }
.snap-section .ba-side { gap: 10px; }
.snap-section .ba-side-card { padding: 14px; }
.snap-section .ba-side-ttl { font-size: 14px; }
.snap-section .ba-side-sub { font-size: 12px; }
.snap-section .ba-side-icon { width: 28px; height: 28px; margin-bottom: 8px; }
.snap-section .ba-side-stats { padding: 14px; gap: 8px; }
.snap-section .ba-side-stats .num { font-size: 18px; }
.snap-section .ba-side-stats .lab { font-size: 11px; }
.snap-section .ba-toggle { padding: 3px; }
.snap-section .ba-tab { padding: 6px 16px; font-size: 12.5px; }

/* Carousel */
.snap-section .carousel-card { min-height: 0; padding: 24px; gap: 24px; }
.snap-section .carousel-t { font-size: clamp(20px, 2.2vw, 26px); }
.snap-section .carousel-d { font-size: 13.5px; }
.snap-section .carousel-dots { margin-top: 18px; }

/* Comparison */
.snap-section .comp-cell, .snap-section .comp-cell-label { padding: 9px 16px; font-size: 12.5px; }
.snap-section .comp-head .comp-cell { font-size: 10.5px; padding: 11px 16px; }

/* Pricing */
.snap-section .price-card, .snap-section .price-card-featured-perf { padding: 20px; }
.snap-section .price-card .plan-name, .snap-section .price-card-featured-perf .plan-name { font-size: 22px; }
.snap-section .price-row { margin: 16px 0 4px; }
.snap-section .price-row .amount, .snap-section .price-card-featured-perf .price-row .amount { font-size: 30px; }
.snap-section .price-features { gap: 6px; margin: 14px 0; }
.snap-section .price-features li { font-size: 12.5px; }
.snap-section .pricing-guarantee { margin-top: 18px; padding: 10px 16px; font-size: 12px; }
.snap-section .price-card .btn, .snap-section .price-card-featured-perf .btn { height: 40px; font-size: 13px; }

/* Testimonials */
.snap-section .testimonial-hero { margin-bottom: 20px; gap: 32px; }
.snap-section .testimonial-hero blockquote { font-size: clamp(20px, 2.2vw, 28px); }
.snap-section .testimonial-hero-aside { padding: 18px; }
.snap-section .testimonial-aside-stat { font-size: 32px; }
.snap-section .testimonial-card { padding: 20px; }
.snap-section .testimonial-card blockquote { font-size: 15px; }

.hero-product-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(10,15,30,0.3);
}
.hero-product-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 8px 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}
.hpt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-family: inherit;
}
.hpt.active {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-primary);
  margin-bottom: -1px;
}
.hpt .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 3px rgba(30,158,98,0.2);
}

.hpd { background: var(--bg-surface); }
.hpd-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}
.hpd-chrome .cd { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-muted); }
.hpd-chrome .cd:nth-child(1) { background: #FF6058; }
.hpd-chrome .cd:nth-child(2) { background: #FFBC2F; }
.hpd-chrome .cd:nth-child(3) { background: #2AC53F; }
.hpd-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
  margin-right: 24px;
}

.hpd-body { padding: 16px; }
.hpd-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  gap: 12px;
}
.hpd-stat-lab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.hpd-stat-lab .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success-500); box-shadow: 0 0 0 3px rgba(30,158,98,0.2); }
.hpd-stat-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--success-700);
  line-height: 1;
}
.hpd-stat-mini { text-align: right; }
.hpd-stat-mini .lab { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 2px; }
.hpd-stat-mini .val { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

.hpd-chart { height: 56px; margin-bottom: 12px; }
.hpd-chart svg { width: 100%; height: 100%; display: block; }

.hpd-rows { display: flex; flex-direction: column; gap: 5px; }
.hpd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 280ms var(--ease-out-expo);
}
.hpd-row.flash {
  background: var(--success-50);
  border-color: rgba(30,158,98,0.3);
  transform: translateX(2px);
}
.hpd-row-p { font-size: 11.5px; font-weight: 500; line-height: 1.2; }
.hpd-row-s { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-tertiary); margin-top: 1px; }
.hpd-row-amt { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--success-700); white-space: nowrap; }

/* CTA personal tag */
.cta-personal-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
}
.cta-personal-tag .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 3px rgba(30,158,98,0.25);
}
.snap-section {
  min-height: auto;
  display: block;
  padding: clamp(72px, 8vw, 120px) 0;
  position: relative;
}
@media (max-width: 1024px) {
  .snap-section { padding: 56px 0; }
}
.snap-section > .container {
  width: min(100%, 1680px);
  margin: 0 auto;
}
/* Inside snap, tighten section-head + reduce stack heights */
.snap-section .section-head-ed { margin-bottom: 32px; }
.snap-section .display-section { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; }
.snap-section .lead { font-size: 16px; }

/* BeforeAfter — tighter */
.snap-section .ba-head { margin-bottom: 28px; }
.snap-section .ba-mockup-body { padding: 18px; }
.snap-section .ba-kpis { gap: 8px; margin-bottom: 14px; }
.snap-section .ba-kpi { padding: 10px 12px; }
.snap-section .ba-kpi .val { font-size: 18px; }
.snap-section .ba-row { padding: 8px 12px; font-size: 12px; }
.snap-section .ba-side-card { padding: 16px; }
.snap-section .ba-side-stats { padding: 16px; }
.snap-section .ba-side-stats .num { font-size: 20px; }

/* Carousel — fit one screen */
.snap-section .carousel-card { min-height: 0; padding: 32px; gap: 32px; }
.snap-section .carousel-t { font-size: clamp(22px, 2.4vw, 30px); }

/* Comparison */
.snap-section .comp-cell, .snap-section .comp-cell-label { padding: 12px 18px; font-size: 13px; }

/* Pricing */
.snap-section .price-card, .snap-section .price-card-featured-perf { padding: 24px; }
.snap-section .price-row .amount, .snap-section .price-card-featured-perf .price-row .amount { font-size: 36px; }
.snap-section .price-features { gap: 8px; margin: 18px 0; }
.snap-section .price-features li { font-size: 13px; }
.snap-section .pricing-guarantee { margin-top: 28px; padding: 12px 18px; font-size: 13px; }

/* Metrics — full-bleed bar shrunk */
.snap-section .metric-cell { padding: 36px 24px; }
.snap-section .metric-cell .value { font-size: clamp(32px, 4vw, 48px); }

.hero-compact {
  padding-top: 32px;
  padding-bottom: 16px;
  min-height: auto;
  display: block;
}
@media (max-width: 1024px) { .hero-compact { padding-top: 24px; padding-bottom: 16px; } }

.hero-compact .hero-split-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  margin-top: 0;
}
.hero-compact .pill { margin-bottom: 10px; }
.hero-compact .display-hero {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero-compact .hero-headline { max-width: clamp(580px, 42vw, 900px); }
.hero-compact .hero-subtitle {
  margin-top: 10px;
  max-width: 480px;
  font-size: 14.5px;
  line-height: 1.45;
}
.hero-compact .hero-ctas { margin-top: 14px; }
.hero-compact .loss-preview {
  margin-top: 14px;
  padding: 12px 16px;
}
.hero-compact .loss-preview-input label { margin-bottom: 6px; font-size: 10px; }
.hero-compact .loss-preview-output { margin-top: 10px; padding: 10px 0 0; gap: 10px; grid-template-columns: 1fr 1px 1fr auto; align-items: center; }
.hero-compact .loss-preview-output .lp-val { font-size: 18px; }
.hero-compact .loss-preview-cta {
  margin-top: 0;
  width: auto;
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  white-space: nowrap;
}
.hero-compact .hero-microproof { margin-top: 10px; font-size: 11px; gap: 14px; }

/* Hero right column: video + counter stacked tightly */
.hero-compact .hero-split-right { display: flex; flex-direction: column; gap: 10px; }
.hero-compact .container {
  max-width: 1920px;
  padding-right: clamp(20px, 3vw, 64px);
  padding-left: clamp(20px, 3vw, 64px);
}
.hero-compact .hero-split-grid {
  grid-template-columns: minmax(560px, 1.04fr) minmax(700px, 1fr);
  gap: clamp(28px, 3.8vw, 72px);
  margin-top: 0;
  align-items: center;
}
@media (min-width: 2200px) {
  .hero-compact .container {
    max-width: 2280px;
  }
  .hero-compact .hero-split-grid {
    grid-template-columns: minmax(720px, 1fr) minmax(880px, 1.08fr);
    gap: 80px;
  }
  .hero-compact .display-hero {
    font-size: clamp(46px, 3.9vw, 74px);
  }
  .hero-compact .hero-headline {
    max-width: 1100px;
  }
  .hero-compact .hero-subtitle {
    max-width: 640px;
    font-size: 17px;
  }
  .hero-compact .loss-preview {
    max-width: 700px;
  }
}
@media (max-width: 1100px) {
  .hero-compact .hero-split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-compact .container { padding-right: 20px; padding-left: 20px; }
}
.hero-split-right { min-width: 0; max-width: 100%; }
.hero-split-right .hero-video-stage { width: 100%; max-width: 100%; }
.hero-compact .hero-video-stage {
  aspect-ratio: 16/10;
  overflow: hidden;
  isolation: isolate;
}
.hero-compact .hero-video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-compact .counter-card { padding: 14px; }
.hero-compact .counter-amount { margin: 8px 0 10px; }
.hero-compact .counter-amount .num { font-size: 32px; }
.hero-compact .counter-amount .currency { font-size: 14px; }
.hero-compact .counter-meta { padding: 8px 0; margin-bottom: 0; gap: 10px; }
.hero-compact .counter-meta .val { font-size: 12px; }
.hero-compact .counter-meta .lab { font-size: 9px; }
.hero-compact .counter-ticker { display: none; }

/* Logo marquee inside compact hero — tighter */
.hero-compact .logo-row {
  margin-top: 28px;
  gap: 20px;
}
.hero-compact .marquee-item { font-size: 14px; }

/* Video no-audio note */
.hero-video-no-audio {
  position: absolute;
  bottom: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(10,15,30,0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  z-index: 3;
}
.hero-video-no-audio svg { opacity: 0.7; }

/* Loss preview — CTA inline on the right of output row */
.loss-preview-output { grid-template-columns: 1fr 1px 1fr auto; }
.loss-preview-cta { margin-top: 0; align-self: center; }
@media (max-width: 640px) {
  .loss-preview-output { grid-template-columns: 1fr 1fr; }
  .loss-preview-output .lp-sep { display: none; }
  .loss-preview-cta { grid-column: 1 / -1; width: 100%; margin-top: 8px; }
}

/* Marquee items dark mode */
[data-theme="dark"] .marquee-item { color: var(--text-secondary); }

/* Skip link visible in dark */
[data-theme="dark"] *:focus-visible { outline-color: var(--brand-500); }

/* ============================================
   COLOR-BLIND FILTERS (SVG filters applied to html)
   ============================================ */
html[data-cb="deut"] { filter: url(#cb-deut); }
html[data-cb="prot"] { filter: url(#cb-prot); }
html[data-cb="trit"] { filter: url(#cb-trit); }

/* ============================================
   CALM MODE (TEA / ADHD / sensory-friendly)
   - Drops bright reds/greens to muted tones
   - Removes gradients, blurs, parallax, marquees
   - Enforces solid soft backgrounds
   - Increases line-height
   ============================================ */
[data-calm="on"] {
  --bg-canvas: #F4F4F2;
  --bg-surface: #FFFFFF;
  --bg-subtle: #ECECEA;
  --bg-muted: #DEDEDB;
  --danger-500: #7A6A6A;
  --danger-700: #5A4F4F;
  --danger-50: #EFECEC;
  --success-500: #6A8A78;
  --success-700: #4F6B5C;
  --success-50: #ECF0EE;
  --warning-500: #A39060;
  --warning-700: #7A6A48;
  --warning-50: #F0EDE6;
  --brand-500: #5A6C8C;
  --brand-700: #3F4F6B;
  --brand-50: #ECEFF3;
}
[data-calm="on"][data-theme="dark"] {
  --bg-canvas: #1C1E22;
  --bg-surface: #24272D;
  --bg-subtle: #2A2D33;
  --bg-muted: #34383F;
}
[data-calm="on"] body { line-height: 1.75; letter-spacing: 0.005em; }
[data-calm="on"] .hero-bg .blob { display: none; }
[data-calm="on"] .hero-bg .grid { opacity: 0.4; }
[data-calm="on"] .marquee-track { animation: none !important; }
[data-calm="on"] .pulse,
[data-calm="on"] .live-dot.pulse { animation: none !important; box-shadow: none !important; }
[data-calm="on"] .blob,
[data-calm="on"] .hero-comp-card-float { animation: none !important; }
[data-calm="on"] video { filter: saturate(0.7) brightness(0.95); }
[data-calm="on"] *::before,
[data-calm="on"] *::after { animation: none !important; }
[data-calm="on"] .display-hero,
[data-calm="on"] .display-section { letter-spacing: -0.015em; }
[data-calm="on"] .ba-side-card.danger,
[data-calm="on"] .ba-side-card.success { background: var(--bg-surface) !important; }
[data-calm="on"] .counter-card::before { display: none; }
[data-calm="on"] .final-cta::before,
[data-calm="on"] .final-cta::after { display: none; }
[data-calm="on"] .final-cta { background: var(--bg-deep, #1C1E22); }
[data-calm="on"] .price-card-featured-perf::before { display: none; }
[data-calm="on"] .hero-video-stage { box-shadow: none; }

/* ============================================
   DYSLEXIA-FRIENDLY FONT (uses Atkinson Hyperlegible as a fallback closer to OpenDyslexic)
   ============================================ */
[data-dyslexia="on"] body,
[data-dyslexia="on"] .display-hero,
[data-dyslexia="on"] .display-section,
[data-dyslexia="on"] .display-mega {
  font-family: 'Atkinson Hyperlegible', 'Comic Neue', system-ui, sans-serif !important;
  letter-spacing: 0.04em;
  word-spacing: 0.12em;
  line-height: 1.7;
}
[data-dyslexia="on"] .display-hero,
[data-dyslexia="on"] .display-section { font-style: normal !important; }
[data-dyslexia="on"] .italic { font-style: normal !important; text-decoration: underline; text-decoration-color: var(--brand-500); text-underline-offset: 4px; }

/* Settings menu extras */
.settings-sublab { font-size: 10.5px; color: var(--text-tertiary); font-weight: 400; margin-top: 1px; }
.settings-row-stack { flex-direction: column; align-items: flex-start; gap: 8px; }
.settings-seg-wrap { flex-wrap: wrap; }
.settings-narrate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
  transition: background 150ms;
  width: 100%;
}
.settings-narrate:hover { background: var(--bg-muted); }
.settings-narrate svg { color: var(--brand-500); flex-shrink: 0; }
.settings-narrate-text { font-size: 13px; font-weight: 500; line-height: 1.2; }
.settings-narrate[aria-pressed="true"] svg { color: var(--danger-500); }
.settings-narrate[aria-pressed="true"] { background: var(--brand-50); }

/* Hidden SVG container for color-blind filters */
.cb-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============================================
   PRODUCT CAROUSEL
   ============================================ */
.carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  outline: none;
}
.carousel:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 8px; border-radius: var(--radius-xl); }
.carousel-stage {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  position: relative;
}
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 540ms cubic-bezier(0.7, 0, 0.3, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  opacity: 0.4;
  transition: opacity 360ms;
}
.carousel-slide.active { opacity: 1; }
.carousel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  min-height: 440px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) {
  .carousel-card { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; min-height: 0; }
}
.carousel-card-text { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.carousel-t {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.carousel-t .italic { font-style: italic; }
.carousel-d {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.carousel-meta { margin-top: 8px; }
.carousel-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  font-weight: 500;
}
.carousel-card-visual { display: flex; flex-direction: column; gap: 8px; }

/* Cinema image visual (Nano Banana 2) */
.visual.visual-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 24px 60px -20px rgba(8, 12, 26, 0.45),
    0 8px 22px -10px rgba(8, 12, 26, 0.22);
  background: #0A0F1E;
  isolation: isolate;
}
.visual.visual-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual.visual-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(8,12,26,0.28) 100%);
  z-index: 1;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 5;
  transition: all 200ms;
}
.carousel-arrow:hover { background: var(--accent-black); color: var(--bg-surface); border-color: var(--accent-black); transform: translateY(-50%) scale(1.05); }
[data-theme="dark"] .carousel-arrow:hover { color: var(--bg-canvas); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
@media (max-width: 600px) {
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
}

/* Dots / tabs */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.carousel-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 200ms;
  min-width: 90px;
}
.carousel-dot:hover { color: var(--text-secondary); }
.carousel-dot.active { color: var(--text-primary); }
.carousel-dot .dot-label { white-space: nowrap; }
.carousel-dot .dot-progress {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.carousel-dot.active .dot-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-black);
  animation: dot-fill 7s linear forwards;
  transform-origin: left;
}
[data-motion="reduce"] .carousel-dot.active .dot-progress::after,
[data-calm="on"] .carousel-dot.active .dot-progress::after { animation: none; transform: scaleX(1); width: 100%; }
@keyframes dot-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
[data-theme="dark"] .carousel-dot.active .dot-progress::after { background: #F5F7FB; }

/* Contestação visual (specific to slide 5) */
.contest-vis { display: flex; flex-direction: column; gap: 24px; padding: 4px 0; }
.contest-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 18px 0;
}
.cp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  flex-shrink: 0;
}
.cp-step .cp-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 2px solid var(--bg-muted);
  display: grid; place-items: center;
  color: #fff;
  transition: all 200ms;
}
.cp-step.done .cp-dot {
  background: var(--success-500);
  border-color: var(--success-500);
}
.cp-step.done { color: var(--text-primary); }
.cp-step.active .cp-dot {
  background: var(--bg-surface);
  border-color: var(--brand-500);
  position: relative;
}
.cp-step.active .cp-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: cp-pulse 1.6s ease-in-out infinite;
}
.cp-step.active { color: var(--text-primary); }
@keyframes cp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.7); }
}
.cp-line {
  flex: 1;
  height: 2px;
  background: var(--border-default);
  border-radius: 2px;
}
.cp-line.done { background: var(--success-500); }
.cp-line.active {
  background: linear-gradient(to right, var(--success-500) 50%, var(--border-default) 50%);
}

.contest-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.contest-stats > div { display: flex; flex-direction: column; gap: 4px; }
.contest-stats .lab { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.contest-stats .val { font-family: var(--font-mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.contest-stats .val.success { color: var(--success-700); }

/* ============================================
   FOOTER v2 — substantive, multi-column
   ============================================ */
.footer-v2 { padding: 80px 0 32px; }
.footer-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
  align-items: start;
}
@media (max-width: 1024px) { .footer-hero { grid-template-columns: 1fr; gap: 40px; } }
.footer-brand { margin-bottom: 24px; }
.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 480px;
  margin-bottom: 16px;
}
.footer-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.footer-trust {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.trust-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.trust-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.trust-ttl { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.trust-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; line-height: 1.4; }

.footer-grid-v2 {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 32px !important;
  margin-bottom: 48px !important;
}
@media (max-width: 900px) {
  .footer-grid-v2 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .footer-grid-v2 { grid-template-columns: 1fr !important; }
}

.footer .col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.footer-bottom .copyright {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  font-family: var(--font-mono);
}
.copyright-sub { color: var(--text-disabled); margin-top: 2px; }
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--success-700);
  font-weight: 500;
}
.footer-status .live-dot.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 3px rgba(30,158,98,0.18);
}

/* ============================================
   MODAL / SHEET — in-page subpages
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.55);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-fade 200ms var(--ease-out-expo);
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px -10px rgba(0,0,0,0.4);
  animation: modal-rise 280ms var(--ease-out-expo);
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: sticky;
  top: 16px;
  margin-left: auto;
  margin-right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-secondary);
  float: right;
  z-index: 2;
  transition: all 150ms;
}
.modal-close:hover { background: var(--bg-muted); color: var(--text-primary); }
.modal-content {
  padding: 48px 56px 56px;
}
@media (max-width: 640px) { .modal-content { padding: 32px 24px 40px; } }
.modal-eyebrow { margin-bottom: 16px; }
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.modal-intro {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.modal-block {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.modal-block:first-child { padding-top: 0; border-top: none; }
.modal-block-h {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-block-p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.modal-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.modal-status-up { background: var(--success-50); color: var(--success-700); }
.modal-status-up .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success-500); }
.modal-status-up::after { content: 'Operacional'; }
.modal-status-down { background: var(--danger-50); color: var(--danger-700); }
.modal-status-down .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger-500); }

/* ============================================
   CHAT AGENT WIDGET
   ============================================ */
.chat-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 200ms var(--ease-out-expo);
  font-family: inherit;
}
.chat-trigger:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -10px rgba(46,91,219,0.25); }
.chat-trigger-avatar { width: 36px; height: 36px; }
.chat-trigger-text { text-align: left; }
.chat-trigger-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.005em; }
.chat-trigger-sub { font-size: 10px; color: var(--text-tertiary); display: flex; align-items: center; gap: 4px; }
.chat-trigger-sub::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 3px rgba(30,158,98,0.2);
}
.chat-trigger-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--danger-500);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid; place-items: center;
}

.chat-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  width: 320px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 80px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px -10px rgba(10,15,30,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chat-rise 260ms var(--ease-out-expo);
}
@keyframes chat-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
  color: #fff;
  flex-shrink: 0;
}
.chat-head-left { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-700);
}
.chat-online-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--success-500);
  border: 2px solid var(--brand-700);
}
.chat-head-name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.chat-head-tag {
  font-size: 9.5px;
  background: rgba(255,255,255,0.18);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.chat-head-sub { font-size: 11.5px; opacity: 0.78; margin-top: 1px; }
.chat-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms;
}
.chat-close:hover { background: rgba(255,255,255,0.22); }

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-canvas);
  scroll-behavior: smooth;
}
.chat-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.chat-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-300));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.chat-msg-body { display: flex; flex-direction: column; gap: 4px; }
.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
  white-space: pre-wrap;
}
.chat-msg-user .chat-msg-bubble {
  background: var(--accent-black);
  color: var(--bg-surface);
  border: none;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 6px;
}
[data-theme="dark"] .chat-msg-user .chat-msg-bubble { background: #F5F7FB; color: #0A0F1E; }

.chat-msg-audio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 4px 2px 38px;
  align-self: flex-start;
}
.chat-msg-audio:hover { text-decoration: underline; }

.chat-typing { display: flex; gap: 4px; padding: 14px 16px; }
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: typing 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
}
.chat-quick-chip {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 150ms;
}
.chat-quick-chip:hover { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-700); }

.chat-input-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px 6px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.chat-input {
  flex: 1;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 150ms;
  min-width: 0;
}
.chat-input:focus { border-color: var(--brand-500); }
.chat-send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-black);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 150ms;
  flex-shrink: 0;
}
.chat-send:hover:not(:disabled) { transform: scale(1.05); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
[data-theme="dark"] .chat-send { background: #F5F7FB; color: #0A0F1E; }

.chat-foot {
  font-size: 9.5px;
  color: var(--text-tertiary);
  text-align: center;
  padding: 4px 8px 8px;
  background: var(--bg-surface);
}

/* Voice bubble */
.lia-avatar {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
}
.lia-avatar img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  width: 100%;
  height: 100%;
  background: var(--bg-subtle);
}
.lia-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  height: 30%;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  background: var(--success-500);
  border: 2px solid var(--bg-surface);
}
.lia-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--brand-500);
  animation: lia-pulse 1.4s ease-out infinite;
  pointer-events: none;
}
.lia-pulse-ring.red { border-color: var(--danger-500); }
@keyframes lia-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.chat-mic {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 150ms;
}
.chat-mic:hover:not(:disabled) { background: var(--bg-subtle); border-color: var(--brand-500); color: var(--brand-700); }
.chat-mic.recording {
  background: var(--danger-500);
  color: #fff;
  border-color: var(--danger-500);
  animation: mic-pulse 1.2s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,62,69,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(229,62,69,0); }
}
.chat-mic:disabled { opacity: 0.4; cursor: not-allowed; }

.voice-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  min-width: 200px;
}
.voice-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 150ms;
}
.voice-play:hover { transform: scale(1.06); }
.voice-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
}
.voice-bar {
  flex: 1;
  background: var(--brand-300);
  border-radius: 1px;
  min-height: 4px;
  transition: background 150ms;
}
.voice-bar.past { background: var(--brand-700); }
.voice-bar.playing { animation: voice-pulse 0.8s ease-in-out infinite; }
@keyframes voice-pulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.15); }
}
.voice-duration { font-family: var(--font-mono); font-size: 11px; color: var(--brand-700); font-weight: 500; }

@media (max-width: 480px) {
  .chat-panel { right: 8px; bottom: 8px; left: 8px; width: auto; height: calc(100vh - 100px); }
  .chat-trigger { right: 16px; bottom: 16px; }
  .chat-trigger-text { display: none; }
  .chat-trigger { padding: 10px; }
}







/* ============================================
   AHA MOMENT
   ============================================ */
.aha-section { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.aha-head { max-width: 820px; margin: 0 auto 24px; text-align: center; }
.aha-head .display-section { margin-top: 10px; }
.aha-head .display-section .italic { color: var(--success-700); font-style: italic; }

.aha-player {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aha-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: aha-pop 420ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color 280ms, background 280ms;
}
@media (max-width: 640px) { .aha-card { padding: 24px 22px; min-height: 240px; } }
@keyframes aha-pop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.aha-card.tone-alert, .aha-card.tone-flag {
  background: linear-gradient(135deg, var(--danger-50) 0%, var(--bg-surface) 70%);
  border-color: rgba(229,62,69,0.22);
}
.aha-card.tone-pending {
  background: linear-gradient(135deg, var(--warning-50) 0%, var(--bg-surface) 70%);
  border-color: rgba(232,149,35,0.22);
}
.aha-card.tone-success {
  background: linear-gradient(135deg, var(--success-50) 0%, var(--bg-surface) 70%);
  border-color: rgba(30,158,98,0.28);
}

.aha-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
  gap: 12px;
}
.aha-card-time { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.aha-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex-shrink: 0;
}
.aha-card-dot.tone-alert, .aha-card-dot.tone-flag { background: var(--danger-500); box-shadow: 0 0 0 4px rgba(229,62,69,0.18); animation: aha-pulse 1.4s ease-in-out infinite; }
.aha-card-dot.tone-pending { background: var(--warning-500); box-shadow: 0 0 0 4px rgba(232,149,35,0.18); }
.aha-card-dot.tone-success { background: var(--success-500); box-shadow: 0 0 0 4px rgba(30,158,98,0.2); }
@keyframes aha-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.7); }
}
.aha-card-t { font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.aha-card-stage { color: var(--text-secondary); }
.aha-card-step { font-weight: 500; white-space: nowrap; }

.aha-card-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 22px;
  text-wrap: balance;
}
.aha-card-headline .italic { font-style: italic; }

.aha-card-amount {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.aha-card-amount.tone-alert, .aha-card-amount.tone-flag { color: var(--danger-700); }
.aha-card-amount.tone-pending { color: var(--warning-700); }
.aha-card-amount.tone-success { color: var(--success-700); }

.aha-card-detail { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }

.aha-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}
@media (max-width: 640px) {
  .aha-strip-label { display: none !important; }
}
.aha-strip-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-tertiary);
  transition: all 200ms;
  min-width: 0;
  overflow: hidden;
}
.aha-strip-step:hover { background: var(--bg-subtle); }
.aha-strip-step.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.aha-strip-step.past { opacity: 0.7; }
.aha-strip-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: all 200ms;
}
.aha-strip-step.active .aha-strip-dot.tone-alert,
.aha-strip-step.active .aha-strip-dot.tone-flag { background: var(--danger-500); }
.aha-strip-step.active .aha-strip-dot.tone-pending { background: var(--warning-500); }
.aha-strip-step.active .aha-strip-dot.tone-success { background: var(--success-500); }
.aha-strip-step.active .aha-strip-dot.tone-neutral { background: var(--text-primary); }
.aha-strip-step.past .aha-strip-dot { background: var(--success-500); }
.aha-strip-label {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}
.aha-strip-t { font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; line-height: 1.1; }
.aha-strip-n {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aha-cta-row { display: flex; justify-content: center; margin-top: 20px; animation: aha-pop 360ms 80ms cubic-bezier(0.16,1,0.3,1) both; }
