/* Channel Wise — landing page
   Reuses tokens & base components from saas.css (loaded first). */

:root {
  --lp-max: 1200px;
  --lp-radius: 12px;
  --lp-radius-sm: 8px;
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* One vertical rhythm for every full-width section. */
  --lp-section-y: clamp(84px, 9vw, 120px);
  /* Stage colours (--lp-decide/act/measure/learn) come from theme.css. */

  /* Ambient effect tokens, dark scheme. Light is emitted here: glows are
     the stage colours themselves, lines and dots are lifted text. */
  --lp-aurora-1: color-mix(in srgb, var(--lp-decide) 40%, transparent);
  --lp-aurora-2: color-mix(in srgb, var(--lp-learn) 26%, transparent);
  --lp-aurora-3: color-mix(in srgb, var(--lp-measure) 18%, transparent);
  --lp-grid-dot: color-mix(in srgb, var(--text) 17%, transparent);
  --lp-grid-line: color-mix(in srgb, var(--text) 5%, transparent);
  --lp-spot-dot: color-mix(in srgb, var(--primary-text) 70%, transparent);
  --lp-spot-opacity: .85;
  --lp-grain-opacity: .05;
  --lp-grain-blend: overlay;
  --lp-demo-glow: color-mix(in srgb, var(--primary) 26%, transparent);
  --lp-beam-a: var(--primary-text);
  --lp-beam-b: var(--lp-learn);
  --lp-cyc-glow-mix: 13%;
  --lp-cyc-glow-base: transparent;
  --lp-final-glow-core: color-mix(in srgb, var(--primary) 20%, transparent);
  --lp-final-glow-edge: color-mix(in srgb, var(--lp-learn) 6%, transparent);
  --lp-beam-line: color-mix(in srgb, var(--text) 7%, transparent);
  --lp-drop-a: color-mix(in srgb, var(--primary-text) 90%, transparent);
  --lp-drop-b: color-mix(in srgb, var(--lp-learn) 85%, transparent);
  --lp-card-glow: color-mix(in srgb, var(--primary-text) 9%, transparent);
  --lp-shadow-md: var(--shadow-md);
  --lp-shadow-lg: var(--shadow-lg);
}

/* Light scheme. A tinted glow over a pale ground reads as a smudge, so
   light is expressed the other way round: glows are white light leaks
   (--p-depth is the palette's lightest point) with only a pastel hint of
   the stage colours, and texture comes from the warm accent instead of
   lifted text. data-scheme mirrors the palette's own --p-scheme, so any
   light palette gets this, not just the current one. */
:root[data-scheme="light"] {
  --lp-aurora-1: color-mix(in srgb, var(--p-depth) 85%, transparent);
  --lp-aurora-2: color-mix(in srgb, var(--lp-learn) 16%, transparent);
  --lp-aurora-3: color-mix(in srgb, var(--lp-measure) 13%, transparent);
  --lp-grid-dot: color-mix(in srgb, var(--primary) 28%, transparent);
  --lp-grid-line: color-mix(in srgb, var(--primary) 7%, transparent);
  --lp-spot-dot: color-mix(in srgb, var(--primary) 60%, transparent);
  --lp-spot-opacity: .7;
  --lp-grain-opacity: .07;
  --lp-grain-blend: multiply;
  --lp-demo-glow: color-mix(in srgb, var(--p-depth) 90%, transparent);
  --lp-beam-a: var(--primary);
  --lp-beam-b: var(--lp-learn);
  --lp-cyc-glow-mix: 9%;
  --lp-cyc-glow-base: color-mix(in srgb, var(--p-depth) 55%, transparent);
  --lp-final-glow-core: color-mix(in srgb, var(--p-depth) 80%, transparent);
  --lp-final-glow-edge: color-mix(in srgb, var(--lp-learn) 7%, transparent);
  --lp-beam-line: color-mix(in srgb, var(--primary) 10%, transparent);
  --lp-drop-a: color-mix(in srgb, var(--primary) 65%, transparent);
  --lp-drop-b: color-mix(in srgb, var(--lp-learn) 65%, transparent);
  --lp-card-glow: color-mix(in srgb, var(--p-depth) 70%, transparent);
  /* The theme's --shadow-cast resolves to the ground itself in a light
     palette, so its shadows vanish. Cast them from the deep accent instead:
     a warm, low-alpha shadow that reads as paper lifting off the page. */
  --lp-shadow-md: 0 14px 34px -14px color-mix(in srgb, var(--p-accent-deep) 30%, transparent), 0 2px 6px color-mix(in srgb, var(--p-accent-deep) 8%, transparent);
  --lp-shadow-lg: 0 40px 90px -30px color-mix(in srgb, var(--p-accent-deep) 38%, transparent), 0 8px 24px -8px color-mix(in srgb, var(--p-accent-deep) 14%, transparent);
}

.lp { background: var(--cw-bg); overflow-x: clip; }
.lp section { position: relative; }
.lp-shell { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding: 0 28px; }

