/* ============================================
   Sales landing pages (mid-market, private equity, public sector)
   Added Nov 2026. Builds on style.css + site.css tokens only.
   ============================================ */

/* Hero with the network graph */
.lp-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.lp-hero h1 { max-width: 16ch; margin-bottom: 0.4em; }
.lp-hero .lead { max-width: 52ch; }
.lp-hero .kicker { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--accent); margin: 0 0 1.4em; }
.lp-hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.lp-hero-graphic { width: 100%; max-width: 480px; justify-self: end; }

/* Proof band */
.lp-proof { padding: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.lp-proof ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 34px 0; margin: 0; list-style: none; }
.lp-proof .num { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1; color: var(--ink); margin-bottom: 8px; white-space: nowrap; }
.lp-proof .label { font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }

/* What we hear */
.lp-hear { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.lp-hear li { border-top: 2px solid var(--ink); padding-top: 18px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.lp-answer { margin-top: 48px; }

/* Lifecycle / steps with a stage label */
.step .stage { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
.step p { font-size: 0.95rem; margin: 0; }

/* Two-column offer blocks */
.lp-offer { border-top: 1px solid var(--line); padding-top: 22px; }
.lp-offer h3 { margin-bottom: 0.3em; }
.lp-offer .sub { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 1em; }

/* Solutions list (two columns, ruled) */
.lp-solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.lp-solutions li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.lp-solutions h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.lp-solutions p { font-size: 0.95rem; margin: 0; }
.lp-solutions a { color: var(--accent); font-weight: 600; font-size: 0.85rem; }

/* Testimonials */
.lp-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.lp-quote { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-quote .qlogo { height: 30px; width: auto; align-self: flex-start; }
.lp-quote .qlogo.wide { height: 22px; }
.lp-quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.lp-quote figcaption { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.lp-quote figcaption span { font-weight: 400; }

/* Logo strip */
.lp-logos { padding: 44px 0; border-top: 1px solid var(--line); }
.lp-logos .eyebrow { color: var(--ink-faint); text-align: center; margin-bottom: 22px; }
.lp-logos ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 64px; margin: 0; padding: 0; list-style: none; filter: grayscale(1); opacity: 0.78; }
.lp-logos img { height: 22px; width: auto; }
.lp-logos img.tall { height: 30px; }

/* Signature in the CTA band */
.lp-sign { display: inline-flex; align-items: center; gap: 14px; margin: 8px auto 28px; text-align: left; }
.lp-sign img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.lp-sign strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--white); }
.lp-sign span { font-size: 0.85rem; color: #C7CBCA; }
.cta-band .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .contact-line { margin-top: 22px; font-size: 0.92rem; }
.cta-band .contact-line a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .lp-hero-graphic { justify-self: start; max-width: 360px; }
  .lp-proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-hear, .lp-quotes, .lp-solutions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp-hero { padding: 48px 0 44px; }
  .lp-logos ul { gap: 22px 36px; }
}

/* Section CTAs */
.lp-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.split .lp-cta, .lp-offer .lp-cta { margin-top: 24px; }
/* Testimonials directly under the proof band */
.lp-proof + section { padding: 64px 0; border-bottom: 1px solid var(--line); }

/* Problem section: one tight, ruled block */
section.lp-problem { padding: 64px 0; }
.lp-problem-box { max-width: 920px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px 48px; align-items: start; border-top: 2px solid var(--ink); padding-top: 28px; }
.lp-problem-box h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0; }
.lp-problem-box .lead { font-size: 1.1rem; margin-bottom: 0.8em; }
.lp-problem-box p { margin-bottom: 0.8em; }
.lp-problem-box .lp-cta { margin-top: 20px; }
.lp-pain { list-style: none; margin: 0; padding: 0; counter-reset: pain; }
.lp-pain li { counter-increment: pain; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.lp-pain li:first-child { padding-top: 0; }
.lp-pain li::before { content: counter(pain, decimal-leading-zero); font-family: var(--serif); color: var(--accent); }
.lp-problem-box > .lp-cta { grid-column: 2; margin-top: 4px; }
@media (max-width: 900px) {
  .lp-problem-box { grid-template-columns: 1fr; gap: 18px; }
  .lp-problem-box > .lp-cta { grid-column: 1; }
}

/* ============================================
   Motion (Nov 2026). Everything here sits behind html.lp-motion,
   which is only set when the visitor doesn't prefer reduced motion.
   ============================================ */
@keyframes lpUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpDraw { to { stroke-dashoffset: 0; } }
@keyframes lpPop { 0% { opacity: 0; transform: scale(0.2); } 70% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lpBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes lpRing { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(4.2); } }
@keyframes lpFlow { to { stroke-dashoffset: -25; } }
@keyframes lpDrift { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-6px, -8px) rotate(0.6deg); } }
@keyframes lpBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Hero text staggers in */
.lp-motion .lp-hero-grid > div > * { opacity: 0; animation: lpUp 0.75s cubic-bezier(.2,.7,.2,1) forwards; }
.lp-motion .lp-hero-grid > div > :nth-child(1) { animation-delay: 0.05s; }
.lp-motion .lp-hero-grid > div > :nth-child(2) { animation-delay: 0.15s; }
.lp-motion .lp-hero-grid > div > :nth-child(3) { animation-delay: 0.32s; }
.lp-motion .lp-hero-grid > div > :nth-child(4) { animation-delay: 0.44s; }
.lp-motion .lp-hero-grid > div > :nth-child(5) { animation-delay: 0.58s; }

