/* ============================================================
   KELPARO — product tiles + scroll journey
   Extends style.css. Same tokens, same card language: every tile
   is a live miniature that starts when it scrolls into view
   (.play is added by js/products.js) and loops.
   ============================================================ */

.pt { margin-top: auto; position: relative; min-height: 150px; }
.pt-cap { margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: .02em; }
.pt-cap b { color: var(--text); font-weight: 500; }

/* ---------- visibility receipt: AI answer types, bars race ---------- */
.vis__q { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); white-space: nowrap; overflow: hidden; }
.vis__q span { display: inline-block; overflow: hidden; vertical-align: bottom; max-width: 0; }
.play .vis__q span { animation: typeOn 2.2s steps(40, end) .2s forwards; }
@keyframes typeOn { to { max-width: 100%; } }
.vis__rows { display: grid; gap: 10px; margin-top: 14px; }
.vis__row { display: grid; grid-template-columns: 92px 1fr 46px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-dim); }
.vis__row em { font-style: normal; font-family: var(--font-mono); font-size: 11px; text-align: right; color: var(--text-faint); opacity: 0; }
.vis__track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.vis__track i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--c, var(--violet)); }
.play .vis__track i { animation: barGrow 1.4s var(--ease-out) forwards; animation-delay: var(--bd, 2.4s); }
.play .vis__row em { animation: dashFade .4s forwards; animation-delay: calc(var(--bd, 2.4s) + 1.2s); }
@keyframes barGrow { to { width: var(--w); } }
@keyframes dashFade { to { opacity: 1; } }

/* ---------- SEO & content engine: checks tick, score ring fills ---------- */
.seo2 { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.ring { position: relative; width: 112px; height: 112px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .ring__bg { stroke: var(--surface-2); }
.ring .ring__fg { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; }
.play .ring .ring__fg { animation: ringFill 2.4s var(--ease-out) .4s forwards; }
@keyframes ringFill { to { stroke-dashoffset: 52; } }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; color: var(--text-dim); }
.checks { display: grid; gap: 7px; }
.checks li { list-style: none; display: flex; gap: 9px; align-items: center; font-size: 12.5px; color: var(--text-dim); opacity: .25; transition: opacity .3s; }
.checks li::before { content: ''; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--border-bright); flex-shrink: 0; transition: background .3s, border-color .3s; }
.checks li.on { opacity: 1; }
.checks li.on::before { background: var(--cyan); border-color: var(--cyan); box-shadow: inset 0 0 0 3px var(--bg-2); }

/* ---------- store integrations: parcel moves along the track ---------- */
.track { position: relative; padding: 30px 6px 6px; }
.track__line { height: 3px; border-radius: 2px; background: var(--surface-2); position: relative; }
.track__line i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--grad); }
.play .track__line i { animation: trackGo 4.5s var(--ease-out) .3s infinite; }
@keyframes trackGo { 0% { width: 0; } 70%, 100% { width: 100%; } }
.track__stops { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--text-faint); }
.track__parcel { position: absolute; top: 8px; left: 0; font-size: 18px; }
.play .track__parcel { animation: parcelGo 4.5s var(--ease-out) .3s infinite; }
@keyframes parcelGo { 0% { left: 0; } 70%, 100% { left: calc(100% - 24px); } }
.track__chat { margin-top: 16px; font-size: 13px; color: var(--text-dim); padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--violet) 9%, transparent); border: 1px solid var(--border); }

/* ---------- speed-to-lead: texts pop in ---------- */
.sms { display: flex; flex-direction: column; gap: 8px; }
.sms__b { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(8px) scale(.97); }
.sms__b small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; opacity: .65; margin-top: 3px; }
.sms__b--in { align-self: flex-start; background: var(--surface-2); color: var(--text-dim); border-bottom-left-radius: 4px; }
.sms__b--out { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.play .sms__b { animation: chatIn .45s var(--ease-out) forwards; }
.play .sms__b:nth-child(1) { animation-delay: .2s; }
.play .sms__b:nth-child(2) { animation-delay: 1.1s; }
.play .sms__b:nth-child(3) { animation-delay: 2.3s; }
@keyframes chatIn { to { opacity: 1; transform: none; } }

/* ---------- email & SMS flows: a pulse travels the flow ---------- */
.flow { display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr; align-items: center; gap: 0; margin-top: 8px; }
.flow__node { padding: 12px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: center; font-size: 12px; color: var(--text-dim); transition: border-color .3s, box-shadow .3s, color .3s; }
.flow__node b { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--text-faint); margin-bottom: 4px; }
.flow__node.on { border-color: var(--cyan); color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 14%, transparent); }
.flow__wire { height: 2px; background: var(--border-bright); position: relative; overflow: hidden; }
.flow__wire i { position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--cyan); }
.play .flow__wire i { animation: wire 1.2s linear infinite; }
@keyframes wire { to { left: 100%; } }
.flow__legend { display: flex; gap: 16px; margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); letter-spacing: .06em; }
.flow__legend span::before { content: '●'; margin-right: 6px; color: var(--lime); }

