/* ==================== BASE & HERO SYSTEM ==================== */
/* Lighter brand blue used by connector lines, ripples and video thumbs (not defined in headfooter.js) */
:root { --brand-400: #60a5fa; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--surface-muted);
  color: var(--ink-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ==================== SHELL ==================== */
.ph {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 0 5.5rem;
  background-color: var(--surface-muted);
}

.ph-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 3.5rem;
  align-items: center;
}

/* Soft brand mesh + fading grid behind the hero */
.ph-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 123, 246, 0.14), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(99, 102, 241, 0.12), transparent 40%),
    radial-gradient(circle at 70% 95%, rgba(14, 165, 233, 0.10), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
}

.ph-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

/* ==================== TYPOGRAPHY & BADGES ==================== */
.ph-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ph-badge b {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 999px;
}

.ph-title {
  font-size: clamp(2.3rem, 4.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-bottom: 1.25rem;
}

.ph-hl { color: inherit; background: none; }

.ph-lead {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-600);
}

/* ==================== CTAs ==================== */
.ph-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2rem;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ph-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.ph-btn:hover svg { transform: translateX(3px); }

.ph-btn.solid {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -4px rgba(37, 99, 235, 0.45);
}

.ph-btn.solid:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  transform: translateY(-2px);
}

.ph-btn.ghost {
  color: var(--ink-800);
  background-color: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.ph-btn.ghost:hover { border-color: #cfe0fb; transform: translateY(-2px); }

/* Floating glass card */
.ph-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 20px 35px -10px rgba(11, 19, 36, 0.15), 0 1px 3px rgba(11, 19, 36, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.ph-card strong { display: block; font-size: 0.82rem; font-weight: 800; color: var(--ink-900); line-height: 1.25; }
.ph-card span:not(.ph-ico):not(.ph-pill) { display: block; font-size: 0.72rem; font-weight: 600; color: var(--ink-500); line-height: 1.35; }

/* Icon tile */
.ph-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--ic, var(--brand-600));
  background-color: var(--ib, #e0edff);
}

.ph-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==================== WORKFLOW BUILDER (LIGHT THEME) ==================== */
.ph-stage { position: relative; }

.au-canvas {
  position: relative;
  padding: 1.25rem 1.25rem 1.6rem;
  background-color: #ffffff;
  background-image: radial-gradient(rgba(37, 99, 235, 0.14) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 60px -25px rgba(37, 99, 235, 0.22), 0 12px 28px -10px rgba(11, 19, 36, 0.08);
}

/* Builder top bar */
.au-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
}
.au-bar-info { display: flex; align-items: center; gap: 0.65rem; }
.au-bar-info .ph-ico { width: 34px; height: 34px; border-radius: 8px; }
.au-bar-info b { display: block; font-size: 0.85rem; font-weight: 800; color: var(--ink-900); line-height: 1.2; }
.au-bar-info small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--ink-500); }

.au-bar .live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  background-color: #d1fae5;
  border-radius: 999px;
}
.au-bar .live i { width: 6px; height: 6px; border-radius: 50%; background-color: #10b981; animation: phBlink 1.2s ease-in-out infinite; }

/* Flow nodes & pipeline */
.au-flow { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }

.au-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 340px);
  padding: 0.75rem 0.95rem;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(11, 19, 36, 0.05);
  animation: auActive 8s ease-in-out infinite;
  animation-delay: var(--t);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.au-node:hover { transform: translateY(-2px); border-color: #93c5fd; }
.au-node .ph-ico { width: 36px; height: 36px; border-radius: 10px; }
.au-node-text { flex: 1; min-width: 0; }
.au-node small {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--k, var(--brand-600));
}
.au-node b {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.au-node .meta {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-500);
}
.au-node .ok {
  margin-left: 0.4rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #10b981;
}
.au-node .ok svg { width: 11px; height: 11px; stroke: #ffffff; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Connecting line */
.au-line {
  width: 2px;
  height: 26px;
  background: repeating-linear-gradient(180deg, var(--brand-500) 0 5px, transparent 5px 10px);
  background-size: 2px 10px;
  animation: auFlow 0.6s linear infinite;
}

/* Decision Split */
.au-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  width: 100%;
  padding-top: 32px;
}
.au-split > svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  overflow: visible;
}
.au-split path { fill: none; stroke: var(--brand-400); stroke-width: 2; stroke-dasharray: 6 5; animation: auDash 0.6s linear infinite; }

.au-branch { display: grid; justify-items: center; gap: 0; }
.au-branch .au-node { width: 100%; padding: 0.65rem 0.8rem; }
.au-branch .au-node .ph-ico { width: 32px; height: 32px; }
.au-branch .au-node b { font-size: 0.74rem; }
.au-tag {
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 999px;
  color: var(--c);
  background-color: var(--b);
}

/* Floating stat badges */
/* Raised so it sits above the builder bar instead of covering the title / Active badge */
.au-saved { top: -2.9rem; right: 1.5rem; }
.au-saved .ph-ico { --ic: #059669; --ib: #d1fae5; }
.au-runs { bottom: -2.25rem; left: -2.25rem; }
.au-runs .ph-ico { --ic: #7c3aed; --ib: #ede9fe; }

.au-templates { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2rem; }
.au-templates span {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-700);
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(11, 19, 36, 0.05);
}

@keyframes auFlow { to { background-position: 0 10px; } }
@keyframes auDash { to { stroke-dashoffset: -11; } }
@keyframes auActive {
  0%, 18%, 100% { box-shadow: 0 4px 14px rgba(11, 19, 36, 0.05); transform: none; }
  6%, 12% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 12px 24px -6px rgba(37, 99, 235, 0.35); transform: translateY(-2px); border-color: var(--brand-400); }
}

/* ==================== ANIMATION ==================== */
.ph-in { animation: phUp 0.85s var(--ease) both; }
.ph-in.d1 { animation-delay: 0.08s; }
.ph-in.d2 { animation-delay: 0.16s; }
.ph-in.d3 { animation-delay: 0.24s; }
.ph-in.d4 { animation-delay: 0.36s; }