/* ---------- Shared type ---------- */
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 5px 11px 5px 9px;
  border: 1px solid var(--cw-border); border-radius: 999px;
  background: var(--cw-surface);
  color: var(--cw-text-soft); font-size: 11px; font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase;
}
.lp-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cw-green); }
.lp h2.lp-title { margin: 0; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.lp .lp-lead { margin: 18px 0 0; max-width: 56ch; color: var(--cw-muted); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.lp h1, .lp h2, .lp h3 { text-wrap: balance; }

html { scroll-behavior: smooth; }

/* ---------- Sticky nav ----------
   The bar itself stays max-width; the backdrop is a full-bleed pseudo so the
   blur spans the viewport. It only appears once the page has scrolled. */
.lp .marketing-nav { position: sticky; top: 0; border-bottom-color: transparent; transition: border-color .3s var(--lp-ease); }
.lp .marketing-nav::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: color-mix(in srgb, var(--cw-bg) 78%, transparent);
  border-bottom: 1px solid var(--cw-border-soft);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  opacity: 0; transition: opacity .3s var(--lp-ease);
}
.lp .marketing-nav.is-scrolled::before { opacity: 1; }

/* ---------- Reveal-on-scroll ----------
   Rise + de-blur as a block enters the viewport. */
.reveal {
  opacity: 0; transform: translateY(24px); filter: blur(4px);
  transition: opacity .8s var(--lp-ease), transform .8s var(--lp-ease), filter .8s var(--lp-ease);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* Staggered groups: the container stays put and its children cascade in.
   JS sets --i on each child and marks the group "done" afterwards so the
   children get their own hover transitions back. */
.reveal[data-stagger] { opacity: 1; transform: none; filter: none; }
.reveal[data-stagger]:not([data-stagger="done"]) > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--lp-ease), transform .6s var(--lp-ease);
  transition-delay: calc(var(--i, 0) * 70ms + 100ms);
}
.reveal[data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------- Entrance keyframes ----------
   fill-mode "backwards" only holds the start frame during the delay, so the
   animated transform never outlives the entrance and blocks hover lifts. */
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lp-rise-sm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lp-float-in { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }

/* Hero plays on load, line by line, then the demo settles in. */
.lp-hero__copy > * { animation: lp-rise .9s var(--lp-ease) backwards; }
.lp-hero__copy > :nth-child(2) { animation-delay: .1s; }
.lp-hero__copy > :nth-child(3) { animation-delay: .2s; }
.lp-hero__copy > :nth-child(4) { animation-delay: .28s; }
.lp-hero__copy > :nth-child(5) { animation-delay: .36s; }
.lp-hero__demo { animation: lp-float-in 1.1s var(--lp-ease) .25s backwards; }

/* ==========================================================
   HERO
   ========================================================== */
.lp-hero { padding: clamp(56px, 7vw, 88px) 0 var(--lp-section-y); border-bottom: 1px solid var(--cw-border-soft); overflow: hidden; }
.lp-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.lp-hero__copy { max-width: 580px; }
.lp-hero h1 {
  margin: 0; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02;
  font-weight: 800; letter-spacing: -0.035em;
}
.lp-hero h1 .accent { display: block; color: var(--cw-text); }
.lp-hero__support { margin: 28px 0 0; max-width: 46ch; color: var(--cw-text-soft); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.lp-hero__reassurance { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 14px 0 0 2px; color: var(--cw-muted); font-size: 12.5px; line-height: 1.45; }
.lp-hero__reassurance strong { color: var(--cw-text-soft); font-weight: 700; }
.lp-hero__proof { display: flex; align-items: center; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cw-border-soft); color: var(--cw-muted); font-size: 12.5px; }
.lp-hero__proof .sep { width: 1px; align-self: stretch; background: var(--cw-border); }
.lp-hero__tag { color: var(--cw-muted); }
.lp-hero__cycle { --loop-pad: 44px; position: relative; display: inline-block; padding-bottom: var(--loop-pad); }
.lp-hero__cycle .cycle-row { display: flex; align-items: center; gap: 7px; }
.lp-hero__cycle .cycle-row strong { font-weight: 700; }
.lp-hero__cycle .cycle-row [data-stage="decide"] { color: var(--lp-decide); }
.lp-hero__cycle .cycle-row [data-stage="act"] { color: var(--lp-act-text); }
.lp-hero__cycle .cycle-row [data-stage="measure"] { color: var(--lp-measure-text); }
.lp-hero__cycle .cycle-row .arw { color: var(--cw-muted); }
.cycle-loop { position: absolute; left: 0; top: 100%; width: 100%; height: 28px; overflow: visible; transform: translateY(calc(var(--loop-pad) * -1)); pointer-events: none; }
.cycle-loop .loop-line { fill: none; stroke: var(--lp-learn); stroke-width: 1.5; stroke-linecap: round; }
.cycle-loop .loop-head { fill: none; stroke: var(--lp-learn); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Sits under the loop line, so it needs no background to mask the stroke. */
.cycle-learn { position: absolute; top: 100%; transform: translate(-50%, calc(var(--loop-pad) * -1 + 22px)); padding: 0 7px; color: var(--lp-learn); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: capitalize; white-space: nowrap; }

/* ==========================================================
   HERO DESK: the strategist marks up the channel.
   Five scenes share one grid cell, so the card keeps its height while they
   change. The pen (ink, notes, keyframes) is defined in saas.css.
   ========================================================== */
.desk { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--cw-border); border-radius: var(--lp-radius); background: linear-gradient(180deg, var(--cw-surface) 0%, var(--cw-bg-soft) 100%); box-shadow: var(--lp-shadow-lg); }
/* No labels on the examples: named tabs read as a list of features. */
.desk-dots { display: flex; align-items: center; gap: 8px; }
.desk-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--cw-border); cursor: pointer; transition: width .3s var(--lp-ease), background-color .3s ease; }
.desk-dots button::after { content: ""; position: absolute; inset: -10px -4px; }
.desk-dots button:hover { background: var(--cw-muted); }
.desk-dots button[aria-selected="true"] { width: 24px; background: var(--pen); }
.desk-dots button:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 4px; }
.desk-scenes { display: grid; }
.desk-scene { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s .35s; }
.desk-scene.is-active { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.desk-title { margin: 0; color: var(--cw-text); font-size: 15px; font-weight: 600; }
.desk-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; transform: rotate(-1.2deg); transform-origin: left center; }
.desk-note span { min-width: 0; }
.desk-glyph { flex: none; width: 22px; height: 22px; overflow: visible; }
.desk-scene.is-playing .pen-ink { animation: pen-draw var(--dur, .55s) cubic-bezier(.6, .1, .3, 1) var(--d, 0s) backwards; }
.desk-scene.is-playing .desk-note span { animation: pen-write var(--dur, .7s) ease-out var(--d, 0s) backwards; }
.desk-scene.is-playing .pen-mark--strike > svg, .desk-scene.is-playing .pen-mark--under > svg { animation: pen-write var(--dur, .45s) ease-out var(--d, 0s) backwards; }
.desk-scene.is-playing .pen-mark--strike .pen-ink, .desk-scene.is-playing .pen-mark--under .pen-ink { animation: none; }

