/* pf-motion.css - concatenated from site-blocks/fx/ + page layer (bottom). */
/* == fx-core@1.0.0 ==
 * Shared tokens + utilities for site-blocks effects.
 * Brand-neutral: override the custom properties per site.
 * All hidden-until-reveal styles in every module MUST be scoped under
 * `html.pf-motion:not(.fx-reduced)` so no-JS and reduced-motion users see everything.
 */
:root {
  --fx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fx-ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --fx-accent: #3b82f6;            /* brand accent (glow, live dots) */
  --fx-accent-2: #ff6b2b;          /* secondary accent (stamps, highlights) */
  --fx-ink: #0f172a;               /* dark surface for inverted sections */
  --fx-glow: 0 0 60px rgba(59, 130, 246, 0.25);
  --fx-hairline: rgba(15, 23, 42, 0.12);
  --fx-hairline-inverse: rgba(248, 250, 252, 0.16);
  --fx-dur: 0.7s;
}

/* 1px hairline grid backdrop (put on a position:relative parent's ::before or a child layer) */
.fx-hairline-grid {
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--fx-hairline) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, var(--fx-hairline) 0 1px, transparent 1px 96px);
  opacity: 0.35;
}

/* glass surface */
.fx-glass {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--fx-hairline);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}
.fx-glass--dark {
  background: rgba(15, 23, 42, 0.66);
  border-color: var(--fx-hairline-inverse);
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.4);
}

/* soft brand glow layer */
.fx-glow {
  pointer-events: none;
  box-shadow: var(--fx-glow);
}

/* screen-reader only (for a11y text alternatives inside animated widgets) */
.fx-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;
}

/* == fx-scroll-reveal@1.0.0 == */
/* Scroll-triggered entrance reveal. Pair with fx-scroll-reveal.js + fx-core.
 * Snippet: <div data-fx="fx-scroll-reveal" data-fx-variant="rise" data-fx-stagger="0.08">...</div>
 * Variants via data-fx-variant: fade | rise (default) | mask (clip-path wipe upward).
 * All hidden-until-reveal styles are motion-gated: no-JS and reduced-motion users see everything.
 */

/* Variant knobs (custom props inherit down to staggered children) */
[data-fx~="fx-scroll-reveal"][data-fx-variant="fade"] {
  --fx-sr-o: 0;
  --fx-sr-t: none;
}
[data-fx~="fx-scroll-reveal"][data-fx-variant="mask"] {
  --fx-sr-o: 1;
  --fx-sr-t: none;
  --fx-sr-c: inset(100% 0 0 0);
}

/* Animated unit = the element itself, or its DIRECT children when data-fx-stagger is set */
html.pf-motion:not(.fx-reduced) [data-fx~="fx-scroll-reveal"]:not([data-fx-stagger]),
html.pf-motion:not(.fx-reduced) [data-fx~="fx-scroll-reveal"][data-fx-stagger] > * {
  transition:
    opacity var(--fx-dur, 0.7s) var(--fx-ease-out),
    transform var(--fx-dur, 0.7s) var(--fx-ease-out),
    clip-path var(--fx-dur, 0.7s) var(--fx-ease-out);
  transition-delay: calc(var(--fx-sr-delay, 0s) + var(--fx-i, 0) * var(--fx-sr-stagger, 0s));
}

/* Hidden (pre-intersect) state; defaults = rise (opacity + translateY 24px) */
html.pf-motion:not(.fx-reduced) [data-fx~="fx-scroll-reveal"]:not([data-fx-stagger]):not(.fx-in),
html.pf-motion:not(.fx-reduced) [data-fx~="fx-scroll-reveal"][data-fx-stagger]:not(.fx-in) > * {
  opacity: var(--fx-sr-o, 0);
  transform: var(--fx-sr-t, translateY(24px));
  clip-path: var(--fx-sr-c, none);
}

