/* Keap Pay hero visual, rebuilt in HTML so its parts can move. Sizes scale with the container (cqw). */
.kp-hero { --g: #1d9d4b; --g2: #16a34a; --gl: #e8f6ec; --ink: #1d2b22; --mut: #6b7280; --line: #e7ebe8;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; width: 100%; aspect-ratio: 3 / 2; container-type: inline-size; font-family: inherit; color: var(--ink); overflow: visible; }
.kp-hero * { box-sizing: border-box; }
.kp-blob { position: absolute; background: var(--gl); border-radius: 50%; }
.kp-blob.a { right: 1%; top: 4%; width: 46%; height: 60%; border-radius: 48% 52% 40% 60% / 50% 45% 55% 50%; }
.kp-blob.b { left: 2%; bottom: 6%; width: 50%; height: 34%; border-radius: 55% 45% 50% 50% / 60% 50% 50% 40%; opacity: .8; }

/* Dashboard window */
.kp-win { position: absolute; left: 23%; top: 5%; width: 70%; height: 56.6%; background: #fff; border-radius: 1.4cqw; box-shadow: 0 .4cqw 1.2cqw rgb(16 40 24 / 8%), 0 2cqw 4cqw rgb(16 40 24 / 10%); overflow: hidden; display: grid; grid-template-rows: 3.6cqw 1fr; }
.kp-bar { display: flex; align-items: center; gap: .5cqw; padding: 0 1.2cqw; border-bottom: 1px solid var(--line); }
.kp-bar i { width: .7cqw; height: .7cqw; border-radius: 50%; background: #f87171; }
.kp-bar i:nth-child(2) { background: #fbbf24; } .kp-bar i:nth-child(3) { background: #34d399; }
.kp-bar .kp-search { margin-left: 8cqw; width: 26cqw; height: 1.7cqw; border-radius: .5cqw; background: #f3f5f4; font-size: .85cqw; color: #9aa3a0; display: flex; align-items: center; padding-left: .8cqw; }
.kp-bar .kp-icons { margin-left: auto; display: flex; gap: .9cqw; }
.kp-bar .kp-icons b { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; border: .15cqw solid #9aa3a0; }
.kp-body { display: grid; grid-template-columns: 11cqw 1fr; min-height: 0; }
.kp-side { border-right: 1px solid var(--line); padding: 1.2cqw .9cqw; font-size: .95cqw; color: #374151; display: grid; align-content: start; gap: .25cqw; }
.kp-logo { font-weight: 700; color: var(--g); font-size: 1.6cqw; letter-spacing: -.03em; margin: 0 0 .8cqw .3cqw; }
.kp-side span { display: flex; align-items: center; gap: .6cqw; padding: .45cqw .5cqw; border-radius: .4cqw; }
.kp-side span::before { content: ""; width: .9cqw; height: .9cqw; border-radius: .2cqw; border: .12cqw solid #9aa3a0; flex: none; }
.kp-side span.on { background: var(--gl); color: var(--g); font-weight: 600; }
.kp-side span.on::before { border-color: var(--g); }
.kp-main { padding: 1.2cqw 2cqw; min-width: 0; }
.kp-head { display: flex; align-items: center; justify-content: space-between; }
.kp-head h4 { margin: 0; font-size: 2cqw; font-weight: 600; letter-spacing: -.02em; }
.kp-btn { background: var(--g); color: #fff; font-size: .95cqw; font-weight: 600; padding: .6cqw 1.2cqw; border-radius: .45cqw; }
.kp-tabs { display: flex; gap: 2cqw; font-size: .95cqw; color: var(--mut); margin: .9cqw 0 1cqw; border-bottom: 1px solid var(--line); }
.kp-tabs span { padding-bottom: .6cqw; } .kp-tabs .on { color: var(--g); font-weight: 600; box-shadow: inset 0 -.18cqw 0 var(--g); }
.kp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.kp-stat { border: 1px solid var(--line); border-radius: .8cqw; padding: .7cqw 1cqw; }
.kp-stat small { display: block; font-size: .8cqw; color: var(--mut); }
.kp-stat strong { font-size: 1.7cqw; font-weight: 600; letter-spacing: -.02em; }
.kp-stat em { font-style: normal; font-size: .8cqw; color: var(--g2); margin-left: .5cqw; }
.kp-stat svg { display: block; width: 100%; height: 1.8cqw; margin-top: .2cqw; }
.kp-table { margin-top: 1cqw; border: 1px solid var(--line); border-radius: .8cqw; padding: .7cqw 1.1cqw; font-size: .85cqw; }
.kp-table h5 { margin: 0 0 .4cqw; font-size: 1cqw; font-weight: 600; }
.kp-row { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr .8fr; align-items: center; padding: .35cqw 0; border-top: 1px solid var(--line); }
.kp-row.th { color: var(--mut); font-size: .78cqw; border-top: 0; }
.kp-pill { justify-self: start; font-size: .72cqw; padding: .15cqw .6cqw; border-radius: 99cqw; background: #dcfce7; color: #15803d; }
.kp-pill.wait { background: #f3f4f6; color: #4b5563; }
.kp-link { color: var(--g); font-size: .8cqw; margin-top: .4cqw; }

/* Floating pieces */
.kp-float { position: absolute; background: #fff; border-radius: 1.1cqw; box-shadow: 0 .3cqw .8cqw rgb(16 40 24 / 8%), 0 1.6cqw 3.2cqw rgb(16 40 24 / 12%); }
.kp-tile { left: 10%; top: 30%; width: 7.5cqw; height: 7.5cqw; display: grid; place-items: center; }
.kp-tile svg { width: 3.4cqw; height: 3.4cqw; }
.kp-spark { position: absolute; left: 13.5%; top: 21%; width: 3cqw; height: 3cqw; }
.kp-card { left: 4%; top: 47%; width: 29%; padding: 2cqw 1.8cqw 1.6cqw; transform: rotate(-4deg); }
.kp-card h6 { margin: 0 0 .6cqw; font-size: 1.75cqw; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.kp-card p { margin: 0 0 1cqw; font-size: 1cqw; color: var(--mut); line-height: 1.35; }
.kp-card li { list-style: none; display: flex; align-items: center; gap: .6cqw; font-size: 1cqw; margin: .45cqw 0; }
.kp-card ul { margin: 0 0 1.3cqw; padding: 0; }
.kp-card li::before { content: "✓"; display: grid; place-items: center; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--g); color: #fff; font-size: .8cqw; flex: none; }
.kp-card .kp-btn { display: block; text-align: center; padding: .8cqw; font-size: 1cqw; }
.kp-step { padding: 1cqw 1.1cqw; display: flex; gap: .8cqw; align-items: flex-start; font-size: .85cqw; color: var(--mut); line-height: 1.3; }
.kp-step b { display: block; color: var(--ink); font-size: 1cqw; margin-bottom: .2cqw; }
.kp-step svg { width: 2cqw; height: 2cqw; flex: none; }
.kp-step.s1 { left: 11%; top: 81%; width: 17%; }
.kp-step.s2 { left: 30.5%; top: 80%; width: 18.5%; }
.kp-step.s3 { left: 50.5%; top: 74%; width: 15.5%; }
.kp-flow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.kp-lift { left: 64%; top: 68%; width: 29%; padding: 1.4cqw 1.6cqw; display: grid; grid-template-columns: auto 1fr; column-gap: 1cqw; align-items: center; }
.kp-lift .kp-ic { width: 3.4cqw; height: 3.4cqw; border-radius: .9cqw; background: var(--gl); display: grid; place-items: center; grid-row: span 2; }
.kp-lift .kp-ic svg { width: 1.8cqw; height: 1.8cqw; }
.kp-lift strong { font-size: 2.8cqw; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.kp-lift span { font-size: .95cqw; color: var(--mut); line-height: 1.3; }
.kp-lift svg.kp-curve { position: absolute; right: 1.2cqw; bottom: 1cqw; width: 11cqw; height: 6cqw; }

/* Motion: everything starts slightly off and settles in once, then the floating pieces drift. */
.kp-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.kp-hero.kp-ready .kp-win, .kp-hero.kp-ready .kp-float, .kp-hero.kp-ready .kp-row:not(.th), .kp-hero.kp-ready .kp-stat { opacity: 0; }
.kp-hero.kp-ready .kp-draw { stroke-dashoffset: 1; }
.kp-hero.kp-play .kp-win { animation: kp-rise 700ms var(--ease-out) both; }
.kp-hero.kp-play .kp-stat { animation: kp-rise 500ms var(--ease-out) both; animation-delay: calc(250ms + var(--i) * 80ms); }
.kp-hero.kp-play .kp-row:not(.th) { animation: kp-fade 400ms var(--ease-out) both; animation-delay: calc(450ms + var(--i) * 70ms); }
.kp-hero.kp-play .kp-stat .kp-draw { animation: kp-draw 900ms var(--ease-out) both; animation-delay: calc(450ms + var(--i) * 80ms); }
.kp-hero.kp-play .kp-tile { animation: kp-pop 500ms var(--ease-out) both 500ms, kp-drift 6s ease-in-out 1.2s infinite; }
.kp-hero.kp-play .kp-card { animation: kp-in-left 700ms var(--ease-out) both 600ms, kp-drift-r 7s ease-in-out 1.4s infinite; }
.kp-hero.kp-play .kp-step.s1 { animation: kp-rise 500ms var(--ease-out) both 900ms; }
.kp-hero.kp-play .kp-step.s2 { animation: kp-rise 500ms var(--ease-out) both 1050ms; }
.kp-hero.kp-play .kp-step.s3 { animation: kp-rise 500ms var(--ease-out) both 1200ms, kp-drift 6.5s ease-in-out 1.8s infinite; }
.kp-hero.kp-play .kp-flow .kp-draw { animation: kp-draw 900ms var(--ease-out) both 950ms; }
.kp-hero.kp-play .kp-lift { animation: kp-rise 600ms var(--ease-out) both 1100ms, kp-drift 7.5s ease-in-out 1.8s infinite; }
.kp-hero.kp-play .kp-lift .kp-draw { animation: kp-draw 1100ms var(--ease-out) both 1300ms; }
@keyframes kp-rise { from { opacity: 0; transform: translateY(2cqw); } to { opacity: 1; transform: none; } }
@keyframes kp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kp-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes kp-in-left { from { opacity: 0; transform: translate(-3cqw, 1cqw) rotate(-8deg); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes kp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes kp-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.6cqw); } }
@keyframes kp-drift-r { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-.7cqw); } }
@media (prefers-reduced-motion: reduce) {
  .kp-hero.kp-ready .kp-win, .kp-hero.kp-ready .kp-float, .kp-hero.kp-ready .kp-row:not(.th), .kp-hero.kp-ready .kp-stat { opacity: 1; }
  .kp-hero.kp-ready .kp-draw { stroke-dashoffset: 0; }
  .kp-hero.kp-play * { animation: none !important; }
}
/* Small sizes: fixed 1px borders take more room, so give the table a little more space. */
@container (max-width: 600px) {
  .kp-lift { top: 72%; }
  .kp-step.s3 { top: 77%; }
}
/* Walkthrough video inside the window instead of the drawn dashboard. */
.kp-win .kp-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; background: #fff; min-height: 0; }
.kp-hero.kp-play .kp-win { animation: kp-rise 700ms var(--ease-out) both; }
/* Show the whole recording: never crop its sides. */
.kp-win .kp-video { object-fit: contain; object-position: left top; }
/* Floating cards removed: only the window and walkthrough stay. */
.kp-hero .kp-float, .kp-hero .kp-spark, .kp-hero .kp-flow { display: none !important; }
/* Bigger window now that the floating cards are gone. */
.kp-hero { aspect-ratio: 100 / 56 !important; }
.kp-hero .kp-win { left: 2% !important; top: 4% !important; width: 96% !important; height: auto !important; aspect-ratio: auto; }
.kp-hero .kp-win .kp-video { height: auto !important; aspect-ratio: 1800 / 878; }