.desk-chart { display: block; width: 100%; height: auto; overflow: visible; }
.desk-chart text { fill: var(--cw-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.desk-chart .grid { fill: none; stroke: var(--cw-border); stroke-width: 1; }
.desk-chart .curve { fill: none; stroke: var(--primary-text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

.desk-comments { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.desk-comments li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--cw-text); font-size: 14px; line-height: 1.5; }
.desk-comments i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--cw-border); color: var(--cw-muted); font-size: 12px; font-style: normal; font-weight: 600; }
.desk-comments p { margin: 3px 0 0; }

.desk-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cw-border-soft); }
.desk-rows li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--cw-border-soft); }
.desk-rows .desk-glyph { width: 26px; height: 26px; }
.desk-rows p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.desk-rows strong { color: var(--cw-text); font-size: 14px; font-weight: 600; }
.desk-rows span { color: var(--cw-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.desk-weeks { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; }
.desk-weeks div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.desk-weeks small { min-height: 16px; color: var(--cw-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.desk-weeks b { width: 56%; border-radius: 3px 3px 0 0; background: var(--primary-text); opacity: .55; }
.desk-weeks u { width: 10px; height: 10px; margin-top: 4px; border: 1.5px solid var(--cw-muted); border-radius: 50%; }
.desk-weeks u.on { border-color: var(--cw-text); background: var(--cw-text); }
.desk-weeks > svg { position: absolute; left: calc(40% - 8px); bottom: -10px; width: calc(30% + 16px); height: 34px; overflow: visible; pointer-events: none; }
.desk-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; color: var(--cw-muted); font-size: 12px; }

/* The thumbnail is a picture, so its colours do not follow the palette. */
.desk-thumb { position: relative; aspect-ratio: 16 / 7; max-width: 100%; border-radius: 10px; overflow: hidden; background: #1C3350; }
.desk-thumb::before, .desk-thumb::after { content: ""; position: absolute; inset: 0; }
.desk-thumb::before { background: #6E8FB5; clip-path: polygon(0 70%, 22% 38%, 38% 60%, 58% 28%, 80% 58%, 100% 44%, 100% 100%, 0 100%); }
.desk-thumb::after { background: #DCE8F5; clip-path: polygon(0 82%, 30% 70%, 55% 80%, 78% 68%, 100% 78%, 100% 100%, 0 100%); }
.desk-thumb time { position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 4px; background: #0D111B; color: #E6EDFA; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.desk-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.desk-stats div { display: flex; flex-direction: column; gap: 2px; }
.desk-stats dt { color: var(--cw-muted); font-size: 12px; }
.desk-stats dd { margin: 0; color: var(--cw-text); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .desk-scene, .desk-scene.is-active, .desk-dots button { transition: none; }
  .desk-scene.is-playing .pen-ink, .desk-scene.is-playing .desk-note span, .desk-scene.is-playing .pen-mark > svg { animation: none; }
}
.demo-reco-label { color: var(--cw-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }

/* ---------- Hero ambient backdrop ----------
   Aurora blobs in the loop's own stage colours, a dot grid that fades out
   toward the edges, a brighter copy of the grid revealed under the cursor,
   and a fixed film grain. Blobs are radial gradients moved with transforms
   only, so the drift stays on the compositor. */
.lp-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lp-hero > .lp-shell { position: relative; z-index: 1; }

.lp-bg__aurora { position: absolute; inset: 0; }
.lp-bg__aurora i {
  position: absolute; width: min(62vw, 820px); aspect-ratio: 1; border-radius: 50%;
  will-change: transform; animation: lp-drift 26s ease-in-out infinite alternate;
}
.lp-bg__aurora i:nth-child(1) { top: -34%; right: -6%; background: radial-gradient(circle, var(--lp-aurora-1), transparent 62%); }
.lp-bg__aurora i:nth-child(2) { top: 6%; right: 22%; width: min(48vw, 640px); background: radial-gradient(circle, var(--lp-aurora-2), transparent 62%); animation-duration: 32s; animation-delay: -9s; }
.lp-bg__aurora i:nth-child(3) { bottom: -46%; left: -14%; background: radial-gradient(circle, var(--lp-aurora-3), transparent 62%); animation-duration: 38s; animation-delay: -17s; }
@keyframes lp-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(5%, 7%, 0) scale(1.1); }
  100% { transform: translate3d(-7%, -3%, 0) scale(.94); }
}

.lp-bg__grid, .lp-bg__spot {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.5px);
  background-size: 26px 26px; background-position: 13px 13px;
}
.lp-bg__grid {
  --dot: var(--lp-grid-dot);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 10%, transparent 72%);
}
.lp-bg__spot {
  --dot: var(--lp-spot-dot);
  -webkit-mask-image: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), #000, transparent 70%);
          mask-image: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), #000, transparent 70%);
  opacity: 0; transition: opacity .5s ease;
}
.lp-hero:hover .lp-bg__spot { opacity: var(--lp-spot-opacity); }
.lp-bg__grain {
  position: absolute; inset: 0; opacity: var(--lp-grain-opacity); mix-blend-mode: var(--lp-grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Loop section backdrop ----------
   Hairline grid (Linear-style) with a glow that takes the active step's
   colour. --cyc-glow is registered so the colour change can transition. */
@property --cyc-glow { syntax: '<color>'; inherits: true; initial-value: transparent; }
.lp-cycle > .lp-shell, .lp-final > .lp-shell { position: relative; z-index: 1; }
.lp-cycle { --cyc-glow: var(--lp-decide); transition: --cyc-glow 1s var(--lp-ease); }
.lp-cycle[data-step="act"] { --cyc-glow: var(--lp-act); }
.lp-cycle[data-step="measure"] { --cyc-glow: var(--lp-measure); }
.lp-cycle[data-step="learn"] { --cyc-glow: var(--lp-learn); }
.lp-bg__lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--lp-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lp-grid-line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000, transparent 75%);
}
.lp-bg--cycle .lp-bg__glow {
  position: absolute; left: 50%; top: 58%; width: min(1100px, 110vw); height: 620px;
  translate: -50% -50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cyc-glow) var(--lp-cyc-glow-mix), var(--lp-cyc-glow-base)), transparent);
  animation: lp-breathe 10s ease-in-out infinite;
}

/* ---------- Final CTA backdrop ----------
   A breathing accent glow behind the headline and hairline beams with
   drops of light falling down them. */
.lp-bg--final .lp-bg__glow {
  position: absolute; left: 50%; top: 52%; width: min(960px, 120vw); height: 560px;
  translate: -50% -50%;
  background: radial-gradient(closest-side, var(--lp-final-glow-core), var(--lp-final-glow-edge) 60%, transparent);
  animation: lp-breathe 8s ease-in-out infinite;
}
.lp-beam {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px;
  background: linear-gradient(transparent, var(--lp-beam-line) 25%, var(--lp-beam-line) 75%, transparent);
  overflow: hidden;
}
.lp-beam::after {
  content: ''; position: absolute; left: 0; width: 1px; height: 90px; top: -90px;
  background: linear-gradient(transparent, var(--lp-drop-a));
  animation: lp-fall var(--t, 8s) linear var(--d, 0s) infinite;
}
.lp-beam:nth-of-type(even)::after { background: linear-gradient(transparent, var(--lp-drop-b)); }
@keyframes lp-fall { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(calc(100vh + 400px)); } }

/* Off-screen sections pause their ambient loops (JS toggles .is-idle). */
[data-ambient].is-idle *, [data-ambient].is-idle *::before, [data-ambient].is-idle *::after { animation-play-state: paused !important; }

/* ---------- Attention catchers ---------- */
/* Border beam: a short arc of light travelling around the product demo.
   The angle is a registered property so the conic gradient can animate. */
@property --beam-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.lp-hero__demo { position: relative; }
.lp-hero__demo::before {
  content: ''; position: absolute; inset: -14% -12% -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--lp-demo-glow), transparent);
  animation: lp-breathe 9s ease-in-out infinite;
}
@keyframes lp-beam { to { --beam-angle: 360deg; } }
@keyframes lp-breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.03); } }

/* Primary hero CTA: a light sweep every few seconds. */
.lp-hero__actions .button--primary { position: relative; overflow: hidden; isolation: isolate; }
.lp-hero__actions .button--primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--text-on-accent) 32%, transparent), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: lp-shine 6s var(--lp-ease) 2.2s infinite;
}
@keyframes lp-shine { 0% { transform: translateX(-120%) skewX(-18deg); } 22%, 100% { transform: translateX(320%) skewX(-18deg); } }