/* mask needs an interpolable visible clip ("none" does not transition) */
html.pf-motion:not(.fx-reduced) [data-fx~="fx-scroll-reveal"][data-fx-variant="mask"]:not([data-fx-stagger]).fx-in,
html.pf-motion:not(.fx-reduced) [data-fx~="fx-scroll-reveal"][data-fx-variant="mask"][data-fx-stagger].fx-in > * {
  clip-path: inset(0 0 0 0);
}

/* belt-and-suspenders: still all motion when the OS asks for it */
@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-scroll-reveal"],
  [data-fx~="fx-scroll-reveal"] > * {
    transition: none;
  }
}

/* == fx-split-headline@1.0.0 == */
/* Per-word masked headline reveal. JS wraps words in .fx-word > .fx-word-inner;
 * inner spans rise from translateY(110%) once the root gains .fx-in (IntersectionObserver).
 * Snippet: <h2 data-fx="fx-split-headline">Everything you need</h2>
 * Delay per word: calc(--fx-i * --fx-sh-stagger); duration via --fx-sh-dur. Transform-only. */

[data-fx~="fx-split-headline"] .fx-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* keep descenders (g, y, p) inside the mask without shifting layout */
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

[data-fx~="fx-split-headline"] .fx-word-inner {
  display: inline-block;
  transform: translateY(0);
}

/* hidden-until-reveal state: ONLY on motion-capable JS pages (no-JS / reduced see full text) */
html.pf-motion:not(.fx-reduced) [data-fx~="fx-split-headline"] .fx-word-inner {
  transform: translateY(110%);
  transition: transform var(--fx-sh-dur, 0.8s) var(--fx-ease-out);
  transition-delay: calc(var(--fx-i, 0) * var(--fx-sh-stagger, 0.045s));
  will-change: transform;
}

html.pf-motion:not(.fx-reduced) [data-fx~="fx-split-headline"].fx-in .fx-word-inner {
  transform: translateY(0);
}

/* belt-and-suspenders: OS-level reduced motion stills everything to the final state */
@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-split-headline"] .fx-word-inner {
    transform: none !important;
    transition: none !important;
  }
}

/* == fx-count-up@1.0.0 == */
/* Numeric count-up stat. Usage: <span data-fx="fx-count-up">1,200+</span>
 * Tabular figures keep the element's width stable while digits tick, so the
 * surrounding layout never shifts. No content is hidden pre-reveal: the real
 * value is server-rendered and only tweened by JS after intersection. */
[data-fx~="fx-count-up"] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* == fx-magnetic@1.0.0 == */
/* Magnetic hover pull for CTAs. JS drives all motion; CSS only preps the element.
 * Usage: <a class="cta" data-fx="fx-magnetic"><span class="fx-magnetic-inner">Get started</span></a>
 * Nothing is hidden pre-reveal: no-JS and reduced-motion users get the plain, static CTA.
 */
[data-fx~="fx-magnetic"] {
  display: inline-block;
}
[data-fx~="fx-magnetic"] .fx-magnetic-inner {
  display: inline-block;
}

/* will-change hint only where the effect can actually run */
@media (hover: hover) and (pointer: fine) {
  html.pf-motion:not(.fx-reduced) [data-fx~="fx-magnetic"],
  html.pf-motion:not(.fx-reduced) [data-fx~="fx-magnetic"] .fx-magnetic-inner {
    will-change: transform;
  }
}

/* == fx-scrub-scale@1.0.0 == */
/* Scroll-scrubbed scale/opacity entrance for large frames (screenshots, video).
 * Usage: <div class="browser-frame" data-fx="fx-scrub-scale" data-fx-from="0.96" data-fx-opacity-from="0.55">...</div>
 * The CSS default IS the final state: no-JS and reduced-motion users always see the
 * frame at full scale/opacity. The scrubbed start state is applied only by JS. */

/* compositor hint only while motion is active; never hides or transforms content */
html.pf-motion:not(.fx-reduced) [data-fx~="fx-scrub-scale"] {
  will-change: transform, opacity;
  transform-origin: 50% 60%;
}

/* hard stop: if the preference flips mid-session, any inline scrub state is overridden */
@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-scrub-scale"] {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }
}

