/* ==========================================================================
   NethraCX marketing site -- nethracx.com
   Shares the app's brand tokens (color, type) but is otherwise its own
   small static site: no build step, no shared backend, deployable anywhere
   (Vercel, Netlify, S3+CDN) independently of the FastAPI app. See
   SAAS_PLATFORM_STRATEGY.md section 4.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #0b0f14;
  --surface: #11161d;
  --surface-2: #151b23;
  --surface-3: #1a212a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);

  --text: #e8ebf0;
  --text-secondary: #b8bfcc;
  --muted: #99a2b3;

  --accent: #4a86ff;
  --accent-dim: rgba(74, 134, 255, 0.14);
  --accent-border: rgba(74, 134, 255, 0.35);

  --critical: #f0473f;
  --warning: #f2a93c;
  --positive: #35c17c;

  --radius-sm: 6px;
  --radius: 9px;
  --radius-lg: 14px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Ambient background: a handful of very soft, very slow-drifting glow
   patches -- meant to read as calm light moving through deep water, not
   as a decoration you consciously notice. This is the site-wide answer to
   "always something being watched and evaluated": nothing here ever
   fully stops moving, but on any given screenful you'd struggle to catch
   it mid-motion. Pure background-position animation (no extra markup),
   so it's on every page this stylesheet reaches. Sections with their own
   opaque background (cards, .alt-bg, the CTA band) simply sit on top of
   it, giving the page a sense of surface panels floating over open water.
   Disabled entirely under reduced-motion, see below. */
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 700px at 12% 18%, rgba(74, 134, 255, 0.12), transparent 62%),
    radial-gradient(900px 640px at 88% 12%, rgba(53, 193, 124, 0.07), transparent 60%),
    radial-gradient(820px 820px at 22% 92%, rgba(74, 134, 255, 0.08), transparent 60%),
    radial-gradient(950px 700px at 80% 88%, rgba(53, 193, 124, 0.06), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 160% 160%, 150% 150%, 155% 155%, 150% 150%;
  animation: oceanDrift 46s ease-in-out infinite alternate;
}
@keyframes oceanDrift {
  0%   { background-position: 12% 18%, 88% 12%, 22% 92%, 80% 88%; }
  50%  { background-position: 20% 26%, 78% 20%, 30% 82%, 70% 80%; }
  100% { background-position: 8% 22%,  84% 16%, 26% 88%, 76% 84%; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; background-position: 12% 18%, 88% 12%, 22% 92%, 80% 88%; }
}
img { max-width: 100%; }
a { color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* --- Nav ---------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 15, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; position: relative; }
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; text-decoration: none; flex: none; }
.nav-brand .brand-mark { width: 26px; height: 26px; flex: none; }

.nav-left { display: flex; align-items: center; gap: 14px; }

/* Every link (Product, Pricing, Documentation, ...) lives behind the
   Menu toggle as a vertical dropdown panel -- at every screen width,
   not just on narrow viewports -- so the top bar itself stays to just
   the logo, the Menu toggle, and Login. */
.nav-links {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  max-height: 0; overflow: hidden; transition: max-height 0.22s ease;
}
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--text-secondary); text-decoration: none; padding: 14px 28px; border-top: 1px solid var(--border); }
.nav-links a:first-child { border-top: none; }
.nav-links a:hover { color: var(--text); background: var(--surface-3); }
.site-nav.nav-open .nav-links { max-height: 560px; }

/* "Applications" group: opens a sub menu (Genesys Cloud Provisioner, Flow
   Variable Inspector) on mouse hover, keyboard focus, or tap. The sub menu
   expands inline under its parent because .nav-links clips overflow. */