/* ==========================================================
   PROBLEM
   ========================================================== */
.lp-problem { padding: var(--lp-section-y) 0; border-bottom: 1px solid var(--cw-border-soft); background: var(--cw-bg-soft); }
.lp-problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 80px); align-items: center; }
.lp-problem__body p { margin: 22px 0 0; max-width: 50ch; color: var(--cw-muted); font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.lp-problem__body p strong { color: var(--cw-text); font-weight: 700; }
/* Pen marks on the loop's examples. A slide's marks draw each time it becomes
   the active one; the -b keyframes are the same strokes under a second name,
   so the change of slide restarts them. */
@keyframes pen-draw-b { 0% { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } 100% { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes pen-write-b { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }
.lp-cycle.is-live .cyc-slide.is-active .pen-ink { animation: pen-draw-b var(--dur, .55s) cubic-bezier(.6, .1, .3, 1) var(--d, 0s) backwards; }
.lp-cycle.is-live .cyc-slide.is-active .pen-note span { animation: pen-write-b var(--dur, .7s) ease-out var(--d, 0s) backwards; }
.lp-cycle.is-live .cyc-slide.is-active .pen-mark--strike > svg, .lp-cycle.is-live .cyc-slide.is-active .pen-mark--under > svg, .lp-cycle.is-live .cyc-slide.is-active .pen-mark--cross > svg { animation: pen-write-b var(--dur, .45s) ease-out var(--d, 0s) backwards; }
.lp-cycle.is-live .cyc-slide.is-active .pen-mark--strike .pen-ink, .lp-cycle.is-live .cyc-slide.is-active .pen-mark--under .pen-ink, .lp-cycle.is-live .cyc-slide.is-active .pen-mark--cross .pen-ink { animation: none; }
/* Stand-in thumbnails for the loop's example: a plain landscape, then the same
   video with a face and two words. Pictures, so they keep their own colours. */
.mini-thumb { position: relative; display: block; flex: none; width: 124px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #1C3350; }
.mini-thumb::before, .mini-thumb::after { content: ""; position: absolute; }
.mini-thumb::before { inset: 0; background: #6E8FB5; clip-path: polygon(0 70%, 22% 38%, 38% 60%, 58% 28%, 80% 58%, 100% 44%, 100% 100%, 0 100%); }
.mini-thumb::after { inset: 0; background: #DCE8F5; clip-path: polygon(0 82%, 30% 70%, 55% 80%, 78% 68%, 100% 78%, 100% 100%, 0 100%); }
.mini-thumb--face { background: #274B7A; }
.mini-thumb--face::before { inset: auto; left: 9%; bottom: -14%; width: 40%; aspect-ratio: 1 / 1.25; border-radius: 46% 46% 12% 12%; background: #E9C9A8; clip-path: none; }
.mini-thumb--face::after { inset: auto; right: 8%; top: 20%; width: 38%; height: 52%; clip-path: none; background: linear-gradient(#FFFFFF, #FFFFFF) left top / 100% 40% no-repeat, linear-gradient(#FFFFFF, #FFFFFF) left bottom / 68% 40% no-repeat; }
.thumb-swap { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.thumb-swap figure { margin: 0; display: grid; gap: 8px; }
.thumb-swap figcaption { color: var(--cw-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.thumb-swap__arw { color: var(--cw-muted); margin-bottom: 20px; }
.thumb-swap .pen-mark { display: block; }
.tl-thumbs { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--cw-muted); }
.tl-thumbs .mini-thumb { width: 84px; }
.cyc-note { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .lp-cycle .cyc-slide .pen-ink, .lp-cycle .cyc-slide .pen-note span, .lp-cycle .cyc-slide .pen-mark > svg { animation: none !important; }
}

/* The wall of numbers: everything YouTube Studio reports, and the one figure
   the strategist picks out. Once it is circled the rest steps back. */
.lp-wall { display: grid; gap: 24px; min-width: 0; }
.wall-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.wall-grid > div { min-width: 0; transition: opacity .9s ease 1.5s; }
.wall-grid dt { color: var(--cw-muted); font-size: 11.5px; line-height: 1.3; }
.wall-grid dd { margin: 4px 0 0; color: var(--cw-text); font-size: 21px; font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.reveal.is-in .wall-grid > div:not(.is-marked) { opacity: .38; }
.wall-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; transform: rotate(-1.2deg); transform-origin: left center; }
.wall-questions { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--cw-border); }
.wall-questions p { margin: 0; color: var(--cw-text); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.vs-pen { margin: auto 0 0; align-self: flex-end; transform: rotate(-3deg); }
.vs-result .pen-glyph { align-self: center; width: 20px; height: 20px; }

/* Pen marks outside the hero draw when their block scrolls into view. */
.reveal.is-in .pen-ink { animation: pen-draw var(--dur, .55s) cubic-bezier(.6, .1, .3, 1) var(--d, 0s) backwards; }
.reveal.is-in .pen-note span { animation: pen-write var(--dur, .7s) ease-out var(--d, 0s) backwards; }
.reveal.is-in .pen-mark--strike > svg, .reveal.is-in .pen-mark--under > svg { animation: pen-write var(--dur, .45s) ease-out var(--d, 0s) backwards; }
.reveal.is-in .pen-mark--strike .pen-ink, .reveal.is-in .pen-mark--under .pen-ink { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .wall-grid > div { transition: none; }
  .reveal.is-in .pen-ink, .reveal.is-in .pen-note span, .reveal.is-in .pen-mark > svg { animation: none; }
}
@media (max-width: 560px) {
  .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
  .wall-grid dd { font-size: 18px; }
}
.lp-qcards__link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 8px; padding-left: 4px; color: var(--cw-text); font-size: 14px; font-weight: 700; }
.lp-qcards__link .bar { width: 26px; height: 1px; background: var(--cw-red); }

/* ==========================================================
   GROWTH LOOP
   ========================================================== */

.loop-conn { position: absolute; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--cw-border); background: var(--cw-surface); color: var(--cw-muted); transform: translate(-50%, -50%); transition: color .4s var(--lp-ease), border-color .4s var(--lp-ease); }
.loop-conn svg { width: 15px; height: 15px; }
.loop-conn.is-active { color: var(--cw-text); border-color: var(--border-strong); }
.loop-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.loop-chip {
  padding: 5px 11px; border: 1px solid var(--cw-border-soft); border-radius: 999px;
  background: var(--cw-bg-soft); color: var(--cw-text-soft); font-size: 12px; font-weight: 550;
}

/* ==========================================================
   EXPERIMENT TIMELINE
   ========================================================== */
.lp-timeline { padding: 116px 0; border-bottom: 1px solid var(--cw-border-soft); background: var(--cw-bg-soft); }

.panel { border: 1px solid var(--cw-border); border-radius: var(--lp-radius); background: var(--cw-surface); overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--cw-border-soft); }
.panel__head .thumb { width: 54px; height: 32px; border-radius: 5px; background: linear-gradient(135deg,var(--surface-raised),var(--surface-soft)); border: 1px solid var(--cw-border-soft); flex: 0 0 auto; overflow: hidden; }
.panel__head .thumb img { width: 100%; height: 100%; object-fit: cover; }
.panel__head small { display: block; color: var(--cw-muted); font-size: 11px; }
.panel__head strong { font-size: 14px; }
.panel__body { padding: 20px; }

.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--cw-border); }
.tl__prog { position: absolute; left: 6px; top: 6px; width: 2px; height: 0; background: linear-gradient(var(--lp-decide), var(--lp-measure)); transition: height 1.2s var(--lp-ease); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .node { position: absolute; left: -26px; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--cw-bg-soft); background: var(--dot, var(--cw-muted)); box-shadow: 0 0 0 1px var(--cw-border); }
.tl-item[data-kind="publish"] { --dot: var(--cw-muted); }
.tl-item[data-kind="change"] { --dot: var(--lp-act); }
.tl-item[data-kind="result"] { --dot: var(--cw-green); }
.tl-item .date { color: var(--cw-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tl-item .label { margin-top: 3px; font-size: 14px; font-weight: 700; }
.tl-result { margin-top: 8px; display: inline-flex; align-items: baseline; gap: 10px; }
.tl-result .val { color: var(--cw-muted); font-size: 15px; font-weight: 700; }
.tl-result .val.hi { color: var(--cw-text); font-size: 20px; }
.tl-result .delta { color: var(--positive-text); font-size: 14px; font-weight: 800; }

.tl-graph { position: relative; margin-top: 4px; height: 96px; }
.tl-graph svg { width: 100%; height: 100%; }
.tl-graph__flag { position: absolute; top: 4px; display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 4px; background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning-text); font-size: 10px; font-weight: 700; transform: translateX(-50%); white-space: nowrap; }
.tl-graph .line { fill: none; stroke: var(--cw-green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tl-graph .before { fill: none; stroke: var(--cw-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-graph .nochange { fill: none; stroke: var(--cw-faint); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 4 4; }
.tl-graph .area { fill: url(#tlArea); opacity: .85; }
.tl-graph .marker { stroke: var(--cw-amber); stroke-width: 1.4; stroke-dasharray: 3 3; }

/* ==========================================================
   DECIDE SECTION (opportunities)
   ========================================================== */

.opp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.opp-card {
  display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--cw-border);
  border-radius: var(--lp-radius); background: var(--cw-surface);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.opp-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--lp-shadow-md); }
.opp-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.opp-type { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; }
.opp-type svg { width: 16px; height: 16px; }
.opp-type[data-t="title"] { color: var(--lp-decide); }
.opp-type[data-t="audience"] { color: var(--lp-measure-text); }
.opp-type[data-t="competitor"] { color: var(--lp-act-text); }
.opp-type[data-t="thumbnail"] { color: var(--lp-learn); }
.opp-tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--cw-border); background: var(--cw-bg-soft); color: var(--cw-muted); font-size: 11px; font-weight: 650; text-align: center; line-height: 1.3; }
.opp-tag.hi { border-color: color-mix(in srgb, var(--positive) 35%, transparent); color: var(--positive-text); background: color-mix(in srgb, var(--positive) 8%, transparent); }
.opp-card p { margin: 0 0 18px; color: var(--cw-text-soft); font-size: 14px; line-height: 1.6; }
.opp-card__action { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--cw-text); font-size: 13px; font-weight: 700; }
.opp-card__action svg { width: 15px; height: 15px; transition: transform .2s ease; }
.opp-card:hover .opp-card__action svg { transform: translateX(3px); }

/* ==========================================================
   MEASURE SECTION
   ========================================================== */
.lp-measure { padding: 116px 0; border-bottom: 1px solid var(--cw-border-soft); background: var(--cw-bg-soft); }

/* ==========================================================
   LEARN SECTION (playbook)
   ========================================================== */
.lp-learn { padding: 116px 0; border-bottom: 1px solid var(--cw-border-soft); }
.playbook { border: 1px solid var(--cw-border); border-radius: var(--lp-radius); background: var(--cw-surface); overflow: hidden; }
.playbook__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--cw-border-soft); font-size: 14px; font-weight: 750; }
.playbook__head svg { color: var(--lp-learn); width: 17px; height: 17px; }
.pb-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--cw-border-soft); }
.pb-item:last-child { border-bottom: 0; }
.pb-item .pb-name { font-size: 14.5px; font-weight: 650; }
.pb-item .pb-sub { color: var(--cw-muted); font-size: 12px; margin-top: 3px; }
.pb-score { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 128px; }
.pb-score .txt { font-size: 12px; font-weight: 700; }
.pb-track { width: 118px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.pb-track i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width 1.1s var(--lp-ease); }
.pb-item.good .txt { color: var(--positive-text); } .pb-item.good .pb-track i { background: var(--cw-green); }
.pb-item.mid .txt { color: var(--warning-text); } .pb-item.mid .pb-track i { background: var(--cw-amber); }
.pb-item.low .txt { color: var(--primary-text); } .pb-item.low .pb-track i { background: var(--cw-red); }
.pb-item.none .txt { color: var(--cw-muted); } .pb-item.none .pb-track i { background: var(--cw-faint); }

/* Playbook -> new opportunity connection */
.learn-col { display: grid; }
.learn-connector { display: grid; place-items: center; height: 26px; }
.learn-connector__line { position: relative; width: 2px; height: 100%; background: linear-gradient(var(--lp-learn), var(--lp-decide)); border-radius: 2px; overflow: hidden; }
.learn-connector__line::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(transparent, var(--text), transparent); animation: learn-flow 1.8s var(--lp-ease) infinite; }
@keyframes learn-flow { 0% { top: -40%; } 100% { top: 100%; } }
.learn-opp { padding: 16px; border: 1px solid color-mix(in srgb, var(--primary-text) 30%, transparent); border-radius: var(--lp-radius); background: linear-gradient(180deg, color-mix(in srgb, var(--primary-text) 8%, transparent), var(--cw-surface)); }
.learn-opp__badge { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-decide); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.learn-opp__badge svg { width: 16px; height: 16px; }
.learn-opp__reason { margin: 10px 0 12px; color: var(--cw-text-soft); font-size: 14px; line-height: 1.5; }
.learn-opp__try { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--cw-border-soft); border-radius: var(--lp-radius-sm); background: var(--cw-bg-soft); }
.learn-opp__try small { flex: 0 0 auto; color: var(--cw-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.learn-opp__try span { color: var(--cw-text); font-size: 14px; font-weight: 600; }

/* ==========================================================   LOOP CAROUSEL (Decide / Act / Measure / Learn in one section)
   ========================================================== */
.lp-cycle { padding: var(--lp-section-y) 0; border-bottom: 1px solid var(--cw-border-soft); scroll-margin-top: 0; }
.lp-cycle__head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.lp-cycle__head .lp-lead { margin-left: auto; margin-right: auto; max-width: 560px; }

/* Step tabs */
.cyc-tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 44px; }
.cyc-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 8px; border: 1px solid var(--cw-border); border-radius: 999px; background: var(--cw-surface); color: var(--cw-muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: color .25s ease, border-color .25s ease, background .25s ease; }
.cyc-tab .n { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--cw-bg-soft); font-size: 11px; font-weight: 700; color: var(--cw-muted); transition: background .25s ease, color .25s ease; }
.cyc-tab:hover { color: var(--cw-text-soft); border-color: var(--border-strong); }
.cyc-tab[aria-selected="true"] { color: var(--step-text, var(--step-color)); border-color: color-mix(in srgb, var(--step-color) 50%, var(--cw-border)); background: color-mix(in srgb, var(--step-color) 12%, transparent); }
/* The numeral sits on two layers of tint, so it is pulled toward the body text colour. */
.cyc-tab[aria-selected="true"] .n { background: color-mix(in srgb, var(--step-color) 22%, transparent); color: color-mix(in srgb, var(--step-text, var(--step-color)) 60%, var(--text)); }
.cyc-tab[data-tab="decide"] { --step-color: var(--lp-decide); }
.cyc-tab[data-tab="act"] { --step-color: var(--lp-act); --step-text: var(--lp-act-text); }
.cyc-tab[data-tab="measure"] { --step-color: var(--lp-measure); --step-text: var(--lp-measure-text); }
.cyc-tab[data-tab="learn"] { --step-color: var(--lp-learn); }
.cyc-tabs .arw { color: var(--cw-muted); font-size: 13px; }
/* Autoplay timer: the active tab fills along its bottom edge while the
   carousel is advancing on its own (JS sets .is-playing). */
.cyc-tab { position: relative; overflow: hidden; }
.cyc-tab::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--step-color); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.lp-cycle.is-playing .cyc-tab[aria-selected="true"]::after { opacity: .9; animation: lp-tab-timer var(--cyc-ms, 5000ms) linear forwards; }
@keyframes lp-tab-timer { to { transform: scaleX(1); } }

/* Viewport */
.cyc-viewport { position: relative; max-width: 1100px; margin: 0 auto; overflow: hidden; }
.cyc-track { display: flex; align-items: stretch; transition: transform .6s var(--lp-ease); }
.cyc-slide { flex: 0 0 100%; min-width: 100%; padding: 12px 6px 18px; display: flex; }
.cyc-slide__grid { flex: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cyc-slide__copy { max-width: 400px; }
.cyc-slide__copy .lp-eyebrow { margin-bottom: 24px; color: var(--step-text, var(--step-color)); border-color: color-mix(in srgb, var(--step-color) 35%, var(--cw-border)); }
.cyc-slide[data-slide="decide"] { --step-color: var(--lp-decide); }
.cyc-slide[data-slide="act"] { --step-color: var(--lp-act); --step-text: var(--lp-act-text); }
.cyc-slide[data-slide="measure"] { --step-color: var(--lp-measure); --step-text: var(--lp-measure-text); }
.cyc-slide[data-slide="learn"] { --step-color: var(--lp-learn); }
.cyc-slide__copy h3 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.14; font-weight: 800; letter-spacing: -0.02em; }
.cyc-slide__copy > p { margin: 18px 0 0; color: var(--cw-muted); font-size: 16px; line-height: 1.7; text-wrap: pretty; }
/* keep the product-UI column visually balanced across slides */

.cyc-slide .opp-grid { gap: 18px !important; }
.cyc-slide .opp-card { padding: 26px; }
.cyc-slide .opp-card p { margin-bottom: 22px; font-size: 14.5px; line-height: 1.65; }
.cyc-slide .opp-card__top { margin-bottom: 18px; }
/* trim the measure timeline panel so it isn't the tallest slide */
.cyc-slide[data-slide="measure"] .panel__body { padding: 16px 20px; }
.cyc-slide[data-slide="measure"] .tl-graph { height: 84px; }
.cyc-slide[data-slide="measure"] .tl-item { padding-bottom: 13px; }

/* Slide changes: neighbours fade while the track slides, and the arriving
   slide's copy and UI cascade in. Keyed on .is-live so the first slide
   plays when the section is actually seen, not at page load. */
.cyc-slide { opacity: .15; transition: opacity .6s var(--lp-ease); }
.cyc-slide.is-active { opacity: 1; }
.lp-cycle.is-live .cyc-slide.is-active .cyc-slide__copy > * { animation: lp-rise-sm .7s var(--lp-ease) backwards; }
.lp-cycle.is-live .cyc-slide.is-active .cyc-slide__copy > :nth-child(1) { animation-delay: .12s; }
.lp-cycle.is-live .cyc-slide.is-active .cyc-slide__copy > :nth-child(2) { animation-delay: .2s; }
.lp-cycle.is-live .cyc-slide.is-active .cyc-slide__copy > :nth-child(3) { animation-delay: .28s; }
.lp-cycle.is-live .cyc-slide.is-active .opp-card,
.lp-cycle.is-live .cyc-slide.is-active .cyc-slide__grid > .panel,
.lp-cycle.is-live .cyc-slide.is-active .learn-col > * { animation: lp-rise-sm .7s var(--lp-ease) .24s backwards; }
.lp-cycle.is-live .cyc-slide.is-active .opp-card:nth-child(2) { animation-delay: .3s; }
.lp-cycle.is-live .cyc-slide.is-active .opp-card:nth-child(3) { animation-delay: .36s; }
.lp-cycle.is-live .cyc-slide.is-active .opp-card:nth-child(4) { animation-delay: .42s; }
.lp-cycle.is-live .cyc-slide.is-active .learn-col > :nth-child(2) { animation-delay: .34s; }
.lp-cycle.is-live .cyc-slide.is-active .learn-col > :nth-child(3) { animation-delay: .44s; }

/* Dots / controls */
.cyc-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.cyc-dots { display: flex; gap: 8px; }
.cyc-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--border); cursor: pointer; transition: background .25s ease, width .25s ease; }
.cyc-dot[aria-selected="true"] { width: 26px; border-radius: 4px; background: var(--cw-red); }
.cyc-arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--cw-border); border-radius: 50%; background: var(--cw-surface); color: var(--cw-text-soft); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.cyc-arrow:hover { color: var(--cw-text); border-color: var(--border-strong); }
.cyc-arrow svg { width: 18px; height: 18px; }