/* == fx-typing@1.0.0 == */
/* Layout + caret for the fx-typing typewriter module.
 * The typed span preserves the newlines the JS inserts between lines (pre-wrap).
 * Caret is a blinking accent bar drawn via ::after on .fx-typing-caret.
 * No content is hidden by CSS: no-JS users see the element's fallback text as-is.
 */
[data-fx~="fx-typing"] .fx-typing-text {
  white-space: pre-wrap;
}

[data-fx~="fx-typing"] .fx-typing-text.fx-typing-caret::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 0.08em;
  vertical-align: -0.12em;
  background: var(--fx-accent);
  animation: fx-typing-blink 1s steps(1, end) infinite;
}

@keyframes fx-typing-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Reduced motion: final state is the plain full text — no caret, no blink. */
@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-typing"] .fx-typing-text.fx-typing-caret::after {
    animation: none;
    content: none;
  }
}
html.fx-reduced [data-fx~="fx-typing"] .fx-typing-text.fx-typing-caret::after {
  animation: none;
  content: none;
}

/* == fx-waveform@1.0.0 == */
/* Bars for [data-fx~="fx-waveform"]; colored via currentColor (set `color:` on the element).
 * Keyframes run only while JS adds .fx-on (element on screen). Reduced motion and
 * static mode freeze bars at staggered heights (--fx-h) — a frozen waveform, not a flat line.
 * Snippet: <div class="pf-wave" data-fx="fx-waveform" data-fx-bars="28" style="color:#3b82f6"></div>
 */
[data-fx~="fx-waveform"] {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  height: 44px;
}
[data-fx~="fx-waveform"] .fx-bar {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleY(var(--fx-h, 0.35));
  transform-origin: 50% 50%;
  will-change: transform;
}

/* idle: gentle low amplitude */
html.pf-motion:not(.fx-reduced) [data-fx~="fx-waveform"].fx-on.fx-wave--idle .fx-bar {
  animation: fx-wave-idle 1.8s var(--fx-ease-inout, ease-in-out) infinite;
  animation-delay: calc(var(--fx-i, 0) * -0.15s);
}
/* speaking: taller, faster, two alternating keyframe tracks for organic motion */
html.pf-motion:not(.fx-reduced) [data-fx~="fx-waveform"].fx-on.fx-wave--speaking .fx-bar {
  animation: fx-wave-talk-a 0.75s var(--fx-ease-inout, ease-in-out) infinite;
  animation-delay: calc(var(--fx-i, 0) * -0.137s);
}
html.pf-motion:not(.fx-reduced) [data-fx~="fx-waveform"].fx-on.fx-wave--speaking .fx-bar:nth-child(even) {
  animation-name: fx-wave-talk-b;
  animation-duration: 0.95s;
}
/* static: frozen staggered waveform */
[data-fx~="fx-waveform"].fx-wave--static .fx-bar { animation: none; }

@keyframes fx-wave-idle {
  0%, 100% { transform: scaleY(0.14); }
  50%      { transform: scaleY(0.38); }
}
@keyframes fx-wave-talk-a {
  0%, 100% { transform: scaleY(0.25); }
  25%      { transform: scaleY(0.95); }
  55%      { transform: scaleY(0.45); }
  80%      { transform: scaleY(0.8); }
}
@keyframes fx-wave-talk-b {
  0%, 100% { transform: scaleY(0.55); }
  20%      { transform: scaleY(0.3); }
  45%      { transform: scaleY(1); }
  70%      { transform: scaleY(0.4); }
}

/* reduced motion: still the bars at their staggered static heights */
@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-waveform"] .fx-bar {
    animation: none !important;
    transform: scaleY(var(--fx-h, 0.35));
  }
}
html.fx-reduced [data-fx~="fx-waveform"] .fx-bar {
  animation: none !important;
  transform: scaleY(var(--fx-h, 0.35));
}

