/* ==========================================================================
   Echo — marketing site stylesheet
   System: light UI, dark ink typography, single teal accent, echo-wave motif
   No external fonts or libraries: system font stack for zero network cost.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0b1224;
  --ink-soft: #36455c;
  --muted: #5b6b7a;
  /* Brand palette — drawn from the Orinos AI logo (cyan → blue → violet) */
  --accent: #6c3ef5;
  --accent-deep: #5a2fd6;
  --accent-2: #3d7bfa;
  --accent-3: #2fc1f2;
  --grad: linear-gradient(115deg, #2fc1f2 0%, #3d7bfa 48%, #7a3ff2 100%);
  --grad-text: linear-gradient(115deg, #3d7bfa 0%, #6c3ef5 60%, #7a3ff2 100%);
  --accent-tint: #efeafe;
  --accent-tint-2: #f6f3ff;
  --cyan-tint: #e9f6fd;
  --bg: #fdfdfd;
  --bg-alt: #f5f5f8;
  --line: #e4e6ee;
  --line-soft: #edeff5;
  --white: #ffffff;
  --surface: #ffffff;
  --header-bg: rgba(253, 253, 251, 0.94);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 36, 0.05);
  --shadow-md: 0 6px 24px -8px rgba(11, 18, 36, 0.14);
  --focus-ring: 0 0 0 3px rgba(108, 62, 245, 0.35);
  --header-h: 4rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-alt: #101523;
  --surface: #141a2c;
  --ink: #f2f4fa;
  --ink-soft: #c3cbd9;
  --muted: #94a0b4;
  --accent-deep: #a58bff;
  --accent-tint: rgba(108, 62, 245, 0.2);
  --accent-tint-2: rgba(108, 62, 245, 0.1);
  --cyan-tint: rgba(47, 193, 242, 0.1);
  --line: #252c40;
  --line-soft: #1d2436;
  --header-bg: rgba(11, 15, 26, 0.9);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px -8px rgba(0, 0, 0, 0.6);
}

