/* ==========================================================================
   Compound AI — Landing Page
   White canvas. Soft green glows. Editorial typography.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FFFFFF;    /* page background lives on html so cursor canvas can render above it at z-index: 0 */
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #1D1D1F;
  background: transparent;  /* transparent so cursor canvas shows through sections with no bg */
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button,input,select,textarea { font: inherit; }
em { font-style: italic; }
strong { font-weight: 600; }

:root {
  --bg: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #515154;
  --ink-3: #86868B;
  --hairline: rgba(0, 0, 0, 0.06);
  --hairline-soft: rgba(0, 0, 0, 0.04);
  --accent: #00C875;
  --accent-ink: #00A863;
  --cauto: #0088FF;
  --cauto-ink: #0070D6;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-glow: 0 30px 120px rgba(0,200,117,0.14), 0 10px 30px rgba(0,0,0,0.06);
  --shadow-btn: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1152px;  /* matches C-Auto's max-w-6xl */
  --container-wide: 1360px;
}

/* --- Cursor canvas ----------------------------------------------------- */

#cursor-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: -1;   /* behind all content — body is transparent, html paints white, canvas sits above html bg and below body */
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  #cursor-canvas { display: none; }
}

/* --- Layout primitives ------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.wide { max-width: var(--container-wide); }

section { position: relative; }

/* Glows */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
}
.glow-hero {
  /* Positioned to span the bottom of the hero through the top half of the video,
     so the glow appears to emanate from behind the video and out through the hero. */
  width: 1600px; height: 1100px;
  bottom: -780px;           /* drops the glow centre ~230px below hero bottom — sits behind the upper third of the video */
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 520px 380px at 50% 50%, rgba(0,200,117,0.3) 0%, transparent 100%);
  opacity: 0.85;
}
.glow-cauto {
  width: 900px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,136,255,0.10) 0%, transparent 65%);
  opacity: 0.8;
}
/* .glow-vsl removed — was bleeding weirdly around the video edges.
   The video frame's own box-shadow (var(--shadow-glow)) handles ambient glow. */
.glow-trap {
  width: 1200px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,200,117,0.10) 0%, transparent 65%);
}
.glow-ops {
  width: 1100px; height: 800px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,200,117,0.10) 0%, transparent 60%);
}
.glow-guarantee {
  width: 1400px; height: 900px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,200,117,0.18) 0%, transparent 65%);
}
.glow-final {
  width: 1200px; height: 800px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,200,117,0.14) 0%, transparent 65%);
}

/* --- Typography primitives -------------------------------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.section-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 960px;
}

.section-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 48px;
  max-width: 720px;
}

.accent-text { color: var(--accent); }

.stack-header { text-align: center; max-width: 900px; margin: 0 auto clamp(48px, 6vw, 80px); }
.stack-header .section-headline { margin-left: auto; margin-right: auto; }
.stack-header .section-sub { margin-left: auto; margin-right: auto; }

/* --- Buttons (body) — Title Case, rounded-lg, matches C-Auto --------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              background 0.2s ease;
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform 0.3s var(--ease-out-expo); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: rgba(29,29,31,0.85);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.08);
}

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }

/* --- Nav (matches compoundautomations.com structure exactly) --------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;             /* above cursor canvas so cursor stays behind nav */
  height: 64px;
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-standard),
              border-color 0.5s var(--ease-standard);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--hairline);
}

/* Sections are transparent — cursor canvas at z-index: 0 shows through between them.
   Only the nav has an explicit stacking above the cursor. */
.hero, .vsl, .trap, .stack, .operators, .how, .guarantee, .final-cta {
  position: relative;
}
.cauto-band, .footer { position: relative; }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav-wordmark {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.nav-logo:hover .nav-wordmark { opacity: 0.75; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--accent); }