/* == fx-status-pills@1.0.0 == */
/* Transitions for the timer-driven pill state classes; the page owns pill layout/skin.
 * Pills are hidden pre-reveal ONLY under html.pf-motion:not(.fx-reduced), so no-JS
 * and reduced-motion users always see every pill.
 * <div data-fx="fx-status-pills" data-fx-interval="2.4"><span class="annotation-pill fx-pill">Call auto-booked</span>...</div> */

html.pf-motion:not(.fx-reduced) [data-fx~="fx-status-pills"] .fx-pill {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 0.45s var(--fx-ease-out),
    transform 0.45s var(--fx-ease-out);
}

html.pf-motion:not(.fx-reduced) [data-fx~="fx-status-pills"] .fx-pill.fx-pill-on {
  opacity: 1;
  transform: none;
}

/* Belt-and-braces: OS-level reduced motion always sees the final state, stilled. */
@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-status-pills"] .fx-pill {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* == fx-floating-card@1.0.0 == */
/* Floating glass info-card: inner wrapper bobs via CSS keyframes (~6px, 7s), outer element
 * gets JS parallax translate from fx-floating-card.js. Position the card yourself (absolute/fixed).
 * Snippet: <aside class="fx-glass" data-fx="fx-floating-card" data-fx-depth="0.05">LIVE - AI answering now</aside>
 * Nothing is hidden pre-reveal: no-JS and reduced-motion users see the card at rest.
 */
[data-fx~="fx-floating-card"] {
  will-change: transform;
}
[data-fx~="fx-floating-card"].fx-static {
  will-change: auto;
}
[data-fx~="fx-floating-card"] .fx-float-inner {
  display: block;
}
html.pf-motion:not(.fx-reduced) [data-fx~="fx-floating-card"].fx-float-idle .fx-float-inner {
  animation: fx-float-bob 7s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes fx-float-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-floating-card"] {
    transform: none !important;
    will-change: auto;
  }
  [data-fx~="fx-floating-card"] .fx-float-inner {
    animation: none;
    transform: none;
  }
}

/* == fx-theme-invert@1.0.0 == */
/* Minimal dark skin for .fx-invert sections; page CSS does the rest and styles its
 * fixed header off html.fx-theme-dark. Enhancement only: the class arrives via JS,
 * so also give the section its own static dark background for no-JS visitors.
 * <section class="proof-band" data-fx="fx-theme-invert">...</section> */

[data-fx~="fx-theme-invert"].fx-invert {
  background: var(--fx-ink);
  color: rgba(248, 250, 252, 0.92);
  --fx-hairline: var(--fx-hairline-inverse);
}

/* == fx-cursor-spotlight@1.0.0 == */
/* Pointer-following highlight. band: JS injects an aria-hidden .fx-spot div that trails the
 * cursor (screen-blended --fx-accent radial). cards: each .fx-spot-card paints a glow ::after
 * at --fx-mx/--fx-my (set by JS on pointermove). Purely decorative: nothing is hidden
 * pre-reveal, so no-JS and reduced-motion users simply see the section unchanged.
 * Snippet: <section class="dark" data-fx="fx-cursor-spotlight" data-fx-mode="band">...</section>
 */
[data-fx~="fx-cursor-spotlight"].fx-spot-band {
  overflow: hidden;
}
[data-fx~="fx-cursor-spotlight"] .fx-spot {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--fx-accent), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s var(--fx-ease-out);
  will-change: transform, opacity;
}
[data-fx~="fx-cursor-spotlight"] .fx-spot.fx-spot--on {
  opacity: 0.3;
}

/* cards mode: glow highlight tracks the pointer across each card */
[data-fx~="fx-cursor-spotlight"].fx-spot-cards .fx-spot-card {
  position: relative;
}
[data-fx~="fx-cursor-spotlight"].fx-spot-cards .fx-spot-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--fx-mx, -999px) var(--fx-my, -999px),
      var(--fx-accent), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.35s var(--fx-ease-out);
}
[data-fx~="fx-cursor-spotlight"].fx-spot-cards--on .fx-spot-card::after {
  opacity: 0.28;
}

/* reduced motion: still everything, even if the media preference flips after init */
@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-cursor-spotlight"] .fx-spot,
  [data-fx~="fx-cursor-spotlight"] .fx-spot-card::after {
    opacity: 0 !important;
    transition: none;
  }
}