/* ---------- CRM sync: hub with orbiting systems ---------- */
.hub { position: relative; height: 168px; }
.hub__core { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; box-shadow: 0 10px 30px color-mix(in srgb, var(--violet) 40%, transparent); }
.hub__orbit { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px; border: 1px dashed var(--border-bright); border-radius: 50%; }
.play .hub__orbit { animation: spin 18s linear infinite; }
.hub__orbit span { position: absolute; padding: 4px 9px; border-radius: 100px; background: var(--bg-2); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); white-space: nowrap; }
.play .hub__orbit span { animation: spin 18s linear infinite reverse; }
.hub__orbit span:nth-child(1) { left: 50%; top: -11px; translate: -50% 0; }
.hub__orbit span:nth-child(2) { right: -30px; top: 50%; translate: 0 -50%; }
.hub__orbit span:nth-child(3) { left: 50%; bottom: -11px; translate: -50% 0; }
.hub__orbit span:nth-child(4) { left: -30px; top: 50%; translate: 0 -50%; }
.hub__orbit span:nth-child(5) { left: 4%; top: 6%; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub__pulse { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 16px; border: 2px solid var(--cyan); opacity: 0; }
.play .hub__pulse { animation: hubPing 2.4s var(--ease-out) infinite; }
@keyframes hubPing { from { transform: scale(1); opacity: .8; } to { transform: scale(2.8); opacity: 0; } }

/* ---------- command centre: inbox rows cycle, bars breathe ---------- */
.cc { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.cc__bars { display: flex; gap: 5px; align-items: flex-end; height: 92px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.cc__bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--cyan), transparent); height: 20%; transition: height .9s var(--ease-out); }
.cc__inbox { display: grid; gap: 6px; }
.cc__inbox li { list-style: none; display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); font-size: 12px; color: var(--text-dim); animation: feedIn .5s var(--ease-out); }
.cc__inbox li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--violet)); }
.cc__inbox li b { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); font-weight: 400; }
@keyframes feedIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- client portal: onboarding steps complete ---------- */
.portal { display: grid; gap: 8px; }
.portal__step { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); }
.portal__step i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-bright); display: grid; place-items: center; font-style: normal; font-size: 10px; color: transparent; transition: all .35s var(--ease-out); }
.portal__step b { font-family: var(--font-mono); font-size: 9.5px; font-weight: 400; color: var(--text-faint); letter-spacing: .1em; }
.portal__step.done i { background: var(--lime); border-color: var(--lime); color: #111; }
.portal__step.done b { color: var(--cyan); }
.portal__step.now { border-color: var(--violet); }

/* ---------- call desk: timer, wave, save & next ---------- */
.desk { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.desk__btn { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #28c840; color: #fff; font-size: 24px; position: relative; }
.desk__btn::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #28c840; opacity: 0; }
.play .desk__btn::after { animation: hubPing 1.8s var(--ease-out) infinite; }
.desk__who { font-size: 13.5px; color: var(--text); font-weight: 600; }
.desk__who small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); font-weight: 400; margin-top: 2px; }
.desk__timer { font-family: var(--font-mono); font-size: 22px; letter-spacing: .06em; margin-top: 6px; }
.desk__log { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.desk__log span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; padding: 4px 9px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-faint); transition: all .3s; }
.desk__log span.on { color: var(--text); border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); }

/* ---------- LinkedIn desk: drafts swipe to approved ---------- */
.ld { position: relative; height: 150px; }
.ld__card { position: absolute; inset: 0 0 auto 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-2); box-shadow: var(--shadow-deep); font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.ld__card b { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--text-faint); margin-bottom: 6px; }
.ld__card:nth-child(2) { transform: translateY(12px) scale(.96); opacity: .6; z-index: -1; }
.ld__card:nth-child(3) { transform: translateY(24px) scale(.92); opacity: .3; z-index: -2; }
.ld__card.out { animation: swipeOut .7s var(--ease-out) forwards; }
@keyframes swipeOut { to { transform: translateX(110%) rotate(8deg); opacity: 0; } }
.ld__actions { position: absolute; bottom: 0; left: 0; right: 0; display: flex; gap: 8px; }
.ld__actions span { flex: 1; text-align: center; padding: 8px; border-radius: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; border: 1px solid var(--border); color: var(--text-faint); }
.ld__actions span.yes { border-color: var(--lime); color: var(--text); }
.ld__actions span.flash { background: color-mix(in srgb, var(--lime) 22%, transparent); }