.ph-float { animation: phFloat 6s ease-in-out infinite; }
.ph-float.f2 { animation-duration: 7s; animation-delay: -2s; }

@keyframes phUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes phFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes phDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(1.1); }
}

@keyframes phBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .ph { padding: 4rem 0 4.5rem; }
  /* minmax(0, 1fr): a plain 1fr can't shrink below its content, which pushed the hero past the screen edge */
  .ph-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .ph-copy { max-width: 680px; }
  /* Keep the runs card inside the page gutter (the hero clips overflow) */
  .au-runs { left: 1rem; bottom: -1.75rem; }
}

@media (max-width: 768px) {
  .ph-container { padding: 0 1.25rem; }
  .ph-lead { font-size: 1rem; }
}

@media (max-width: 580px) {
  .ph { padding: 3rem 0 3.5rem; }
  .ph-title { font-size: 2.15rem; }
  .ph-ctas .ph-btn { width: 100%; }
  .au-split { grid-template-columns: 1fr; }
  .au-node b { white-space: normal; }
  .au-split > svg { display: none; }
  /* Phones: the saved card stops floating and sits at the top of the builder, so it can't overlap the chips or title */
  .au-canvas { display: flex; flex-direction: column; }
  .au-saved { position: relative; top: auto; right: auto; order: -1; align-self: center; margin-bottom: 1rem; box-shadow: 0 6px 16px -8px rgba(11, 19, 36, 0.18); border-color: var(--line); animation: none; }
  .au-runs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ph *, .ph *::before, .ph *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==================== PAGE SECTIONS ==================== */
.am-sec { position: relative; padding: 6.5rem 0; overflow: hidden; }
.am-sec.white { background-color: var(--surface); }
.am-wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.am-sec h2, .am-sec h3, .am-sec h4 { color: var(--ink-900); }
.am-eb { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.9rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); }
.am-eb::before { content: "⚡"; }
.am-h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.035em; }
.am-p { margin-top: 1rem; font-size: 1.03rem; line-height: 1.75; color: var(--ink-600); }
.am-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }

.rv-on [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rv-on [data-rv].in { opacity: 1; transform: none; }

/* ---------- 1. Tasks get stamped "automated" ---------- */
.am-tasks-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.am-helps { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem; margin-top: 1.5rem; list-style: none; }
.am-helps li { position: relative; padding-left: 1.4rem; font-size: 0.92rem; font-weight: 600; color: var(--ink-700); }
.am-helps li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 9px; height: 9px; border-radius: 3px; background-color: var(--brand-600); transform: rotate(45deg); }