/* == fx-ghost-word@1.0.0 == */
/* Oversized ghost display word cropped at a section fold. The page positions the
 * element (typically at the top or bottom edge of a section with overflow:hidden);
 * fx-ghost-word.js adds a scroll-scrubbed horizontal drift. Color is inherited so
 * the word reads on light and inverted surfaces alike. Decorative (aria-hidden).
 * Snippet: <div class="fx-ghost" data-fx="fx-ghost-word" data-fx-drift="48">ANSWERED.</div> */

[data-fx~="fx-ghost-word"] {
  position: absolute;
  font-size: clamp(4rem, 17vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.8;
  white-space: nowrap;
  opacity: 0.05;
  pointer-events: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* inverted / dark contexts need a touch more presence */
.fx-invert [data-fx~="fx-ghost-word"],
html.fx-theme-dark [data-fx~="fx-ghost-word"] {
  opacity: 0.07;
}

/* transform hint only when motion is actually allowed */
html.pf-motion:not(.fx-reduced) [data-fx~="fx-ghost-word"] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-ghost-word"] {
    transform: none !important;
    will-change: auto;
  }
}

/* == fx-progress-line@1.0.0 == */
/* Scroll-drawn progress hairline for step sequences. Needs fx-core.
 * Page places the rail inside a position:relative steps wrapper; JS appends the fill.
 * no-JS: no fill exists — the static hairline rail alone reads as an intentional wayfinding line.
 * Snippet: <div class="steps-wrap"><div class="fx-rail" data-fx="fx-progress-line"></div><div data-fx-step>Step 1</div>...</div> */

/* the rail: static hairline, present with or without JS */
[data-fx~="fx-progress-line"] {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--fx-hairline);
  pointer-events: none;
}

/* the JS-appended fill: drawn top-down via scaleY, transform-only */
[data-fx~="fx-progress-line"] .fx-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--fx-accent);
  transform-origin: 50% 0;
  transform: scaleY(0);
}

html.pf-motion:not(.fx-reduced) [data-fx~="fx-progress-line"] .fx-progress-fill {
  will-change: transform;
}

/* default step treatment: dimmed until the fill passes. Motion-only scope, so
 * no-JS and reduced-motion users always see every step at full strength. */
html.pf-motion:not(.fx-reduced) [data-fx~="fx-progress-line"] ~ [data-fx-step] {
  opacity: 0.45;
  transition: opacity 0.45s var(--fx-ease-out);
}
html.pf-motion:not(.fx-reduced) [data-fx~="fx-progress-line"] ~ [data-fx-step].fx-on {
  opacity: 1;
}

/* hard stop if the preference flips mid-session; the fill's inline scaleY is left
 * alone on purpose — under RM it tracks scroll directly (honest wayfinding). */
@media (prefers-reduced-motion: reduce) {
  [data-fx~="fx-progress-line"] ~ [data-fx-step] {
    opacity: 1 !important;
    transition: none !important;
  }
  [data-fx~="fx-progress-line"] .fx-progress-fill {
    transition: none !important;
    will-change: auto;
  }
}

/* ============================================================
   == PAGE LAYER (myphoneflow.com landing) ==
   Page-specific styles for the 2026-07 "alive" upgrade.
   Loaded after design-system.css / components.css - additive only,
   the three shared stylesheets are NEVER edited.
   RULE: no transform/filter/overflow on any ancestor of
   .hs-form-frame or .meetings-iframe-container (HubSpot iframes).
   ============================================================ */