/* Cross-link to Compound Automations — hover goes BLUE not green */
.nav-link-cauto:hover { color: var(--cauto); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              background 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: rgba(29,29,31,0.82);
  transform: scale(1.04);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

/* --- Hero ------------------------------------------------------------- */

.hero {
  padding: clamp(160px, 20vh, 210px) 0 clamp(16px, 2.5vh, 28px);
  text-align: center;
  /* overflow visible so the hero glow can bleed down behind the video */
}
.hero-inner { position: relative; z-index: 1; }
.hero-headline {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  line-height: 1.0;
  letter-spacing: -0.038em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 auto 22px;
  max-width: 1040px;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 1s var(--ease-out-expo) 0.15s forwards;
}
.hero-tagline {
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 auto 28px;
  max-width: 740px;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 1s var(--ease-out-expo) 0.35s forwards;
}
.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 1s var(--ease-out-expo) 0.55s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* --- VSL -------------------------------------------------------------- */

.vsl {
  padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.vsl-inner { position: relative; z-index: 1; text-align: center; }
.vsl-frame {
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  position: relative;
}
.vsl-frame iframe, .vsl-frame video {
  width: 100%; height: 100%;
  border: 0; display: block;
  object-fit: cover; background: #000;
}

/* Pre-unmute: video ignores pointer events so the FIRST click anywhere on the
   frame falls through to .vsl-frame's click handler (and never reaches the
   browser's native play/pause toggle). After unmute, native controls work. */
.vsl-frame video { pointer-events: none; }
.vsl-frame.is-unmuted video { pointer-events: auto; }
.vsl-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,200,117,0.22) 0%, transparent 60%),
    linear-gradient(135deg, #1D1D1F 0%, #2c2c2e 100%);
}
.vsl-placeholder-inner { text-align: center; padding: 40px; color: #fff; }
.play-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  margin: 0 auto 22px;
  padding-left: 6px;
}
.vsl-placeholder-label { font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 8px; letter-spacing: -0.01em; }
.vsl-placeholder-note { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }

/* Click-to-unmute overlay — solid white pill, high contrast, always visible */
.vsl-unmute {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: #1D1D1F;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.25s var(--ease-out-expo),
              opacity 0.35s var(--ease-standard),
              box-shadow 0.25s var(--ease-out-expo);
  z-index: 10;
}
.vsl-unmute:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.25);
}
.vsl-unmute.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.9); }
.vsl-unmute-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: var(--accent);
}

.vsl-caption { margin: 28px auto 0; max-width: 720px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.vsl-cta-row { margin-top: 32px; }

/* --- The Trap (width-animated bar, static labels) -------------------- */

.trap {
  height: 180vh;                 /* outer: 80vh of active sticky + 100vh for natural exit */
  position: relative;
  overflow: visible;
}
.trap-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;           /* content centered vertically */
  justify-content: center;       /* content centered horizontally (was missing — caused left-align) */
  overflow: hidden;
  padding: 56px 0;
}
.trap-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.trap-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}
.trap-headline {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 56px;
  position: relative;
  min-height: 2.4em;
}
.trap-headline em { color: var(--ink-2); font-style: normal; }

/* Title + eyebrow swap — morphs (blur + slide + fade) when .flipped toggles */
.eyebrow-swap { position: relative; min-height: 1.4em; text-align: center; }
.eyebrow-swap .swap-before,
.eyebrow-swap .swap-after,
.trap-headline .swap-before,
.trap-headline .swap-after {
  display: block;
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo),
              filter 0.6s var(--ease-out-expo);
}
/* Absolute-positioned "after" stretches to full width of parent so text-align: center lands on-axis */
.eyebrow-swap .swap-after,
.trap-headline .swap-after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  pointer-events: none;
}
.trap.flipped .eyebrow-swap .swap-before,
.trap.flipped .trap-headline .swap-before {
  opacity: 0;
  transform: translateY(-14px);
  filter: blur(8px);
}
.trap.flipped .eyebrow-swap .swap-after,
.trap.flipped .trap-headline .swap-after {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.bar-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Entrance — staggered, pronounced reveal fires when .revealed lands on .trap */
.trap .eyebrow-swap,
.trap .trap-headline,
.trap .bar-wrap,
.trap .trap-caption {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out-expo),
              transform 1.1s var(--ease-out-expo);
  will-change: opacity, transform;
}
.trap .trap-headline { transition-delay: 0.1s; }
.trap .bar-wrap {
  transform: translateY(50px) scale(0.92);
  transition-delay: 0.22s;
  transition-duration: 1.25s;
}
.trap .trap-caption { transition-delay: 0.38s; }
.trap.revealed .eyebrow-swap,
.trap.revealed .trap-headline,
.trap.revealed .bar-wrap,
.trap.revealed .trap-caption {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Bar segment also animates in on reveal — from 0 width to 20% */
.trap .bar-seg-right { width: 0; }
.trap.revealed .bar-seg-right {
  width: 20%;
  transition: width 1.3s var(--ease-out-expo) 0.5s;
}
.trap.flipped .bar-seg-right {
  width: 80%;
  transition: width 1.3s var(--ease-out-expo);
}
.bar-labels, .bar-subs {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
}
.bar-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.bar-label-right { text-align: right; }
.bar-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-top: 14px;
  max-width: 46%;
}
.bar-sub-right { text-align: right; }