/* Analytics panel keeps its gradient edge, slightly lifted from the page. */
[data-theme="dark"] .analytics-panel {
  background:
    linear-gradient(0deg, #0d1322, #0d1322) padding-box,
    var(--grad) border-box;
}

/* ---------- Animated business background ---------- */
/* Faint drifting network: Echo connecting channels, customers, and growth.
   Painted above section backgrounds but under the header, at very low
   contrast so text readability is unaffected. */
.bg-network {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* On light surfaces the network uses deeper brand tones to stay visible. */
[data-theme="light"] .bg-network {
  opacity: 0.85;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
}

p {
  /* text-wrap: pretty intentionally omitted — multi-pass layout cost outweighs benefit here */
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-tint);
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Anchor offset for sticky header */
section[id],
[id="top"] {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

/* ---------- Utilities ---------- */
.container {
  width: min(72.5rem, 100% - 2.5rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(50rem, 100% - 2.5rem);
}

.section {
  padding-block: clamp(4rem, 6vw + 2rem, 7rem);
  scroll-margin-top: var(--header-h);
  /* Skip rendering below-fold sections until scrolled near — big initial-paint win */
  content-visibility: auto;
  contain-intrinsic-size: auto 56rem;
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

/* Gradient hairline under section headings — the "signal" motif */
.section-head::after {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  margin-top: 1.1rem;
  border-radius: 3px;
  background: var(--grad);
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.9rem;
}

.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #0b1224;
  color: #ffffff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Pills & badges (status is always text + icon, never color alone) ---------- */
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  white-space: nowrap;
}

.badge {
  padding: 0.45rem 0.95rem;
  min-height: 2rem;
}

.pill {
  padding: 0.3rem 0.8rem;
}

.badge--live,
.pill--live {
  background: var(--accent-tint);
  color: var(--accent-deep);
  border: 1px solid rgba(108, 62, 245), 0.28);
}

.pill--soon {
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.pill--mini {
  font-size: 0.68rem;
  padding: 0.18rem 0.55rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.badge-icon {
  flex: none;
}

/* ---------- Buttons (44px+ touch targets) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.btn--lg {
  min-height: 3.1rem;
  padding: 0.85rem 1.9rem;
  font-size: 1.02rem;
}

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

.btn--primary {
  background: #6c3ef5;
  background-image: linear-gradient(115deg, #3554e3 0%, #6c3ef5 60%, #7a3ff2 100%);
  color: var(--white);
}

.btn--primary:hover {
  background: #5a2fd6;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(108, 62, 245, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--accent-tint-2);
}

.nav-cta {
  margin-left: 0.75rem;
}

/* ---------- Brand logo ---------- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.25rem 0;
}

/* Real logo files (assets/logo-light.png, assets/logo-dark.png) activate via JS:
   both <img> elements stay hidden until the files are present, then the image
   replaces the text wordmark — light file on light theme, dark file on dark. */
.logo-img {
  display: none;
  height: 2.5rem;
  width: auto;
}

html.has-img .brand-logo .logo-word {
  display: none;
}

html.has-img .brand-logo .logo-img[data-logo="light"] {
  display: block;
}

html.has-img .brand-logo .logo-img[data-logo="dark"] {
  display: none;
}

html[data-theme="dark"].has-img .brand-logo .logo-img[data-logo="light"] {
  display: none;
}

html[data-theme="dark"].has-img .brand-logo .logo-img[data-logo="dark"] {
  display: block;
}

.footer-brand .brand-logo .logo-img {
  height: 2.1rem;
}

/* The footer is an inverse surface, so its wordmark is opposite the header. */
html.has-img .footer-brand .logo-img[data-logo="light"] {
  display: none;
}

html.has-img .footer-brand .logo-img[data-logo="dark"] {
  display: block;
}

html[data-theme="dark"].has-img .footer-brand .logo-img[data-logo="light"] {
  display: block;
}

html[data-theme="dark"].has-img .footer-brand .logo-img[data-logo="dark"] {
  display: none;
}

/* Hero diagram center: the real Orinos AI mark replaces the fallback node */
.hero-logo-img {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 17%;
  height: auto;
  z-index: 2;
}

html.has-logo-img .hero-logo-img {
  display: block;
}

html.has-logo-img .center-fallback {
  display: none;
}

/* ---------- Theme toggle ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.theme-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-tint-2);
  transform: rotate(15deg);
}

.theme-btn .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-btn .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-btn .icon-moon {
  display: none;
}

/* Mobile menu button */
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-btn-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-btn-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-btn-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 5vw + 2rem, 6.5rem);
  background:
    radial-gradient(50rem 26rem at 88% -14%, var(--cyan-tint) 0%, transparent 60%),
    radial-gradient(46rem 26rem at -6% 108%, var(--accent-tint-2) 0%, transparent 58%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-title {
  font-size: clamp(2.3rem, 1.4rem + 4.3vw, 3.7rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

/* Brand gradient text — large display text only (all stops pass AA-large) */
.grad-text {
  color: var(--accent-2);
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.22rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual {
  justify-self: center;
  width: 100%;
  max-width: 34rem;
  position: relative;
}

/* Soft brand glow behind the phone app preview (single gradient — paint-cheap) */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 4% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(108, 62, 245, 0.14), rgba(47, 193, 242, 0.08) 55%, transparent 78%);
  z-index: 0;
}

.echo-system {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

/* Wave divider flowing into the next section */
.hero-wave {
  display: block;
  width: 100%;
  height: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: -1px;
  color: var(--bg-alt);
}

/* ---------- Echo system diagram states ---------- */
/* Dotted orbit: visible on the light background (dark keeps its inline near-white) */
.orbit {
  stroke: #b7c6c1;
}

[data-theme="dark"] .orbit {
  stroke: #e3ece9;
}

.node rect {
  transition: stroke 200ms ease;
}

.node:hover rect {
  stroke: var(--accent);
}

/* ---------- Orinos AI Marketing section ---------- */
.marketing-group {
  padding-block: clamp(2rem, 3.5vw, 3rem);
  border-top: 1px solid var(--line);
}

.marketing-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.group-head {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.group-head p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.capability-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.capability-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.capability {
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.capability:hover {
  border-color: rgba(108, 62, 245), 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.capability h4 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
}

.cap-icon {
  flex: none;
  color: var(--accent);
}

.capability p {
  font-size: 0.95rem;
}

.capability-link-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--accent-deep);
  background: var(--accent-tint-2);
  border: 1px solid rgba(108, 62, 245), 0.18);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

.capability-link-note svg {
  flex: none;
  margin-top: 0.2rem;
}

/* Analytics highlight panel — dark ink with a gradient edge */
.analytics-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 3.5vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(0deg, var(--ink), var(--ink)) padding-box,
    var(--grad) border-box;
  color: #c3cdd9;
}

.analytics-panel h3 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.analytics-panel > .analytics-copy > p {
  margin-bottom: 1.25rem;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: #d7e0e8;
  font-size: 0.97rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.analytics-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.analytics-visual svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.analytics-caption {
  font-size: 0.85rem;
  color: #9fb0bd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step + .step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1.25rem;
  width: 1.25rem;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.45;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3554e3, #7a3ff2);
  color: var(--white);
  font-weight: 750;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.93rem;
}

/* ---------- Connected workflow ---------- */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 1.4rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1rem;
  width: 1rem;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.45;
}

.flow-step-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.55rem;
}

.flow-step h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.flow-step p {
  font-size: 0.88rem;
}

.flow-loop-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--accent-deep);
}

/* ---------- Roadmap ---------- */
.roadmap {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem 1.5rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.roadmap-item--live {
  position: relative;
  border: 1.5px solid rgba(108, 62, 245, 0.45);
  background: linear-gradient(0deg, var(--accent-tint-2), var(--accent-tint-2)) padding-box, var(--surface);
  overflow: hidden;
}

.roadmap-item--live::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--grad);
}

.roadmap-body h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.roadmap-body p {
  font-size: 0.94rem;
  color: var(--muted);
}

.roadmap-link {
  grid-column: 2;
  justify-self: start;
  font-weight: 650;
  font-size: 0.95rem;
}

/* ---------- Why Echo ---------- */
.benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.benefit {
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.benefit h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.benefit-icon {
  flex: none;
  margin-top: 0.1rem;
  color: var(--accent);
}

.benefit p {
  font-size: 0.94rem;
}

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.trust-copy p + p {
  margin-top: 1rem;
}

.approval-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.approval-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.95rem;
  border: 1.5px dashed var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--surface);
}

.approval-chip--live {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.approval-arrow {
  color: var(--muted);
  flex: none;
}

.trust-docs {
  padding: 1.6rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-docs h3 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.doc-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.doc-link {
  font-weight: 600;
}

.doc-note {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.doc-footnote {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(108, 62, 245), 0.4);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.9rem 1.25rem;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background-color 150ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--accent-tint-2);
}

.faq-chevron {
  flex: none;
  color: var(--muted);
  transition: transform 200ms ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  max-width: 46rem;
}

.faq-answer p {
  font-size: 0.96rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(40rem 22rem at 50% 130%, rgba(108, 62, 245, 0.16) 0%, transparent 70%),
    radial-gradient(30rem 16rem at 12% -40%, var(--cyan-tint) 0%, transparent 70%),
    var(--bg-alt);
}

.final-cta-inner {
  text-align: center;
}

.final-cta-inner h2 {
  margin-bottom: 0.9rem;
}

.final-cta-inner p {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-copy p {
  max-width: 28rem;
}

.contact-details {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.contact-details li {
  display: grid;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Form */
.demo-form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
}

.field-hint {
  font-weight: 450;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #c6d2cd;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.form-status {
  min-height: 1.2em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.form-status.is-error {
  color: #b3261e;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #aeb9c4;
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.brand--footer {
  color: var(--white);
}

.brand--footer .brand-name {
  color: var(--white);
}

.footer-desc {
  max-width: 19rem;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #cdd6de;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.social-link:hover {
  color: var(--white);
  border-color: var(--accent);
  background: rgba(108, 62, 245), 0.15);
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  color: #aeb9c4;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-soon-item {
  color: #8d9aa6;
}

.footer-soon-item .pill--soon {
  background: transparent;
  color: #aeb9c4;
  border-color: rgba(255, 255, 255, 0.22);
}

.footer-col .pill--live {
  background: rgba(108, 62, 245, 0.2);
  border-color: rgba(108, 62, 245, 0.55);
  color: #c9b8ff;
}

/* Footer runs on dark ink: lift muted tones to keep AA contrast */
.site-footer .doc-note,
.footer-status-note {
  color: #98a5b1;
}

.footer-contact {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-status-note {
  color: #8d9aa6;
}

/* Dark mode gives the inverse footer a light surface; reverse its text contrast too. */
[data-theme="dark"] .site-footer {
  color: #5b6b7a;
}

[data-theme="dark"] .site-footer .footer-signup label,
[data-theme="dark"] .site-footer .footer-col h3 {
  color: #0b1224;
}

[data-theme="dark"] .site-footer .footer-col a,
[data-theme="dark"] .site-footer .footer-soon-item,
[data-theme="dark"] .site-footer .doc-note,
[data-theme="dark"] .site-footer .footer-status-note {
  color: #5b6b7a;
}

[data-theme="dark"] .site-footer .footer-col a:hover {
  color: #0b1224;
}

[data-theme="dark"] .site-footer .social-link {
  color: #36455c;
  border-color: rgba(11, 18, 36, 0.18);
}

[data-theme="dark"] .site-footer .social-link:hover {
  color: #0b1224;
}

[data-theme="dark"] .site-footer .signup-row input {
  color: #0b1224;
  background: rgba(11, 18, 36, 0.04);
  border-color: rgba(11, 18, 36, 0.18);
}

[data-theme="dark"] .site-footer .footer-bottom {
  border-color: rgba(11, 18, 36, 0.12);
}

/* ---------- Scroll progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Who Echo is for ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.use-case {
  position: relative;
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.use-case::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 200ms ease;
}

.use-case:hover {
  border-color: rgba(108, 62, 245, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.use-case:hover::before {
  opacity: 1;
}

.use-case h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.use-case p {
  font-size: 0.92rem;
}

.use-case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  margin-bottom: 0.9rem;
}

/* ---------- Comparison: Echo vs juggling tools ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.compare-col {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.compare-col--echo {
  border: 1.5px solid transparent;
  background:
    linear-gradient(0deg, var(--accent-tint-2), var(--accent-tint-2)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-md);
}

.compare-col h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.08rem;
  margin-bottom: 1rem;
}

.compare-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.compare-icon {
  flex: none;
  margin-top: 0.14rem;
}

.compare-icon--yes {
  color: var(--accent);
}

.compare-icon--no {
  color: #97a1b0;
}

.compare-col--tools .compare-list li {
  color: var(--muted);
}

.compare-note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Growth path ---------- */
.growth-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.growth-step {
  position: relative;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.growth-step:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 62, 245, 0.4);
  box-shadow: var(--shadow-md);
}

/* ascending risers — the staircase */
.growth-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--grad);
}

.growth-step:nth-child(1) { margin-top: 6rem; }
.growth-step:nth-child(2) { margin-top: 4rem; }
.growth-step:nth-child(3) { margin-top: 2rem; }
.growth-step:nth-child(4) { margin-top: 0; }

.growth-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.growth-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.growth-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid rgba(108, 62, 245, 0.25);
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.growth-step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.growth-step p {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.growth-driven {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.growth-driven span {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.growth-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 44rem;
}

.growth-note svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent);
}

/* ---------- Footer early-access signup ---------- */
.footer-signup {
  margin-top: 1.5rem;
  max-width: 20rem;
}

.footer-signup label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.signup-row {
  display: flex;
  gap: 0.5rem;
}

.signup-row input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.signup-row input::placeholder {
  color: #8d99c0;
}

.signup-row input:focus-visible {
  outline: none;
  border-color: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(47, 193, 242, 0.3);
}

.signup-row .btn {
  min-height: 2.75rem;
  padding-inline: 1.1rem;
}

.signup-status {
  min-height: 1.2em;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c9b8ff;
}

/* ---------- Legal pages (Privacy, Terms) ---------- */
.legal-hero {
  padding-block: clamp(2.5rem, 4vw + 1.5rem, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(40rem 18rem at 90% -60%, var(--accent-tint-2) 0%, transparent 65%),
    var(--bg);
}

.legal-hero p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.legal-body {
  padding-block: clamp(2.5rem, 4vw + 1.5rem, 4rem);
}

.legal-body > .container {
  width: min(46rem, 100% - 2.5rem);
}

.legal-section {
  margin-bottom: 2.25rem;
}

.legal-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal-section p,
.legal-section ul {
  font-size: 0.98rem;
}

.legal-section ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Responsive breakpoints (360 / 768 / 1024 / 1440) ---------- */

@media (max-width: 63.9375em) {
  /* Tablet and below: mobile navigation */
  .header-inner > .brand-logo {
    margin-right: auto;
  }

  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }

  .site-header.nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .site-header.nav-open .menu-btn-bar:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .site-header.nav-open .menu-btn-bar:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-header.nav-open .menu-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 2.9rem;
    padding: 0.55rem 0.5rem;
    font-size: 1.02rem;
  }

  .nav-cta-item {
    margin-top: 0.75rem;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 56.25em) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 36rem;
  }

  .hero-visual {
    max-width: 26rem;
  }

  .capability-row {
    grid-template-columns: 1fr;
  }

  .capability-duo {
    grid-template-columns: 1fr;
  }

  .analytics-panel {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-step:nth-child(n) {
    margin-top: 0;
  }

  .step + .step::before {
    display: none;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .flow-step {
    display: grid;
    gap: 0.2rem;
  }

  /* Vertical connectors on mobile */
  .flow-step + .flow-step::before {
    top: -0.75rem;
    left: 1.4rem;
    width: 1.5px;
    height: 0.75rem;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 36.25em) {
  .steps {
    grid-template-columns: 1fr;
  }

  .growth-steps {
    grid-template-columns: 1fr;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .roadmap-item {
    grid-template-columns: 1fr;
  }

  .roadmap-link {
    grid-column: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .approval-arrow {
    display: none;
  }

  .approval-flow {
    gap: 0.5rem;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .signup-row {
    flex-direction: column;
  }

  .signup-row .btn {
    width: 100%;
  }
}

@media (min-width: 90em) {
  .container {
    width: min(74rem, 100% - 4rem);
  }
}

/* ==========================================================================
   Motion
   All animation lives behind prefers-reduced-motion: no-preference.
   Reduced-motion users get a fully static, equally understandable page.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Content reveals — only when JS is available (html.js) so nothing stays hidden */
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  html.js .reveal[data-reveal-delay="1"] {
    transition-delay: 90ms;
  }

  html.js .reveal[data-reveal-delay="2"] {
    transition-delay: 180ms;
  }

  html.js .reveal[data-reveal-delay="3"] {
    transition-delay: 270ms;
  }

  html.js .reveal[data-reveal-delay="4"] {
    transition-delay: 360ms;
  }

  /* Directional and zoom reveal variants (transform-only, layout-safe) */
  html.js .reveal[data-reveal="left"] {
    transform: translateX(-28px);
  }

  html.js .reveal[data-reveal="right"] {
    transform: translateX(28px);
  }

  html.js .reveal[data-reveal="zoom"] {
    transform: scale(0.93);
  }

  /* Section heading hairline draws in when the heading reveals */
  html.js .section-head::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 700ms ease 250ms;
  }

  html.js .section-head.is-visible::after {
    transform: scaleX(1);
  }

  /* Growth card accent bars sweep in after the card lands */
  html.js .growth-step::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 650ms ease 300ms;
  }

  html.js .growth-step.is-visible::after {
    transform: scaleX(1);
  }

  /* Analytics checklist items cascade in once the panel reveals */
  html.js .analytics-panel .check-list li {
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 450ms ease, transform 450ms ease;
  }

  html.js .analytics-panel.is-visible .check-list li {
    opacity: 1;
    transform: none;
  }

  html.js .analytics-panel.is-visible .check-list li:nth-child(1) { transition-delay: 350ms; }
  html.js .analytics-panel.is-visible .check-list li:nth-child(2) { transition-delay: 470ms; }
  html.js .analytics-panel.is-visible .check-list li:nth-child(3) { transition-delay: 590ms; }

  /* Hero gradient headline hue drifts gently (paint-safe: no background-position animation) */
  @keyframes grad-drift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(16deg); }
  }

  .grad-text {
    animation: grad-drift 10s ease-in-out infinite;
  }

  /* Site-wide entrance animation: page fades in, header drops into place */
  @keyframes site-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes header-drop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }

  body {
    animation: site-fade 500ms ease both;
  }

  .site-header {
    animation: header-drop 450ms ease both;
  }

  /* Gentle float on the hero diagram and drift on its glow */
  @keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }

  /* Same float for the centered logo, but keeping its centering translate */
  @keyframes float-y-centered {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 9px)); }
  }

  @keyframes glow-drift {
    from { transform: translateX(-3%); }
    to { transform: translateX(3%) scale(1.05); }
  }

  .echo-system {
    animation: float-y 7s ease-in-out infinite;
  }

  .hero-logo-img {
    animation: float-y-centered 7s ease-in-out infinite;
  }

  .hero-visual::before {
    animation: glow-drift 9s ease-in-out infinite alternate;
  }

  .hero-visual.is-paused .echo-system,
  .hero-visual.is-paused .hero-logo-img,
  .hero-visual.is-paused .ring {
    animation-play-state: paused;
  }

  .hero-visual.is-paused::before {
    animation-play-state: paused;
  }

  /* Echo rings: subtle expanding pulses, GPU-friendly (transform + opacity only) */
  .ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: ring-pulse 3.6s ease-out infinite;
  }

  .ring--2 {
    animation-delay: 1.8s;
  }

  .signal {
    opacity: 0.9;
  }

  .orbit-dot,
  .orbit {
    transform-box: fill-box;
    transform-origin: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Static diagram: no traveling dots, faint static rings */
  .signal,
  .orbit-dot {
    display: none;
  }

  .ring {
    opacity: 0.25;
    animation: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .theme-btn,
  .capability,
  .faq-chevron,
  .site-nav,
  .menu-btn-bar,
  .skip-link,
  .social-link {
    transition: none;
  }
}

@keyframes ring-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  70% {
    opacity: 0.12;
  }

  100% {
    transform: scale(2.35);
    opacity: 0;
  }
}

