/* Homepage funnel: problem, process, repeated calls to action and a sticky booking bar. */
.pain-section, .process-steps { padding-block: 84px; }
.pain-section .section-heading, .process-steps .section-heading { margin-bottom: 30px; }

.pain-grid, .step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pain-card, .step-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pain-card h3, .step-card h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.pain-card p, .step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.pain-index { color: var(--accent-ink); font: 11px/1.5 var(--mono); letter-spacing: .1em; }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; font-size: 14px; }
/* A thin connector between steps on wide screens. */
.step-card:not(:last-child)::after { content: ''; position: absolute; top: 39px; right: -15px; width: 16px; height: 1px; background: color-mix(in srgb, var(--accent-ink) 45%, var(--line)); }

.funnel-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--accent-ink) 30%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.funnel-cta p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
.funnel-cta .button { gap: 16px; }
.engagement-section .funnel-cta { margin-top: 18px; }

.call-agenda-label { margin: 6px 0 8px; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.call-agenda { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.call-agenda li { position: relative; padding-left: 26px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.call-agenda li::before { content: '✓'; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; font-weight: 700; }

.toolkit-home { padding-block: 24px 40px; }

/* Shown once the hero is out of view and hidden again at the contact section. */
.sticky-cta {
  position: fixed; z-index: 900; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 16px;
  padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); text-decoration: none;
  box-shadow: 0 14px 36px -14px #05061199; translate: 0 calc(100% + 1.5rem); visibility: hidden;
  transition: translate .3s ease, visibility 0s linear .3s;
}
.sticky-cta.is-visible { translate: 0 0; visibility: visible; transition: translate .3s ease, visibility 0s; }
.sticky-cta-text { display: grid; }
.sticky-cta strong { font-size: 14px; font-weight: 650; line-height: 1.3; }
.sticky-cta small { font-size: 11px; line-height: 1.4; opacity: .72; }
.sticky-cta:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
body:has(.analytics-consent:not([hidden])) .sticky-cta { visibility: hidden; }

@media (max-width: 1100px) {
  .pain-grid, .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card::after { display: none; }
}
@media (max-width: 760px) {
  .pain-section, .process-steps { padding-block: 60px; }
  .funnel-cta .button { width: 100%; }
  /* On phones the bar spans the screen; lift the privacy link above it. */
  .sticky-cta { left: .75rem; right: .75rem; bottom: .75rem; justify-content: space-between; }
  body:has(.sticky-cta.is-visible) .analytics-settings-link { bottom: 5.25rem; }
}
@media (max-width: 480px) {
  .pain-grid, .step-list { grid-template-columns: 1fr; }
  .pain-card, .step-card { padding: 18px 16px; }
  .pain-card h3, .step-card h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .sticky-cta.is-visible { transition: none; }
}

/* A readable, two-channel funnel. Widths show stages, not proportional conversion rates. */
.pipeline-section { padding-block: 80px; }
.pipeline-demo { max-width: 900px; margin-inline: auto; padding: clamp(16px, 4vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.pipeline-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 20px; }
.pipeline-topline .mini-label { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.pipeline-replay { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 12px var(--sans); cursor: pointer; }
.pipeline-replay[hidden] { display: none; }
.pipeline-replay:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.pipeline-stages { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.pipeline-stage { position: relative; width: var(--stage-width); margin-inline: auto; padding: 15px 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.pipeline-stage:not(:last-child)::after { content: ''; position: absolute; width: 2px; height: 19px; background: var(--line); top: 100%; left: 50%; }
.pipeline-stage-title { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.pipeline-stage-title > span { font: 10px var(--mono); color: var(--muted); }
.pipeline-stage h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.pipeline-values { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 12px; }
.pipeline-channel-name { display: inline-block; padding: 3px 7px; border-radius: 5px; color: var(--accent-ink); background: var(--accent-soft); font-size: 10px; font-weight: 600; }
.pipeline-linkedin .pipeline-channel-name { color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 2px 6px; }
.pipeline-channel p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; margin: 5px 0 0; }
.pipeline-channel strong { color: var(--ink); font-size: clamp(23px, 3.5vw, 34px); font-weight: 600; letter-spacing: -.05em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pipeline-channel p > span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.pipeline-plus { color: var(--muted); font-size: 18px; text-align: center; }
.pipeline-disclaimer { margin: 24px 0 0; max-width: 650px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.pipeline-demo.is-playing .pipeline-stage { animation: pipeline-step .7s ease-out both; animation-delay: calc(var(--stage) * .65s); }
@keyframes pipeline-step { 0% { transform: translateY(-5px); border-color: var(--line); } 50% { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); } 100% { transform: translateY(0); border-color: var(--line); } }
@media (max-width: 600px) {
  .pipeline-section { padding-block: 60px; }
  .pipeline-stage { width: calc(100% - var(--stage) * 3%); padding: 13px 12px 15px; }
  .pipeline-values { gap: 6px; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); }
  .pipeline-channel p { display: grid; gap: 3px; }
  .pipeline-topline { gap: 8px; }
  .pipeline-topline .mini-label { font-size: 9px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-demo.is-playing .pipeline-stage { animation: none; }
}
