
/* ================================================================
   VIBE CALLER design tokens v1.0 (approved Stage 2/3)
   ================================================================ */
:root {
  --bg-base: #0F0F10;
  --bg-raised: #151517;
  --text-primary: #F5F6F7;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --brand: #FFE600;
  --brand-press: #E6CF00;
  --on-brand: #0F0F10;
  --ok: #5EEAA0;
  --err: #FF8A8A;
  --glass-bg: rgba(255,255,255,0.06);
  --glass-bg-hover: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.10);
  --glass-border-hover: rgba(255,255,255,0.16);
  --glass-blur: 32px;
  --r-glass: 20px;
  --r-inner: 14px;
  --r-pill: 999px;
  --fs-display: clamp(2.375rem, 1.45rem + 4.6vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.32rem + 2.1vw, 2.625rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-body-lg: clamp(1.0625rem, 1.02rem + 0.25vw, 1.1875rem);
  --fs-body: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  --fs-caption: 0.8125rem;
  --fs-eyebrow: 0.75rem;
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --container: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 250ms;
  --shadow-card: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-hover: 0 18px 44px rgba(0,0,0,0.5);
  /* themed semantic tokens (dark defaults) */
  --inner-bg: rgba(255,255,255,0.04);
  --inner-border: rgba(255,255,255,0.08);
  --ghost-bg: rgba(255,255,255,0.04);
  --ghost-border: rgba(255,255,255,0.14);
  --ghost-bg-hover: rgba(255,255,255,0.07);
  --ghost-border-hover: rgba(255,255,255,0.30);
  --field-bg: rgba(255,255,255,0.05);
  --field-border: rgba(255,255,255,0.12);
  --track-bg: rgba(255,255,255,0.14);
  --chip-bg: rgba(255,230,0,0.10);
  --accent-ink: #FFE600;   /* yellow-role marks; gold in light for contrast */
  --wave: #FFE600;
  --logo-url: url("assets/logo-on-dark.svg");
  --menu-bg: #16171A;
}

/* ================================================================
   LIGHT THEME, opt-in via header toggle; dark stays the default
   ================================================================ */
:root[data-theme="light"] {
  --bg-base: #EEF0F3;
  --bg-raised: #FFFFFF;
  --text-primary: #15171A;
  --text-muted: #475569;
  --text-faint: #64748B;
  --glass-bg: rgba(255,255,255,0.72);
  --glass-bg-hover: rgba(255,255,255,0.92);
  --glass-border: rgba(15,23,42,0.10);
  --glass-border-hover: rgba(15,23,42,0.20);
  --shadow-card: 0 10px 30px rgba(15,23,42,0.10);
  --shadow-hover: 0 18px 44px rgba(15,23,42,0.14);
  --inner-bg: rgba(15,23,42,0.035);
  --inner-border: rgba(15,23,42,0.09);
  --ghost-bg: rgba(15,23,42,0.04);
  --ghost-border: rgba(15,23,42,0.16);
  --ghost-bg-hover: rgba(15,23,42,0.07);
  --ghost-border-hover: rgba(15,23,42,0.28);
  --field-bg: #FFFFFF;
  --field-border: rgba(15,23,42,0.16);
  --track-bg: rgba(15,23,42,0.14);
  --chip-bg: rgba(255,230,0,0.22);
  --accent-ink: #8A6D00;   /* legible gold on light surfaces */
  --wave: #E0AE00;
  --logo-url: url("assets/logo-on-light.svg");
  --menu-bg: #FFFFFF;
}
:root[data-theme="light"] .bloom { opacity: 0.5; }
:root[data-theme="light"] .glass { box-shadow: 0 1px 3px rgba(15,23,42,0.05); }
:root[data-theme="light"] .mq-item .mono { filter: brightness(0); opacity: 0.66; }
:root[data-theme="light"] .mq-item:hover .mono { opacity: 1; }
:root[data-theme="light"] .bubble.action { background: rgba(255,230,0,0.20); border-color: rgba(160,125,0,0.45); }
:root[data-theme="light"] :focus-visible { outline-color: var(--accent-ink); }
:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field select:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(255,230,0,0.35); }
:root[data-theme="light"] input[type="range"]::-webkit-slider-thumb { box-shadow: 0 0 0 1px rgba(15,23,42,0.18); }
:root[data-theme="light"] input[type="range"]::-moz-range-thumb { box-shadow: 0 0 0 1px rgba(15,23,42,0.18); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
::selection { background: rgba(255,230,0,0.25); }
a { color: inherit; }
img, svg { display: block; }
/* class-level `display` (e.g. .btn) otherwise beats the UA's [hidden] rule */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none; transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: var(--s-4); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); position: relative; }
.section-head { max-width: 640px; margin-bottom: var(--s-7); }
.section-head .eyebrow { margin-bottom: var(--s-3); }
.section-head h2 { margin-bottom: var(--s-4); }