.nav-group { border-top: 1px solid var(--border); }
.nav-group-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px 28px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 500; text-align: left;
  color: var(--text-secondary);
}
.nav-chev { width: 14px; height: 14px; flex: none; transition: transform 0.18s ease; }
.nav-group:hover > .nav-group-toggle,
.nav-group.is-open > .nav-group-toggle,
.nav-group-toggle:focus-visible { color: var(--text); background: var(--surface-3); }
.nav-group.is-open .nav-chev { transform: rotate(180deg); }
.nav-sub { max-height: 0; overflow: hidden; transition: max-height 0.18s ease; background: var(--surface-1, var(--surface-2)); }
.nav-group.is-open .nav-sub { max-height: 160px; }
.nav-sub a { display: block; padding: 12px 28px 12px 48px; }
.nav-sub a[aria-current="page"], .nav-group.has-current > .nav-group-toggle { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }

/* Menu toggle: always visible now, sitting right next to the logo
   rather than tucked away as a mobile-only fallback. */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; flex: none;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); cursor: pointer;
  font-size: 13.5px; font-weight: 500;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle svg { width: 16px; height: 16px; pointer-events: none; flex: none; }

/* Login, always the far-right element. */
.nav-login { display: inline-flex; align-items: center; gap: 7px; }
.nav-login-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.lg { padding: 13px 26px; font-size: 14.5px; }

/* --- Hero ----------------------------------------------------------------*/
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(760px 420px at 15% -10%, rgba(74, 134, 255, 0.14), transparent 60%),
    radial-gradient(600px 360px at 90% 0%, rgba(53, 193, 124, 0.08), transparent 60%);
  background-repeat: no-repeat;
  background-size: 130% 130%, 130% 130%;
  animation: heroGlowDrift 32s ease-in-out infinite alternate;
  text-align: center;
}
@keyframes heroGlowDrift {
  0%   { background-position: 15% -10%, 90% 0%; }
  100% { background-position: 22% 2%,   82% 8%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px; font-weight: 700; }
.hero h1 .accent-text { color: var(--accent); }
.hero .lede { max-width: 640px; margin: 0 auto 32px; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 12.5px; }

/* --- Hero headline typewriter ("flowing text") --------------------------
   js/hero-typewriter.js clears the H1 on load and re-types it; the cursor
   below is created by that script. Progressive enhancement: no-JS and
   prefers-reduced-motion both just show the static headline (the script
   itself bails out under reduced-motion, see there). */
.type-cursor {
  display: inline-block; width: 2px; height: 0.82em; margin-left: 2px;
  background: var(--accent); vertical-align: -0.08em;
  animation: hvCursorBlink 0.9s step-end infinite;
}
.type-cursor.done { animation: none; opacity: 0; transition: opacity 0.6s ease; }
@keyframes hvCursorBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* --- Hero visual: two realistic contact-center problem scenarios, each
   identified, analyzed, and fixed by NethraCX's AI in real time.
   Pure CSS looping animation (no JS, no deps). A 40s master timeline
   crossfades between Scene 1 ("The IVR maze") and Scene 2 ("Lost in
   transfer"); a shared 20s local timeline drives each scene's own beats
   (hv-beat-* for content that swaps in place, hv-reveal-* for a
   transcript that builds up) so both scenes reuse the same keyframes.
   All motion is disabled under reduced-motion, falling back to a single
   settled frame — Scene 1's worst moment plus its AI finding and fix —
   that still reads correctly. */
.hero-visual { margin-top: 44px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; text-align: left; }
@media (max-width: 860px) { .hero-visual { grid-template-columns: 1fr; } }
.hv-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.hv-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
.hv-panel-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }

.hv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); flex: none; animation: hvPulse 1.8s ease-in-out infinite; }
@keyframes hvPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(53, 193, 124, 0.35); } 50% { box-shadow: 0 0 0 4px rgba(53, 193, 124, 0); } }

/* Master 40s crossfade: Scene 1 owns the first half, Scene 2 the second,
   with a short overlap on each side so the swap fades rather than cuts.
   Reused for the scene-label text, the timer, the conversation content,
   and the AI finding/fix cards — anywhere two scenes share one slot. */
