/* ═══════════════════════════════════════════════════════════════════════════
   Landing Page Stylesheet — SageSchema AI
   Flow-first rebuild: Discovery → ICP → Blueprint → Playbook → Add-ons
   New visual language; reuses the design tokens from style.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Per-stage accent palette ──────────────────────────────────────────────── */
:root {
  --st-discovery: #FF4800;   /* orange   */
  --st-icp:       #0E8F8C;   /* teal     */
  --st-blueprint: #2563EB;   /* blue     */
  --st-playbook:  #7C3AED;   /* purple   */
  --st-addons:    #16A34A;   /* green    */
  --st-showcase:  #0F172A;   /* navy     */
  --lp-ink:       #141414;
  --lp-line:      #E6E2D8;
}

/* ═══════════════════════════ NAV + FLOW STEPPER ═══════════════════════════ */
/* The landing nav stacks a brand row and a sticky flow stepper that doubles
   as section navigation. Overrides the fixed-height .topnav base. */
#navLanding.topnav {
  height: auto;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--lp-line);
}

.lp-nav-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lp-nav-top .brand { cursor: pointer; }

.lp-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Flow stepper rail */
.lp-stepper {
  position: relative;
  border-top: 1px solid var(--lp-line);
  background: rgba(255,255,255,.6);
}
.lp-stepper-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.lp-stepper-inner::-webkit-scrollbar { display: none; }

.lp-step {
  position: relative;
  flex: 1 1 0;
  min-width: 132px;
  display: flex;
  align-items: center;
  gap: 10px;
  /* right padding reserves room for the connector so it never crosses the label */
  padding: 12px 36px 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--grey-500);
  font-family: var(--font-body);
  transition: color .18s;
  white-space: nowrap;
}
.lp-step:hover { color: var(--grey-900); }

/* connector line between steps — lives inside the reserved right padding */
.lp-step::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--lp-line);
  transform: translateY(-50%);
}
.lp-step:last-child::after { display: none; }
.lp-step:last-child { padding-right: 0; }

.lp-step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grey-100);
  color: var(--grey-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: .82rem;
  transition: all .18s;
}
.lp-step-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.lp-step.is-active { color: var(--lp-ink); }
.lp-step.is-active .lp-step-num {
  background: var(--accent, var(--hs-orange));
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent, var(--hs-orange)) 40%, transparent);
}
.lp-step.is-active::before {
  content: "";
  position: absolute;
  left: 0; right: 36px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0;
  background: var(--accent, var(--hs-orange));
}
.lp-step:last-child.is-active::before { right: 0; }

/* edge fade hints that the rail scrolls horizontally on small screens */
.lp-stepper::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 36px;
  background: linear-gradient(to left, rgba(255,255,255,.95), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
@media (max-width: 920px) {
  .lp-stepper::after { opacity: 1; }
}

/* Mobile workspace button (reuse from base) */
.mobile-disc-btn { display: none; }

@media (max-width: 920px) {
  .lp-nav-cta .lp-btn-primary { display: none; }
  .mobile-disc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 16px;
    background: var(--hs-orange); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: .85rem; font-weight: 600;
    box-shadow: 0 4px 14px rgba(255,72,0,.28);
    cursor: pointer; margin-left: auto;
  }
  .mobile-disc-btn:active { transform: scale(.97); }
  .lp-step { min-width: max-content; flex: 0 0 auto; }
}

/* ═══════════════════════════ AUDIENCE TOGGLE (nav) ════════════════════════ */
/* Segmented "For Agencies / For Business" control shared by both landing navs. */
.lp-audience {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--grey-100);
  border: 1px solid var(--lp-line);
  border-radius: 30px;
}
.lp-aud-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey-600);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s, box-shadow .15s;
}
.lp-aud-btn:hover { color: var(--lp-ink); }
.lp-aud-btn.is-active {
  background: #fff;
  color: var(--hs-orange);
  box-shadow: 0 2px 8px rgba(20,20,20,.08);
}