/* ---------- Type ---------- */
h1 { font-size: var(--fs-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }
.lead { font-size: var(--fs-body-lg); color: var(--text-muted); }
p { color: var(--text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); flex: none; }

/* ---------- Ambient blooms (the only colour wash) ---------- */
.bloom { position: absolute; pointer-events: none; z-index: -1; border-radius: 50%; filter: blur(90px); }
@media (prefers-reduced-motion: no-preference) {
  .bloom { animation: breathe 9s var(--ease) infinite alternate; } /* ambient exemption, documented */
  @keyframes breathe { from { opacity: 0.75; } to { opacity: 1; } }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: inherit; font-size: var(--fs-body); font-weight: 500; line-height: 1;
  border-radius: var(--r-pill); padding: 0.9375rem 1.75rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.btn-primary:hover { background: var(--brand-press); box-shadow: 0 8px 28px rgba(255,230,0,0.18); }
.btn-ghost { background: var(--ghost-bg); border-color: var(--ghost-border); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--ghost-border-hover); background: var(--ghost-bg-hover); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-block { width: 100%; }
.text-link { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color var(--dur-base) var(--ease); }
.text-link:hover { color: var(--text-primary); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-glass);
}
.liftable {
  transition: transform var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.liftable:hover { transform: translateY(-3px); background: var(--glass-bg-hover); border-color: var(--glass-border-hover); box-shadow: var(--shadow-hover); }

/* ---------- Navbar ---------- */
.site-header { position: sticky; top: var(--s-3); z-index: 50; padding-inline: var(--gutter); }
.nav-shell {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--s-5); position: relative;
  /* The glass surface is drawn by ::before rather than by the shell itself, so
     the logo, burger and menu are NOT inside the backdrop-filter's render root.
     On iOS anything animating inside a backdrop-filter element makes the whole
     blurred surface re-render every frame, which is what made the burger morph
     stutter on the homepage. The shell keeps a transparent 1px border so its
     box is pixel-identical to the plain .glass version. */
  isolation: isolate;
  background: none; border: 1px solid transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav-shell::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  border-radius: var(--r-glass);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
.logo { display: block; width: 150px; height: 34px; flex: none; text-decoration: none; background-image: var(--logo-url); background-position: left center; background-repeat: no-repeat; background-size: contain; }
.logo-footer { width: 168px; height: 38px; }
.nav-links { display: none; align-items: center; gap: var(--s-5); }
.nav-links a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; white-space: nowrap; transition: color var(--dur-base) var(--ease); }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: none; align-items: center; gap: var(--s-4); }
.nav-actions .text-link, .nav-actions .btn { white-space: nowrap; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; border-radius: var(--r-inner);
  touch-action: manipulation; /* no double-tap-zoom wait before the click fires */
}
/* :not(.sr-only) so the bar styling never overrides the visually-hidden label,
   which would otherwise stretch it to 100% and overflow the viewport.
   will-change: three 24×2px layers, promoted up front so the morph's first
   frame is not spent creating them. */