.hv-scene-1, .hv-scene-2 { position: absolute; inset: 0; opacity: 0; animation-duration: 40s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.hv-scene-1 { animation-name: hvScene1; }
.hv-scene-2 { animation-name: hvScene2; }
@keyframes hvScene1 { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hvScene2 { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* Local 20s timeline, phase-aligned with the master so each scene always
   starts its own beats at 0% right as it becomes visible. hv-beat-* fades
   content in and back out in place (a single "screen" changing, like an
   IVR menu); hv-reveal-* fades content in and holds it (a transcript that
   builds up). */
.hv-beat-1, .hv-beat-2, .hv-beat-3, .hv-beat-4 { position: absolute; inset: 0; opacity: 0; animation-duration: 20s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.hv-beat-1 { animation-name: hvBeat1; }
.hv-beat-2 { animation-name: hvBeat2; }
.hv-beat-3 { animation-name: hvBeat3; }
.hv-beat-4 { animation-name: hvBeat4; }
@keyframes hvBeat1 { 0%, 14% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes hvBeat2 { 0%, 16% { opacity: 0; } 22%, 36% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes hvBeat3 { 0%, 38% { opacity: 0; } 44%, 58% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes hvBeat4 { 0%, 60% { opacity: 0; } 66%, 100% { opacity: 1; } }

.hv-reveal-1, .hv-reveal-2, .hv-reveal-3, .hv-reveal-4 { opacity: 0; animation-duration: 20s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.hv-reveal-1 { animation-name: hvReveal1; }
.hv-reveal-2 { animation-name: hvReveal2; }
.hv-reveal-3 { animation-name: hvReveal3; }
.hv-reveal-4 { animation-name: hvReveal4; }
@keyframes hvReveal1 { 0%, 14% { opacity: 0; } 20%, 100% { opacity: 1; } }
@keyframes hvReveal2 { 0%, 16% { opacity: 0; } 22%, 100% { opacity: 1; } }
@keyframes hvReveal3 { 0%, 38% { opacity: 0; } 44%, 100% { opacity: 1; } }
@keyframes hvReveal4 { 0%, 60% { opacity: 0; } 66%, 100% { opacity: 1; } }

/* Scene label (top of the left panel) + elapsed-call timer. */
.hv-scene-label-stack { position: relative; flex: 1; height: 14px; overflow: hidden; min-width: 0; }
.hv-scene-label { white-space: nowrap; }

.hv-timer { margin-left: auto; position: relative; width: 46px; height: 15px; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Consolas, monospace; color: var(--accent); font-weight: 700; font-size: 12px; }
.hv-timer-bad { color: var(--critical); }

/* Scene 1 — "The IVR maze": a single screen whose prompt changes as the
   caller sinks deeper into the menu, ending on hold with no live person. */
.hv-scene-stack { position: relative; min-height: 264px; overflow: hidden; }
.hv-ivr-frame { display: flex; flex-direction: column; justify-content: center; gap: 16px; height: 100%; }
.hv-ivr-body { position: relative; min-height: 64px; }
.hv-ivr-step { position: absolute; inset: 0; display: flex; align-items: center; }
.hv-ivr-prompt { margin: 0; font-size: 12.6px; line-height: 1.45; color: var(--text-secondary); }
.hv-ivr-hold { color: var(--critical); font-weight: 600; }

.hv-wait-dots { display: inline-flex; margin-left: 6px; vertical-align: middle; }
.hv-wait-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--critical); display: inline-block; margin: 0 2px; animation: hvBounce 1.2s infinite ease-in-out; }
.hv-wait-dots i:nth-child(2) { animation-delay: 0.15s; }
.hv-wait-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hvBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* A frustration meter, shared by both scenes: green to amber to red as
   the scene plays out. */
.hv-frustration { margin-top: 14px; }
.hv-ivr-frame .hv-frustration { margin-top: 0; }
.hv-frustration-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.hv-frustration-bar { display: block; height: 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.hv-frustration-fill { display: block; height: 100%; border-radius: 4px; width: 10%; background: var(--positive); animation: hvFrustrationGrow 20s ease-in-out infinite; }
@keyframes hvFrustrationGrow {
  0% { width: 10%; background: var(--positive); }
  36% { width: 40%; background: var(--positive); }
  60% { width: 62%; background: var(--warning); }
  100% { width: 90%; background: var(--critical); }
}

/* Scene 2 — "Lost in transfer": a transcript that builds up, message by
   message, as the bot hands off without carrying context. Each speaker is
   a real person/system icon (not a lettered initial), and whoever is
   currently mid-line gets a small pulsing "call stream" next to them. */
.hv-msg { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.hv-avatar { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hv-avatar-customer { background: var(--surface-3); color: var(--text-secondary); }
.hv-avatar-bot { background: var(--accent); color: #fff; }
.hv-avatar-agent { background: var(--positive); color: #06261a; }
.hv-avatar-system { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border-strong); }

.hv-avatar-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hv-avatar-badge { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--surface); }
.hv-badge-phone { background: var(--accent); color: #fff; }
.hv-badge-headset { background: var(--positive); color: #06261a; }
.hv-badge-icon { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hv-badge-icon.hv-icon-fill { fill: currentColor; stroke: none; }

/* Small equalizer-style bars next to whoever is speaking, to read as a
   live call rather than a text chat. hv-pulse-* (reusing the hv-beat-*
   timing) fades each one in only while its message is the active line. */
.hv-call-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; flex: none; }
.hv-call-wave i { width: 2.5px; border-radius: 1px; display: inline-block; transform-origin: bottom; animation: hvWaveBar 0.9s ease-in-out infinite; }
.hv-call-wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.hv-call-wave i:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.hv-call-wave i:nth-child(3) { height: 65%; animation-delay: 0.3s; }
.hv-call-wave i:nth-child(4) { height: 85%; animation-delay: 0.45s; }
@keyframes hvWaveBar { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.hv-call-wave-customer i { background: var(--muted); }
.hv-call-wave-bot i { background: var(--accent); }
.hv-call-wave-agent i { background: var(--positive); }

.hv-pulse-1, .hv-pulse-2, .hv-pulse-3, .hv-pulse-4 { opacity: 0; animation-duration: 20s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.hv-pulse-1 { animation-name: hvBeat1; }
.hv-pulse-2 { animation-name: hvBeat2; }
.hv-pulse-3 { animation-name: hvBeat3; }
.hv-pulse-4 { animation-name: hvBeat4; }

/* Scene 1's persistent "still connected, going nowhere" call stage: the
   customer icon linked to the automated system by a flowing signal —
   never a live agent, which is the whole point of the scene. */
.hv-call-stage { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hv-call-link { position: relative; flex: 1; min-width: 30px; height: 2px; background: var(--border); border-radius: 1px; }
.hv-call-dot { position: absolute; top: 50%; left: 0; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); opacity: 0; animation: hvCallFlow 2.4s linear infinite; }
.hv-call-dot:nth-child(2) { animation-delay: 0.8s; }
.hv-call-dot:nth-child(3) { animation-delay: 1.6s; }
@keyframes hvCallFlow { 0% { left: 0%; opacity: 0; } 8%, 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.hv-bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; font-size: 12.6px; line-height: 1.4; color: var(--text-secondary); flex: 1 1 auto; min-width: 0; }
.hv-bubble-frustrated { border-color: rgba(240, 71, 63, 0.4); color: var(--text); }

.hv-handoff { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px 32px; font-size: 11px; color: var(--muted); }
.hv-handoff-line { width: 18px; height: 1px; background: var(--border-strong); }
.hv-handoff-bad .hv-handoff-label { color: var(--critical); }
.hv-handoff-bad .hv-handoff-line { background: var(--critical); opacity: 0.5; }

/* Right panel: the AI observing every conversation. The radar view is
   persistent across both scenes; only the finding/fix cards crossfade. */
.hv-radar { position: relative; height: 128px; border-radius: 10px; background: radial-gradient(circle at 50% 50%, rgba(74, 134, 255, 0.1), transparent 70%), var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; overflow: hidden; }
.hv-radar-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.3; }
.hv-radar-dot { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--muted); opacity: 0.55; }
.hv-radar-active { width: 9px; height: 9px; margin: -4.5px; background: var(--accent); opacity: 1; box-shadow: 0 0 0 4px rgba(74, 134, 255, 0.22); animation: hvRadarPulse 1.8s ease-in-out infinite; }
@keyframes hvRadarPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(74, 134, 255, 0.22); } 50% { box-shadow: 0 0 0 8px rgba(74, 134, 255, 0.08); } }

.hv-ai-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 16px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.02em; margin-right: 2px; }

.hv-finding-stack { min-height: 184px; overflow: hidden; }
.hv-suggestion { background: var(--accent-dim); border: 1px solid var(--accent-border); border-radius: 10px; padding: 12px 14px; }
.hv-suggestion strong { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 4px; }
.hv-suggestion p { margin: 0; font-size: 12.4px; color: var(--text-secondary); line-height: 1.5; }
.hv-finding { animation: hvRevealUp3 20s ease-in-out infinite; }
.hv-fix { margin-top: 10px; animation: hvRevealUp4 20s ease-in-out infinite; }
@keyframes hvRevealUp3 { 0%, 38% { opacity: 0; transform: translateY(6px); } 44%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes hvRevealUp4 { 0%, 60% { opacity: 0; transform: translateY(6px); } 66%, 100% { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .hv-scene-1, .hv-scene-2, .hv-beat-1, .hv-beat-2, .hv-beat-3, .hv-beat-4,
  .hv-reveal-1, .hv-reveal-2, .hv-reveal-3, .hv-reveal-4,
  .hv-pulse-1, .hv-pulse-2, .hv-pulse-3, .hv-pulse-4,
  .hv-finding, .hv-fix, .hv-frustration-fill, .hv-dot, .hv-radar-active, .hv-wait-dots i,
  .hv-call-wave i, .hv-call-dot,
  .type-cursor { animation: none !important; }

  .hv-scene-2 { opacity: 0 !important; }
  .hv-scene-1 { opacity: 1 !important; }

  .hv-beat-1, .hv-beat-2, .hv-beat-3, .hv-reveal-1, .hv-reveal-2, .hv-reveal-3,
  .hv-pulse-1, .hv-pulse-2, .hv-pulse-3, .hv-call-dot { opacity: 0 !important; }
  .hv-beat-4, .hv-reveal-4, .hv-pulse-4 { opacity: 1 !important; }

  .hv-finding, .hv-fix { opacity: 1 !important; transform: none !important; }
  .hv-frustration-fill { width: 90% !important; background: var(--critical) !important; }
}

/* --- CTA band secondary link (see .cta-band below) -----------------------*/
.cta-band-alt { margin: 14px 0 0; font-size: 13px; }
.cta-band-alt a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.cta-band-alt a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* --- Hero wave line -------------------------------------------------------
   A thin, slow-scrolling horizon line across the bottom of the hero --
   the one literal "waves" touch, kept understated (a single low-opacity
   stroke, not an illustration) so it reads as a horizon on calm water
   rather than a cartoon. The SVG is drawn at 2x width with 4 identical
   wave periods and shifted by exactly half its own width on a loop, which
   is what keeps the scroll seamless without needing exact pixel math. */
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; overflow: hidden; line-height: 0; }
.hero-wave-svg { width: 200%; height: 100%; display: block; animation: heroWaveDrift 26s linear infinite; }
.hero-wave-path { fill: none; stroke: var(--accent-border); stroke-width: 1.4; opacity: 0.55; }
@keyframes heroWaveDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-wave-svg { animation: none; }
}

/* --- Sections --------------------------------------------------------- */
section { padding: 76px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-head h2 { font-size: 30px; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 15.5px; margin: 0; }
.alt-bg { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* --- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
  position: relative; transform: translateY(0) scale(1);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.04);
  background: var(--surface-2);
  border-color: var(--accent-border);
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-border);
  z-index: 2;
}
.card .icon-badge {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, color 0.28s ease;
}
.card:hover .icon-badge, .card:focus-within .icon-badge {
  transform: scale(1.14);
  background: var(--accent);
  color: #fff;
}
.card h3 {
  font-size: 16px; margin: 0 0 8px; font-weight: 600;
  transition: color 0.28s ease;
}
.card:hover h3, .card:focus-within h3 { color: var(--accent); }
.card p {
  color: var(--muted); font-size: 13.8px; margin: 0; line-height: 1.55;
  transition: color 0.28s ease, font-size 0.28s ease, line-height 0.28s ease;
}
.card:hover p, .card:focus-within p {
  color: var(--text-secondary);
  font-size: 14.6px;
  line-height: 1.68;
}
@media (prefers-reduced-motion: reduce) {
  .card, .card .icon-badge, .card h3, .card p { transition: none; }
  .card:hover, .card:focus-within,
  .card:hover .icon-badge, .card:focus-within .icon-badge { transform: none; }
}

/* --- Status pill (Available today / Roadmap) ---------------------------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.pill.live { background: rgba(53, 193, 124, 0.13); color: var(--positive); border: 1px solid rgba(53, 193, 124, 0.32); }
.pill.roadmap { background: rgba(242, 169, 60, 0.13); color: var(--warning); border: 1px solid rgba(242, 169, 60, 0.32); }

/* --- Flow / OBSERVE-UNDERSTAND-QUANTIFY-ACT ------------------------------*/
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
.flow-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: relative; }
.flow-step .step-num { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.flow-step h4 { margin: 0 0 8px; font-size: 15px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 13.3px; line-height: 1.55; }

/* --- Comparison callout -------------------------------------------------*/
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }
.compare .box { border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); }
.compare .box.bad { background: rgba(240, 71, 63, 0.06); border-color: rgba(240, 71, 63, 0.25); }
.compare .box.good { background: rgba(53, 193, 124, 0.06); border-color: rgba(53, 193, 124, 0.25); }
.compare .box .tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; display: block; }
.compare .box.bad .tag { color: var(--critical); }
.compare .box.good .tag { color: var(--positive); }
.compare .box blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); font-style: italic; }

/* --- Pricing calculator -----------------------------------------------------
   Customer-facing: seats + volume in, an estimated price out. Reads its plan
   thresholds and rates straight off the .plan cards' data-* attributes below
   (see js/pricing-calculator.js) so the two are never able to disagree. */
.calc-panel { background: var(--surface); border: 1px solid var(--accent-border); border-radius: var(--radius-lg); padding: 30px clamp(20px, 4vw, 38px); display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 32px; align-items: center; }
@media (max-width: 780px) { .calc-panel { grid-template-columns: 1fr; } }
.calc-intro .kicker { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.calc-intro h2 { font-size: 21px; margin: 0 0 8px; line-height: 1.3; }
.calc-intro p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.55; }
.calc-body { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 620px) { .calc-body { grid-template-columns: 1fr; } }
.calc-inputs { display: flex; flex-direction: column; gap: 20px; }
.calc-field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.calc-field-head label { font-size: 13px; color: var(--text-secondary); }
.calc-val { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 14px; color: var(--accent); font-weight: 600; }
.calc-inputs input[type="range"] { width: 100%; height: 4px; -webkit-appearance: none; appearance: none; background: var(--surface-3); border-radius: 999px; }
.calc-inputs input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; }
.calc-inputs input[type="range"]::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; }
.calc-inputs input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 999px; }
.calc-result { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; min-width: 240px; text-align: center; }
.calc-plan-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent-border); border-radius: 999px; padding: 4px 12px; }
.calc-price { margin: 12px 0 4px; }
.calc-price #calc-price-amount { font-size: 30px; font-weight: 700; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.calc-cadence { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.calc-breakdown { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; min-height: 18px; }
.calc-result .btn { width: 100%; justify-content: center; }