/* ==========================================================   VS CHATBOTS
   ========================================================== */
.lp-vs { padding: var(--lp-section-y) 0; border-bottom: 1px solid var(--cw-border-soft); }
.lp-vs__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.lp-vs__head .lp-lead { margin-left: auto; margin-right: auto; max-width: 62ch; }
.vs-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 22px; max-width: 1040px; margin: 0 auto; align-items: stretch; }
.vs-col { display: flex; flex-direction: column; min-width: 0; }
.vs-col__label { display: flex; align-items: center; gap: 9px; margin: 0 0 12px 4px; color: var(--cw-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.vs-col__label svg { width: 15px; height: 15px; }
.vs-col--cw .vs-col__label { color: var(--cw-text); }
.vs-col__note { margin: 12px 0 0 4px; color: var(--cw-muted); font-size: 13px; line-height: 1.55; }

.vs-chat { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px dashed var(--cw-border); border-radius: var(--lp-radius); background: var(--cw-bg-soft); }
.vs-bubble { max-width: 92%; padding: 13px 15px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.vs-bubble p { margin: 0; }
.vs-bubble p + p { margin-top: 10px; }
.vs-bubble--user { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--cw-surface); border: 1px solid var(--cw-border); color: var(--cw-text); font-weight: 600; }
.vs-bubble--bot { align-self: flex-start; border-bottom-left-radius: 4px; background: transparent; border: 1px solid var(--cw-border-soft); color: var(--cw-muted); }

.vs-card { flex: 1; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--cw-border); border-radius: var(--lp-radius); background: var(--cw-surface); box-shadow: var(--lp-shadow-md); }
.vs-card__video { margin: 0 0 14px; color: var(--cw-text); font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.vs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vs-stat { padding: 10px 12px; border: 1px solid var(--cw-border-soft); border-radius: var(--lp-radius-sm); background: var(--cw-bg-soft); }
.vs-stat small { display: block; color: var(--cw-muted); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.vs-stat strong { display: block; margin-top: 4px; color: var(--cw-text); font-size: 16px; font-weight: 800; white-space: nowrap; }
.vs-stat .down { color: var(--negative-text, var(--cw-red)); font-weight: 750; }
.vs-card__why { margin: 16px 0; color: var(--cw-text-soft); font-size: 14px; line-height: 1.6; }
.vs-try { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--lp-decide) 35%, var(--cw-border)); border-radius: var(--lp-radius-sm); background: color-mix(in srgb, var(--lp-decide) 7%, transparent); }
.vs-try small { color: var(--cw-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.vs-try span { color: var(--cw-text); font-size: 14px; font-weight: 650; }
.vs-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cw-border-soft); color: var(--cw-muted); font-size: 13px; line-height: 1.5; }
.vs-result__date { padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--positive) 14%, transparent); color: var(--positive-text); font-size: 11px; font-weight: 750; }
.vs-result strong { color: var(--cw-text); }