.nav-toggle span:not(.sr-only) { display: block; height: 2px; width: 100%; background: var(--text-primary); border-radius: 1px; transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease); will-change: transform, opacity; }
.nav-shell.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-shell.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-shell.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu {
  display: flex; position: absolute; top: calc(100% + var(--s-2)); left: 0; right: 0;
  padding: var(--s-5); flex-direction: column; gap: var(--s-4);
  background: var(--menu-bg); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: var(--shadow-card);
  /* Stays in layout and is hidden with compositor-only properties instead of
     display:none, so opening it costs no layout or paint on the frame the
     burger morph starts. On close, visibility flips only after the fade so
     the panel does not vanish early; on open it flips immediately. */
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  will-change: transform, opacity;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease),
              visibility 0s linear var(--dur-base);
}
.nav-shell.is-open .nav-menu {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease),
              visibility 0s;
}
.nav-menu a { font-size: 1rem; color: var(--text-muted); text-decoration: none; }
.nav-menu a:hover { color: var(--text-primary); }
.nav-menu .btn { align-self: flex-start; }
@media (min-width: 980px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle, .nav-menu { display: none !important; }
}
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 1px solid var(--ghost-border); background: var(--ghost-bg);
  color: var(--text-muted); cursor: pointer; padding: 0;
  transition: color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease),
              background-color var(--dur-base) var(--ease), transform var(--dur-fast) var(--ease);
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--ghost-border-hover); background: var(--ghost-bg-hover); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle-wide { width: auto; height: auto; display: inline-flex; align-items: center; justify-content: flex-start; gap: var(--s-2); border-radius: var(--r-pill); padding: 0.625rem 1rem; }
.theme-toggle-wide .toggle-label { font-size: 1rem; }
.nav-menu .theme-toggle { align-self: flex-start; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 84px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(3.5rem, 8vw, 6rem) var(--s-7); position: relative; }
.hero .bloom-hero { width: min(640px, 90vw); height: 640px; top: -220px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,230,0,0.12), transparent 65%); }
.hero-copy { text-align: center; max-width: 800px; margin-inline: auto; }
.hero-copy h1 { margin-bottom: var(--s-5); }
.hero-copy .lead { max-width: 600px; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center; margin-top: var(--s-6); }
.hero-console { position: relative; max-width: 760px; margin: var(--s-8) auto 0; width: 100%; }
.console {
  display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 5vw, 2.5rem);
  position: relative; overflow: hidden;
}
.console .bloom-console { width: 360px; height: 360px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,245,177,0.09), transparent 65%); filter: blur(70px); }
.console-id { display: flex; align-items: center; gap: var(--s-4); flex: none; }
.console-orb {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--inner-bg); border: 1px solid var(--glass-border);
  display: grid; place-items: center;
}
.console-orb .wave { height: 22px; gap: 3px; }
.console-orb .wave i { width: 3px; border-radius: 2px; }
.console-id strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.console-id small { font-size: var(--fs-caption); color: var(--text-muted); }
.console-wave { flex: 1; display: flex; justify-content: center; min-width: 0; }
.console-status { flex: none; display: none; align-items: center; gap: var(--s-2); font-size: var(--fs-caption); color: var(--text-muted); white-space: nowrap; }
.console-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
@media (min-width: 640px) { .console-status { display: inline-flex; } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); font-size: var(--fs-caption);
  box-shadow: var(--shadow-card); border-radius: var(--r-inner);
}
.float-chip strong { display: block; font-weight: 600; font-size: 0.8125rem; line-height: 1.3; }
.float-chip small { color: var(--text-muted); font-size: 0.75rem; }
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); flex: none; }
.chip-a { top: -22px; right: clamp(0px, 4vw, 36px); }
.chip-b { bottom: -22px; left: clamp(0px, 4vw, 36px); }
@media (max-width: 639px) {
  .hero-console .float-chip { display: none; }
  .console { flex-direction: column; gap: var(--s-5); }
  .console-id { align-self: flex-start; }
  .console-wave { width: 100%; }
}
.hero-proof { margin-top: clamp(3rem, 7vw, 4.5rem); text-align: center; }
.hero-proof span { display: block; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s-4); }
.hero-proof ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-5); }
.hero-proof li { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: var(--s-5); }
.hero-proof li + li::before { content: "·"; color: var(--text-faint); }