/* ==========================================================================
   Echo app preview — animated phone with dashboard screen slider (hero)
   ========================================================================== */

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
}

.phone {
  position: relative;
  width: min(292px, 86vw);
  aspect-ratio: 73 / 150;
  border-radius: 46px;
  border: 9px solid #0d1322;
  background: #0d1322;
  box-shadow:
    0 30px 70px -28px rgba(52, 28, 120, 0.5),
    0 12px 30px -18px rgba(11, 18, 36, 0.45),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  border-radius: 99px;
  background: #0d1322;
  z-index: 3;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--accent-tint-2), var(--bg-alt) 58%);
  display: flex;
  flex-direction: column;
}

/* ---------- Inverted phone color scheme ----------
   The app preview always contrasts with the site:
   light site theme → dark app screen, dark site theme → light app screen.
   Scoped token overrides do most of the work; the literal green/slate
   colors inside the phone are re-mapped at the end of this file. */
.phone-screen {
  --ink: #f2f4fa;
  --ink-soft: #c3cbd9;
  --muted: #94a0b4;
  --accent-deep: #a58bff;
  --accent-tint: rgba(108, 62, 245, 0.22);
  --accent-tint-2: rgba(108, 62, 245, 0.12);
  --cyan-tint: rgba(47, 193, 242, 0.1);
  --bg-alt: #101523;
  --surface: #141a2c;
  --line: #252c40;
  --line-soft: #1d2436;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .phone-screen {
  --ink: #0b1224;
  --ink-soft: #36455c;
  --muted: #5b6b7a;
  --accent-deep: #5a2fd6;
  --accent-tint: #efeafe;
  --accent-tint-2: #f6f3ff;
  --cyan-tint: #e9f6fd;
  --bg-alt: #f5f5f8;
  --surface: #ffffff;
  --line: #e4e6ee;
  --line-soft: #edeff5;
  --shadow-sm: 0 1px 2px rgba(11, 18, 36, 0.05);
}