/* Hero graph */
.lp-graph { overflow: visible; }
.lp-graph .g-packets { display: none; }
.lp-motion .lp-graph { animation: lpDrift 14s ease-in-out 2.5s infinite alternate; transform-origin: 60% 50%; }
.lp-motion .lp-graph line[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lpDraw 1.1s ease forwards; }
.lp-motion .lp-graph circle { transform-box: fill-box; transform-origin: center; }
.lp-motion .lp-graph .g-nodes circle { opacity: 0; animation: lpPop 0.5s ease var(--d, 0.3s) forwards; }
.lp-motion .lp-graph .g-cluster circle { opacity: 0; animation: lpPop 0.55s ease var(--d, 1.1s) forwards, lpBreathe 4.5s ease-in-out calc(var(--d, 1.1s) + 0.6s) infinite; }
.lp-motion .lp-graph .g-hub { opacity: 0; animation: lpPop 0.5s ease 0.95s forwards; }
.lp-motion .lp-graph .g-ring { opacity: 0; animation: lpRing 3.2s ease-out 1.6s infinite; }
.lp-motion .lp-graph .g-ring2 { animation-delay: 3.2s; }
.lp-motion .lp-graph .g-dash { opacity: 0; animation: lpFade 0.8s ease 1.7s forwards; }
.lp-motion .lp-graph .g-dash line { animation: lpFlow 2.2s linear infinite; }
.lp-motion .lp-graph .g-packets { display: inline; opacity: 0; animation: lpFade 0.6s ease 2s forwards; }

/* Scroll reveals (classes added by js/landing.js) */
.lp-motion .rv { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.75s cubic-bezier(.2,.7,.2,1); }
.lp-motion .rv.in { opacity: 1; transform: none; }

/* Proof numbers: a short accent bar draws above each as it counts */
.lp-proof li { position: relative; padding-top: 14px; }
.lp-proof li::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: var(--accent); transform-origin: left; }
.lp-motion .lp-proof li.rv::before { transform: scaleX(0); }
.lp-motion .lp-proof li.rv.in::before { animation: lpBar 0.8s cubic-bezier(.2,.7,.2,1) 0.2s forwards; }

/* Steps: the top rule draws across */
.lp-motion .step.rv { border-top-color: transparent; position: relative; }
.lp-motion .step.rv::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(.2,.7,.2,1) 0.15s; }
.lp-motion .step.rv.in::before { transform: scaleX(1); }

/* Hover life */
.lp-solutions li { transition: background-color 0.2s ease, padding 0.2s ease; }
.lp-solutions li:hover { background: var(--bg-alt); padding-left: 10px; padding-right: 10px; }
.section-alt .lp-solutions li:hover { background: #FFFFFF; }
.lp-offer, .lp-hear li { transition: transform 0.2s ease; }
.lp-offer:hover, .lp-hear li:hover { transform: translateY(-3px); }
.lp-logos ul { filter: none; opacity: 1; }
.lp-logos img { filter: grayscale(1); opacity: 0.75; transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease; }
.lp-logos img:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.lp-quote .qlogo { transition: transform 0.25s ease; }
.lp-quote:hover .qlogo { transform: translateY(-2px); }
.btn-secondary { transition: all 0.15s ease, transform 0.15s ease; }
.lp-cta .btn:hover, .hero-cta .btn:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .lp-graph .g-packets { display: none !important; }
}