.bar {
  position: relative;
  width: 100%;
  height: clamp(60px, 8vh, 84px);
  border-radius: 999px;
  overflow: hidden;
  background: #E5E5EA;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04), 0 20px 60px rgba(0,200,117,0.10);
}
.bar-seg {
  position: absolute;
  top: 0;
  height: 100%;
  transition: width 1.3s var(--ease-out-expo);
}
.bar-seg-left {
  left: 0;
  width: 100%;
  background: transparent;
}
.bar-seg-right {
  right: 0;
  width: 0;              /* starts collapsed — animates in on reveal */
  background: var(--accent);
}
.trap.revealed .bar-seg-right { width: 20%; }
.trap.flipped .bar-seg-right { width: 80%; }

.trap-caption {
  position: relative;
  margin-top: 44px;
  min-height: 28px;
}
.trap-caption-swap {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-3);
  text-align: center;
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo),
              filter 0.6s var(--ease-out-expo);
}
.trap-caption-after {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  font-style: normal;
  font-weight: 600;
  color: var(--accent-ink);
}
.trap.flipped .trap-caption-before {
  opacity: 0;
  transform: translateY(-14px);
  filter: blur(8px);
}
.trap.flipped .trap-caption-after {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- The Compound Stack — 5 editorial strips ------------------------- */

.stack {
  padding: clamp(30px, 4vw, 60px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.layer {
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
}
/* Subtle green ambient on each layer — alternating side to match the flip layout */
.layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 50%, rgba(0,200,117,0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.layer-flip::before {
  background: radial-gradient(ellipse at 85% 50%, rgba(0,200,117,0.05) 0%, transparent 55%);
}
.layer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.layer-flip .layer-row { direction: rtl; }
.layer-flip .layer-row > * { direction: ltr; }

.layer-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 20px;
}
.layer-title {
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
}
.layer-body {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 540px;
}

.layer-visual {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #FAFAFC;
}

.shader {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 01 Context — SVG network graph */
.shader-context {
  background: linear-gradient(135deg, #FBFBFD 0%, #F0F9F4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shader-context-svg {
  width: 100%; height: 100%;
  display: block;
}
.shader-context-center {
  transform-origin: 230px 230px;
  animation: pulseCenter 3s var(--ease-standard) infinite;
  filter: drop-shadow(0 0 24px rgba(0,200,117,0.5));
}
@keyframes pulseCenter {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.shader-context-lines line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 3s var(--ease-out-expo) infinite;
}
.shader-context-lines line:nth-child(1) { animation-delay: 0s; }
.shader-context-lines line:nth-child(2) { animation-delay: 0.25s; }
.shader-context-lines line:nth-child(3) { animation-delay: 0.5s; }
.shader-context-lines line:nth-child(4) { animation-delay: 0.75s; }
.shader-context-lines line:nth-child(5) { animation-delay: 1s; }
.shader-context-lines line:nth-child(6) { animation-delay: 1.25s; }
@keyframes drawLine {
  0% { stroke-dashoffset: 200; opacity: 0.1; }
  40% { stroke-dashoffset: 0; opacity: 0.6; }
  100% { stroke-dashoffset: 0; opacity: 0.25; }
}

/* 02 Command Deck — KPI dashboard mockup */
.shader-deck {
  background: linear-gradient(135deg, #FBFBFD 0%, #F4FAF7 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(20px, 4%, 32px);
  align-items: stretch;
  justify-items: stretch;
}
.deck-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.deck-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.deck-value {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.deck-delta {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: -0.005em;
}
.deck-delta.flat { color: var(--ink-3); }
.deck-spark {
  width: 100%;
  height: 28px;
  margin-top: auto;
}
.deck-spark polyline {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawSpark 2.5s var(--ease-out-expo) forwards;
}
.deck-card:nth-child(1) .deck-spark polyline { animation-delay: 0.1s; }
.deck-card:nth-child(2) .deck-spark polyline { animation-delay: 0.3s; }
.deck-card:nth-child(4) .deck-spark polyline { animation-delay: 0.5s; }
@keyframes drawSpark { to { stroke-dashoffset: 0; } }
.deck-meter {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: auto;
}
.deck-meter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 0 !important;
  animation: fillMeter 2s var(--ease-out-expo) 0.5s forwards;
}
@keyframes fillMeter { to { width: 76% !important; } }

/* 03 Morning Brief — stylized brief card */
.shader-brief {
  background: linear-gradient(135deg, #FBFBFD 0%, #F4FAF7 100%);
  padding: clamp(18px, 3%, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.brief-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 4px;
}
.brief-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-transform: lowercase;
}
.brief-header-time {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.brief-section { display: flex; flex-direction: column; gap: 5px; }
.brief-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: 4px;
}
.brief-item {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  opacity: 0;
  animation: briefIn 0.5s var(--ease-out-expo) forwards;
}
.brief-item strong { font-weight: 600; }
.brief-section:nth-child(2) .brief-item:nth-child(2) { animation-delay: 0.1s; }
.brief-section:nth-child(2) .brief-item:nth-child(3) { animation-delay: 0.2s; }
.brief-section:nth-child(3) .brief-item:nth-child(2) { animation-delay: 0.3s; }
.brief-section:nth-child(3) .brief-item:nth-child(3) { animation-delay: 0.4s; }
.brief-section:nth-child(4) .brief-item:nth-child(2) { animation-delay: 0.5s; }
.brief-section:nth-child(4) .brief-item:nth-child(3) { animation-delay: 0.6s; }
@keyframes briefIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.brief-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
}
.brief-dot-urgent { background: #FF9500; box-shadow: 0 0 6px rgba(255,149,0,0.4); }
.brief-dot-good { background: var(--accent); box-shadow: 0 0 6px rgba(0,200,117,0.4); }
.brief-dot-info { background: var(--ink-3); }

/* 04 Automate — task list sliding + strike-through */
.shader-auto {
  background: linear-gradient(135deg, #FBFBFD 0%, #F4FAF7 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4%, 36px);
  gap: 10px;
}
.auto-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  opacity: 0;
  transform: translateY(8px);
  animation: autoAppear 2.2s var(--ease-out-expo) var(--delay, 0s) infinite;
}
.auto-task-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,200,117,0.3);
}
.auto-task-label {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
  position: relative;
}
.auto-task-label::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 0;
  height: 1.5px;
  background: var(--ink-3);
  transform: translateY(-50%);
  animation: autoStrike 2.2s var(--ease-out-expo) var(--delay, 0s) infinite;
}
.auto-task-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: rgba(0,200,117,0.1);
  padding: 3px 8px;
  border-radius: 999px;
}
@keyframes autoAppear {
  0% { opacity: 0; transform: translateY(8px); }
  15% { opacity: 1; transform: translateY(0); }
  75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.35; transform: translateY(0); }
}
@keyframes autoStrike {
  0%, 20% { width: 0; }
  50% { width: 100%; }
  100% { width: 100%; }
}

/* 05 Bandwidth — dial + hours counter */
.shader-bandwidth {
  background:
    radial-gradient(circle at 50% 50%, rgba(0,200,117,0.16) 0%, transparent 55%),
    linear-gradient(135deg, #FBFBFD 0%, #F0F9F4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bw-dial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bw-arc {
  stroke-dashoffset: 490;
  animation: drawArc 3s var(--ease-out-expo) forwards;
  filter: drop-shadow(0 0 12px rgba(0,200,117,0.4));
}
@keyframes drawArc {
  from { stroke-dashoffset: 490; }
  to { stroke-dashoffset: 122; }
}
.bw-value {
  position: relative;
  z-index: 2;
  text-align: center;
}
.bw-number {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bw-unit-inline {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--ink-2);
  margin-left: 6px;
  letter-spacing: -0.01em;
}
.bw-caption {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* --- Operators -------------------------------------------------------- */

.operators {
  padding: clamp(100px, 13vw, 160px) 0;
  text-align: center;
  overflow: hidden;
}
.operators-inner { position: relative; z-index: 1; max-width: 920px; }
.operators-headline {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}
.operators-tagline {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.015em;
  margin: 0 auto 40px;
}
.operators-body {
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto 20px;
  max-width: 780px;
}

/* --- How it works — five-row editorial structure -------------------- */

.how { padding: clamp(100px, 12vw, 160px) 0; overflow: hidden; }

.structure {
  max-width: 900px;
  margin: 0 auto 60px;
}

.structure-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.4s var(--ease-out-expo);
  position: relative;
}
.structure-row::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 40px; bottom: 40px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-out-expo);
}
.structure-row:hover { padding-left: 18px; }
.structure-row:hover::before { transform: scaleY(1); }
.structure-row:last-child { border-bottom: 0; }

.structure-num {
  font-size: clamp(3.25rem, 5.5vw, 4.75rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

.structure-content { min-width: 0; }

.structure-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.024em;
  line-height: 1.2;
  margin: 0 0 10px;
}

.structure-title .first-letter {
  color: var(--accent);
  font-weight: 700;
}

.structure-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 640px;
}

.built-for {
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}
.built-for-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 22px;
}
.built-for-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.built-for-list li {
  padding: 8px 18px;
  font-size: 14px;
  color: var(--ink);
  background: rgba(0,200,117,0.06);
  border: 1px solid rgba(0,200,117,0.18);
  border-radius: 999px;
}
.built-for-list em { color: var(--accent-ink); font-style: italic; }