/* ---------- App chrome ---------- */
.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 4px;
  font-size: 0.7rem;
  font-weight: 750;
  color: var(--ink);
}

.app-status-icons {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--ink-soft);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}

.app-mark {
  width: 34px;
  height: 26px;
  object-fit: contain;
  flex: none;
}

.app-bar-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--ink);
}

.app-bar-title small {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
}

.app-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0c7a3e;
  background: rgba(23, 178, 106, 0.12);
  padding: 0.22rem 0.5rem;
  border-radius: 99px;
}

[data-theme="dark"] .app-live {
  color: #7ce3a8;
  background: rgba(46, 204, 113, 0.14);
}

.app-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #17b26a;
}

/* ---------- Slider ---------- */
.app-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
}

.app-track {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.app-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.85rem 0.7rem;
}

.app-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.app-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.app-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
}

.app-dot.is-active {
  width: 20px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
}

/* ---------- App screen widgets ---------- */
.app-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.app-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: var(--shadow-sm);
}

.app-tile-label {
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-tile-value {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.spark {
  width: 100%;
  height: 22px;
  margin-top: 0.15rem;
}

.spark-line {
  stroke: var(--accent);
}

.spark--cyan .spark-line {
  stroke: var(--accent-3);
}

.delta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-size: 0.56rem;
  font-weight: 800;
  padding: 0.14rem 0.4rem;
  border-radius: 99px;
  background: rgba(23, 178, 106, 0.12);
  color: #0c7a3e;
  white-space: nowrap;
}

[data-theme="dark"] .delta {
  background: rgba(46, 204, 113, 0.14);
  color: #7ce3a8;
}

.app-note {
  margin-top: auto;
  background: var(--accent-tint-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
  font-size: 0.66rem;
  color: var(--ink-soft);
}

.app-note strong {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.app-note p {
  margin: 0.15rem 0 0;
}

.app-ministats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.app-ministats > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: 0.56rem;
  color: var(--muted);
  font-weight: 700;
}

.app-ministats strong {
  font-size: 0.74rem;
  color: var(--ink);
}

.app-ministats .delta {
  font-size: 0.52rem;
}

.app-chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.6rem 0.3rem;
  box-shadow: var(--shadow-sm);
}

.app-chart-title {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 750;
  color: var(--muted);
}

.linechart {
  display: block;
  width: 100%;
  height: 88px;
}

.app-slide-title {
  margin: 0.1rem 0 -0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink);
}