/* ---------- video studio: playhead runs the timeline ---------- */
.tl { position: relative; padding-top: 6px; }
.tl__row { display: flex; gap: 4px; height: 22px; margin-bottom: 6px; }
.tl__row i { border-radius: 5px; background: var(--c); opacity: .75; }
.tl__head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.tl__head::before { content: ''; position: absolute; top: -4px; left: -5px; width: 12px; height: 8px; border-radius: 2px; background: var(--magenta); }
.play .tl__head { animation: playhead 5s linear infinite; }
@keyframes playhead { to { left: 100%; } }
.tl__ruler { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); margin-top: 6px; }

/* ---------- outbound gate scan (added to the outbound tile) ---------- */
.gate { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.gate__bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.gate__bar i { display: block; height: 100%; width: 0; background: var(--lime); }
.play .gate__bar i, .gate.play .gate__bar i { animation: gateScan 2.8s var(--ease-out) infinite; }
@keyframes gateScan { 0% { width: 0; } 60%, 100% { width: 100%; } }

/* ============================================================
   JOURNEY — pinned, scroll-scrubbed: Found → Answered → Booked
   ============================================================ */
.journey { position: relative; overflow: hidden; }
.journey__pin { height: 100vh; height: 100dvh; display: flex; flex-direction: column; justify-content: center; position: relative; }
.journey__head { padding: 0 24px; max-width: 1280px; margin: 0 auto 4vh; width: 100%; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.journey__steps { display: flex; gap: 8px; }
.journey__steps span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; padding: 7px 12px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-faint); transition: all .4s var(--ease-out); }
.journey__steps span.on { color: var(--text); border-color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, transparent); }
.journey__track { display: flex; gap: 4vw; padding: 0 max(24px, calc((100vw - 1280px) / 2 + 24px)); will-change: transform; }
.jpanel { flex: 0 0 min(980px, 84vw); border: 1px solid var(--border); border-radius: 28px; background: var(--bg-2); box-shadow: var(--shadow-deep); padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; overflow: hidden; }
.jpanel__no { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: var(--text-faint); }
.jpanel h3 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 56px); line-height: 1; letter-spacing: -.035em; margin: 14px 0 16px; }
.jpanel p { color: var(--text-dim); max-width: 44ch; }
.jpanel__list { display: grid; gap: 10px; }
.jpanel__item { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.jpanel__item .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--violet)) 16%, transparent); color: var(--c, var(--violet)); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.jpanel__item b { display: block; font-size: 15px; }
.jpanel__item small { color: var(--text-faint); font-size: 12.5px; }
.jpanel .orb { opacity: .25; }
.journey__progress { position: absolute; left: 24px; right: 24px; bottom: 5vh; max-width: 1232px; margin: 0 auto; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.journey__progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .jpanel { grid-template-columns: 1fr; flex-basis: 86vw; }
  .journey__head { flex-direction: column; align-items: flex-start; }
}
/* no GSAP or reduced motion: a plain vertical stack */
.journey.is-static .journey__pin { height: auto; padding: 80px 0; }
.journey.is-static .journey__track { flex-direction: column; padding: 0 24px; gap: 24px; align-items: center; }
.journey.is-static .jpanel { flex-basis: auto; width: min(980px, 100%); }
.journey.is-static .journey__progress { display: none; }

/* scroll-scrubbed headline: words light up as you scroll */
.scrub-words .w { opacity: .14; transition: opacity .2s linear; }
.scrub-words .w.lit { opacity: 1; }
@media (max-width: 560px) {
  .cc { grid-template-columns: 1fr; }
  .cc__bars { height: 64px; }
  .seo2 { grid-template-columns: 90px 1fr; gap: 14px; }
  .ring { width: 90px; height: 90px; }
  .flow { grid-template-columns: 1fr 14px 1fr 14px 1fr; }
  .flow__node { font-size: 11px; padding: 10px 4px; }
  .vis__row { grid-template-columns: 78px 1fr 40px; }
}