/* ---------- Waveform ---------- */
.wave { display: flex; align-items: center; gap: 5px; height: 64px; }
.wave i { width: 5px; border-radius: 3px; background: var(--wave); height: var(--h, 40%); }
@media (prefers-reduced-motion: no-preference) {
  .wave i { animation: wavePulse 2.8s var(--d, 0s) ease-in-out infinite; } /* ambient exemption, documented */
  @keyframes wavePulse { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
}

/* ---------- Demo call ---------- */
.demo-panel { display: grid; gap: var(--s-7); padding: clamp(1.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.demo-panel .bloom-demo { width: 420px; height: 420px; bottom: -180px; right: -120px; background: radial-gradient(circle, rgba(255,230,0,0.10), transparent 65%); }
@media (min-width: 900px) { .demo-panel { grid-template-columns: 7fr 5fr; align-items: center; } }
.demo-copy h2 { margin-block: var(--s-3) var(--s-4); }
.demo-highlights { list-style: none; margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.demo-highlights li { display: flex; gap: var(--s-3); color: var(--text-muted); font-size: var(--fs-body); }
.demo-highlights svg { width: 18px; height: 18px; flex: none; margin-top: 4px; stroke: var(--accent-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-note { font-size: var(--fs-caption); color: var(--text-faint); margin-top: var(--s-5); }
.call-card { background: var(--inner-bg); border: 1px solid var(--glass-border); border-radius: var(--r-glass); padding: clamp(1.5rem, 4vw, 2rem); position: relative; }
.call-card-head { display: grid; place-items: center; gap: var(--s-4); text-align: center; margin-bottom: var(--s-6); }
.orb {
  position: relative; width: 132px; aspect-ratio: 1; border-radius: 50%;
  background: var(--inner-bg); border: 1px solid var(--glass-border);
  display: grid; place-items: center;
}
.orb::before {
  content: ""; position: absolute; inset: -28%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,230,0,0.13), rgba(255,245,177,0.04) 55%, transparent 70%);
  filter: blur(26px);
}
@media (prefers-reduced-motion: no-preference) { .orb::before { animation: breathe 9s var(--ease) infinite alternate; } }
.orb .wave { height: 44px; gap: 4px; }
.orb .wave i { width: 4px; }
.call-card-head strong { font-size: var(--fs-h3); font-weight: 600; display: block; line-height: 1.2; }
.call-card-head small { color: var(--text-muted); font-size: var(--fs-caption); }
.mark-call-disclaimer, .lead-form-disclaimer { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; margin-top: var(--s-4); }
.mark-call-disclaimer a, .lead-form-disclaimer a { color: var(--text-primary); }
.mark-call-status, .form-status { font-size: var(--fs-caption); font-weight: 500; margin-top: var(--s-3); min-height: 1.2em; }
.mark-call-status[data-state="loading"], .form-status[data-state="loading"] { color: var(--text-muted); }
.mark-call-status[data-state="success"], .form-status[data-state="success"] { color: var(--ok); }
.mark-call-status[data-state="error"], .form-status[data-state="error"] { color: var(--err); }
.mark-call-ready { text-align: center; padding-block: var(--s-5); }
.mark-call-ready strong { display: block; font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--s-2); }
.mark-call-ready span { color: var(--text-muted); font-size: var(--fs-body); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: var(--s-4); }
.field > span { display: block; font-size: var(--fs-caption); font-weight: 500; color: var(--text-muted); margin-bottom: var(--s-2); }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: var(--fs-body); color: var(--text-primary);
  background: var(--field-bg); border: 1px solid var(--field-border);
  border-radius: var(--r-inner); padding: 0.8125rem 1rem;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,230,0,0.16); background: var(--field-bg);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field select option { background: var(--bg-raised); color: var(--text-primary); }
.field-hint { font-size: var(--fs-caption); color: var(--text-muted); margin-top: var(--s-1); display: block; }

/* ---------- Feature splits (asymmetric) ---------- */
.split { display: grid; gap: var(--s-7); align-items: center; }
.split + .split { margin-top: var(--s-9); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s-9); }
  .split.flip { grid-template-columns: 7fr 5fr; }
  .split.flip .split-copy { order: 2; }
  .split.flip .split-visual { order: 1; }
}
.split-copy .eyebrow { margin-bottom: var(--s-3); }
.split-copy h2 { margin-bottom: var(--s-4); }
.split-list { list-style: none; margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.split-list li { display: flex; gap: var(--s-3); color: var(--text-muted); }
.split-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; stroke: var(--accent-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.split-visual { position: relative; }
.vignette { padding: clamp(1.5rem, 4vw, 2.25rem); position: relative; }
.vignette .float-chip { box-shadow: var(--shadow-card); }
.config-rows { display: grid; gap: var(--s-3); }
.config-row {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--inner-bg); border: 1px solid var(--inner-border);
  border-radius: var(--r-inner); padding: var(--s-3) var(--s-4); font-size: 0.875rem;
}
.config-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); flex: none; }
.config-row.active .dot { background: var(--accent-ink); }
.config-row span { color: var(--text-muted); }
.config-row strong { margin-left: auto; font-weight: 500; font-size: 0.875rem; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.chip-cloud span {
  font-size: var(--fs-caption); color: var(--text-muted);
  border: 1px solid var(--inner-border); border-radius: var(--r-pill);
  padding: 7px 14px; background: var(--inner-bg);
}
.call-rows { display: grid; gap: var(--s-3); }
.call-row {
  display: flex; align-items: center; gap: var(--s-4);
  background: var(--inner-bg); border: 1px solid var(--inner-border);
  border-radius: var(--r-inner); padding: var(--s-4);
}
.call-row .mini-orb {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--chip-bg);
}
.call-row .mini-orb svg { width: 17px; height: 17px; stroke: var(--accent-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.call-row strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.call-row small { color: var(--text-muted); font-size: var(--fs-caption); }
.call-row em { margin-left: auto; font-style: normal; font-size: var(--fs-caption); color: var(--text-muted); white-space: nowrap; }
.transcript { display: grid; gap: var(--s-3); }
.bubble { max-width: 85%; padding: var(--s-3) var(--s-4); border-radius: var(--r-inner); font-size: 0.875rem; line-height: 1.5; }
.bubble.agent { background: var(--inner-bg); border: 1px solid var(--inner-border); color: var(--text-muted); }
.bubble.action {
  justify-self: end; background: rgba(255,230,0,0.08); border: 1px solid rgba(255,230,0,0.22);
  color: var(--text-primary); font-weight: 500;
}

/* ---------- Integrations ---------- */
.marquee {
  position: relative; overflow: hidden;
  /* soften both edges so logos drift in and out rather than clipping */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee:focus-visible { outline: 2px solid var(--brand); outline-offset: 8px; border-radius: var(--r-inner); }
.marquee-track { display: flex; align-items: center; list-style: none; width: max-content; }
/* margin (not gap) keeps each item's footprint uniform, so translateX(-50%) loops seamlessly */
.mq-item { flex: none; margin-right: clamp(2.75rem, 7vw, 5rem); display: grid; place-items: center; }
.mq-item .mono { display: grid; place-items: center; filter: brightness(0) invert(1); opacity: 0.62; transition: opacity var(--dur-base) var(--ease); }
.mq-item:hover .mono { opacity: 1; }
.mq-item svg { height: 26px; width: auto; }
@media (prefers-reduced-motion: no-preference) {
  /* continuous ambient scroll, a documented exemption to the 250ms interaction cap */
  .marquee.is-looping .marquee-track { animation: marquee-scroll var(--mq-dur, 44s) linear infinite; }
  .marquee.is-looping:hover .marquee-track,
  .marquee.is-looping:focus-within .marquee-track { animation-play-state: paused; }
  @keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
/* reduced motion, or no JS: a plain scrollable row, nothing moves on its own */
.marquee:not(.is-looping) { overflow-x: auto; scrollbar-width: none; }
.marquee:not(.is-looping)::-webkit-scrollbar { display: none; }

/* ---------- Proof counters ---------- */
.counter-row { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 640px) { .counter-row { grid-template-columns: repeat(3, 1fr); } }
.counter { text-align: center; padding: var(--s-6) var(--s-5); }
.counter strong { display: block; font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: var(--s-2); }
.counter strong span { font-size: inherit; color: inherit; }
.counter > span { font-size: var(--fs-caption); color: var(--text-muted); }

/* ---------- ROI calculator ---------- */
.calc-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 5fr 7fr; gap: var(--s-9); } }
.callout { padding: var(--s-5); margin-top: var(--s-6); }
.callout strong { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: var(--s-1); }
.callout span { color: var(--text-muted); font-size: var(--fs-caption); }
.calculator { padding: clamp(1.5rem, 4vw, 2.5rem); }
.calculator label { display: block; margin-bottom: var(--s-5); }
.calc-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-2); }
.calc-label-row span { font-size: var(--fs-caption); font-weight: 500; color: var(--text-muted); }
.calculator output { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--track-bg); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--bg-base); margin-top: -7px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2); transition: transform var(--dur-fast) var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--track-bg); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg-base); box-shadow: 0 0 0 1px rgba(255,255,255,0.2); }
input[type="range"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-pill); }
.calc-results { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 640px) { .calc-results { grid-template-columns: repeat(3, 1fr); } }
.calc-results article { background: var(--inner-bg); border: 1px solid var(--inner-border); border-radius: var(--r-inner); padding: var(--s-4); text-align: center; }
.calc-results span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--s-1); }
.calc-results strong { font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.875rem); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.calc-note { font-size: var(--fs-caption); color: var(--text-faint); margin-top: var(--s-4); }