.app-slide-title span {
  font-size: 0.58rem;
  font-weight: 650;
  color: var(--muted);
}

/* Shared horizontal bar rows (phone screens + report cards) */
.hbar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hbar-row {
  display: grid;
  grid-template-columns: minmax(56px, auto) 1fr auto;
  align-items: center;
  gap: 0.45rem;
}

.hbar-label {
  font-size: 0.62rem;
  font-weight: 750;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbar-track {
  height: 8px;
  border-radius: 99px;
  background: var(--line-soft);
  overflow: hidden;
}

.hbar-fill {
  display: block;
  height: 100%;
  width: var(--w, 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
}

.hbar-fill--blue { background: #3d7bfa; }
.hbar-fill--violet { background: #6c3ef5; }
.hbar-fill--cyan { background: #2fc1f2; }
.hbar-fill--amber { background: #f5a623; }
.hbar-fill--slate { background: #9aa7bd; }
.hbar-fill--green { background: #17b26a; }

[data-theme="dark"] .hbar-fill--slate {
  background: #5b6b85;
}

.hbar-fill--muted {
  background: var(--line);
}

.hbar-value {
  font-size: 0.62rem;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hbar-list--health .hbar-row {
  grid-template-columns: minmax(64px, auto) 1fr auto;
}

.app-health {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
}

.gauge {
  position: relative;
  width: 96px;
  height: 96px;
}

.gauge svg {
  width: 100%;
  height: 100%;
}

.gauge-track {
  stroke: var(--line-soft);
}

.gauge-arc {
  stroke: var(--accent-2);
}

.gauge-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.gauge-text strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.gauge-text span {
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c7a3e;
}

[data-theme="dark"] .gauge-text span {
  color: #7ce3a8;
}

/* ---------- Floating stat chips ---------- */
.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0.7rem;
}

.float-chip-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.float-chip-label {
  font-size: 0.6rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}

.float-chip--roas {
  top: 7%;
  right: max(-1.5rem, -4vw);
}

.float-chip--leads {
  bottom: 16%;
  left: max(-1.5rem, -4vw);
}

.float-chip--sync {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  top: 44%;
  right: max(-2rem, -5vw);
}

.float-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17b26a;
  box-shadow: 0 0 0 3px rgba(23, 178, 106, 0.18);
}

/* ==========================================================================
   Live growth report — animated dashboard board (#report)
   ========================================================================== */

.section--showcase {
  background:
    radial-gradient(60% 50% at 15% 8%, var(--accent-tint-2), transparent 70%),
    radial-gradient(55% 45% at 90% 90%, var(--cyan-tint), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.report-board {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 26px 60px -32px rgba(76, 46, 148, 0.4);
  padding: clamp(1.1rem, 2.5vw, 1.9rem);
}

.report-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.report-id {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.report-avatar {
  width: 42px;
  height: 32px;
  object-fit: contain;
  background: var(--accent-tint-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2px;
  flex: none;
}

.report-id-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.report-id-text small {
  font-size: 0.72rem;
  color: var(--muted);
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.report-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: linear-gradient(160deg, var(--accent-tint-2), transparent 55%), var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow-sm);
}

.report-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.85;
}

.report-stat-label {
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-stat-value {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.report-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-areas:
    "chart funnel"
    "chart bench";
  gap: 0.9rem;
}

.report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.report-card--chart {
  grid-area: chart;
}

.report-card--funnel {
  grid-area: funnel;
}

.report-card--bench {
  grid-area: bench;
}

.report-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.report-card-head strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.report-card-head span {
  font-size: 0.7rem;
  color: var(--muted);
}

.growth-curve {
  display: block;
  width: 100%;
  height: clamp(170px, 24vw, 230px);
}

.curve-grid line {
  stroke: var(--line-soft);
  stroke-width: 1;
}

.curve-cursor {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.75;
}

.curve-dot {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2.5;
}

.report-slider-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
}

.report-month {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-deep);
  min-width: 5.4em;
  font-variant-numeric: tabular-nums;
}

.report-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  outline-offset: 4px;
  cursor: pointer;
  margin: 0;
}

.report-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(76, 46, 148, 0.35);
}

.report-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(76, 46, 148, 0.35);
}

.report-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  background: var(--bg-alt);
  border-radius: 12px;
}

.report-readout dt {
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-readout dd {
  margin: 0.15rem 0 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.report-disclaimer {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
}

.hbar-list--report .hbar-track {
  height: 12px;
}

.hbar-list--report .hbar-label {
  font-size: 0.68rem;
}

.hbar-list--report .hbar-value {
  font-size: 0.7rem;
}

.report-funnel-note {
  margin: auto 0 0;
  padding-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.report-bench {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.report-bench-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.report-bench-name {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--ink-soft);
  min-width: 4.6em;
}

.report-bench-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-bench-bars .hbar-track {
  height: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.5rem;
  border-radius: 99px;
  white-space: nowrap;
}

.chip--good {
  background: rgba(23, 178, 106, 0.12);
  color: #0c7a3e;
}

.chip--bad {
  background: rgba(224, 82, 82, 0.12);
  color: #b02a2a;
}

[data-theme="dark"] .chip--good {
  background: rgba(46, 204, 113, 0.14);
  color: #7ce3a8;
}

[data-theme="dark"] .chip--bad {
  background: rgba(240, 100, 100, 0.16);
  color: #ff9d9d;
}

.report-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
}

.report-foot p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 42rem;
}

/* ---------- App preview + report: responsive ---------- */
@media (max-width: 56.25em) {
  .float-chip {
    display: none;
  }

  .report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chart"
      "funnel"
      "bench";
  }

  .report-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 36.25em) {
  .phone {
    width: min(272px, 88vw);
  }

  .app-tile-value {
    font-size: 0.92rem;
  }

  .report-readouts {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .report-bench-row {
    grid-template-columns: auto 1fr;
  }

  .report-bench-row .chip {
    grid-column: 2;
    justify-self: start;
  }
}

/* ==========================================================================
   Motion — app slider, report animations (motion-safe users only)
   All animation lives behind prefers-reduced-motion: no-preference.
   Reduced-motion users see every value and bar in its final state.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Slider glide */
  html.js .app-track {
    transition: transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  /* Active dot fills up as a visible countdown to the next auto-advance.
     Duration must match AUTO_MS in js/main.js (4s). */
  .app-dot {
    position: relative;
    overflow: hidden;
  }

  .app-dot.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.75);
    transform-origin: left;
    animation: dot-progress 4s linear forwards;
  }

  /* Countdown pauses together with the autoplay timer */
  .phone-stage:hover .app-dot.is-active::after,
  .phone-stage:focus-within .app-dot.is-active::after {
    animation-play-state: paused;
  }

  @keyframes dot-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  /* Bars grow in when their slide becomes active / report comes alive.
     html.js keeps bars visible for no-JS visitors. */
  html.js .app-slide .hbar-fill,
  html.js .report-board .hbar-fill {
    width: 0;
    transition: width 850ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  html.js .app-slide.is-active .hbar-fill,
  html.js .report-board.is-live .hbar-fill {
    width: var(--w, 100%);
  }

  html.js .hbar-row:nth-child(2) .hbar-fill { transition-delay: 110ms; }
  html.js .hbar-row:nth-child(3) .hbar-fill { transition-delay: 220ms; }
  html.js .hbar-row:nth-child(4) .hbar-fill { transition-delay: 330ms; }
  html.js .hbar-row:nth-child(5) .hbar-fill { transition-delay: 440ms; }

  html.js .report-bench-row .hbar-fill { transition-delay: 0ms; }
  html.js .report-bench-row:nth-child(2) .hbar-fill { transition-delay: 140ms; }
  html.js .report-bench-row:nth-child(3) .hbar-fill { transition-delay: 280ms; }

  /* Chart area fades in under its drawing line */
  html.js .app-slide .linechart-area {
    opacity: 0;
    transition: opacity 900ms ease 500ms;
  }

  html.js .app-slide.is-active .linechart-area {
    opacity: 1;
  }

  /* Floating chips drift gently */
  @keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }

  .float-chip--roas { animation: chip-float 6s ease-in-out infinite; }
  .float-chip--leads { animation: chip-float 7s ease-in-out -2.2s infinite; }
  .float-chip--sync { animation: chip-float 5.5s ease-in-out -3.6s infinite; }

  @keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(23, 178, 106, 0.45); }
    60% { box-shadow: 0 0 0 5px rgba(23, 178, 106, 0); }
  }

  .app-live-dot {
    animation: live-pulse 2.4s ease-out infinite;
  }

  @keyframes dot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
  }

  .curve-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: dot-pulse 2.2s ease-in-out infinite;
  }

  .report-board.is-live .curve-line {
    filter: drop-shadow(0 6px 14px rgba(108, 62, 245, 0.35));
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-chip,
  .app-live-dot,
  .curve-dot {
    animation: none;
  }

  .app-track {
    transition: none;
  }
}

/* ==========================================================================
   Phone inversion — literal colors inside the app screen follow the
   phone's own scheme (dark screen on light site, light screen on dark site)
   ========================================================================== */

.phone-screen .app-live {
  color: #7ce3a8;
  background: rgba(46, 204, 113, 0.16);
}

[data-theme="dark"] .phone-screen .app-live {
  color: #0c7a3e;
  background: rgba(23, 178, 106, 0.12);
}

.phone-screen .delta {
  background: rgba(46, 204, 113, 0.16);
  color: #7ce3a8;
}

[data-theme="dark"] .phone-screen .delta {
  background: rgba(23, 178, 106, 0.12);
  color: #0c7a3e;
}

.phone-screen .gauge-text span {
  color: #7ce3a8;
}

[data-theme="dark"] .phone-screen .gauge-text span {
  color: #0c7a3e;
}

.phone-screen .hbar-fill--slate {
  background: #5b6b85;
}

[data-theme="dark"] .phone-screen .hbar-fill--slate {
  background: #9aa7bd;
}