:root {
  --fx-accent: var(--accent-primary, #3b82f6);
  --fx-accent-2: var(--accent-orange, #ff6b2b);
  --fx-ink: #0f172a;
}

/* ---- calm the legacy backdrop so new glow reads as intentional ---- */
html.pf-motion body::before { opacity: 0.45; }
html.pf-motion .gradient-mesh-bg::after { opacity: 0.5; }

/* ============================================================
   HEADER - condense on scroll, invert over dark sections
   ============================================================ */
header {
  transition: background-color 0.35s var(--fx-ease-out), box-shadow 0.35s var(--fx-ease-out),
              border-color 0.35s var(--fx-ease-out);
  border-bottom: 1px solid transparent;
}
header.pf-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--fx-hairline);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
header.pf-scrolled .header-content { padding-top: 10px; padding-bottom: 10px; }
.header-content { transition: padding 0.35s var(--fx-ease-out); }
html.fx-theme-dark header.pf-scrolled {
  background: rgba(11, 18, 32, 0.78);
  border-bottom-color: var(--fx-hairline-inverse);
}
html.fx-theme-dark header.pf-scrolled .nav-link,
html.fx-theme-dark header.pf-scrolled .cta-signin,
html.fx-theme-dark header.pf-scrolled .logo-divider { color: #e2e8f0; }

/* ============================================================
   HERO - living console
   ============================================================ */

/* hairline grid layer behind the composite */
.hero-pro .hero-pro-visual { position: relative; }
.hero-pro .hero-pro-visual::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--fx-hairline) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(90deg, var(--fx-hairline) 0 1px, transparent 1px 88px);
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 75% at 50% 45%, #000 30%, transparent 100%);
}

/* soft brand glow under the main frame */
html.pf-motion .hero-pro .screenshot-main {
  box-shadow: 0 24px 80px rgba(59, 130, 246, 0.22), 0 8px 28px rgba(15, 23, 42, 0.12);
}

/* pill choreography: replace the one-shot CSS entrance from components.css
   with transition-driven states cycled by fx-status-pills.
   Scoped so no-JS / reduced-motion keep the legacy one-shot entrance. */
html.pf-motion:not(.fx-reduced) .hero-pro .screenshot-composite .annotation-float {
  animation: none;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.97);
  transition: opacity 0.55s var(--fx-ease-out), transform 0.55s var(--fx-ease-out);
}
html.pf-motion:not(.fx-reduced) .hero-pro .screenshot-composite .annotation-float.fx-pill-on {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* live call strip: waveform + typing transcript under the main frame */
.pf-call-strip {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary, #475569);
  min-height: 42px;
}
.pf-call-strip .pf-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  color: var(--fx-accent);
  flex: none;
}
.pf-call-strip .pf-call-line {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.pf-call-strip .pf-call-tag {
  flex: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-accent-2);
}

/* LIVE floating info-card (replaces the plain hero-live-badge) */
.pf-live-card {
  position: absolute;
  top: -26px;
  right: -10px;
  z-index: 4;
  display: block;
  padding: 12px 16px 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
}
.pf-live-card .pf-live-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.pf-live-card .pf-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pfLivePulse 2s ease-out infinite;
}
.pf-live-card .pf-live-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary, #64748b);
}
.pf-live-card .pf-live-cta {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fx-accent);
}
.pf-live-card:hover .pf-live-cta { text-decoration: underline; }
@keyframes pfLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-live-card .pf-live-dot { animation: none; }
}
@media (max-width: 900px) {
  .pf-live-card { position: static; display: inline-block; margin-bottom: 12px; }
}

/* rotating word underline that redraws on each swap */
#rotating-word { position: relative; display: inline-block; }
#rotating-word::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.02em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fx-accent-2), var(--fx-accent));
  transform: scaleX(0);
  transform-origin: left center;
}
html.pf-motion:not(.fx-reduced) #rotating-word.pf-underline-go::after {
  animation: pfUnderline 0.9s var(--fx-ease-out) 0.15s both;
}
@keyframes pfUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
html.fx-reduced #rotating-word::after,
html:not(.pf-motion) #rotating-word::after { transform: scaleX(1); }

/* ============================================================
   SECTION SPLIT HEADLINES - shared treatment (module provides motion)
   ============================================================ */

/* ============================================================
   PROOF BAND - dark inversion #1 + ghost word + count-up numerals
   ============================================================ */