.am-board { position: relative; padding: 1.5rem; background-color: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); }
.am-board-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.am-board-h b { font-size: 0.95rem; font-weight: 800; color: var(--ink-900); }
.am-saved-tag { padding: 0.3rem 0.7rem; font-size: 0.75rem; font-weight: 800; color: #047857; background-color: #d1fae5; border-radius: 999px; }
.am-task { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 0.8rem; align-items: center; padding: 0.85rem 0.9rem; margin-bottom: 0.55rem; border-radius: 14px; background-color: var(--surface-muted); }
.am-task .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #cbd5e1; background-color: #fff; transition: all 0.4s ease; }
.am-task span { font-size: 0.9rem; font-weight: 600; color: var(--ink-800); transition: color 0.4s ease; }
.am-task em { padding: 0.25rem 0.6rem; font-style: normal; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; border-radius: 8px; background: linear-gradient(160deg, var(--brand-500), #4f46e5); transform: rotate(-4deg); }
.am-task .box { border-color: transparent; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat, #10b981; }
.am-task span { color: var(--ink-500); text-decoration: line-through; text-decoration-color: #94a3b8; }
.rv-on .am-board:not(.in) .am-task .box { background: #fff; border-color: #cbd5e1; }
.rv-on .am-board:not(.in) .am-task span { color: var(--ink-800); text-decoration: none; }
.rv-on .am-board .am-task em { opacity: 0; transform: scale(1.8) rotate(-4deg); transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.rv-on .am-board.in .am-task em { opacity: 1; transform: rotate(-4deg); }
.am-board.in .am-task:nth-child(2) em, .am-board.in .am-task:nth-child(2) .box { transition-delay: 0.3s; }
.am-board.in .am-task:nth-child(3) em, .am-board.in .am-task:nth-child(3) .box { transition-delay: 0.6s; }
.am-board.in .am-task:nth-child(4) em, .am-board.in .am-task:nth-child(4) .box { transition-delay: 0.9s; }
.am-board.in .am-task:nth-child(5) em, .am-board.in .am-task:nth-child(5) .box { transition-delay: 1.2s; }
.am-board.in .am-task:nth-child(6) em, .am-board.in .am-task:nth-child(6) .box { transition-delay: 1.5s; }
.am-robot { position: absolute; right: -1.25rem; bottom: -1.5rem; display: grid; place-items: center; width: 78px; height: 78px; font-size: 2.2rem; border-radius: 24px; background: linear-gradient(160deg, #eef2ff, #fff); border: 1px solid #c7d2fe; box-shadow: var(--shadow-lg); animation: amBob 3s ease-in-out infinite; }

/* ---------- 2. Automation engine ---------- */
.am-gear-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }

.am-engine {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
}

.am-eng-bar { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 0.72rem; font-weight: 700; color: var(--ink-500); }
.am-eng-bar .live { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; color: #047857; background-color: #d1fae5; border-radius: 999px; }
.am-eng-bar .live i { width: 6px; height: 6px; border-radius: 50%; background-color: #10b981; animation: phBlink 1.2s ease-in-out infinite; }

.am-eng-stage { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.am-eng-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.am-eng-lines .orbit { fill: none; stroke: rgba(37, 99, 235, 0.18); stroke-width: 1.5; stroke-dasharray: 3 7; transform-origin: 200px 200px; animation: amSpin 40s linear infinite; }
.am-eng-lines .spoke { fill: none; stroke: rgba(37, 99, 235, 0.35); stroke-width: 2; stroke-dasharray: 6 6; animation: auDash 0.8s linear infinite reverse; }
.am-eng-lines .pulse { fill: var(--brand-500); }

.am-core { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; }
.am-core-gear { position: absolute; inset: 0; width: 100%; height: 100%; animation: amSpin 16s linear infinite; filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.2)); }
.am-core-gear path { fill: url(#amGearFill); stroke: url(#amGearFill); stroke-width: 2.5; stroke-linejoin: round; }
.am-core-gear circle { fill: #ffffff; }
.am-core-gear circle.rim { fill: rgba(255, 255, 255, 0.28); }
.am-core-hub { position: relative; display: grid; justify-items: center; gap: 0.2rem; text-align: center; }
.am-core-hub::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(37, 99, 235, 0.25); animation: phPulse 2.4s ease-out infinite; z-index: -1; }
.am-core-hub b { font-size: 0.95rem; font-weight: 800; color: var(--ink-900); line-height: 1.1; }
.am-core-hub small { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); }

.am-pod {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 44%;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 20px -8px rgba(11, 19, 36, 0.12);
  transform: translate(-50%, -50%);
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
  animation: amPodGlow 8s ease-in-out infinite;
  animation-delay: var(--d);
}
.am-pod.p1 { left: 19.5%; top: 22%; }
.am-pod.p2 { left: 80.5%; top: 22%; }
.am-pod.p3 { left: 80.5%; top: 78%; }
.am-pod.p4 { left: 19.5%; top: 78%; }
.am-pod .ph-ico { width: 32px; height: 32px; border-radius: 9px; --ic: var(--c); --ib: var(--b); }
.am-pod .ph-ico svg { width: 16px; height: 16px; }
.am-pod b { display: block; font-size: 0.76rem; font-weight: 800; line-height: 1.25; color: var(--ink-900); }
.am-pod small { display: block; font-size: 0.64rem; font-weight: 700; color: var(--c); }
.rv-on .am-engine:not(.in) .am-pod { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
.am-engine.in .am-pod.p2 { transition-delay: 0.15s; }
.am-engine.in .am-pod.p3 { transition-delay: 0.3s; }
.am-engine.in .am-pod.p4 { transition-delay: 0.45s; }

.am-outs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1.75rem; }
.am-out { position: relative; padding: 1.15rem 1.2rem 1.2rem; background-color: #fff; border: 1px solid var(--line); border-radius: 18px; transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease; }
.am-out::before { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background-color: var(--c); }
.am-out:hover { transform: translateY(-3px); border-color: var(--b); box-shadow: var(--shadow-lg); }
.am-out-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.am-out-h .ph-ico { width: 38px; height: 38px; --ic: var(--c); --ib: var(--b); }
.am-out-h em { font-style: normal; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; color: var(--c); }
.am-out h3 { font-size: 0.98rem; font-weight: 700; }
.am-out p { margin-top: 0.3rem; font-size: 0.86rem; line-height: 1.55; color: var(--ink-500); }

@keyframes amPodGlow {
  0%, 16%, 100% { box-shadow: 0 8px 20px -8px rgba(11, 19, 36, 0.12); }
  5%, 11% { box-shadow: 0 0 0 2px var(--c), 0 12px 24px -10px var(--c); }
}

/* ---------- 3. Pipeline flow chart ---------- */
/* One 9s cycle: the track fills left→right, the runner rides it and each step pulses as it is reached (every 1.5s). */
.am-pipe { position: relative; }
.am-track { position: absolute; top: 31px; left: 8.33%; right: 8.33%; height: 4px; border-radius: 4px; background-color: #e2e8f0; }
.am-track::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); transform-origin: left center; animation: amFillX 9s linear infinite; }
.am-runner { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background-color: #fff; border: 3px solid var(--brand-600); box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.18); animation: amRunX 9s linear infinite; }

.am-steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; list-style: none; }
.am-step { --c: var(--brand-600); --b: #e0edff; display: grid; justify-items: center; text-align: center; }
.am-step-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 1.1rem; border-radius: 50%; color: var(--c); background-color: #fff; border: 2px solid var(--line); box-shadow: 0 0 0 6px #fff, var(--shadow-md); animation: amStep 9s ease-out infinite; animation-delay: calc(var(--i) * 1.5s); }
.am-step-ico svg { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-step-ico em { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 22px; height: 22px; font-style: normal; font-size: 0.66rem; font-weight: 800; color: #fff; border-radius: 50%; background-color: var(--c); box-shadow: 0 0 0 3px #fff; }
.am-step-card { width: 100%; height: 100%; padding: 1rem 0.85rem 1.1rem; background-color: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 14px rgba(11, 19, 36, 0.05); transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
.am-step:hover .am-step-card { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.am-step h3 { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.am-step p { margin-top: 0.35rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink-500); }
.am-step-card span { display: inline-block; margin-top: 0.65rem; padding: 0.18rem 0.55rem; font-size: 0.64rem; font-weight: 800; color: var(--c); background-color: var(--b); border-radius: 999px; }

@keyframes amFillX { 0% { transform: scaleX(0); opacity: 1; } 83% { transform: scaleX(1); opacity: 1; } 95% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes amRunX { 0% { left: 0; opacity: 1; } 83% { left: 100%; opacity: 1; } 95% { left: 100%; opacity: 0; } 100% { left: 0; opacity: 0; } }
@keyframes amFillY { 0% { transform: scaleY(0); opacity: 1; } 83% { transform: scaleY(1); opacity: 1; } 95% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes amRunY { 0% { top: 0; opacity: 1; } 83% { top: 100%; opacity: 1; } 95% { top: 100%; opacity: 0; } 100% { top: 0; opacity: 0; } }
@keyframes amStep {
  0% { border-color: var(--line); transform: scale(1); box-shadow: 0 0 0 6px #fff, var(--shadow-md); }
  4% { border-color: var(--c); transform: scale(1.1); box-shadow: 0 0 0 6px #fff, 0 0 0 12px var(--b), 0 14px 28px -8px var(--c); }
  14% { border-color: var(--c); transform: scale(1); box-shadow: 0 0 0 6px #fff, 0 0 0 12px var(--b), var(--shadow-md); }
  24%, 100% { border-color: var(--line); transform: scale(1); box-shadow: 0 0 0 6px #fff, var(--shadow-md); }
}

/* ---------- 4. Switch panel ---------- */
.am-panel { max-width: 960px; margin: 0 auto; padding: 1.6rem; background: linear-gradient(180deg, #f8fafc, #fff); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); }
.am-sw-row { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 1rem; align-items: center; padding: 1rem 0.5rem; border-bottom: 1px solid var(--line-soft); }
.am-sw-row:last-child { border-bottom: none; }
.am-sw-row .l { font-size: 0.93rem; font-weight: 600; color: var(--ink-400); text-align: right; }
.am-sw-row .r { font-size: 0.95rem; font-weight: 700; color: var(--ink-900); }
.am-flip { position: relative; justify-self: center; width: 72px; height: 36px; border-radius: 999px; background: linear-gradient(90deg, var(--brand-500), #4f46e5); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2); }
.am-flip::after { content: ""; position: absolute; top: 4px; left: 40px; width: 28px; height: 28px; border-radius: 50%; background-color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: left 0.5s var(--ease); }
.rv-on .am-panel:not(.in) .am-flip { background: #cbd5e1; }
.rv-on .am-panel:not(.in) .am-flip::after { left: 4px; }
.am-flip { transition: background 0.5s ease; }
.am-panel.in .am-sw-row:nth-child(2) .am-flip, .am-panel.in .am-sw-row:nth-child(2) .am-flip::after { transition-delay: 0.2s; }
.am-panel.in .am-sw-row:nth-child(3) .am-flip, .am-panel.in .am-sw-row:nth-child(3) .am-flip::after { transition-delay: 0.4s; }
.am-panel.in .am-sw-row:nth-child(4) .am-flip, .am-panel.in .am-sw-row:nth-child(4) .am-flip::after { transition-delay: 0.6s; }
.am-panel.in .am-sw-row:nth-child(5) .am-flip, .am-panel.in .am-sw-row:nth-child(5) .am-flip::after { transition-delay: 0.8s; }
.am-sw-h { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 1rem; padding: 0 0.5rem 0.8rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.am-sw-h span:first-child { text-align: right; color: var(--ink-400); }
.am-sw-h span:last-child { color: var(--brand-600); }

.am-choose { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; max-width: 960px; margin: 2.5rem auto 0; counter-reset: amc; }
.am-choose div { position: relative; padding: 2.3rem 1rem 1.1rem; font-size: 0.86rem; font-weight: 700; line-height: 1.45; color: var(--ink-800); text-align: center; background-color: #fff; border: 1px solid var(--line); border-radius: 18px; }
.am-choose div::before { counter-increment: amc; content: counter(amc); position: absolute; top: -16px; left: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -17px; font-size: 0.85rem; font-weight: 800; color: #fff; border-radius: 50%; background: linear-gradient(160deg, var(--brand-500), #4f46e5); box-shadow: 0 0 0 5px var(--surface); }
.am-choose-t { margin: 3rem auto 2rem; text-align: center; font-size: 1.05rem; font-weight: 800; color: var(--ink-900); }

@keyframes amBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes amSpin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .am-tasks-wrap, .am-gear-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Pipeline turns vertical: track runs down the left edge through the icons */
  .am-steps { grid-template-columns: 1fr; gap: 1.1rem; }
  .am-step { grid-template-columns: 66px 1fr; gap: 1.1rem; align-items: start; justify-items: start; text-align: left; }
  .am-step-ico { margin-bottom: 0; }
  .am-track { top: 33px; bottom: 33px; left: 31px; right: auto; width: 4px; height: auto; }
  .am-track::before { background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); transform-origin: center top; animation-name: amFillY; }
  .am-runner { left: 50%; top: 0; margin: -7px 0 0 -7px; animation-name: amRunY; }
  .am-choose { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; }
}
@media (max-width: 680px) {
  .am-sec { padding: 4.5rem 0; }
  .am-wrap { padding: 0 1.25rem; }
  .am-helps { grid-template-columns: 1fr; }
  .am-robot { right: 0; }
  .am-outs { grid-template-columns: 1fr; }
  .am-pod { gap: 0.4rem; padding: 0.4rem 0.55rem 0.4rem 0.4rem; border-radius: 11px; }
  .am-pod .ph-ico { width: 26px; height: 26px; }
  .am-pod .ph-ico svg { width: 13px; height: 13px; }
  .am-pod b { font-size: 0.68rem; }
  .am-pod small { display: none; }
  .am-core-hub b { font-size: 0.78rem; }
  .am-step { grid-template-columns: 56px 1fr; gap: 0.9rem; }
  .am-step-ico { width: 56px; height: 56px; }
  .am-step-ico svg { width: 22px; height: 22px; }
  .am-track { top: 28px; bottom: 28px; left: 26px; }
  .am-sw-h { display: none; }
  .am-sw-row { grid-template-columns: 1fr auto; }
  .am-sw-row .l { grid-column: 1 / -1; text-align: left; font-size: 0.8rem; text-decoration: line-through; }
  .am-choose { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .am-robot, .am-track::before, .am-step-ico,
  .am-core-gear, .am-core-hub::before, .am-pod, .am-eng-lines .orbit, .am-eng-lines .spoke, .am-eng-bar .live i { animation: none; }
  .am-runner, .am-eng-lines .pulse { display: none; }
}
/* ==================== LEAD JOURNEY DIAGRAM ==================== */
/* Fixed 1480x530 canvas (nodes + SVG lines share coordinates); JS scales it to fit, phones scroll sideways. */
/* Same box as the header (.header-inner): logo left edge to "Schedule a Demo" right edge */
.jf-wrap { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.jf-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 0.5rem 0; }
.jf-fit { position: relative; width: 1480px; height: 530px; margin: 0 auto; }
.jf { position: absolute; top: 0; left: 0; width: 1480px; height: 530px; transform-origin: 0 0; }
.jf svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.jf-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jf-lines path { stroke: #a9c1ee; stroke-width: 2; }
.jf-lines .jf-dot { fill: var(--brand-600); stroke: #fff; stroke-width: 2; }
.jf-lines .tick { fill: #fff; stroke: var(--brand-600); stroke-width: 2.5; }
.jf-lines text { fill: var(--ink-700); stroke: none; font-family: inherit; font-size: 11px; font-weight: 800; text-anchor: middle; }
.jf-lines text.tpl { fill: var(--brand-600); font-size: 9.5px; font-weight: 700; text-anchor: start; }

/* Centred elements: left/top = centre point */
.jf-n { position: absolute; transform: translate(-50%, -50%); }

/* Blue hub circles (CRM, Lead Nurturing, Auto Follow-ups, Re-churn) */
.jf-c { display: grid; place-items: center; width: var(--s); height: var(--s); padding: 6px; text-align: center; font-size: 12px; font-weight: 800; line-height: 1.15; color: #fff; border-radius: 50%; background: linear-gradient(160deg, var(--brand-500), var(--brand-700)); box-shadow: 0 0 0 5px #e0edff, 0 12px 24px -10px rgba(37, 99, 235, 0.55); }
.jf-c.xl { font-size: 22px; letter-spacing: -0.02em; }

/* AI calling nodes (in place of the callers) */
.jf-ai { display: grid; place-items: center; width: var(--s); height: var(--s); color: #fff; border-radius: 50%; background: linear-gradient(160deg, var(--brand-500), var(--brand-700)); box-shadow: 0 0 0 5px #e0edff, 0 12px 24px -10px rgba(37, 99, 235, 0.55); }
.jf-ai::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--brand-400); animation: jfRipple 2.2s ease-out infinite; }
.jf-ai svg { width: 44%; height: 44%; }
.jf-ai em { position: absolute; top: -5px; right: -9px; padding: 1px 6px; font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--brand-700); background-color: #fff; border: 1px solid #d0e1fd; border-radius: 999px; }
.jf-cap { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: var(--brand-700); white-space: nowrap; }

/* People / places as white icon circles */
.jf-p { display: grid; place-items: center; width: var(--s); height: var(--s); color: var(--brand-600); background-color: #fff; border: 2px solid var(--brand-500); border-radius: 50%; box-shadow: 0 0 0 5px #e0edff, 0 10px 20px -10px rgba(11, 19, 36, 0.25); }
.jf-p svg { width: 42%; height: 42%; }

/* Small icon bubbles on lines */
.jf-b { display: grid; place-items: center; width: var(--s); height: var(--s); color: var(--brand-600); background-color: #fff; border: 1px solid #d0e1fd; border-radius: 50%; box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.35); }
.jf-b svg { width: 50%; height: 50%; }

/* Line labels */
.jf-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 10px; font-weight: 700; color: var(--ink-700); white-space: nowrap; background-color: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06); }
.jf-chip svg { width: 12px; height: 12px; color: var(--brand-600); }

/* Blue option boxes with white pills */
.jf-box { position: absolute; display: grid; gap: 6px; padding: 7px; background-color: var(--brand-600); border-radius: 12px; box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.6); }
.jf-box span { display: flex; align-items: center; justify-content: center; gap: 4px; height: 22px; padding: 0 6px; font-size: 10px; font-weight: 700; color: var(--brand-700); white-space: nowrap; background-color: #fff; border-radius: 6px; }
.jf-box span.hd { color: #fff; background-color: rgba(255, 255, 255, 0.18); }
.jf-box span svg { width: 12px; height: 12px; }

/* Grey schedule panels (Day 1–7, Mon–Sun) */
.jf-list { position: absolute; display: grid; gap: 6px; padding: 8px; background-color: #eef2f8; border: 1px solid var(--line); border-radius: 14px; }
.jf-list div { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 4px; }
.jf-list small { font-size: 9.5px; font-weight: 700; color: var(--ink-500); }
.jf-list span { display: flex; align-items: center; justify-content: center; height: 28px; font-size: 10.5px; font-weight: 700; color: #fff; white-space: nowrap; background-color: var(--brand-600); border-radius: 7px; animation: jfRow 7s ease-in-out infinite; }
.jf-list div:nth-child(2) span { animation-delay: 1s; }
.jf-list div:nth-child(3) span { animation-delay: 2s; }
.jf-list div:nth-child(4) span { animation-delay: 3s; }
.jf-list div:nth-child(5) span { animation-delay: 4s; }
.jf-list div:nth-child(6) span { animation-delay: 5s; }
.jf-list div:nth-child(7) span { animation-delay: 6s; }

/* Lead source labels */
.jf-src { position: absolute; display: grid; justify-items: center; gap: 3px; width: 52px; font-size: 9px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink-600); }
.jf-src svg { width: 14px; height: 14px; color: var(--brand-600); }

/* WhatsApp message mock-ups drawn with shapes */
.jf-phone { position: absolute; padding: 6px 5px; background-color: #fff; border: 2px solid #cbd5e1; border-radius: 12px; box-shadow: 0 10px 22px -10px rgba(11, 19, 36, 0.3); }
.jf-phone .bar { display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.jf-phone .bar i { width: 8px; height: 8px; border-radius: 50%; background-color: var(--brand-500); }
.jf-phone .bar b { flex: 1; height: 3px; border-radius: 2px; background-color: #cbd5e1; }
.jf-phone .vid { display: grid; place-items: center; height: var(--vh, 46px); color: #fff; border-radius: 6px; background: linear-gradient(160deg, var(--brand-400), var(--brand-700)); }
.jf-phone .vid svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.jf-phone .ln { height: 4px; margin-top: 5px; border-radius: 2px; background-color: #e2e8f0; }
.jf-phone .wa { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 16px; height: 16px; color: #fff; border-radius: 50%; background-color: var(--brand-600); }
.jf-phone .wa svg { width: 9px; height: 9px; }

/* Mockup animations: phone floats, video shines + plays, message lines type in, WhatsApp icon pings */
.jf-phone { animation: jfFloat 5s ease-in-out infinite; }
.jf-phone .bar i { animation: phBlink 1.4s ease-in-out infinite; }
.jf-phone .vid { position: relative; overflow: hidden; }
.jf-phone .vid::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%); transform: translateX(-100%); animation: jfShine 3.2s ease-in-out infinite; }
.jf-phone .vid::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px; border-radius: 2px; background-color: #fff; transform-origin: left center; animation: jfProg 4s linear infinite; }
.jf-phone .vid svg { position: relative; animation: jfPlay 1.6s ease-in-out infinite; }
.jf-phone .ln { transform-origin: left center; animation: jfType 4s ease-out infinite; }
.jf-phone .ln:nth-of-type(4) { animation-delay: 0.35s; }
.jf-phone .ln:nth-of-type(5) { animation-delay: 0.7s; }
.jf-phone .wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand-500); animation: jfPing 1.8s ease-out infinite; }
/* Re-churn campaign card: delivery funnel bars fill on loop */
.jf-camp { position: absolute; font-size: 8px; line-height: 1.25; padding: 0.7em 0.8em 0.85em; background-color: #fff; border: 1px solid var(--line); border-radius: 1.2em; box-shadow: 0 10px 22px -10px rgba(11, 19, 36, 0.3); animation: jfFloat 5s ease-in-out infinite; }
.jf-camp .hd { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.5em; }
.jf-camp .hd > svg { flex-shrink: 0; width: 2.5em; height: 2.5em; padding: 0.55em; color: #fff; background-color: var(--brand-600); border-radius: 0.6em; }
.jf-camp .hd span { flex: 1; min-width: 0; font-size: 1.05em; font-weight: 800; color: var(--ink-900); }
.jf-camp .hd small { display: block; font-size: 0.78em; font-weight: 600; color: var(--ink-500); }
.jf-camp .live { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.3em; padding: 0.2em 0.5em; font-style: normal; font-size: 0.8em; font-weight: 800; color: var(--brand-700); background-color: #e0edff; border-radius: 999px; }
.jf-camp .live::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background-color: var(--brand-600); animation: phBlink 1.2s ease-in-out infinite; }
.jf-camp .st { display: grid; grid-template-columns: 1fr auto; row-gap: 0.25em; margin-top: 0.45em; font-weight: 700; color: var(--ink-600); }
.jf-camp .st b { font-weight: 800; color: var(--ink-900); }
.jf-camp .st i { position: relative; grid-column: 1 / -1; height: 0.45em; overflow: hidden; border-radius: 1em; background-color: #e2e8f0; }
.jf-camp .st i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); transform-origin: left center; animation: jfBar 6s ease-out infinite; }
.jf-camp .st:nth-child(3) i::after { animation-delay: 0.3s; }
.jf-camp .st:nth-child(4) i::after { animation-delay: 0.6s; }
.jf-camp .st:nth-child(5) i::after { animation-delay: 0.9s; }
@keyframes jfBar { 0% { transform: scaleX(0); } 25%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

@keyframes jfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes jfShine { 0%, 20% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes jfProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes jfPlay { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes jfType { 0% { transform: scaleX(0); } 20%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes jfPing { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }

/* Industry switcher: same diagram, industry-specific labels */
.jf-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: -1rem auto 1.75rem; }
.jf-tabs button { display: inline-flex; align-items: center; gap: 0.45rem; height: 40px; padding: 0 1rem; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink-700); background-color: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.jf-tabs button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--brand-600); }
.jf-tabs button:hover { border-color: #b9cff7; }
.jf-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); border-color: transparent; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6); }
.jf-tabs button[aria-selected="true"] svg { color: #fff; }
.jf-tabs button:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 2px; }
.jf-wrap [data-t] { transition: opacity 0.25s ease; }
.jf-wrap.is-swapping [data-t] { opacity: 0; }


@keyframes jfRipple { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.4); opacity: 0; } }
@keyframes jfRow {
  0%, 15%, 100% { background-color: var(--brand-600); box-shadow: none; }
  4%, 11% { background-color: var(--brand-500); box-shadow: 0 0 0 3px #bfd5ff; }
}
/* Mobile: the same diagram, laid out top to bottom (replaces the wide canvas) */
.jv { display: none; max-width: 400px; margin: 0 auto; }
.jv svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jv-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.jv .jf-ai, .jv .jf-box, .jv .jf-list, .jv .jf-phone, .jv .jf-camp { position: relative; flex-shrink: 0; }
.jv .jf-camp { font-size: 9.5px; }
.jv .jf-c, .jv .jf-p, .jv .jf-b { flex-shrink: 0; }
.jv-cap { margin-top: 9px; font-size: 11px; font-weight: 800; color: var(--brand-700); }
.jv-src { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 300px; margin-bottom: 10px; }
.jv-src > span { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink-600); }
.jv-src svg { width: 15px; height: 15px; color: var(--brand-600); }

/* Connector segments; a dot travels down the main ones */
.vl { position: relative; display: block; flex-shrink: 0; width: 2px; height: 22px; background-color: #a9c1ee; }
.vl.grow { flex: 1 1 auto; min-height: 22px; }
.vl.flow::after { content: ""; position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background-color: var(--brand-600); box-shadow: 0 0 0 2px #fff; animation: jvDot 1.4s linear infinite; }
.hl { flex-shrink: 0; width: 14px; height: 2px; background-color: #a9c1ee; }

/* Two-way split / merge */
.jv-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; width: 100%; }
.jv-split::before, .jv-split.merge::after { content: ""; position: absolute; left: calc(25% - 3px); right: calc(25% - 3px); height: 2px; background-color: #a9c1ee; }
.jv-split::before { top: 0; }
.jv-split.merge::after { bottom: 0; }
.jv-split .jf-box { width: 100%; }
.jv-split .jf-box span { font-size: 9.5px; }

.jv-row { display: flex; align-items: center; justify-content: center; }
.jv .jf-chip { flex-shrink: 0; }

/* Re-churn timeline, vertical */
.jv-time { position: relative; display: grid; gap: 9px; padding-left: 24px; list-style: none; }
.jv-time::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px; width: 2px; background-color: var(--brand-600); }
.jv-time li { position: relative; }
.jv-time li::before { content: ""; position: absolute; top: 2px; left: -24px; width: 14px; height: 14px; border-radius: 50%; background-color: #fff; border: 3px solid var(--brand-600); }
.jv-time b { display: block; font-size: 11px; font-weight: 800; line-height: 1.2; color: var(--ink-900); }
.jv-time small { font-size: 9.5px; font-weight: 700; color: var(--brand-600); }

@keyframes jvDot { from { top: -4px; opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 4px); opacity: 0; } }

@media (max-width: 760px) {
  .jf-scroll { display: none; }
  .jv { display: block; }
  .jf-tabs { margin-top: -0.5rem; }
  .jf-tabs button { height: 36px; padding: 0 0.8rem; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .jf-wrap { padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .jf-ai::before, .jf-list span { animation: none; }
  .jf-phone, .jf-phone *, .jf-phone .vid::before, .jf-phone .vid::after, .jf-phone .wa::after, .jf-camp, .jf-camp .live::before, .jf-camp .st i::after { animation: none !important; }
  .jv .vl::after { display: none; }
  .jf-lines .jf-dot { display: none; }
}

/* ==================== FAQ (same design as index.html) ==================== */
.faq { position: relative; overflow: hidden; padding: 6rem 0; background-color: var(--surface); border-top: 1px solid var(--line-soft); }
.faq::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59, 123, 246, 0.1), transparent 70%); pointer-events: none; }
.faq-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.faq-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 3rem; text-align: center; }

.faq-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.875rem 0.375rem 0.5rem; margin-bottom: 1.5rem; font-size: 0.8rem; font-weight: 700; color: var(--brand-700); background-color: var(--surface); border: 1px solid #d0e1fd; border-radius: 999px; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06); }
.faq-pill b { padding: 0.2rem 0.5rem; font-size: 0.675rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: var(--brand-600); border-radius: 999px; }
.faq-title { margin-bottom: 1.25rem; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink-900); }
.faq-desc { max-width: 660px; font-size: 1.1rem; line-height: 1.65; color: var(--ink-600); }
.faq-desc strong { color: var(--ink-900); }

.faq-list { display: flex; flex-direction: column; gap: 0.875rem; }
.faq-item { background-color: #eef4ff; border: 1px solid transparent; border-radius: 20px; transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.faq-item:hover { border-color: #d0e1fd; }
.faq-item.is-open { background-color: var(--surface); border-color: var(--line); box-shadow: 0 18px 40px -20px rgba(37, 99, 235, 0.3); }

.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.1rem 1.1rem 1.1rem 1.5rem; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.4; text-align: left; color: var(--ink-900); background: none; border: none; border-radius: 20px; cursor: pointer; }
.faq-question:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 2px; }
.faq-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; color: var(--ink-700); background-color: var(--surface); border-radius: 50%; box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06); transition: transform 0.3s var(--ease), color 0.2s ease, background-color 0.2s ease; }
.faq-icon svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.faq-question:hover .faq-icon { color: var(--brand-600); }
/* Plus rotates into a close (x) when open */
.faq-item.is-open .faq-icon { color: var(--ink-900); background-color: #e2eafa; box-shadow: none; transform: rotate(45deg); }

.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p { padding: 0 4.5rem 1.35rem 1.5rem; font-size: 0.9rem; line-height: 1.7; color: var(--ink-500); }

@media (max-width: 640px) {
  .faq { padding: 3.5rem 0; }
  .faq-inner { padding: 0 1.25rem; }
  .faq-head { margin-bottom: 2.25rem; }
  .faq-desc { font-size: 1rem; }
  .faq-question { padding: 0.95rem 0.9rem 0.95rem 1.15rem; font-size: 0.925rem; }
  .faq-icon { width: 34px; height: 34px; }
  .faq-answer p { padding: 0 1.15rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer, .faq-icon { transition: none; }
}
/* ==================== END PAGE SECTIONS ==================== */


/* ==================== SEO SECTIONS (page design) ==================== */
.kw-section, .alt-section, .rel-section {
  --kw-accent: #2563eb;
  --kw-accent-ink: color-mix(in srgb, #2563eb 82%, #000);
  --kw-tint: color-mix(in srgb, #2563eb 9%, #fff);
  --kw-tint-2: color-mix(in srgb, #2563eb 16%, #fff);
  --kw-ink: var(--ink-900, #0b1324);
  --kw-text: var(--ink-600, #475569);
  --kw-line: var(--line, #e6ebf2);
  position: relative;
  padding: 6rem 0;
  background-color: var(--surface, #fff);
}
.kw-inner, .rel-inner, .alt-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Badge: same pill as the page headers (ph-badge) */
.kw-badge {
  display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem; margin-bottom: 1.4rem; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-700, #334155); background-color: rgba(255, 255, 255, 0.85); border: 1px solid var(--kw-line);
  border-radius: 999px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06));
}
.kw-badge b {
  padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, var(--brand-500, #3b7bf6), var(--brand-600, #2563eb)); border-radius: 999px;
}

/* ---------- Keyword section: copy + product panel ---------- */
.kw-section .kw-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4.5rem; align-items: center; }
.kw-section.kw-flip .kw-copy { order: 2; }
.kw-copy h2 { margin: 0 0 1.1rem; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; color: var(--kw-ink); }
.kw-lead { margin: 0 0 1.75rem; font-size: 1.05rem; line-height: 1.75; color: var(--kw-text); }
.kw-lead strong { color: var(--kw-ink); }
.kw-list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.kw-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.kw-check { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; color: var(--kw-accent-ink); background: var(--kw-tint-2); border-radius: 8px; }
.kw-check svg { width: 15px; height: 15px; stroke-width: 3; }
.kw-item h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--kw-ink); }
.kw-item p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--kw-text); }
.kw-item a, .alt-card a { font-weight: 700; color: var(--kw-accent-ink); text-decoration: none; }

.kw-visual { position: relative; padding: 2rem 1rem 3rem; }
.kw-visual::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, var(--kw-tint-2), transparent); filter: blur(10px); }
.kw-panel { position: relative; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 22px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-panel-head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.25rem; color: #fff; background: linear-gradient(135deg, var(--kw-accent), var(--kw-accent-ink)); }
.kw-panel-logo { display: grid; place-items: center; width: 38px; height: 38px; background: rgba(255, 255, 255, 0.18); border-radius: 11px; }
.kw-panel-logo svg { width: 19px; height: 19px; }
.kw-panel-head strong { display: block; font-size: 0.95rem; font-weight: 700; }
.kw-panel-head small { display: block; font-size: 0.72rem; opacity: 0.8; }
.kw-live { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; color: var(--kw-accent-ink); background: #fff; border-radius: 999px; }
.kw-live i { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.kw-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; color: var(--kw-accent-ink); background: var(--kw-tint); border-radius: 10px; }
.kw-ico svg { width: 17px; height: 17px; }
.kw-panel-rows { margin: 0; padding: 0.4rem 0; list-style: none; }
.kw-panel-rows li { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-rows li:last-child { border-bottom: 0; }
.kw-row-txt { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; color: var(--kw-ink); }
.kw-panel-rows em { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-style: normal; font-weight: 700; color: #15803d; }
.kw-panel-rows em svg { width: 13px; height: 13px; stroke-width: 3; }
.kw-panel-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 1.1rem; list-style: none; }
.kw-panel-tiles li { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; background: var(--surface-muted, #f7f9fc); border: 1px solid var(--line-soft, #f0f3f8); border-radius: 14px; }
.kw-panel-tiles b { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--kw-ink); }
.kw-panel-tiles em { width: fit-content; padding: 0.15rem 0.5rem; font-size: 0.68rem; font-style: normal; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; }
.kw-panel-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; font-size: 0.75rem; color: var(--ink-500, #64748b); background: var(--surface-muted, #f7f9fc); border-top: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-foot b { color: var(--kw-accent-ink); }
.kw-toast { position: absolute; bottom: 0; right: 0; display: flex; align-items: center; gap: 0.7rem; max-width: 280px; padding: 0.75rem 1rem 0.75rem 0.75rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 16px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-toast-ico { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; color: #fff; background: linear-gradient(180deg, #22c55e, #16a34a); border-radius: 10px; }
.kw-toast-ico svg { width: 17px; height: 17px; stroke-width: 3; }
.kw-toast b { display: block; font-size: 0.82rem; font-weight: 700; line-height: 1.3; color: var(--kw-ink); }
.kw-toast small { display: block; font-size: 0.72rem; color: var(--ink-500, #64748b); }

/* ---------- Related solutions: one rounded card with tinted link chips ---------- */
.rel-section { padding-top: 2rem; }
.rel-card { padding: 2.25rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 28px; box-shadow: 0 18px 50px -30px rgba(11, 19, 36, 0.25); }
.rel-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.rel-top .kw-badge { margin-bottom: 0.9rem; }
.rel-top h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--kw-ink); }
.rel-all { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.1rem; font-size: 0.88rem; font-weight: 700; color: var(--kw-ink); text-decoration: none; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 12px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06)); transition: border-color 0.2s ease, color 0.2s ease; }
.rel-all:hover { color: var(--brand-600, #2563eb); border-color: var(--brand-600, #2563eb); }
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.rel-grid a { display: flex; align-items: center; gap: 0.9rem; height: 100%; padding: 0.95rem 1rem; text-decoration: none; background: var(--kw-tint); border: 1px solid transparent; border-radius: 16px; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.rel-grid a:hover { background: var(--surface, #fff); border-color: color-mix(in srgb, var(--kw-accent) 40%, #fff); transform: translateY(-2px); }
.rel-grid a:focus-visible { outline: 3px solid color-mix(in srgb, var(--kw-accent) 40%, transparent); outline-offset: 2px; }
.rel-ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; color: var(--kw-accent-ink); background: var(--surface, #fff); border-radius: 12px; box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06); }
.rel-ico svg { width: 19px; height: 19px; }
.rel-txt { flex: 1; min-width: 0; }
.rel-txt strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--kw-ink); }
.rel-txt-desc { display: block; margin-top: 0.15rem; font-size: 0.8rem; line-height: 1.45; color: var(--kw-text); }
.rel-arrow { flex-shrink: 0; color: var(--kw-accent); transition: transform 0.2s ease; }
.rel-grid a:hover .rel-arrow { transform: translateX(3px); }

/* Breadcrumb in the hero, above the badge */
.crumbs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--ink-500, #64748b); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.crumbs li + li::before { content: "›"; color: var(--ink-400, #94a3b8); }
.crumbs a { font-weight: 600; color: #2563eb; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { font-weight: 600; color: #0b1324; }

/* Contextual links in body copy: no underline, keep the paragraph colour */
main p a.ctx-link { color: inherit; font-weight: 600; text-decoration: none; }

@media (max-width: 1000px) {
  .kw-section .kw-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .kw-section.kw-flip .kw-copy { order: 0; }
  .kw-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kw-section, .rel-section, .alt-section { padding: 3.5rem 0; }
  .rel-section { padding-top: 1rem; }
  .kw-inner, .rel-inner, .alt-inner { padding: 0 1rem; }
  .kw-visual { padding: 1rem 0 3.5rem; }
  .kw-toast { left: 0.5rem; right: auto; }
  .rel-card { padding: 1.5rem 1.1rem; border-radius: 22px; }
  .rel-top { flex-direction: column; align-items: flex-start; }
  .rel-grid, .alt-grid { grid-template-columns: minmax(0, 1fr); }
  .alt-card:last-child:nth-child(3n + 1) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rel-grid a, .rel-arrow { transition: none; }
}
/* Hero badge sits inside the H1 (keyword first); keep it looking like the normal badge */
main h1 .ph-badge.h1-badge {
  display: flex; width: fit-content; max-width: 100%; margin: 0 0 1.4rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none;
  -webkit-text-fill-color: currentColor;
}
main h1 .ph-badge.h1-badge b { display: inline; }
main h1 .ph-badge.h1-badge b::before { content: attr(data-label); }
/* ==================== END SEO SECTIONS ==================== */