.how-note {
  text-align: center;
  margin: 24px auto 0;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 620px;
}
.how-note a {
  color: var(--accent-ink);
  font-weight: 500;
  border-bottom: 1px solid rgba(0,168,99,0.3);
}
.how-note a:hover { border-color: var(--accent-ink); }

/* --- Guarantee -------------------------------------------------------- */

.guarantee {
  padding: clamp(110px, 14vw, 180px) 0;
  text-align: center;
  overflow: hidden;
}
.guarantee-inner { position: relative; z-index: 1; max-width: 1100px; }
.guarantee-headline {
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 auto 72px;
  max-width: 900px;
}
.guarantee-numbers {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(30px, 5vw, 60px);
  flex-wrap: wrap;
}
.guarantee-num { flex: 1 1 360px; max-width: 440px; text-align: center; }
.guarantee-big {
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 0.95;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 14px;
  text-shadow: 0 20px 60px rgba(0,200,117,0.18);
}
.guarantee-label { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 600; color: var(--ink); margin: 0 0 16px; letter-spacing: -0.01em; }
.guarantee-line { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0 auto; max-width: 380px; }
.guarantee-or {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: clamp(2rem, 4vw, 3.5rem) 0 0;
}
.guarantee-promise { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-2); margin: 80px auto 0; max-width: 760px; }
.guarantee-promise strong { color: var(--ink); }
.guarantee-fineprint {
  font-size: 12px;
  color: var(--ink-3);
  margin: 20px auto 0;
  max-width: 620px;
  letter-spacing: -0.005em;
}
.guarantee-fineprint a {
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.15);
}
.guarantee-fineprint a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* --- Calendly embed -------------------------------------------------- */