/* Business nav mirrors the landing nav (auto height, blur) but has no stepper. */
#navBusiness.topnav {
  height: auto;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--lp-line);
}

/* ═══════════════════════════ SHARED LAYOUT ═══════════════════════════════ */
.lp-container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.lp-section { padding: 72px 0; position: relative; }
.lp-section[id] { scroll-margin-top: 140px; }
.lp-bg-white { background: #fff; }
.lp-bg-cream { background: var(--grey-50); }
.lp-bg-ink   { background: var(--st-showcase); }

.lp-section-header { max-width: 720px; margin: 0 auto 40px; text-align: center; }

.lp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--hs-orange-light); color: var(--hs-orange-dark);
  margin-bottom: 16px;
}
.lp-badge.accent {
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
}
.lp-badge.on-ink { background: rgba(255,255,255,.12); color: #fff; }

.lp-h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.6rem, 5.6vw, 4rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -.04em;
  color: var(--lp-ink); margin: 0 0 18px;
}
.lp-gradient {
  background: linear-gradient(115deg, var(--hs-orange) 0%, var(--st-playbook) 60%, var(--st-blueprint) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lp-h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700; line-height: 1.18; letter-spacing: -.03em;
  color: var(--lp-ink); margin: 0 0 14px;
}
.lp-h2.light { color: #fff; }
.lp-lead { font-size: 1.15rem; line-height: 1.65; color: var(--grey-700); margin: 0 0 32px; }
.lp-body-lg { font-size: 1.05rem; line-height: 1.62; color: var(--grey-700); margin: 0; }
.lp-body-lg.light { color: rgba(255,255,255,.78); }

/* ═══════════════════════════ BUTTONS ═════════════════════════════════════ */
.lp-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  background: var(--hs-orange); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: .97rem; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(255,72,0,.30);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.lp-btn-primary svg { width: 16px; height: 16px; }
.lp-btn-primary:hover { background: var(--hs-orange-dark); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255,72,0,.4); }
.lp-btn-primary:active { transform: translateY(0) scale(.98); box-shadow: 0 4px 12px rgba(255,72,0,.3); }
.lp-btn-primary.large { padding: 17px 38px; font-size: 1.05rem; }
.lp-btn-primary.w-full { width: 100%; }
.lp-btn-primary.accent { background: var(--accent); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 32%, transparent); }
.lp-btn-primary.accent:hover { filter: brightness(.94); }

.lp-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 14px 22px;
  background: none; color: var(--grey-700);
  border: 1.5px solid var(--grey-300); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: .97rem; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all .15s;
}
.lp-btn-ghost:hover { border-color: var(--grey-400); background: var(--grey-50); }
.lp-btn-ghost:active { transform: scale(.98); }
.lp-btn-ghost svg { width: 15px; height: 15px; }

/* ═══════════════════════════ HERO ════════════════════════════════════════ */
.lp-hero {
  position: relative;
  background:
    radial-gradient(118% 78% at 84% -10%, var(--hs-orange-light) 0%, transparent 52%),
    radial-gradient(86% 66% at -6% 6%, color-mix(in srgb, var(--st-playbook) 8%, transparent) 0%, transparent 46%),
    linear-gradient(180deg, #fff 0%, var(--grey-50) 100%);
  overflow: hidden;
}
/* soft dot-grid texture, masked so it only shows in the warm upper-right glow */
.lp-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(20,20,20,.05) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 74% at 82% 0%, #000 0%, transparent 66%);
          mask-image: radial-gradient(120% 74% at 82% 0%, #000 0%, transparent 66%);
  pointer-events: none;
}
.lp-hero .lp-container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.lp-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.lp-eyebrow .lp-badge { margin-bottom: 0; }
.lp-badge.grey { background: var(--grey-100); color: var(--grey-600); }

.lp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 18px; }
.lp-trust-item { display: flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 500; color: var(--grey-600); }
.lp-trust-item svg { width: 15px; height: 15px; color: var(--hs-orange); flex-shrink: 0; }