/* ---------- Contact / lead form ---------- */
.cta-grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 5fr 7fr; } }
.cta-panel { padding: clamp(1.5rem, 4vw, 2.5rem); position: relative; overflow: hidden; }
.cta-panel .bloom-cta { width: 380px; height: 380px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(255,230,0,0.09), transparent 65%); }
.cta-panel h2 { margin-block: var(--s-3) var(--s-4); }
.check-list { list-style: none; margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); color: var(--text-muted); }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lead-form { padding: clamp(1.5rem, 4vw, 2.5rem); }
.lead-form h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--s-1); }
.lead-form > p { font-size: var(--fs-caption); margin-bottom: var(--s-5); }
.lead-form-row { display: grid; gap: 0 var(--s-4); }
@media (min-width: 640px) { .lead-form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); background: var(--bg-base); padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand p { margin-top: var(--s-4); font-size: var(--fs-caption); max-width: 320px; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: color var(--dur-base) var(--ease); }
.footer-links a:hover { color: var(--text-primary); }
.footer-base { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; }
.footer-base p { font-size: 0.75rem; color: var(--text-faint); max-width: 640px; }
.footer-social { display: flex; gap: var(--s-3); }
.footer-social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--ghost-border); transition: border-color var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.footer-social a:hover { border-color: var(--ghost-border-hover); background: var(--ghost-bg-hover); }
.footer-social svg { width: 16px; height: 16px; fill: var(--text-muted); }
.footer-social a:hover svg { fill: var(--text-primary); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}