.calendly-section {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.calendly-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.calendly-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(40px, 5vw, 60px);
}
.calendly-header .section-headline,
.calendly-header .section-sub {
  margin-left: auto;
  margin-right: auto;
}
.calendly-embed {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
}
.calendly-inline-widget { min-width: 320px; width: 100%; }

/* --- Final CTA -------------------------------------------------------- */

.final-cta {
  padding: clamp(120px, 14vw, 180px) 0;
  text-align: center;
  overflow: hidden;
}
.final-cta-inner { position: relative; z-index: 1; max-width: 800px; }
.final-cta-headline {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 22px;
}
.final-cta-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); margin: 0 0 44px; }
.final-cta-contact { margin: 44px 0 0; font-size: 15px; color: var(--ink-2); }
.final-cta-contact a { color: var(--ink-2); }
.final-cta-contact a:hover { color: var(--ink); }
.contact-sep { margin: 0 10px; color: var(--ink-3); }

/* --- C-Auto cross-promo ---------------------------------------------- */

.cauto-band {
  padding: clamp(100px, 12vw, 150px) 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cauto-inner {
  max-width: 820px;
  position: relative;
  z-index: 1;
}
.cauto-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.cauto-headline {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 24px;
}
.cauto-accent { color: var(--cauto); }
.cauto-sub {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto 40px;
  max-width: 680px;
}

/* Blue CTA button — matches .btn-primary shape, swaps color to C-Auto blue */
.btn-cauto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  background: var(--cauto);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,136,255,0.22), 0 1px 3px rgba(0,136,255,0.15);
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              background 0.2s ease;
  white-space: nowrap;
}
.btn-cauto .arrow { display: inline-block; transition: transform 0.3s var(--ease-out-expo); }
.btn-cauto:hover {
  background: var(--cauto-ink);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,136,255,0.3), 0 2px 6px rgba(0,136,255,0.15);
}
.btn-cauto:hover .arrow { transform: translateX(4px); }