.proof-band { position: relative; overflow: hidden; }
.proof-band.fx-invert {
  background:
    radial-gradient(90% 130% at 80% -20%, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(135deg, #101c33 0%, var(--fx-ink) 100%);
}
.proof-band.fx-invert .proof-band-lead { color: #94a3b8; }
.proof-band.fx-invert .proof-stat-number {
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 32px rgba(59, 130, 246, 0.35);
}
.proof-band.fx-invert .proof-stat-label { color: #94a3b8; }
.proof-band .proof-stats { position: relative; z-index: 2; }
@media (min-width: 769px) {
  .proof-band.fx-invert .proof-stat + .proof-stat {
    border-left: 1px solid var(--fx-hairline-inverse);
  }
  .proof-band.fx-invert .proof-stat { padding-left: 24px; }
}
.proof-band .fx-ghost,
#try-ai .fx-ghost { font-family: 'Inter Tight', 'Inter', sans-serif; color: #f8fafc; }
.proof-band .fx-ghost { top: -0.18em; left: 2%; }

/* ============================================================
   HOW IT WORKS - alternating rail with scroll-drawn progress line
   ============================================================ */
.pf-steps {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.pf-steps .fx-rail {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--fx-hairline);
  border-radius: 2px;
}
.pf-steps .pf-step {
  position: relative;
  width: calc(50% - 44px);
  margin-bottom: 44px;
}
.pf-steps .pf-step:nth-child(even) { margin-left: 0; text-align: left; }
.pf-steps .pf-step:nth-child(odd):not(.fx-rail) { margin-left: auto; }
/* rail is first child; steps are children 2..6 -> even children sit LEFT, odd RIGHT */
.pf-steps .pf-step .step-number {
  position: absolute;
  top: -34px;
  z-index: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(15, 23, 42, 0.06);
  pointer-events: none;
  user-select: none;
  transition: color 0.5s var(--fx-ease-out);
}
.pf-steps .pf-step:nth-child(even) .step-number { right: -18px; }
.pf-steps .pf-step:nth-child(odd) .step-number { left: -18px; }
.pf-steps .pf-step.fx-on .step-number { color: rgba(59, 130, 246, 0.14); }
/* node dot on the rail */
.pf-steps .pf-step::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary, #fff);
  border: 2px solid var(--fx-hairline);
  transition: border-color 0.4s var(--fx-ease-out), box-shadow 0.4s var(--fx-ease-out);
}
.pf-steps .pf-step:nth-child(even)::after { right: -51px; }
.pf-steps .pf-step:nth-child(odd)::after { left: -51px; }
.pf-steps .pf-step.fx-on::after {
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.14);
}
.pf-steps .step-card { position: relative; z-index: 1; height: auto; }
@media (max-width: 768px) {
  .pf-steps .fx-rail { left: 10px; }
  .pf-steps .pf-step,
  .pf-steps .pf-step:nth-child(odd):not(.fx-rail) {
    width: auto;
    margin-left: 40px;
    margin-right: 0;
  }
  .pf-steps .pf-step::after,
  .pf-steps .pf-step:nth-child(even)::after,
  .pf-steps .pf-step:nth-child(odd)::after { left: -36px; right: auto; }
  .pf-steps .pf-step .step-number,
  .pf-steps .pf-step:nth-child(even) .step-number,
  .pf-steps .pf-step:nth-child(odd) .step-number { font-size: 4.5rem; top: -22px; right: 6px; left: auto; }
}

/* ============================================================
   PRODUCT SHOWCASE - tab micro-interactions
   ============================================================ */
.showcase-tab { position: relative; transition: transform 0.15s var(--fx-ease-out); }
.showcase-tab:active { transform: scale(0.96); }
.showcase-tab::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fx-accent), var(--accent-secondary, #6366f1));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--fx-ease-out);
}
.showcase-tab.active::after { transform: scaleX(1); }

/* ============================================================
   INTEGRATIONS - edge fade (logos full color per owner feedback)
   ============================================================ */
.int-marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .int-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ============================================================
   TRY-AI - dark inversion #2, elevated live-demo console
   (classes replace the old inline styles; visual values preserved)
   ============================================================ */
#try-ai { position: relative; overflow: hidden; }
#try-ai .fx-ghost { bottom: -0.16em; right: 2%; color: #f8fafc; }
.pf-try-inner { text-align: center; max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.pf-try-eyebrow {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.pf-try-title { color: white; font-size: 2.5rem; margin-bottom: 1rem; }
.pf-try-sub { color: #94a3b8; font-size: 1.125rem; margin-bottom: 1.5rem; }
.pf-try-transcript {
  min-height: 76px; /* full 2-line exchange: no layout shift while typing */
  margin: 0 auto 1.5rem;
  max-width: 520px;
  font-size: 0.95rem;
  color: #cbd5e1;
  font-style: italic;
}
.pf-try-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  height: 26px;
  margin: 0 auto 1.25rem;
  color: #60a5fa;
}
.pf-try-btn-wrap { position: relative; display: inline-block; }
.pf-try-btn-wrap::before,
.pf-try-btn-wrap::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  pointer-events: none;
}
html.pf-motion:not(.fx-reduced) .pf-try-btn-wrap::before { animation: pfRing 2.6s var(--fx-ease-out) infinite; }
html.pf-motion:not(.fx-reduced) .pf-try-btn-wrap::after { animation: pfRing 2.6s var(--fx-ease-out) 1.3s infinite; }
@keyframes pfRing {
  0% { opacity: 0.8; transform: scale(0.98); }
  100% { opacity: 0; transform: scale(1.12); }
}
.pf-try-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 20px 40px;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
  transition: transform 0.25s var(--fx-ease-out), box-shadow 0.25s var(--fx-ease-out);
}
.pf-try-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6); }
.pf-try-note { color: #64748b; font-size: 0.875rem; margin-top: 1.5rem; }
.pf-try-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}
.pf-try-pill .pf-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981;
}
.pf-try-checks { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.pf-try-check { display: flex; align-items: center; gap: 8px; color: #94a3b8; }
.pf-try-check .pf-check { color: #10b981; }

/* ============================================================
   FEATURES BENTO - cursor-spotlight cells + hover lift
   ============================================================ */
.bento-grid .bento-cell { position: relative; }
.bento-grid .bento-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--fx-ease-out);
  background: radial-gradient(220px circle at var(--fx-mx, 50%) var(--fx-my, 50%),
    rgba(59, 130, 246, 0.12), transparent 65%);
}
.bento-grid .bento-cell:hover::after { opacity: 1; }
html.pf-motion:not(.fx-reduced) .bento-grid .bento-lg:hover {
  box-shadow: 0 18px 60px rgba(59, 130, 246, 0.16);
}

/* ============================================================
   PRICING - glass edge + glow; odometer price
   ============================================================ */
.pricing-hero-card {
  transition: box-shadow 0.4s var(--fx-ease-out), border-color 0.4s var(--fx-ease-out);
}
.pricing-hero-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 18px 70px rgba(59, 130, 246, 0.14);
}
.price-amount { font-variant-numeric: tabular-nums; }

/* ============================================================
   ROI - live-data odometer outputs
   ============================================================ */
#annualSavings, #monthlySavings, #efficiency, #totalHours,
#aiTotalCost, #humanTotalCost, #aiCallHours, #humanCallHours, #aiHoursPaid, #humanHoursPaid {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   TESTIMONIAL - editorial offset
   ============================================================ */
.pf-quote-wrap { position: relative; }
.pf-quote-wrap .pf-quote-mark {
  position: absolute;
  top: -0.55em;
  left: -0.15em;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 107, 43, 0.18);
  pointer-events: none;
  user-select: none;
}
@media (min-width: 900px) {
  .pf-quote-offset { margin-left: 8%; max-width: 760px !important; }
}

/* ============================================================
   FOOTER - faint hairline grid
   ============================================================ */
footer { position: relative; }
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(248, 250, 252, 0.05) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(90deg, rgba(248, 250, 252, 0.05) 0 1px, transparent 1px 110px);
}
footer > * { position: relative; }