/* ================================================================
   LEGAL DOCUMENT PAGES: privacy policy and terms of service
   ================================================================ */
.legal-hero { padding-block: clamp(2.5rem, 6vw, 4rem) 0; position: relative; }
.legal-hero .bloom-legal {
  width: min(560px, 90vw); height: 460px; top: -200px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,230,0,0.10), transparent 65%);
}
.back-link { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: color var(--dur-base) var(--ease); }
.back-link:hover { color: var(--text-primary); }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.legal-page { padding-top: var(--s-5); padding-bottom: var(--section-pad); }
.legal-document { max-width: 72ch; }
.legal-document h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05; margin-block: var(--s-3) var(--s-4);
}
.legal-document h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.25; margin-block: var(--s-8) var(--s-4); scroll-margin-top: 96px;
}
.legal-document h3 { font-size: var(--fs-h3); font-weight: 600; margin-block: var(--s-6) var(--s-3); }
.legal-document p { margin-bottom: var(--s-4); line-height: 1.75; }
.legal-document strong { color: var(--text-primary); font-weight: 600; }
.legal-document ul { margin: 0 0 var(--s-4) var(--s-5); display: grid; gap: var(--s-2); }
.legal-document li { color: var(--text-muted); line-height: 1.7; padding-left: var(--s-2); }
.legal-document li::marker { color: var(--accent-ink); }
/* the source separates every clause with an <hr>; render them as quiet rules */
.legal-document hr { border: 0; height: 1px; background: var(--glass-border); margin-block: var(--s-7); }
/* the source's opening line carries the effective / last-updated dates */
.legal-document > p:first-of-type {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-size: var(--fs-caption); color: var(--text-muted);
  padding-bottom: var(--s-5); margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--glass-border);
}
.legal-document > p:first-of-type strong { color: var(--text-primary); font-weight: 500; }

.legal-table-wrap { overflow-x: auto; margin-bottom: var(--s-5); border: 1px solid var(--glass-border); border-radius: var(--r-inner); }
.legal-document table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 520px; }
.legal-document thead th {
  text-align: left; font-weight: 600; color: var(--text-primary);
  background: var(--inner-bg); padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--glass-border); white-space: nowrap;
}
.legal-document tbody td { padding: var(--s-3) var(--s-4); color: var(--text-muted); vertical-align: top; line-height: 1.6; }
.legal-document tbody tr + tr td { border-top: 1px solid var(--inner-border); }
.legal-document tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
:root[data-theme="light"] .legal-document tbody tr:nth-child(even) { background: rgba(15,23,42,0.02); }