/* --- Legal pages (privacy / terms) ---------------------------------- */

.legal {
  padding: clamp(110px, 14vh, 160px) 0 clamp(80px, 10vw, 120px);
  min-height: 70vh;
}
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.legal-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.legal-updated {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 48px;
  font-style: italic;
}
.legal-section {
  margin-bottom: 40px;
}
.legal-h2 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.legal-section strong { color: var(--ink); }
.legal-section ul {
  padding: 0 0 0 22px;
  margin: 0 0 14px;
}
.legal-section li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 8px;
}

/* --- Footer — mirrors compoundautomations.com structure ------------ */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
  position: relative;
  z-index: 10;
}
.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 360px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  line-height: 0;
}
.footer-wordmark { height: 28px; width: auto; display: block; }
.footer-mission {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}
.footer-columns {
  display: flex;
  gap: 48px;
}
.footer-col-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}
.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links li { font-size: 12px; }
.footer-col-links a {
  color: var(--ink-3);
  transition: color 0.2s ease;
}
.footer-col-links a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-bottom p {
  font-size: 10px;
  color: var(--ink-3);
  margin: 0;
  letter-spacing: 0.01em;
}

/* --- Reveal ----------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.layer-row .reveal:nth-child(1) { transition-delay: 0s; }
.layer-row .reveal:nth-child(2) { transition-delay: 0.12s; }
.guarantee-numbers .reveal:nth-child(1) { transition-delay: 0.05s; }
.guarantee-numbers .reveal:nth-child(2) { transition-delay: 0.15s; }
.guarantee-numbers .reveal:nth-child(3) { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-eyebrow, .hero-headline, .hero-sub { opacity: 1; transform: none; animation: none; }
  .trap { height: auto; }
  .trap-sticky { position: static; height: auto; padding: clamp(80px, 10vw, 140px) 0; }
  .trap.flipped .bar-seg-left { width: 20%; }
  .trap.flipped .bar-seg-right { width: 80%; }
}

/* --- Responsive ------------------------------------------------------- */

@media (max-width: 960px) {
  .layer-row { grid-template-columns: 1fr; gap: 40px; }
  .layer-flip .layer-row { direction: ltr; }
  .layer-visual { max-width: 520px; margin: 0 auto; }
  .guarantee-or { padding: 8px 0; }
  .bar-sub { max-width: 48%; font-size: 13px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-wordmark { height: 24px; }
  .footer-wordmark { height: 24px; }
  .hero { padding-top: 130px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-columns { gap: 36px; flex-wrap: wrap; }
  .bar-label { font-size: 11px; }
  .bar-sub { font-size: 12px; }
  .bar { height: 52px; }
  .shader-deck { gap: 10px; padding: 18px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .contact-sep { display: block; height: 6px; color: transparent; }
  .bar-sub { max-width: 100%; }
  .bar-labels, .bar-subs { flex-direction: column; gap: 6px; align-items: flex-start; }
  .bar-label-right, .bar-sub-right { text-align: left; }
}