.vs-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1040px; margin: 56px auto 0; }
.vs-point { padding: 4px 0 0 18px; border-left: 2px solid var(--cw-border); }
.vs-point h3 { margin: 0 0 8px; color: var(--cw-text); font-size: 16px; font-weight: 750; }
.vs-point p { margin: 0; color: var(--cw-muted); font-size: 14px; line-height: 1.6; }
.vs-foot { max-width: 1040px; margin: 44px auto 0; color: var(--cw-text-soft); font-size: 15px; font-weight: 600; text-align: center; }

@media (max-width: 820px) {
  .vs-compare { grid-template-columns: 1fr; gap: 32px; }
  .vs-points { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; }
}
@media (max-width: 560px) {
  .lp-vs__head { margin-bottom: 36px; text-align: left; }
  .vs-chat, .vs-card { padding: 18px; }
  .vs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-stat:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .vs-foot { text-align: left; }
}

/* ==========================================================   FAQ
   ========================================================== */
.lp-faq { padding: var(--lp-section-y) 0; border-bottom: 1px solid var(--cw-border-soft); background: var(--cw-bg-soft); }
.lp-faq__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.lp-faq__head { position: sticky; top: 108px; }
.lp-faq__list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--cw-border); border-radius: var(--lp-radius); background: var(--cw-surface); overflow: hidden; transition: border-color .25s ease; }
.faq-item.is-open { border-color: var(--border-strong); }
.faq-item__q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: transparent; border: 0; color: var(--cw-text); font-size: 16px; font-weight: 650; line-height: 1.4; text-align: left; cursor: pointer; }
.faq-item__q:hover { color: var(--cw-text); }
.faq-item__q .ic { flex: 0 0 auto; margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--cw-border); border-radius: 7px; color: var(--cw-muted); transition: transform .3s var(--lp-ease), color .25s ease, border-color .25s ease; }
.faq-item.is-open .faq-item__q .ic { transform: rotate(180deg); color: var(--primary-text); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.faq-item__q .ic svg { width: 15px; height: 15px; }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--lp-ease); }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p { opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .35s var(--lp-ease); }
.faq-item.is-open .faq-item__a p { opacity: 1; transform: none; transition-delay: .08s; }
.faq-item__a p { margin: 0; max-width: 62ch; padding: 0 64px 22px 22px; color: var(--cw-muted); font-size: 15px; line-height: 1.7; text-wrap: pretty; }

