/* KAPA classic experience, refreshed: mobile + WhatsApp demo, industry tiles,
   connected "How it Works", and minimal ask-AI form.
   Extends modern AI Business Operating System look, not the old hero background. */

/* Three simultaneously visible product surfaces: KAPA HUB, KAPA App, optional WA */
.aos-hero-device-cluster {
  position:relative; isolation:isolate; display:flex; align-items:flex-start;
  justify-content:space-between; gap:36px; max-width:1050px; padding:0 clamp(15px,7vw,100px);
  height:360px; margin:-55px auto 12px; pointer-events:none;
}
.aos-mobile-device {
  position:relative; z-index:3; overflow:hidden; flex:0 0 219px; width:219px;
  height:356px; padding:7px; border:2px solid #25324a; border-radius:29px;
  background:#111827; box-shadow:0 22px 52px rgba(33,39,69,.24), 0 5px 12px rgba(23,27,48,.16);
  pointer-events:auto; transform-origin:center;
}
.aos-kapa-app-phone {
  transform:rotate(-7deg); animation:kapa-app-float 5.5s ease-in-out infinite;
}
.aos-whatsapp-phone {
  transform:rotate(7deg); animation:kapa-wa-float 6.3s ease-in-out infinite;
}
.aos-device-top { height:13px; display:flex; justify-content:center; gap:5px; align-items:center; }
.aos-phone-camera { width:6px; height:6px; border-radius:100%; background:#46516a; }
.aos-phone-speaker { width:48px; height:4px; border-radius:8px; background:#293952; }
.aos-mobile-screen { height:calc(100% - 13px); overflow:hidden; border-radius:19px; background:#f7f9fe; display:flex; flex-direction:column; }
.aos-app-header {
  display:flex; align-items:center; gap:7px; padding:15px 13px 10px;
  background:#fff; color:#283345; font-size:11px; border-bottom:1px solid #edf0f6;
}
.aos-app-header img { width:20px; height:20px; object-fit:contain; }
.aos-app-header strong { font-weight:800; }
.aos-app-notification { margin-left:auto; font-size:11px; color:#db1540; animation:kapa-notification-ping 2.4s infinite; }
.aos-app-welcome { display:flex; flex-direction:column; padding:17px 15px 10px; }
.aos-app-welcome small { color:#8c98ad; font-size:7px; font-weight:700; letter-spacing:.13em; }
.aos-app-welcome strong { margin-top:5px; font:800 15px/1.25 Sora,Inter,sans-serif; letter-spacing:-.04em; color:#1d2940; }
.aos-app-welcome > span { font-size:9px; color:#7d899d; margin-top:5px; }
.aos-app-quickgrid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; padding:4px 10px 14px; }
.aos-app-quickgrid span {
  display:flex; flex-direction:column; gap:5px; align-items:center; justify-content:center;
  min-height:46px; background:#fff; border:1px solid #e8ecf5; border-radius:9px; font-size:7px; font-weight:700; color:#647089;
}
.aos-app-quickgrid svg { width:17px; height:17px; color:#df2043; }
.aos-app-feature {
  display:flex; flex-direction:column; min-height:100px; margin:0 10px; padding:13px 12px;
  background:linear-gradient(120deg,#fff4f6,#fff); border:1px solid #f1d6df; border-radius:12px;
  box-shadow:0 8px 20px rgba(79,38,79,.055); color:#25314a;
}
.aos-app-feature-tag { display:flex; gap:5px; align-items:center; font-size:7px; font-weight:800; color:#b42649; letter-spacing:.12em; }
.aos-app-live-dot { width:5px; height:5px; border-radius:50%; background:#22b57d; box-shadow:0 0 0 3px #ddf9ea; animation:kapa-notification-ping 2.5s infinite; }
.aos-app-feature strong { font:800 12px/1.25 Sora,Inter,sans-serif; margin-top:9px; }
.aos-app-feature p { color:#8a92a5; font-size:8px; line-height:1.5; margin:4px 0 9px; }
.aos-app-feature-progress { margin-top:auto; height:4px; background:#f6d4e1; border-radius:6px; overflow:hidden; }
.aos-app-feature-progress span { display:block; width:100%; height:100%; border-radius:6px; transform:scaleX(.0); transform-origin:left center; background:linear-gradient(90deg,#e61543,#a56df1); animation:kapa-app-progress 3.8s linear infinite; }
.aos-app-feature.is-changing > :not(.aos-app-feature-progress) { animation:kapa-phone-screen-in .45s ease-out; }
.aos-app-bottom { display:flex; margin-top:auto; justify-content:space-around; padding:11px 8px; border-top:1px solid #e5eaf5; background:#fff; }
.aos-app-bottom > span { display:flex; flex-direction:column; align-items:center; gap:4px; color:#9ba6b7; font-size:15px; }
.aos-app-bottom > span.is-selected { color:#d61846; }
.aos-app-bottom small { color:inherit; font-size:7px; }
.aos-phone-shadow { position:absolute; bottom:-12px; left:25px; width:160px; height:24px; background:rgba(63,47,90,.2); border-radius:50%; filter:blur(18px); z-index:-1; }
.aos-wa-head { display:flex; gap:7px; align-items:center; color:#fff; background:#0a6357; padding:12px 9px; min-height:52px; }
.aos-wa-head img { width:23px; height:23px; border-radius:50%; background:#fff; padding:3px; object-fit:contain; }
.aos-wa-head strong { display:block; font-size:10px; color:#fff; }
.aos-wa-head small { display:block; font-size:7px; margin-top:3px; color:#d1e9e2; }
.aos-wa-back { font-size:24px; font-weight:300; }
.aos-wa-status { margin-left:auto; color:#a5f8c4; font-size:10px; animation:kapa-notification-ping 3s infinite; }
.aos-wa-chat {
  flex:1; min-height:0; overflow:hidden; display:flex; flex-direction:column; gap:6px;
  padding:11px 9px; background:repeating-linear-gradient(45deg,#e7f0e7,#e7f0e7 7px,#edf3e9 7px,#edf3e9 17px);
  color:#1c3b30;
}
.aos-wa-chat .bub {
  flex:0 0 auto; align-self:flex-start; max-width:94%;
  background:#fff; color:#293a35; font-size:9px; line-height:1.45;
  padding:8px 9px; border-radius:9px 9px 9px 2px;
  box-shadow:0 2px 5px rgba(28,55,35,.08);
}
.aos-wa-chat .bub.me { align-self:flex-end; background:#d9f7ce; border-radius:9px 9px 2px 9px; }
.aos-wa-chat .bub.in { animation:kapa-message-in .35s ease-out both; }
.aos-wa-chat .typing { display:inline-flex; gap:3px; }
.aos-wa-chat .typing i { display:block; height:4px; width:4px; border-radius:50%; background:#7c9b88; animation:kapa-phone-typing 1.1s infinite; }
.aos-wa-chat .typing i:nth-child(2) { animation-delay:.14s; }
.aos-wa-chat .typing i:nth-child(3) { animation-delay:.28s; }
.aos-wa-input { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:7px; border-radius:15px; padding:8px 10px; background:#fff; color:#a5b4af; font-size:9px; }
.aos-wa-input b { display:grid; place-items:center; width:20px; height:20px; background:#0a7869; color:#fff; border-radius:50%; font-size:11px; }
.aos-wa-optional { position:absolute; inset:auto 8px 2px; color:#fff; font-size:7px; font-weight:800; text-align:center; letter-spacing:.08em; }
.aos-device-connection { position:absolute; inset:100px 23% auto; z-index:1; display:flex; justify-content:center; align-items:center; gap:0; height:50px; border-top:2px dashed #dbb1e5; opacity:.8; }
.aos-device-connection strong {
  position:absolute; left:50%; top:-19px; transform:translateX(-50%);
  white-space:nowrap; background:#fff; color:#9b3cc3; border:1px solid #f0d8f7;
  border-radius:12px; padding:7px 15px; font-size:11px; box-shadow:0 4px 15px rgba(87,34,129,.08);
}
.aos-connection-dot { position:absolute; top:-5px; left:0; height:9px; width:9px; border-radius:50%; background:#e5275b; box-shadow:0 0 15px #de2b66; animation:kapa-connection-run 3.2s linear infinite; }
.aos-connection-dot.is-reverse { left:auto; right:0; background:#8057ea; animation:kapa-connection-run 4.1s linear infinite reverse; }
.aos-cluster-caption { position:absolute; bottom:-15px; left:0; right:0; text-align:center; color:#9b9cad; font-size:10px; }
.aos-hero-device-cluster + .aos-platform-caps { margin-top:45px; }

/* Header: quietly magnetic, with an eye-catching sweep every ~4 seconds. */
.site-header .nav-start-motion {
  position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center;
  gap:9px; min-height:42px; padding:10px 17px; overflow:hidden; border-radius:11px;
  box-shadow:0 9px 22px rgba(223,18,57,.18); font-weight:800; white-space:nowrap;
  animation:kapa-header-cta-pulse 4.2s ease-in-out infinite;
}
.site-header .nav-start-motion::before {
  content:""; position:absolute; inset:-30% auto -30% -50%; width:35%; z-index:0; pointer-events:none;
  background:linear-gradient(95deg,transparent,rgba(255,255,255,.60),transparent);
  transform:skewX(-19deg) translateX(0); animation:kapa-header-cta-shine 4.2s ease-in-out infinite;
}
.site-header .nav-start-motion > span { position:relative; z-index:1; }
.site-header .nav-start-motion:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(223,18,57,.28); }
.site-header .nav-start-motion .nav-trial-arrow { font-size:16px; display:inline-block; animation:kapa-header-arrow 2s ease-in-out infinite; }
.site-header .nav-start-motion:focus-visible { outline:3px solid #9d73f5; outline-offset:3px; }

/* Restore the recognisable existing sections, but with cleaner typography and polish. */
.aos-how-legacy { position:relative; isolation:isolate; background:linear-gradient(125deg,#101727,#141a30 65%,#1c1a39); color:#fff; overflow:hidden; }
.aos-how-legacy::before { content:""; position:absolute; z-index:-1; width:620px; height:620px; border-radius:50%; right:-180px; top:-230px; background:radial-gradient(circle,rgba(133,75,234,.22),transparent 71%); animation:kapa-how-aurora 11s ease-in-out infinite alternate; }
.aos-how-legacy .eyebrow { color:#ff94aa; }
.aos-how-legacy .h-section { color:#fff; }
.aos-how-legacy .h-section span { color:#ff8ca5; }
.aos-how-summary { margin:0; color:#aab6ca; line-height:1.7; }
.aos-how-legacy .text-secondary-dark { color:#aab6ca !important; line-height:1.55; }
.aos-how-legacy .step-n { box-shadow:0 8px 18px rgba(0,0,0,.14); }
.aos-how-step { transition:transform .25s; }
.aos-how-step:hover { transform:translateX(5px); }
.aos-how-flow { overflow:visible; }
.aos-how-flow .flow-node { min-width:0; min-height:158px; background:rgba(255,255,255,.065); backdrop-filter:blur(7px); border-color:rgba(255,255,255,.16); animation:kapa-how-node 5s ease-in-out infinite; }
.aos-how-flow .flow-node:nth-of-type(2) { animation-delay:-1.6s; }
.aos-how-flow .flow-node:nth-of-type(3) { animation-delay:-3.2s; }
.aos-how-flow .flow-node img { max-width:100%; height:39px; object-fit:contain; }
.aos-how-flow .flow-node .ico { width:48px; height:48px; display:grid; place-items:center; border-radius:12px; }
.aos-how-flow .flow-node svg.ki { width:27px; height:27px; }
.aos-how-flow .flow-node strong { color:#fff; }
.aos-how-flow .aos-how-addon { color:#f5bdc9; font-size:9px; }
.aos-how-feature-list { min-height:330px; border:1px solid rgba(210,190,249,.18); padding:23px; border-radius:19px; }
.aos-how-workflow-list { width:100%; max-width:555px; display:grid; gap:11px; z-index:1; }
.aos-how-workflow-row {
  display:flex; align-items:center; gap:12px; border:1px solid rgba(255,255,255,.13); border-radius:12px;
  padding:13px 15px; background:rgba(255,255,255,.07); backdrop-filter:blur(10px);
  animation:kapa-how-item 6s ease-in-out infinite; animation-delay:calc(var(--row) * -1.5s);
}
.aos-how-workflow-row .small.fw-semibold { color:#fff; }
.aos-how-workflow-row .ico { flex:0 0 auto; width:35px; height:35px; display:grid; place-items:center; }
.aos-how-workflow-row .ico svg { width:20px; height:20px; }
.aos-how-check { color:#70e3a1; font-size:18px; }
.aos-how-feature-glow { position:absolute; inset:0; z-index:0; pointer-events:none; background:radial-gradient(ellipse at 70% 35%,rgba(161,88,235,.17),transparent 65%); animation:kapa-how-aurora 8s ease-in-out infinite alternate; }

/* Image-led industry cards from the original homepage. */
.aos-industries-legacy { background:#fff; }
.aos-industries-legacy .aos-industry-viewall { color:#be1740; text-decoration:none; }
.aos-industries-legacy .ind-card { height:100%; border-radius:18px; border:1px solid #e6e8ef; box-shadow:0 8px 34px rgba(37,32,65,.055); overflow:hidden; }
.aos-industries-legacy .ind-visual { height:180px; }
.aos-industries-legacy .ind-body { padding:19px 20px 21px; }
.aos-industries-legacy .ind-body h3 { font-size:17px; font-weight:800; line-height:1.35; }
.aos-industries-legacy .ind-body p { font-size:12px; color:#7e8796; line-height:1.6; margin:7px 0 0; }
.aos-industries-legacy .ind-card:hover { box-shadow:0 22px 50px rgba(42,32,85,.11); }
.aos-industries-legacy .ind-card .ind-visual img { transition:transform .65s ease; }
.aos-industries-legacy .ind-card:hover .ind-visual img { transform:scale(1.075); }

/* Original lightweight Ask-KAPA-AI search UI instead of a multi-select form. */
.aos-ask-legacy { position:relative; background:radial-gradient(ellipse 42% 55% at 10% 30%,#fff0f4,transparent 80%),radial-gradient(ellipse 40% 60% at 90% 80%,#f1ecff,transparent 80%),#f8f9fc; }
.aos-ask-legacy .ai-badge { animation:kapa-ask-glow 4.5s ease-in-out infinite; }
.aos-ask-legacy .ask-bar { max-width:850px; width:100%; min-height:70px; border:1px solid #e0dce8; box-shadow:0 18px 55px rgba(67,44,113,.105); transition:border-color .25s,box-shadow .25s; }
.aos-ask-legacy .ask-bar:focus-within { border-color:#9b64db; box-shadow:0 20px 60px rgba(116,67,183,.17); }
.aos-ask-legacy .ask-bar input { font-size:15px; color:#222a40; }
.aos-ask-legacy .ask-bar .btn { min-height:48px; border-radius:11px; font-size:13px; white-space:nowrap; }
.aos-ask-legacy .chip { font-size:12px; border-color:#dadce8; transition:transform .18s,border-color .18s; }
.aos-ask-legacy .chip:hover { transform:translateY(-3px); border-color:#cb90e8; }

/* Visible animation frames. */
@keyframes kapa-app-float { 0%,100% { transform:translate3d(0,0,0) rotate(-7deg); } 50% { transform:translate3d(7px,-21px,0) rotate(-4deg); } }
@keyframes kapa-wa-float { 0%,100% { transform:translate3d(0,0,0) rotate(7deg); } 50% { transform:translate3d(-8px,-25px,0) rotate(4deg); } }
@keyframes kapa-app-progress { 0% { transform:scaleX(0); } 100% { transform:scaleX(1); } }
@keyframes kapa-notification-ping { 0%,65%,100% { opacity:.85; transform:scale(1); } 30% { opacity:1; transform:scale(1.35); } }
@keyframes kapa-phone-screen-in { from { opacity:.1; transform:translateY(9px); } to { opacity:1; transform:translateY(0); } }
@keyframes kapa-message-in { from { opacity:0; transform:translateY(8px) scale(.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes kapa-phone-typing { 0%,65%,100% { transform:translateY(0); opacity:.4; } 32% { transform:translateY(-4px); opacity:1; } }
@keyframes kapa-connection-run { from { left:-5px; } to { left:calc(100% - 4px); } }
@keyframes kapa-header-cta-pulse { 0%,100% { box-shadow:0 8px 18px rgba(223,18,57,.12),0 0 0 0 rgba(225,36,77,.15); } 50% { box-shadow:0 12px 27px rgba(223,18,57,.22),0 0 0 7px rgba(225,36,77,0); } }
@keyframes kapa-header-cta-shine { 0%,30% { left:-60%; } 70%,100% { left:140%; } }
@keyframes kapa-header-arrow { 0%,100% { transform:translate(0,0); } 50% { transform:translate(3px,-2px); } }
@keyframes kapa-how-aurora { from { opacity:.6; transform:translate3d(0,0,0) scale(.95); } to { opacity:1; transform:translate3d(-28px,33px,0) scale(1.1); } }
@keyframes kapa-how-node { 0%,100% { border-color:rgba(255,255,255,.12); transform:translateY(0); } 50% { border-color:rgba(216,155,246,.33); transform:translateY(-4px); } }
@keyframes kapa-how-item { 0%,100% { background:rgba(255,255,255,.07); } 50% { background:rgba(183,110,236,.16); } }
@keyframes kapa-ask-glow { 0%,100% { box-shadow:0 15px 30px rgba(97,39,179,.2); } 50% { box-shadow:0 20px 58px rgba(200,65,180,.39); } }

/* Responsive: cards stay readable and both phones remain visible. */
@media(max-width:991.98px) {
  .aos-hero-device-cluster { max-width:720px; margin-top:-28px; padding:0 30px; height:345px; }
  .aos-mobile-device { flex-basis:202px; width:202px; height:337px; }
  .aos-device-connection { inset:88px 27% auto; }
  .aos-how-flow { gap:8px; }
  .aos-how-flow .flow-node { min-height:139px; padding:14px 9px; }
  .aos-how-flow .flow-arrow { width:30px; }
}
@media(max-width:575.98px) {
  .aos-hero-device-cluster { height:285px; padding:0 3px; gap:9px; margin-top:-5px; }
  .aos-mobile-device { width:calc(50% - 8px); flex:0 0 calc(50% - 8px); height:275px; border-radius:22px; padding:4px; }
  .aos-mobile-screen { border-radius:15px; height:calc(100% - 10px); }
  .aos-device-top { height:10px; }
  .aos-phone-speaker { width:36px; }
  .aos-app-header { padding:8px 7px; font-size:9px; gap:4px; }
  .aos-app-header img { width:16px; height:16px; }
  .aos-app-welcome { padding:9px 7px 7px; }
  .aos-app-welcome strong { font-size:12px; }
  .aos-app-welcome span { font-size:7px; }
  .aos-app-quickgrid { padding:3px 5px 9px; gap:3px; }
  .aos-app-quickgrid span { min-height:32px; font-size:6px; }
  .aos-app-quickgrid svg { width:13px; height:13px; }
  .aos-app-feature { padding:9px 7px; margin:0 6px; min-height:83px; }
  .aos-app-feature strong { font-size:10px; }
  .aos-app-feature p { font-size:7px; }
  .aos-app-bottom { padding:7px 3px; }
  .aos-app-bottom small { font-size:6px; }
  .aos-wa-head { padding:7px 5px; gap:4px; min-height:42px; }
  .aos-wa-head img { width:18px; height:18px; }
  .aos-wa-head strong { font-size:8px; }
  .aos-wa-head small { font-size:6px; }
  .aos-wa-back { font-size:19px; }
  .aos-wa-chat { padding:6px; gap:4px; }
  .aos-wa-chat .bub { font-size:7px; padding:5px; max-width:98%; }
  .aos-wa-input { padding:5px 7px; margin:4px; font-size:7px; }
  .aos-wa-input b { height:16px; width:16px; font-size:9px; }
  .aos-wa-optional { font-size:5px; }
  .aos-device-connection { inset:54px 34% auto; opacity:.55; }
  .aos-device-connection strong { padding:5px; font-size:7px; }
  .aos-cluster-caption { bottom:-24px; font-size:8px; }
  .aos-hero-device-cluster + .aos-platform-caps { margin-top:45px; }
  .aos-how-legacy .h-section { font-size:35px; }
  .aos-how-legacy .flow { grid-template-columns:1fr; }
  .aos-how-legacy .flow-arrow { transform:rotate(90deg); justify-self:center; }
  .aos-how-legacy .flow-node { min-height:120px; }
  .aos-how-legacy .video-frame { min-height:300px; }
  .aos-industries-legacy .ind-visual { height:165px; }
  .aos-ask-legacy .ask-bar { padding:7px; gap:6px; flex-wrap:wrap; }
  .aos-ask-legacy .ask-bar .ask-mark { width:34px; height:34px; }
  .aos-ask-legacy .ask-bar input { flex:1 1 calc(100% - 47px); font-size:12px; }
  .aos-ask-legacy .ask-bar .btn { flex:1 1 100%; min-height:42px; }
  .site-header .nav-start-motion { padding:9px 10px; font-size:12px; min-height:36px; }
  .site-header .nav-start-motion .nav-trial-arrow { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  .aos-kapa-app-phone,.aos-whatsapp-phone,.aos-connection-dot,.aos-app-feature-progress span,
  .aos-app-notification,.aos-wa-status,.aos-wa-chat .bub,.aos-wa-chat .typing i,
  .aos-how-legacy::before,.aos-how-flow .flow-node,.aos-how-workflow-row,
  .aos-ask-legacy .ai-badge,.site-header .nav-start-motion,.site-header .nav-start-motion::before,
  .site-header .nav-start-motion .nav-trial-arrow {
    animation:none !important; transition:none !important;
  }
  .aos-kapa-app-phone { transform:rotate(-4deg); }
  .aos-whatsapp-phone { transform:rotate(4deg); }
}


/* KAPA AI: exact SVG mark reused from the existing floating assistant.
   Keep the established AI section composition; animate icon layers only. */
.aos-ai-section .aos-ai-eyebrow-brand {
  display:inline-flex; vertical-align:middle; align-items:center; justify-content:center;
  color:#f8b1ea; width:23px; height:23px; margin-right:7px;
}
.aos-ai-section .aos-ai-eyebrow-brand .ai-mark { width:22px; height:22px; }
.aos-ai-section .aos-ai-branded-logo {
  position:relative; isolation:isolate; display:inline-grid; place-items:center; flex:0 0 auto;
  border-radius:12px; color:#fff;
  background:linear-gradient(135deg,#e0102a,#b3135f 55%,#6d28d9);
  box-shadow:0 10px 25px rgba(179,58,207,.27);
  animation:kapa-ai-brand-float 3.7s ease-in-out infinite !important;
}
.aos-ai-section .aos-console-avatar.aos-ai-branded-logo { width:39px; height:39px; padding:5px; }
.aos-ai-section .aos-ai-branded-logo .ai-mark { display:block; width:29px; height:29px; }
.aos-ai-section .aos-ai-branded-logo::after {
  content:""; position:absolute; inset:-5px; z-index:-1; border-radius:17px;
  border:1px solid rgba(220,151,245,.44);
  animation:kapa-ai-brand-ring 4s ease-in-out infinite;
}
.aos-ai-section .aos-console-assistant-mark.aos-ai-branded-logo--small {
  width:32px; height:32px; padding:4px; border-radius:10px;
}
.aos-ai-section .aos-console-assistant-mark.aos-ai-branded-logo--small .ai-mark {
  width:24px; height:24px;
}
.aos-ai-section .aos-console-assistant-mark.aos-ai-branded-logo--small::after {
  inset:-4px; border-radius:13px;
}
.aos-ai-section .aos-ai-branded-cta {
  position:relative; gap:10px; align-items:center; justify-content:space-between;
  overflow:hidden;
}
.aos-ai-section .aos-ai-cta-mark {
  display:grid; place-items:center; color:#fff; flex:0 0 28px; width:28px; height:28px;
  border-radius:9px; background:linear-gradient(135deg,#e0102a,#b3135f 58%,#6d28d9);
  box-shadow:0 3px 13px rgba(157,54,188,.25);
  animation:kapa-ai-brand-cta-pulse 3.4s ease-in-out infinite;
}
.aos-ai-section .aos-ai-cta-mark .ai-mark { width:22px; height:22px; }
.aos-ai-section .aos-ai-cta-label { flex:1; text-align:left; }
.aos-ai-section .aos-ai-cta-arrow { margin-left:8px; }
.aos-ai-section .aos-ai-branded-cta:hover .aos-ai-cta-mark { filter:brightness(1.1); }
@keyframes kapa-ai-brand-float {
  0%,100% { box-shadow:0 8px 20px rgba(169,55,204,.22); transform:translateY(0); }
  50% { box-shadow:0 12px 30px rgba(231,64,164,.42); transform:translateY(-3px); }
}
@keyframes kapa-ai-brand-ring {
  0%,100% { opacity:.48; transform:rotate(0deg) scale(.97); }
  50% { opacity:1; transform:rotate(8deg) scale(1.10); }
}
@keyframes kapa-ai-brand-cta-pulse {
  0%,100% { transform:scale(1); box-shadow:0 3px 10px rgba(157,54,188,.20); }
  50% { transform:scale(1.06); box-shadow:0 4px 18px rgba(221,56,149,.42); }
}
@media(prefers-reduced-motion:reduce) {
  .aos-ai-section .aos-ai-branded-logo,
  .aos-ai-section .aos-ai-branded-logo::after,
  .aos-ai-section .aos-ai-cta-mark,
  .aos-ai-section .ai-mark.spin .ai-ring,
  .aos-ai-section .ai-mark.spin .ai-orbit,
  .aos-ai-section .ai-mark.spin .ai-spark {
    animation:none !important; transition:none !important; transform:none !important;
  }
}


/* Mobile homepage overflow fix (How KAPA Works).
   This panel was inheriting the old 16:10 video placeholder aspect ratio and
   overflow:hidden. Four stacked app rows exceeded that height and were cut off.
   Keep the workflow list in normal document flow so all rows remain visible. */
.aos-how-legacy .aos-how-flow,
.aos-how-legacy .aos-how-feature-list {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.aos-how-legacy .aos-how-feature-list {
  display: block;
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  position: relative;
}
.aos-how-legacy .aos-how-workflow-list {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.aos-how-legacy .aos-how-workflow-row {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.aos-how-legacy .aos-how-workflow-row > .flex-grow-1 {
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
}
.aos-how-legacy .aos-how-workflow-row .small {
  white-space: normal;
  overflow-wrap: anywhere;
}
.aos-how-legacy .aos-how-feature-glow {
  border-radius: inherit;
  overflow: hidden;
}
@media (max-width: 991.98px) {
  .aos-how-legacy .row > [class*="col-"] {
    min-width: 0;
  }
  .aos-how-legacy .aos-how-flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 13px;
  }
  .aos-how-legacy .aos-how-flow .flow-node {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .aos-how-legacy .aos-how-flow .flow-node img {
    max-width: min(190px, 78%);
    width: auto;
    object-fit: contain;
  }
  .aos-how-legacy .aos-how-flow .flow-arrow {
    justify-self: center;
    margin-block: 3px;
  }
}
@media (max-width: 575.98px) {
  .aos-how-legacy .aos-how-feature-list {
    padding: 13px;
    border-radius: 16px;
  }
  .aos-how-legacy .aos-how-workflow-list {
    gap: 10px;
  }
  .aos-how-legacy .aos-how-workflow-row {
    padding: 13px 10px;
    gap: 10px;
    border-radius: 11px;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
  }
  .aos-how-legacy .aos-how-workflow-row .ico {
    width: 32px;
    height: 32px;
  }
  .aos-how-legacy .aos-how-workflow-row .small {
    font-size: 11px;
    line-height: 1.55;
  }
  .aos-how-legacy .aos-how-workflow-row .fw-semibold.small {
    font-size: 12px;
    line-height: 1.4;
  }
  .aos-how-legacy .aos-how-check {
    font-size: 15px;
    justify-self: end;
  }
  .aos-how-legacy .aos-how-flow .flow-node {
    min-height: 122px;
    padding: 15px 12px;
    overflow-wrap: anywhere;
  }
}