/* Hero flow diagram */
.lp-flowviz {
  position: relative;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 30px 70px rgba(20,20,20,.12);
}
.lp-flowviz-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey-400); margin-bottom: 18px; text-align: center;
}
.lp-flow-track { display: flex; flex-direction: column; gap: 0; }
.lp-flow-node {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--lp-line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 5%, #fff);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.lp-flow-node:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--lp-line));
}
.lp-flow-ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-primary); font-weight: 700;
}
.lp-flow-meta { flex: 1; min-width: 0; }
.lp-flow-name { display: block; font-weight: 700; font-size: .95rem; color: var(--lp-ink); }
.lp-flow-out { display: block; font-size: .78rem; color: var(--grey-500); }
.lp-flow-tag {
  flex-shrink: 0; font-size: .72rem; font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  padding: 3px 9px; border-radius: 20px;
}
.lp-flow-conn {
  height: 22px; width: 2px; margin: 0 0 0 35px;
  background: linear-gradient(var(--grey-300), var(--grey-300));
  position: relative; overflow: hidden;
}
.lp-flow-conn::after {
  content: ""; position: absolute; left: -1px; top: -8px;
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--hs-orange);
  animation: flowPulse 2.4s linear infinite;
}
@keyframes flowPulse { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(24px); opacity: 0; } }

/* ═══════════════════════════ STAGE SECTIONS ══════════════════════════════ */
.lp-stage { padding: 76px 0; scroll-margin-top: 140px; }
.lp-stage .lp-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.lp-stage.reverse .lp-stage-visual { order: -1; }