/* ==========================================================
   FINAL CTA
   ========================================================== */
.lp-final { padding: var(--lp-section-y) 0 calc(var(--lp-section-y) + 12px); text-align: center; overflow: hidden; }
.final-loop { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.final-loop span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border: 1px solid var(--cw-border); border-radius: 999px; background: var(--cw-surface); font-size: 12px; font-weight: 750; letter-spacing: .05em; }
.final-loop span[data-s="decide"] { color: var(--lp-decide); }
.final-loop span[data-s="act"] { color: var(--lp-act-text); }
.final-loop span[data-s="measure"] { color: var(--lp-measure-text); }
.final-loop span[data-s="learn"] { color: var(--lp-learn); }
/* Arrows are connectors, not stages: no pill. */
.final-loop span.arw, .final-loop span.rst { padding: 0; border: 0; background: none; }
.final-loop .arw { color: var(--cw-muted); }
.final-loop .rst { color: var(--cw-text-soft); font-size: 15px; }
.lp-final h2 { max-width: 760px; margin: 0 auto; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.lp-final p { max-width: 560px; margin: 22px auto 0; text-wrap: pretty; color: var(--cw-muted); font-size: 17px; line-height: 1.7; }
.lp-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }

/* ==========================================================
   CONTINUOUS SCROLL LINE (spine)
   ========================================================== */
.lp-spine { position: fixed; top: 0; left: 22px; width: 3px; height: 100vh; z-index: 20; pointer-events: none; }
.lp-spine__track { position: absolute; inset: 0; width: 100%; background: linear-gradient(var(--cw-border-soft), transparent); opacity: .5; }
.lp-spine__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--lp-decide), var(--lp-act) 35%, var(--lp-measure) 70%, var(--lp-learn)); border-radius: 3px; box-shadow: 0 0 12px color-mix(in srgb, var(--primary-text) 40%, transparent); transition: height .1s linear; }
.lp-spine__dot { position: absolute; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--text); transform: translate(-50%, -50%); box-shadow: 0 0 14px color-mix(in srgb, var(--text) 70%, transparent); }