/* --- Pricing --------------------------------------------------------------*/
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent-border); background: linear-gradient(180deg, rgba(74,134,255,0.08), var(--surface) 40%); position: relative; }
.plan .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 15px; margin: 4px 0 4px; }
.plan .price { font-size: 28px; font-weight: 700; margin: 6px 0 4px; }
.plan .price span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.plan .plan-desc { color: var(--muted); font-size: 12.8px; margin: 0 0 18px; min-height: 34px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.plan li svg { flex: none; margin-top: 2px; color: var(--positive); }

/* --- Included AI-analysis usage + overage, shown per plan ------------------
   Usage-based, not flat-rate: every plan includes a pooled allowance of
   AI-analyzed interactions, with clearly-priced metered overage beyond it.
   See PRICING_MODEL.md for the cost math this is built on. */
.plan .usage { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 18px; }
.plan .usage .usage-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-secondary); }
.plan .usage .usage-row + .usage-row { margin-top: 6px; }
.plan .usage .usage-row strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.plan .usage .overage-note { font-size: 11.5px; color: var(--muted); margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border); line-height: 1.45; }

/* --- FAQ ------------------------------------------------------------------*/
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h4 { margin: 0 0 8px; font-size: 14.5px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* --- Stat row -------------------------------------------------------------*/
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }
.stat-box { text-align: center; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.stat-box .num { font-size: 30px; font-weight: 700; color: var(--accent); }
.stat-box .label { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* --- Table ----------------------------------------------------------------*/
.status-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.status-table th, .status-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.status-table th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.status-table td:first-child { color: var(--text); font-weight: 500; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table-wrap .status-table { border: none; }
.table-wrap .status-table tr:last-child td { border-bottom: none; }

/* --- Form ------------------------------------------------------------------*/
.form-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-size: 13.5px; font-family: inherit;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-border); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

/* --- CTA band ---------------------------------------------------------- */
.cta-band {
  text-align: center; border-radius: var(--radius-lg); padding: 56px 32px;
  background: radial-gradient(560px 260px at 50% 0%, rgba(74, 134, 255, 0.16), transparent 70%), var(--surface);
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: 26px; margin: 0 0 12px; }
.cta-band p { color: var(--muted); margin: 0 0 26px; }

/* --- Footer -------------------------------------------------------------*/
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 13px; max-width: 260px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; flex-wrap: wrap; gap: 10px; }

/* --- Page header (non-hero pages) ---------------------------------------*/
.page-header { padding: 56px 0 40px; text-align: center; border-bottom: 1px solid var(--border); background: var(--surface); }
.page-header .kicker { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.page-header h1 { font-size: 36px; margin: 0 0 14px; letter-spacing: -0.015em; }
.page-header p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 15.5px; }

@media (max-width: 780px) {
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .nav-brand { font-size: 14.5px; }
  .nav-brand .brand-mark { width: 24px; height: 24px; }
  .nav-left { gap: 8px; }
  .nav-toggle { padding: 8px 10px; }
  .nav-toggle-label { display: none; }
}

/* Product split on How it works / Pricing */
.product-jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.product-jump a { display: inline-block; padding: 9px 18px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; background: var(--surface); }
.product-jump a:hover, .product-jump a:focus-visible { border-color: var(--accent-border); background: var(--accent-dim); }
.product-band { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; }
.product-band h2 { margin: 0; }
.product-band .pill { flex: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; counter-increment: step; }
.steps .step::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.steps .step h3 { margin: 0 0 6px; font-size: 16px; }
.steps .step p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.choose { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 880px; margin: 0 auto; }
@media (max-width: 700px) { .choose { grid-template-columns: 1fr; } }
.choose .card h3 { margin-top: 0; }
.choose .card a.btn { margin-top: 12px; }
.plan-4 { grid-template-columns: repeat(4, 1fr); }