.lp-stage-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lp-stage-step {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-primary); font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 34%, transparent);
}
.lp-stage-kicker { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lp-price-badge {
  margin-left: auto;
  font-family: var(--font-primary); font-weight: 700; font-size: .92rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  padding: 6px 14px; border-radius: 22px; white-space: nowrap;
}
/* .free no longer forces green — badge inherits the section's --accent */

.lp-stage h3 {
  font-family: var(--font-primary); font-size: 1.7rem; font-weight: 700;
  line-height: 1.2; letter-spacing: -.02em; color: var(--lp-ink); margin: 0 0 14px;
}
.lp-stage p { font-size: 1.02rem; line-height: 1.6; color: var(--grey-700); margin: 0 0 18px; }

/* Inputs → Outputs chips */
.lp-io {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px; margin: 0 0 20px;
  background: var(--grey-50); border: 1px solid var(--lp-line); border-radius: 12px;
  font-size: .82rem;
}
.lp-io-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 20px; font-weight: 600;
  background: #fff; border: 1px solid var(--lp-line); color: var(--grey-700);
}
.lp-io-chip.out { border-color: color-mix(in srgb, var(--accent) 45%, #fff); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.lp-io-arrow { color: var(--grey-400); font-weight: 700; }
.lp-io-label { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; color: var(--grey-400); }

/* Highlights list */
.lp-highlights { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.lp-highlights li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; line-height: 1.5; color: var(--grey-700); }
.lp-highlights li strong { color: var(--lp-ink); }
.lp-hl-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; margin-top: 1px;
}
.lp-stage-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Developer-ready callout (Playbook stage) */
.lp-dev-callout {
  margin: 0 0 22px;
  padding: 16px 18px;
}
.lp-stage-visual .lp-dev-callout { margin: 16px 0 0; }
.lp-dev-callout {
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff);
}
.lp-dev-head {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-primary); font-weight: 700; font-size: .95rem;
  color: var(--lp-ink); margin-bottom: 10px;
}
.lp-dev-ico {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lp-dev-ico svg { width: 16px; height: 16px; }
.lp-dev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-dev-list li { position: relative; padding-left: 18px; font-size: .9rem; line-height: 1.5; color: var(--grey-700); }
.lp-dev-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.lp-dev-list li strong { color: var(--lp-ink); }
.lp-dev-list code { background: var(--grey-100); padding: 1px 6px; border-radius: 5px; font-size: .85em; }

/* ── Stage visuals (right column) ── */
.lp-card {
  background: #fff; border: 1px solid var(--lp-line);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.lp-stage-shot {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--lp-line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
/* Discovery stage: single column so the product screenshot can sit inline,
   right after the In/Out row, at a large width. */
#discovery .lp-container,
#biz-discovery .lp-container { grid-template-columns: 1fr; gap: 36px; }
#discovery .lp-stage-shot,
#biz-discovery .lp-stage-shot { max-width: 100%; margin: 20px 0 24px; }

/* First stage — its own identity + a clean break from the hero, so neither
   section reads as flat/lost white. A soft discovery-orange wash fades in from
   the top edge and a hairline divider marks the boundary. */
#discovery.lp-bg-white {
  position: relative;
  background:
    radial-gradient(70% 46% at 50% 0%, color-mix(in srgb, var(--st-discovery) 7%, transparent) 0%, transparent 62%),
    #fff;
  border-top: 1px solid var(--lp-line);
}
.lp-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--grey-50); border-bottom: 1px solid var(--lp-line);
}
.lp-dots { display: flex; gap: 5px; }
.lp-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-300); }
.lp-dots span:nth-child(1){ background:#FF5F57 } .lp-dots span:nth-child(2){ background:#FFBD2E } .lp-dots span:nth-child(3){ background:#28C941 }
.lp-card-file { font-family: monospace; font-size: .76rem; color: var(--grey-500); }
.lp-card-badge { margin-left: auto; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 12px; background: #eafaf0; color: var(--st-addons); }

/* Discovery pillars */
.lp-pillars { padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lp-pillar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 11px; border-radius: 10px; background: var(--grey-50);
  font-size: .83rem; font-weight: 600; color: var(--grey-700);
}
.lp-pillar span.n {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800;
}
.lp-pillar.full { grid-column: 1 / -1; }

/* ICP visualization — archetype + fit distribution + G/Y/R tiers */
.lp-icpv .lp-card-badge { background: color-mix(in srgb, var(--st-icp) 14%, #fff); color: var(--st-icp); }
.lp-icpv-body { padding: 16px; }
.lp-icpv-top {
  display: flex; align-items: center; gap: 13px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-icpv-avatar {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  background: color-mix(in srgb, var(--st-icp) 12%, #fff); color: var(--st-icp);
  display: flex; align-items: center; justify-content: center;
}
.lp-icpv-avatar svg { width: 26px; height: 26px; }
.lp-icpv-top-meta { min-width: 0; }
.lp-icpv-title { font-family: var(--font-primary); font-weight: 700; font-size: 1rem; color: var(--lp-ink); margin-bottom: 8px; }
.lp-icpv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.lp-icpv-chip {
  font-size: .72rem; font-weight: 600; color: var(--grey-600);
  background: var(--grey-50); border: 1px solid var(--lp-line);
  padding: 3px 9px; border-radius: 20px;
}

.lp-icpv-dist { margin-bottom: 14px; }
.lp-icpv-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; }
.lp-icpv-bar span { display: block; height: 100%; }
.lp-icpv-bar .g { background: #16A34A; }
.lp-icpv-bar .y { background: #EAB308; }
.lp-icpv-bar .r { background: #DC2626; }

.lp-icpv-tiers { display: flex; flex-direction: column; gap: 9px; }
.lp-icpv-tier { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--lp-line); }
.lp-icpv-tier.green { background: #f3fbf6; }
.lp-icpv-tier.yellow { background: #fffaf0; }
.lp-icpv-tier.red { background: #fdf3f3; }
.lp-icpv-dot { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; }
.lp-icpv-tier.green .lp-icpv-dot { background: #16A34A; }
.lp-icpv-tier.yellow .lp-icpv-dot { background: #EAB308; }
.lp-icpv-tier.red .lp-icpv-dot { background: #DC2626; }
.lp-icpv-tinfo { flex: 1; min-width: 0; }
.lp-icpv-tinfo b { display: block; font-size: .86rem; color: var(--lp-ink); }
.lp-icpv-tinfo span { font-size: .78rem; color: var(--grey-600); line-height: 1.4; }
.lp-icpv-pct { flex-shrink: 0; font-family: var(--font-primary); font-weight: 800; font-size: 1rem; }
.lp-icpv-tier.green .lp-icpv-pct { color: #16A34A; }
.lp-icpv-tier.yellow .lp-icpv-pct { color: #CA8A04; }
.lp-icpv-tier.red .lp-icpv-pct { color: #DC2626; }

/* Blueprint visualization — audit-score ring + grouped architecture map */
.lp-bpv-body { padding: 16px; }
.lp-bpv-top {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-bpv-ring {
  flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--st-addons) calc(var(--score) * 3.6deg), var(--grey-200) calc(var(--score) * 3.6deg));
  display: flex; align-items: center; justify-content: center;
}
.lp-bpv-ring::before { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; box-shadow: inset 0 1px 3px rgba(20,20,20,.05); }
.lp-bpv-ring-val { position: relative; z-index: 1; text-align: center; line-height: 1; }
.lp-bpv-ring-val b { font-family: var(--font-primary); font-size: 1.45rem; font-weight: 800; color: var(--lp-ink); }
.lp-bpv-ring-val span { display: block; font-size: .6rem; font-weight: 700; color: var(--grey-400); margin-top: 2px; }
.lp-bpv-top-meta { min-width: 0; }
.lp-bpv-title { font-family: var(--font-primary); font-weight: 700; font-size: 1.02rem; color: var(--lp-ink); }
.lp-bpv-sub { font-size: .78rem; color: var(--grey-500); margin-top: 3px; }
.lp-bpv-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.lp-bpv-stats span { font-size: .72rem; color: var(--grey-500); }
.lp-bpv-stats b { font-family: var(--font-primary); color: var(--lp-ink); font-size: .92rem; margin-right: 3px; }

.lp-bpv-groups { display: flex; flex-direction: column; gap: 12px; }
.lp-bpv-glabel {
  display: flex; align-items: center; gap: 7px; margin-bottom: 7px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--grey-500);
}
.lp-bpv-gdot { width: 8px; height: 8px; border-radius: 50%; background: var(--g, var(--hs-orange)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g, var(--hs-orange)) 16%, transparent); }
.lp-bpv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-bpv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 6px; border-radius: 8px;
  background: var(--grey-50); border: 1px solid var(--lp-line);
  font-size: .77rem; font-weight: 600; color: var(--grey-700);
  transition: transform .15s, border-color .15s, background .15s;
}
.lp-bpv-chip:hover {
  transform: translateY(-1px); background: #fff;
  border-color: color-mix(in srgb, var(--g, var(--hs-orange)) 45%, var(--lp-line));
}
.lp-bpv-chip i {
  font-style: normal; font-family: monospace; font-size: .64rem; font-weight: 700;
  color: var(--g, var(--hs-orange));
  background: color-mix(in srgb, var(--g, var(--hs-orange)) 14%, #fff);
  padding: 2px 5px; border-radius: 5px;
}

/* Playbook code runbook */
.lp-runbook { background: #0f1117; }
.lp-runbook .lp-card-head { background: #171a23; border-bottom-color: #232838; }
.lp-runbook .lp-card-file { color: #cbd2e0; }
.lp-pb-code { padding: 18px 20px; font-family: "SF Mono", Menlo, monospace; font-size: .82rem; line-height: 1.55; }
.lp-pb-step { color: #f2f4f8; font-weight: 600; margin-top: 13px; display: flex; align-items: center; gap: 8px; }
.lp-pb-step:first-child { margin-top: 0; }
.lp-pb-num { background: var(--accent); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 5px; font-weight: 700; }
.lp-pb-detail { color: #8b93a7; padding-left: 4px; margin-top: 4px; }
.lp-pb-verify { color: #34d399; margin-top: 14px; font-weight: 600; }

/* Add-ons tiles */
.lp-addons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.lp-addon {
  position: relative; background: #fff; border: 1px solid var(--lp-line);
  border-radius: 14px; padding: 20px; transition: transform .15s, box-shadow .15s;
}
.lp-addon:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lp-addon.soon { background: var(--grey-50); border-style: dashed; }
.lp-addon-ic {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.lp-addon-ic svg { width: 20px; height: 20px; }
.lp-addon h4 { font-size: 1rem; font-weight: 700; color: var(--lp-ink); margin: 0 0 6px; }
.lp-addon p { font-size: .86rem; color: var(--grey-600); line-height: 1.5; margin: 0 0 10px; }
.lp-addon-price { font-size: .8rem; font-weight: 700; color: var(--accent); }
.lp-soon-tag {
  position: absolute; top: 14px; right: 14px;
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--grey-200); color: var(--grey-600); padding: 3px 8px; border-radius: 20px;
}
/* On the business page the add-ons section sits on a cream (grey-50) background,
   so the default grey-50 "soon" cards blend in — give them a distinct tone. */
#biz-addons .lp-addon.soon { background: var(--grey-100); border-color: var(--grey-300); }

/* ═══════════════════════════ SHOWCASE ════════════════════════════════════ */
.lp-showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-show-card {
  text-align: left; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 24px; color: #fff;
  font-family: var(--font-body); transition: transform .15s, background .15s, border-color .15s;
}
.lp-show-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.lp-show-ic { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.lp-show-ic.icp { background: rgba(255,72,0,.18); } .lp-show-ic.bp { background: rgba(37,99,235,.2); } .lp-show-ic.pb { background: rgba(124,58,237,.22); }
.lp-show-card h4 { font-family: var(--font-primary); font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.lp-show-card p { font-size: .86rem; color: rgba(255,255,255,.62); line-height: 1.5; margin: 0 0 16px; }
.lp-show-open { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: #fff; }
.lp-show-open svg { width: 14px; height: 14px; }
.lp-show-note { text-align: center; margin-top: 22px; font-size: .82rem; color: rgba(255,255,255,.5); }
.lp-view-example {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 600; color: var(--accent);
  background: none; cursor: pointer; font-family: var(--font-body);
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, #fff);
  border-radius: var(--radius-md);
  transition: all .15s;
}
.lp-view-example:hover { background: color-mix(in srgb, var(--accent) 7%, #fff); border-color: color-mix(in srgb, var(--accent) 60%, #fff); }
.lp-view-example:active { transform: scale(.98); }
.lp-view-example svg { width: 15px; height: 15px; }

/* ── Read-only example viewer modal ── */
.lpx-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(15,23,42,.66); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 22px;
}
.lpx-overlay.open { display: flex; }
.lpx-shell {
  width: min(960px, 100%); height: min(88vh, 900px);
  background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.lpx-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--lp-line);
  border-top: 3px solid var(--accent, var(--hs-orange));
}
.lpx-head-ic { font-size: 1.3rem; }
.lpx-head-titles { display: flex; flex-direction: column; }
.lpx-head-title { font-family: var(--font-primary); font-weight: 700; font-size: 1rem; color: var(--lp-ink); }
.lpx-head-sub { font-size: .76rem; color: var(--grey-400); }
.lpx-readonly { margin-left: auto; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-500); background: var(--grey-100); padding: 4px 11px; border-radius: 20px; }
.lpx-close { width: 34px; height: 34px; border: none; background: var(--grey-100); border-radius: 9px; cursor: pointer; color: var(--grey-600); font-size: 1rem; }
.lpx-close:hover { background: var(--grey-200); }
.lpx-body { flex: 1; display: flex; min-height: 0; }
.lpx-toc { width: 230px; flex-shrink: 0; border-right: 1px solid var(--lp-line); overflow-y: auto; padding: 16px 12px; background: var(--grey-50); }
.lpx-toc-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--grey-400); padding: 0 8px; margin-bottom: 8px; }
.lpx-toc a { display: block; padding: 6px 8px; border-radius: 7px; font-size: .82rem; color: var(--grey-600); text-decoration: none; line-height: 1.35; }
.lpx-toc a:hover { background: var(--grey-100); color: var(--lp-ink); }
.lpx-toc a.h3 { padding-left: 18px; font-size: .78rem; }
.lpx-toc a.active { background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); font-weight: 600; }
.lpx-scroll { flex: 1; overflow-y: auto; padding: 28px 36px; }
.lpx-progress { height: 3px; background: var(--accent, var(--hs-orange)); width: 0; transition: width .1s; }
@media (max-width: 720px) { .lpx-toc { display: none; } .lpx-scroll { padding: 20px; } }

/* Prose styling for rendered markdown (self-contained, mirrors .dv-prose) */
.lpx-prose { font-family: var(--font-body); color: var(--grey-900); font-size: .95rem; line-height: 1.65; }
.lpx-prose h1 { font-family: var(--font-primary); font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; color: var(--lp-ink); }
.lpx-prose h2 { font-family: var(--font-primary); font-size: 1.3rem; font-weight: 700; margin: 30px 0 10px; padding-top: 14px; border-top: 1px solid var(--lp-line); color: var(--lp-ink); }
.lpx-prose h3 { font-family: var(--font-primary); font-size: 1.05rem; font-weight: 700; margin: 20px 0 8px; color: var(--lp-ink); }
.lpx-prose p { margin: 0 0 12px; }
.lpx-prose ul, .lpx-prose ol { margin: 0 0 14px; padding-left: 22px; }
.lpx-prose li { margin-bottom: 5px; }
.lpx-prose strong { color: var(--lp-ink); font-weight: 700; }
.lpx-prose hr { border: none; border-top: 1px solid var(--lp-line); margin: 22px 0; }
.lpx-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .86rem; }
.lpx-prose th, .lpx-prose td { border: 1px solid var(--lp-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.lpx-prose th { background: var(--grey-50); font-weight: 700; }
.lpx-prose code { background: var(--grey-100); padding: 1px 6px; border-radius: 5px; font-size: .85em; }
.lpx-prose blockquote { margin: 0 0 14px; padding: 8px 16px; border-left: 3px solid var(--accent, var(--hs-orange)); background: var(--grey-50); color: var(--grey-700); }
.lpx-loading { color: var(--grey-400); }

/* ═══════════════════════════ PRICING ═════════════════════════════════════ */
.lp-pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 1160px; margin: 0 auto; align-items: stretch;
}
.lp-price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--lp-line);
  border-radius: 18px; padding: 26px 22px;
  transition: box-shadow .2s, transform .2s;
}
.lp-price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lp-price-card.featured { border: 2px solid var(--hs-orange); box-shadow: 0 12px 40px rgba(255,72,0,.14); }
.lp-price-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--hs-orange); color: #fff; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: 4px 13px; border-radius: 20px; white-space: nowrap;
}
.lp-price-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-400); margin-bottom: 8px; }
.lp-price-name { font-family: var(--font-primary); font-size: 1.2rem; font-weight: 700; color: var(--lp-ink); margin-bottom: 10px; }
.lp-price-amt { font-family: var(--font-primary); font-size: 2.2rem; font-weight: 800; color: var(--lp-ink); line-height: 1; }
.lp-price-amt small { font-size: .9rem; font-weight: 600; color: var(--grey-400); }
.lp-price-sub { font-size: .82rem; color: var(--grey-500); margin: 6px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--lp-line); }
.lp-price-feats { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1 0 auto; }
.lp-price-feats li { font-size: .85rem; color: var(--grey-700); display: flex; gap: 8px; align-items: flex-start; }
.lp-price-feats li::before { content: "✓"; color: var(--hs-orange); font-weight: 800; flex-shrink: 0; }
.lp-price-card > .lp-btn-primary, .lp-price-card > .lp-btn-ghost { margin-top: auto; width: 100%; }
.lp-price-note { text-align: center; font-size: .82rem; color: var(--grey-400); margin: 26px auto 0; max-width: 760px; }
/* 3-up pricing (business page) — centred, not stretched across 4 columns */
.lp-pricing-grid.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 920px; }

/* ═══════════════════════════ PARTNER VALUE STRIP ═════════════════════════ */
.lp-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-why-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 24px; }
.lp-why-ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,72,0,.16); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lp-why-ic svg { width: 21px; height: 21px; color: var(--hs-orange); }
.lp-why-card h4 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.lp-why-card p { font-size: .92rem; color: rgba(255,255,255,.7); line-height: 1.55; margin: 0; }

/* ═══════════════════════════ FINAL CTA + FOOTER ══════════════════════════ */
.lp-cta-final { background: linear-gradient(135deg, var(--hs-orange) 0%, var(--st-playbook) 120%); }
.lp-cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.lp-cta-note { margin-top: 14px; font-size: .82rem; color: rgba(255,255,255,.78); }

.lp-footer { background: var(--st-showcase); padding: 36px 0; }
.lp-footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.lp-footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-primary); font-weight: 700; color: #fff; }
.lp-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-footer-links a { font-size: .82rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
.lp-footer-links a:hover { color: rgba(255,255,255,.85); }
.lp-footer-note { margin-left: auto; max-width: 420px; font-size: .73rem; color: rgba(255,255,255,.35); line-height: 1.5; }

/* ═══════════════════════════ RESPONSIVE ══════════════════════════════════ */
@media (max-width: 980px) {
  /* Hero: headline + CTA first, flow diagram after (was diagram-first, which
     pushed the H1 and primary CTA below the fold on mobile) */
  .lp-hero .lp-container { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 52px; }
  /* Stages collapse to one column — copy always before visual, every stage */
  .lp-stage .lp-container { grid-template-columns: 1fr; gap: 28px; }
  .lp-stage.reverse .lp-stage-visual { order: 0; }
  .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-pricing-grid.cols-3 { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .lp-showcase-grid { grid-template-columns: 1fr; }
  .lp-addons-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .lp-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lp-section, .lp-stage { padding: 48px 0; }
  .lp-section[id], .lp-stage { scroll-margin-top: 118px; }
  .lp-container { padding: 0 18px; }

  /* Type scale: the desktop clamp floor was too large for small screens */
  .lp-h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); margin-bottom: 14px; }
  .lp-h2 { font-size: clamp(1.6rem, 7vw, 1.9rem); }
  .lp-lead { font-size: 1.02rem; margin-bottom: 26px; }
  .lp-stage h3 { font-size: 1.4rem; }
  .lp-section-header { margin-bottom: 30px; }

  .lp-hero-actions, .lp-stage-cta { flex-direction: column; align-items: stretch; }
  .lp-hero-actions .lp-btn-primary, .lp-hero-actions .lp-btn-ghost,
  .lp-stage-cta .lp-btn-primary, .lp-stage-cta .lp-btn-ghost,
  .lp-stage-cta .lp-view-example { width: 100%; }
  .lp-trust { gap: 10px; flex-direction: column; align-items: flex-start; }

  .lp-flowviz { padding: 20px 14px; border-radius: 18px; }
  .lp-stage-eyebrow { flex-wrap: wrap; row-gap: 8px; }
  .lp-io { padding: 12px; font-size: .78rem; }

  .lp-pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .lp-pricing-grid.cols-3 { grid-template-columns: 1fr; max-width: 420px; }
  .lp-addons-grid { grid-template-columns: 1fr; }
  .lp-pillars { grid-template-columns: 1fr; }
  .lp-pb-code { padding: 14px; font-size: .76rem; }
  .lp-btn-primary.large { padding: 15px 26px; font-size: 1rem; }

  .lp-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lp-footer-note { margin-left: 0; }
  .lp-nav-top { padding: 10px 18px; flex-wrap: wrap; row-gap: 10px; }
  /* Audience toggle drops to its own full-width row under the brand on mobile */
  .lp-audience { order: 3; width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-flow-conn::after { animation: none; display: none; }
  .lp-stepper-inner { scroll-behavior: auto; }
}