/* ==========================================================
   HOVER & FOCUS MICRO-INTERACTIONS
   ========================================================== */
/* Nav links: underline grows from the centre. */
.lp .marketing-nav__links a { position: relative; padding: 6px 0; transition: color .2s ease; }
.lp .marketing-nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform .3s var(--lp-ease);
}
.lp .marketing-nav__links a:hover::after, .lp .marketing-nav__links a:focus-visible::after { transform: scaleX(1); }
.lp .marketing-footer a { transition: color .2s ease; }

/* Buttons: a soft accent glow, an arrow that leans forward, a press. */
.lp .button { transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--lp-ease), box-shadow .3s var(--lp-ease); }
.lp .button--primary:hover:not(:disabled) { box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--primary) 75%, transparent); }
.lp .button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.lp .button > span[aria-hidden] { display: inline-block; transition: transform .25s var(--lp-ease); }
.lp .button:hover > span[aria-hidden] { transform: translateX(3px); }

/* Cursor-following spotlight on cards (JS sets --mx/--my). */
.opp-card, .faq-item, .learn-opp { position: relative; isolation: isolate; }
.opp-card, .learn-opp { overflow: hidden; }
.opp-card::after, .faq-item::after, .learn-opp::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--lp-card-glow), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.opp-card:hover::after, .faq-item:hover::after, .learn-opp:hover::after { opacity: 1; }
.lp-qcards__link .bar { transition: width .35s var(--lp-ease); }
.lp-qcards__link:hover .bar { width: 42px; }

/* Loop tabs, arrows, dots */
.cyc-tab { transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s var(--lp-ease); }
.cyc-tab:hover { transform: translateY(-1px); }
.cyc-arrow { transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s var(--lp-ease); }
.cyc-arrow:hover { background: var(--surface-raised); }
.cyc-arrow:active { transform: scale(.94); }
.cyc-arrow svg { transition: transform .25s var(--lp-ease); }
.cyc-arrow[data-carousel-prev]:hover svg { transform: translateX(-2px); }
.cyc-arrow[data-carousel-next]:hover svg { transform: translateX(2px); }
.cyc-dot:not([aria-selected="true"]):hover { background: var(--cw-muted); }

/* Product panels inside slides */
.panel { transition: border-color .3s ease, box-shadow .3s var(--lp-ease); }
.cyc-slide .panel:hover { border-color: var(--border-strong); box-shadow: var(--lp-shadow-md); }
.pb-item { transition: background .2s ease; }
.pb-item:hover { background: var(--glass-faint); }
.loop-chip { transition: border-color .2s ease, color .2s ease; }
.loop-chip:hover { border-color: var(--border-strong); color: var(--cw-text); }
.learn-opp { transition: border-color .3s ease, transform .3s var(--lp-ease); }
.learn-opp:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary-text) 50%, transparent); }

/* FAQ */
.faq-item:hover { border-color: var(--border-strong); }
.faq-item:hover .faq-item__q .ic { color: var(--cw-text-soft); border-color: var(--border-strong); }
.faq-item.is-open:hover .faq-item__q .ic { color: var(--primary-text); }

/* Final loop pills pick up their stage colour on hover */
.final-loop span[data-s] { transition: border-color .25s ease, background .25s ease, transform .25s var(--lp-ease); }
.final-loop span[data-s="decide"] { --s: var(--lp-decide); }
.final-loop span[data-s="act"] { --s: var(--lp-act); }
.final-loop span[data-s="measure"] { --s: var(--lp-measure); }
.final-loop span[data-s="learn"] { --s: var(--lp-learn); }
.final-loop span[data-s]:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--s) 50%, var(--cw-border)); background: color-mix(in srgb, var(--s) 10%, var(--cw-surface)); }

/* Keyboard focus for the landing-only controls */
.cyc-tab:focus-visible, .cyc-dot:focus-visible, .cyc-arrow:focus-visible, .faq-item__q:focus-visible, .lp-qcards__link:focus-visible, .lp .marketing-nav__links a:focus-visible {
  outline: 2px solid var(--cw-blue); outline-offset: 2px;
}
.faq-item__q:focus-visible { outline-offset: -2px; border-radius: var(--lp-radius); }

@media (hover: none) {
  .learn-opp:hover, .opp-card:hover { transform: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .lp-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .lp-hero__copy { max-width: 620px; }
  .cyc-slide__grid { grid-template-columns: 1fr; gap: 28px; align-content: start; }
  .lp-faq__grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-faq__head { position: static; max-width: 620px; }
  .lp-spine { display: none; }
}
@media (max-width: 820px) {
  .lp-problem__grid { grid-template-columns: 1fr; gap: 40px; }
  .opp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp-shell { padding: 0 18px; }
  .lp-hero { padding: 40px 0 64px; }
  .lp-hero__proof { flex-direction: column; align-items: flex-start; gap: 22px; }
  .lp-hero__proof .sep { display: none; }
  :root { --lp-section-y: 72px; }
  /* Keep the pinned nav inside the viewport on phones. */
  .lp .marketing-nav { gap: 12px; }
  .lp .marketing-nav__actions .button--light { min-height: 36px; padding: 0 12px; white-space: nowrap; }
  .lp .marketing-nav__actions .icon-button { flex: 0 0 auto; }
  .lp-hero__actions .button { flex: 1 1 auto; }
  .cyc-tabs { gap: 6px; margin-bottom: 28px; }
  .cyc-tabs .arw { display: none; }
  .faq-item__q { font-size: 15px; padding: 17px 18px; }
  .faq-item__a p { padding: 0 18px 20px 18px; }
  /* loop carousel: stack opportunity cards in one column, show only the first two */
  .cyc-slide .opp-grid { grid-template-columns: 1fr !important; }
  .cyc-slide .opp-card:nth-of-type(n+3) { display: none; }
}
@media (max-width: 820px) {
  .lp-beam:nth-of-type(2), .lp-beam:nth-of-type(5) { display: none; }
}
@media (max-width: 420px) {
  .lp .marketing-nav .status-badge { display: none; }
}
/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .reveal[data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lp-hero__copy > *, .lp-hero__demo, .lp-cycle .cyc-slide * { animation: none !important; }
  .cyc-slide { opacity: 1; transition: none; }
  .faq-item__a p { opacity: 1; transform: none; transition: none; }
  .lp .marketing-nav::before { transition: none; }
  .faq-item__a, .faq-item__q .ic { transition: none; }
  .learn-connector__line::after { animation: none; }
  .lp-spine__fill { transition: none; }
  .lp-bg *, .lp-bg *::before, .lp-bg *::after { animation: none !important; }
  .demo::after, .lp-hero__actions .button--primary::after, .cyc-tab::after { display: none; }
  .lp-hero__demo::before { animation: none; }
  .opp-card:hover, .learn-opp:hover, .cyc-tab:hover, .final-loop span[data-s]:hover { transform: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
