/* Kenmore mobile-app showcase page (kma-). Loaded only by the page that links it.
   Reusable for the prop firm page: no page IDs, motion chosen by data-kma-motion on each section.
   Type, colours and buttons come from the theme (main.css); only layout and motion live here.
   Theme tokens used: text #2A2B2D, orange #FA6C06 / hover #fb8a38, blue #7E97C9, pale blue #E6EDF8. */

/* ---------- 1. Page shell: undo the No Menu template's wrapper (.brief-section > .container > .wrap-content.tpg) ---------- */
.brief-section:has(.kma){padding:110px 0 0;overflow-x:clip}
/* The theme's div.wrapper has overflow:hidden, which turns it into a scroll container and stops position:sticky
   from pinning anything. clip keeps the sideways overflow hidden without that (same pattern as the site's
   Customizer CSS uses for the download pages). */
.wrapper:has(.kma){overflow:visible;overflow-x:clip}
.page-nav-section ~ .brief-section:has(.kma){padding-top:0}     /* Menu page Hero Template: the icon row already clears the header */
.wrap-content > .kma{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.kma{--kma-ink:#2A2B2D;--kma-orange:#FA6C06;--kma-orange-h:#fb8a38;--kma-blue:#7E97C9;--kma-pale:#E6EDF8;--kma-muted:#5d6170;
  --kma-head:78px;               /* sticky site header: 10+58+10 px (>=992), 58 below; kma.js measures the real one */
  --kma-ratio:2.0379;            /* capture height / width (2205 / 1082) */
  --kma-phone-w:min(300px, calc((100vh - var(--kma-head) - 90px) / var(--kma-ratio) + 20px));
  color:var(--kma-ink);position:relative}
.kma *,.kma *::before,.kma *::after{box-sizing:border-box}
/* .tpg leaks into anything inside the wrapper: images, paragraphs, lists */
.kma img{display:block;max-width:none;height:auto}
.kma p{margin:0 0 18px}
.kma p:last-child{margin-bottom:0}
.kma ul{display:block;width:auto;margin:0;padding:0;list-style:none}
.kma ul li{display:block;width:auto;padding:0;margin:0;font-size:inherit;line-height:inherit}
.kma ul li::before{content:none}
.kma a:not(.btn){color:var(--kma-orange);text-decoration:none}
.kma a:not(.btn):hover{text-decoration:underline}
.kma .btn:focus-visible,.kma summary:focus-visible{outline:2px solid var(--kma-blue);outline-offset:3px}
.kma .btn.kma-btn-ghost{background:transparent;color:var(--kma-orange)}
.kma .btn.kma-btn-ghost:hover{background:var(--kma-orange);border-color:var(--kma-orange);color:#fff}
.kma-btns{display:flex;flex-wrap:wrap;gap:16px;margin-top:32px}

/* type, sized like the sibling service pages (pc-title 72/44/36/30, card captions 36/32/24, body 20/1.5) */
.kma .kma-h1{font-size:72px;line-height:1.167;font-weight:900;margin:0 0 2px}
.kma .kma-sub{font-size:1.5em;line-height:1.3;font-weight:bold;margin:0 0 24px}
.kma .kma-h2{font-size:36px;line-height:42px;font-weight:bold;margin:0 0 20px;color:var(--kma-ink)}
.kma .kma-text p{font-size:20px;line-height:1.5}
.kma .kma-h3{font-size:20px;line-height:1.3;font-weight:bold;margin:0 0 20px;color:var(--kma-ink)}
@media (max-width:1199px){.kma .kma-h1{font-size:44px}.kma .kma-h2{font-size:32px;line-height:1.25}}
@media (max-width:991px){.kma .kma-text p{font-size:18px}}
@media (max-width:767px){.kma .kma-h1{font-size:36px}.kma .kma-h2{font-size:24px;line-height:28px}.kma .kma-text p{font-size:16px}.kma .kma-sub{font-size:20px}}
@media (max-width:374px){.kma .kma-h1{font-size:30px}}

/* ---------- 2. Phone frame (one component; the screenshot is an <img> inside .kma-screen) ---------- */
.kma-phone{position:relative;width:var(--kma-phone-w);flex:none;margin:0;padding:9px;border-radius:46px;
  background:linear-gradient(145deg,#2b2e35,#14161a);
  box-shadow:inset 0 0 0 1.5px #474b55,inset 0 0 0 3px #101114,0 40px 70px -30px rgba(42,43,64,.45),0 12px 24px -12px rgba(42,43,64,.25)}
.kma-phone::after{content:"";position:absolute;top:19px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#3a4256 0 25%,#08090b 30%);z-index:3}       /* camera dot */
.kma-screen{position:relative;overflow:hidden;border-radius:37px;aspect-ratio:1082 / 2205;background:#F4F6FB;isolation:isolate}
.kma-screen.kma-dark{background:#15171C}
.kma-screen img{width:100%;height:auto;will-change:transform}
/* B: a row of slides; C: stacked frames */
.kma-track{display:flex;height:100%;will-change:transform}
.kma-track > img{flex:none;width:100%;height:100%;object-fit:cover;object-position:top}
.kma-stack > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}
.kma-stack > img + img{opacity:0}
.kma-dots{display:flex;justify-content:center;gap:8px;margin-top:18px;height:8px}
.kma-dots span{width:8px;height:8px;border-radius:4px;background:#c9d2e6;transition:width .3s,background .3s}
.kma-dots span.kma-on{width:22px;background:var(--kma-orange)}
/* pale-blue panel behind each phone (house illustration style) */
.kma-device{position:relative;display:flex;flex-direction:column;align-items:center;isolation:isolate}
.kma-device::before{content:"";position:absolute;z-index:-1;left:50%;top:50%;width:min(calc(var(--kma-phone-w) * 1.9), 100%);   /* never wider than its own column */
  height:calc(var(--kma-phone-w) * 1.45);
  transform:translate(-50%,-52%);background:var(--kma-pale);border-radius:28px}
.kma-art{position:absolute;z-index:-1;pointer-events:none;width:calc(var(--kma-phone-w) * .72);height:auto}
/* tucked behind the phone's side by 20 px; the rest sits on the panel */
/* clamped to the column edge, so an illustration never leaves the phone's column */
.kma-art--l{left:max(0px, calc(50% - var(--kma-phone-w) * 1.22 + 20px));bottom:9%}
.kma-art--r{right:max(0px, calc(50% - var(--kma-phone-w) * 1.22 + 20px));top:9%}
.kma-art--card{padding:12px;background:#fff;border-radius:18px;box-shadow:0 18px 34px -18px rgba(42,43,64,.35)}

/* ---------- 3. Hero ---------- */
.kma-hero{padding:48px 0 90px}
.kma-hero .container{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,560px);gap:40px;align-items:center}
.kma-hero-phones{position:relative;isolation:isolate;display:flex;justify-content:center;align-items:flex-start;min-height:calc(var(--kma-hero-w,300px) * 2.1)}
.kma-hero-phones .kma-phone{--kma-phone-w:var(--kma-hero-w,300px)}
.kma-hero-phones .kma-phone + .kma-phone{position:absolute;--kma-phone-w:calc(var(--kma-hero-w,300px) * .84);left:calc(50% - var(--kma-hero-w,300px) * .9);top:12%;z-index:-1;opacity:.98}
.kma-hero-phones .kma-phone:first-child{margin-left:calc(var(--kma-hero-w,300px) * .35)}
.kma-hero-phones::before{content:"";position:absolute;z-index:-2;inset:8% 0 0 4%;background:var(--kma-pale);border-radius:32px}
@media (max-width:1199px){.kma-hero{--kma-hero-w:260px}}
@media (max-width:991px){.kma-hero .container{grid-template-columns:1fr}.kma-hero-phones{margin-top:10px}}
@media (max-width:767px){.kma-hero{--kma-hero-w:220px;padding:20px 0 50px}.kma-btns .btn{flex:1 1 220px}}

/* ---------- 4. Feature sections ---------- */
.kma-feature{position:relative}
.kma-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px;align-items:center;padding:70px 0}
.kma-stage > .kma-text{max-width:500px;position:relative;z-index:1}   /* always above the phone column's panel */
.kma-feature.kma-flip .kma-text{order:2}
.kma-feature.kma-flip .kma-device{order:1}
.kma-feature + .kma-feature{border-top:1px solid #edf0f6}
/* pinned mode (>=768px wide and >=600px tall, motion allowed): the section is as tall as its scroll length and the stage sticks */
.kma.kma-pin .kma-feature{height:calc(100vh + var(--kma-len,100vh));pointer-events:none}   /* sections overlap a little (see below); only content takes clicks */
.kma.kma-pin .kma-feature + .kma-feature{border-top:0}
.kma.kma-pin .kma-feature > .container{position:sticky;top:0;height:100vh;display:flex;align-items:center;padding-top:var(--kma-head);pointer-events:none}
.kma.kma-pin .kma-stage > *{pointer-events:auto}
/* kma.js pulls each pinned section up over the empty part of the previous stage (negative margin-top),
   so about 120 px of page separates one section's content from the next */
.kma.kma-pin .kma-stage{width:100%;padding:0}
/* Column boxes (container content = max-width minus 2 x 15 px padding):
   >=1200: 1200 content, gap 60, columns 570 / 570 (555 at 1200 wide), text max 500, panel <= column, art inside column
   992-1199: 920 content, gap 60, columns 430 / 430: panel = column width, no illustrations (only 65 px beside the phone)
   768-991: 690 content, gap 36, phone column = phone width (300), text column 354, no panel, no illustrations */
@media (max-width:1199px){.kma .kma-art{display:none}}
@media (max-width:991px){
  .kma-stage{gap:36px;grid-template-columns:minmax(0,1fr) var(--kma-phone-w)}
  .kma-feature.kma-flip .kma-stage{grid-template-columns:var(--kma-phone-w) minmax(0,1fr)}
  .kma-device::before{display:none}
}
@media (max-width:767px){
  .kma-stage,.kma-feature.kma-flip .kma-stage{grid-template-columns:1fr;gap:28px;padding:50px 0}
  .kma-device::before{display:block}
  .kma-feature.kma-flip .kma-text,.kma-feature .kma-text{order:1}
  .kma-feature .kma-device{order:2}
  .kma{--kma-phone-w:min(260px,68vw)}
  .kma .kma-art{display:none}   /* .kma img sets display:block with higher specificity */
}

/* ---------- 5. "Also in the app" chips ---------- */
.kma-also{padding:60px 0 70px;text-align:center}
.kma .kma-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:900px;margin:0 auto}
.kma .kma-chips li{padding:10px 20px;border:2px solid var(--kma-pale);border-radius:30px;font-size:16px;line-height:22px;font-weight:500;background:#fff}

/* ---------- 6. Showcase band: isometric wall of real screenshots, pinned behind the copy ---------- */
.kma-showcase{position:relative;background:#cfd9ee}   /* deeper than the panels so light screens stand out */
.kma-showcase-bg{position:relative;height:80vh;min-height:520px;overflow:hidden}
.kma-showcase-bg::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 55%,rgba(207,217,238,0) 0,rgba(207,217,238,.1) 50%,rgba(207,217,238,.75) 100%)}
.kma-iso{position:absolute;left:50%;top:50%;width:1700px;display:flex;gap:28px;justify-content:center;
  transform:translate(-50%,-50%) rotateX(55deg) rotateZ(-45deg);transform-style:flat}
.kma-col{display:flex;flex-direction:column;gap:28px;padding-bottom:28px;flex:none;width:170px}   /* padding = gap, so -50% loops without a seam */
.kma-col img{width:170px;height:auto;border-radius:16px;box-shadow:0 22px 34px -14px rgba(32,38,70,.5),0 0 0 1.5px rgba(42,52,90,.22)}
.kma.kma-anim .kma-col{animation:kma-drift-up 90s linear infinite;animation-play-state:paused}
.kma.kma-anim .kma-col:nth-child(even){animation-name:kma-drift-down;animation-duration:110s}
.kma.kma-anim .kma-run.kma-showcase .kma-col{animation-play-state:running}
@keyframes kma-drift-up{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,-50%,0)}}
@keyframes kma-drift-down{from{transform:translate3d(0,-50%,0)}to{transform:translate3d(0,0,0)}}
.kma-showcase-content{position:relative;z-index:2;margin-top:-40vh;padding:0 0 70px}
.kma-showcase-card{max-width:620px;margin:0 auto;padding:40px 44px;text-align:center;background:#fff;border-radius:20px;box-shadow:0 30px 60px -30px rgba(42,43,64,.4)}
/* pinned: the band sticks for one screen and the copy scrolls over it */
.kma.kma-pin .kma-showcase-bg{position:sticky;top:0;height:100vh}
.kma.kma-pin .kma-showcase-content{margin-top:-100vh;padding:75vh 0 35vh}
@media (max-width:767px){.kma-showcase-bg{height:62vh;min-height:420px}.kma-iso{width:1200px;gap:18px}.kma-col{width:120px;gap:18px;padding-bottom:18px}.kma-col img{width:120px;border-radius:11px}.kma-showcase-content{margin-top:-22vh}.kma-showcase-card{padding:28px 22px}}

/* ---------- 7. Test it yourself band ---------- */
.kma-test{padding:90px 0;text-align:center;background:#fff}
.kma-test .kma-text{max-width:640px;margin:0 auto}
.kma-test .kma-btns{justify-content:center}

/* ---------- 8. Cross-link strip ---------- */
.kma-xlinks{padding:20px 0 90px}
.kma-xlinks .container{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.kma-xl{display:flex;align-items:center;gap:30px;padding:34px;border:2px solid var(--kma-pale);border-radius:20px;background:#fff}
.kma-xl .kma-phone{--kma-phone-w:150px;padding:6px;border-radius:26px}
.kma-xl .kma-phone::after{top:12px;width:7px;height:7px;margin-left:-3.5px}
.kma-xl .kma-screen{border-radius:21px}
.kma-xl .kma-h2{font-size:24px;line-height:1.25;margin-bottom:12px}
.kma-xl .kma-text p{font-size:18px}
.kma-xl-link{display:inline-block;margin-top:14px;font-weight:bold}
.kma-xl-link::after{content:" \2192"}
@media (max-width:991px){.kma-xlinks .container{grid-template-columns:1fr}}
@media (max-width:575px){.kma-xl{flex-direction:column;text-align:center;padding:26px 20px}}

/* ---------- 9. FAQ ---------- */
.kma-faq{padding:20px 0 90px}
.kma-faq .kma-h2{text-align:center;margin-bottom:30px}
.kma-faq-list{max-width:860px;margin:0 auto}
.kma-faq details{border-bottom:1px solid #dfe4ef}
.kma-faq summary{position:relative;list-style:none;cursor:pointer;padding:22px 44px 22px 0;font-size:20px;line-height:1.35;font-weight:bold}
.kma-faq summary::-webkit-details-marker{display:none}
.kma-faq summary::after{content:"";position:absolute;right:6px;top:50%;width:12px;height:12px;margin-top:-9px;border-right:3px solid var(--kma-orange);border-bottom:3px solid var(--kma-orange);transform:rotate(45deg);transition:transform .25s}
.kma-faq details[open] summary::after{transform:rotate(-135deg);margin-top:-3px}
.kma-faq .kma-text{padding:0 44px 22px 0}
.kma-faq .kma-text p{font-size:18px}
@media (max-width:767px){.kma-faq summary{font-size:17px}}

/* ---------- 10. "Test it yourself" popup: the theme's contact modal with an intro block (see kma.js) ---------- */
.kma-test-modal .form-caption{display:none}
.kma-test-intro{padding:6px 0 22px;margin:0 0 22px;border-bottom:1px solid #e3e7f0;text-align:center;color:#2A2B2D}
.kma-test-intro .kma-test-title{font-size:24px;line-height:1.2;font-weight:bold;margin:0 0 10px}
.kma-test-intro p{font-size:16px;line-height:1.5;margin:0 0 16px}
.kma-test-intro .btn{min-width:0}
.kma-test-intro .kma-quiet{font-size:14px;color:#6b6f7b;margin:12px 0 0}
.kma-test-intro .kma-test-note{margin:20px 0 0;font-weight:500}

/* ---------- 11. Reduced motion: first frame, no drift, no pinning ---------- */
@media (prefers-reduced-motion:reduce){
  .kma .kma-col{animation:none!important}
  .kma-screen img,.kma-track{transform:none!important}
  .kma-dots span{transition:none}
}

/* ======================= v6 (round 6) additions. Nothing above this line changed, so v5 markup renders as before. ======================= */
.kma{--kma-blue-d:#6C67AB;--kma-card:#F5F8FF;--kma-line:#A4B6D9}
/* the theme's orange circle tick (same path as main.css .tick-list) */
.kma .kma-ticks li::before,.kma .kma-ticklist li::before{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;
  background:url("data:image/svg+xml;charset=UTF-8,%3csvg width='255' height='255' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M127.5 255a127.5 127.5 0 110-255 127.5 127.5 0 010 255zm0-23.2a104.3 104.3 0 100-208.6 104.3 104.3 0 000 208.6zm38.2-147.3L104.3 146l-26.6-26.6-16.3 16.4 43 43 77.7-77.8-16.4-16.4z' fill='%23FA6C06'/%3e%3c/svg%3e") no-repeat center/contain}
/* line icons: inline SVG on a 24 px grid, stroke only, colour from currentColor */
.kma-ico{display:block;width:26px;height:26px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.kma-ico-box{display:flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;border-radius:14px;background:#fff;color:var(--kma-blue-d)}

/* ---------- 12. Hero ticks ---------- */
.kma .kma-ticks{display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:26px}
.kma .kma-ticks li{position:relative;padding-left:28px;font-size:16px;line-height:22px;font-weight:500}
@media (max-width:767px){.kma .kma-ticks{flex-direction:column;gap:8px}}

/* ---------- 13. Benefits: H2 + six cards (3x2, 2x3, 1 column) ---------- */
.kma-benefits{padding:30px 0 90px}
.kma-benefits .kma-h2{max-width:820px;margin:0 auto 40px;text-align:center}
.kma .kma-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.kma .kma-cards > li{display:flex;flex-direction:column;padding:32px 30px 34px;background:var(--kma-card);border-radius:10px}
.kma .kma-cards .kma-ico-box{margin-bottom:22px}
.kma .kma-card-title{font-size:22px;line-height:1.3;font-weight:bold;margin:0 0 12px;color:var(--kma-ink)}
.kma .kma-cards p{font-size:17px;line-height:1.55}
@media (max-width:1199px){.kma .kma-cards{gap:24px}.kma .kma-cards > li{padding:28px 24px 30px}.kma .kma-card-title{font-size:20px}}
@media (max-width:991px){.kma .kma-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){.kma-benefits{padding:10px 0 50px}.kma-benefits .kma-h2{margin-bottom:26px}.kma .kma-cards{grid-template-columns:1fr;gap:16px}.kma .kma-cards p{font-size:16px}}
/* rise in once (kma.js adds .kma-in when the list enters the view; kma-anim is absent under reduced motion and without JS) */
.kma.kma-anim .kma-rise > *{opacity:0;transform:translate3d(0,28px,0);transition:opacity .6s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.kma.kma-anim .kma-rise.kma-in > *{opacity:1;transform:none}
.kma.kma-anim .kma-rise > :nth-child(2){transition-delay:.08s}
.kma.kma-anim .kma-rise > :nth-child(3){transition-delay:.16s}
.kma.kma-anim .kma-rise > :nth-child(4){transition-delay:.24s}
.kma.kma-anim .kma-rise > :nth-child(5){transition-delay:.32s}
.kma.kma-anim .kma-rise > :nth-child(6){transition-delay:.4s}

/* ---------- 14. Tick list inside a feature's text column ---------- */
.kma .kma-ticklist{margin-top:20px}
.kma .kma-ticklist li{position:relative;padding-left:30px;font-size:17px;line-height:1.4;margin-bottom:9px}
.kma .kma-ticklist li:last-child{margin-bottom:0}
@media (max-width:767px){.kma .kma-ticklist li{font-size:16px}}
/* short screens: a feature with a tick list is the tallest stage; keep it below the header so pinning stays on (kma.js fits()) */
@media (min-width:768px) and (max-height:860px){.kma .kma-feature:has(.kma-ticklist) .kma-text p{font-size:18px;margin-bottom:14px}.kma .kma-feature:has(.kma-ticklist) .kma-ticklist{margin-top:14px}.kma .kma-feature:has(.kma-ticklist) .kma-ticklist li{font-size:16px;margin-bottom:6px}}

/* ---------- 15. Ecosystem: CRM in the centre, client side left, services right (any number of nodes) ---------- */
.kma-eco{padding:80px 0 90px}
.kma-eco-head{max-width:780px;margin:0 auto 40px;text-align:center}
.kma-eco-wrap{position:relative;padding:50px 40px;background:var(--kma-card);border-radius:24px;isolation:isolate}
.kma-eco-lines{position:absolute;z-index:0;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.kma-eco-line{fill:none;stroke:var(--kma-line);stroke-width:1.5}
.kma-eco-dot{fill:var(--kma-orange)}
.kma .kma-eco-map{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,var(--kma-eco-side,270px)) minmax(0,1fr) minmax(0,var(--kma-eco-side,270px));align-items:center}
.kma .kma-eco-group > ul{display:flex;flex-direction:column;gap:16px}
.kma .kma-eco-hub{display:flex;justify-content:center;padding:0 20px}
.kma .kma-eco-node{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:14px;align-items:center;padding:14px 16px;
  background:#fff;border:1.5px solid #dfe6f3;border-radius:14px;box-shadow:0 14px 28px -20px rgba(42,43,64,.35);color:var(--kma-ink);text-decoration:none}
.kma .kma-eco-node .kma-ico-box{grid-row:1 / span 2;width:44px;height:44px;border-radius:12px;background:var(--kma-pale)}
.kma .kma-eco-node .kma-ico{width:24px;height:24px}
.kma .kma-eco-name{display:block;font-size:16px;line-height:1.25;font-weight:bold}
.kma .kma-eco-sub{display:block;font-size:14px;line-height:1.35;color:var(--kma-muted)}
.kma a.kma-eco-node{color:var(--kma-ink);transition:border-color .2s,box-shadow .2s}
.kma a.kma-eco-node:hover{text-decoration:none;border-color:var(--kma-blue);box-shadow:0 16px 30px -18px rgba(42,43,64,.45)}
.kma a.kma-eco-node:hover .kma-eco-name{color:var(--kma-orange)}
.kma a.kma-eco-node:focus-visible{outline:2px solid var(--kma-blue);outline-offset:3px}
.kma .kma-eco-here{border:2px solid var(--kma-orange);box-shadow:0 0 0 5px rgba(250,108,6,.1),0 14px 28px -20px rgba(42,43,64,.35)}
.kma .kma-eco-here .kma-ico-box{background:#fff1e6;color:var(--kma-orange)}
.kma .kma-eco-node.kma-eco-core{grid-template-columns:1fr;justify-items:center;row-gap:12px;width:min(100%,250px);padding:28px 22px;text-align:center;border:2px solid var(--kma-blue);
  box-shadow:0 0 0 12px rgba(126,151,201,.14),0 24px 40px -24px rgba(42,43,64,.45)}
.kma .kma-eco-node.kma-eco-core .kma-ico-box{grid-row:auto;width:64px;height:64px;border-radius:18px}
.kma .kma-eco-node.kma-eco-core .kma-ico{width:32px;height:32px}
.kma .kma-eco-node.kma-eco-core .kma-eco-name{font-size:20px;line-height:1.3}
.kma-eco-foot{max-width:780px;margin:34px auto 0;text-align:center}
@media (max-width:1199px){.kma-eco{--kma-eco-side:250px}.kma .kma-eco-node.kma-eco-core{width:min(100%,220px)}}
@media (max-width:991px){.kma-eco{--kma-eco-side:220px}.kma-eco-wrap{padding:40px 24px}.kma .kma-eco-hub{padding:0 14px}.kma .kma-eco-node{grid-template-columns:36px minmax(0,1fr);column-gap:10px;padding:12px}
  .kma .kma-eco-node .kma-ico-box{width:36px;height:36px;border-radius:10px}.kma .kma-eco-node .kma-ico{width:20px;height:20px}.kma .kma-eco-name{font-size:15px}.kma .kma-eco-sub{font-size:13px}
  .kma .kma-eco-node.kma-eco-core{padding:22px 14px}.kma .kma-eco-node.kma-eco-core .kma-ico-box{width:52px;height:52px}.kma .kma-eco-node.kma-eco-core .kma-ico{width:28px;height:28px}.kma .kma-eco-node.kma-eco-core .kma-eco-name{font-size:17px}}
/* phones: client side, CRM, services in two columns, joined by one vertical connector */
@media (max-width:767px){
  .kma-eco{padding:50px 0 60px}.kma-eco-head{margin-bottom:26px}
  .kma-eco-wrap{padding:24px 14px}
  .kma-eco-lines{display:none}
  .kma .kma-eco-map{grid-template-columns:minmax(0,1fr)}
  .kma .kma-eco-group > ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .kma .kma-eco-hub{position:relative;padding:30px 0}
  .kma .kma-eco-hub::before{content:"";position:absolute;z-index:-1;left:50%;top:0;bottom:0;border-left:2px dashed var(--kma-line)}
  .kma .kma-eco-node{grid-template-columns:minmax(0,1fr);row-gap:8px;align-content:start;height:100%;padding:12px}
  .kma .kma-eco-node .kma-ico-box{grid-row:auto}
  .kma .kma-eco-node.kma-eco-core{height:auto;width:min(100%,240px)}
  .kma-eco-foot{margin-top:24px}
}

/* ---------- 16. Cross-link strip: the hybrid card (text, two columns, footer line; no phone) ---------- */
.kma .kma-xl.kma-hybrid{flex-direction:column;align-items:stretch;justify-content:center;gap:0}
.kma .kma-hybrid-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0 20px}
.kma .kma-hybrid-col{padding:16px 18px;background:var(--kma-card);border-radius:12px;text-align:left}
.kma .kma-hybrid-col .kma-h3{font-size:17px;margin:0 0 10px;color:var(--kma-blue-d)}
.kma .kma-hybrid-col li{position:relative;padding-left:16px;font-size:15px;line-height:1.4;margin-bottom:6px}
.kma .kma-hybrid-col li:last-child{margin-bottom:0}
.kma .kma-hybrid-col li::before{content:"";position:absolute;left:0;top:8px;width:6px;height:6px;border-radius:50%;background:var(--kma-orange)}
.kma .kma-hybrid-foot{margin:0;padding-top:16px;border-top:1px solid #e3e7f0;font-size:16px;line-height:1.4;font-weight:bold;color:var(--kma-orange)}
@media (max-width:400px){.kma .kma-hybrid-cols{grid-template-columns:1fr}}

/* ---------- 17. Reduced motion (v6 parts) ---------- */
@media (prefers-reduced-motion:reduce){
  .kma .kma-rise > *{opacity:1!important;transform:none!important;transition:none!important}
  .kma-eco-dot{display:none}
}

/* ======================= v7 (fixes 6) additions ======================= */
/* Benefits: the theme's .tpg ul li sets align-items:center, which centred short titles but not wrapped ones; everything left-aligned */
.kma .kma-cards > li{align-items:flex-start;text-align:left}
.kma .kma-cards > li > *{align-self:stretch;text-align:left}
.kma .kma-cards > li > .kma-ico-box{align-self:flex-start}
/* Ecosystem caption: a centred closing line with clear space above (.kma p margin outranked the v6 rule) */
.kma .kma-eco .kma-eco-foot{max-width:760px;margin:44px auto 0;text-align:center;font-size:22px;line-height:1.45;font-weight:500;color:var(--kma-ink)}
@media (max-width:767px){.kma .kma-eco .kma-eco-foot{margin-top:28px;font-size:18px}}
/* Illustrations beside the phone (>=1200 px only; hidden below as before).
   room  = how far the art may overhang its column/panel, never past the container edge: 0 at 1200 px, 40 px from ~1295 px
   shift = the phone moves inward (towards the text) by this much, which frees space on the art's side
   width = the art's v6 size (72% of the phone) or less, so that the phone covers at most ~15% of it */
@media (min-width:1200px){
  .kma .kma-device{--kma-art-room:clamp(0px, (100vw - 1215px) / 2, 40px)}
  .kma .kma-device:has(> .kma-art--r){--kma-art-shift:50px}
  .kma .kma-device:has(> .kma-art--l){--kma-art-shift:50px}
  .kma .kma-device:has(> .kma-art--r) > .kma-phone,.kma .kma-device:has(> .kma-art--r) > .kma-dots{left:calc(-1 * var(--kma-art-shift))}
  .kma .kma-device:has(> .kma-art--l) > .kma-phone,.kma .kma-device:has(> .kma-art--l) > .kma-dots{left:var(--kma-art-shift)}
  .kma .kma-device > .kma-dots{position:relative}
  .kma .kma-device > .kma-art{width:min(calc(var(--kma-phone-w) * .72), calc((50% - var(--kma-phone-w) / 2 + var(--kma-art-shift, 0px) + var(--kma-art-room)) / .85))}
  .kma .kma-device > .kma-art--r{left:auto;right:calc(-1 * var(--kma-art-room));top:7%}
  .kma .kma-device > .kma-art--l{right:auto;left:calc(-1 * var(--kma-art-room));bottom:7%}
}

/* ======================= v8 (fixes 7) additions: benefits redesign ======================= */
/* at rest: the section is a pale band, white cards with a faint 01-06 in the corner, orange accent under the H2 */
.kma .kma-benefits{padding:80px 0 90px;background:var(--kma-card)}
.kma .kma-benefits .kma-h2::after{content:"";display:block;width:64px;height:4px;margin:20px auto 0;border-radius:2px;background:var(--kma-orange)}
.kma .kma-cards{counter-reset:kma-card;--kma-ico-bg:#FFF1E6;--kma-ico-soft:#FFD6B8}
.kma .kma-cards > li{position:relative;overflow:hidden;counter-increment:kma-card;padding:34px 30px 36px;background:#fff;border:1px solid #e3e9f5;border-radius:14px;
  box-shadow:0 12px 26px -22px rgba(42,43,64,.35);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.kma .kma-cards > li::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--kma-orange);transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
.kma .kma-cards > li::after{content:counter(kma-card,decimal-leading-zero);content:counter(kma-card,decimal-leading-zero) / "";position:absolute;top:18px;right:24px;
  font-size:54px;line-height:1;font-weight:900;color:rgba(126,151,201,.16);pointer-events:none;transition:color .2s ease}
.kma .kma-cards .kma-ico-box{width:64px;height:64px;border-radius:18px;margin-bottom:24px;background:var(--kma-ico-bg);color:var(--kma-orange);transition:background-color .2s ease,color .2s ease}
.kma .kma-cards .kma-ico{width:30px;height:30px}
.kma .kma-cards .kma-ico--duo{width:40px;height:40px;stroke-width:2.25}
.kma .kma-ico .kma-ico-soft{fill:var(--kma-ico-soft);stroke:none;transition:fill .2s ease}
.kma .kma-ico .kma-ico-cut{fill:var(--kma-ico-bg);stroke:none;transition:fill .2s ease}
.kma .kma-ico .kma-ico-dot{fill:currentColor;stroke:none}
/* lit: hover (only on devices that really hover, so nothing sticks after a tap) and focus-within */
.kma .kma-cards > li:focus-within{--kma-ico-bg:var(--kma-orange);--kma-ico-soft:rgba(255,255,255,.3);border-color:#ffd2b0;box-shadow:0 26px 40px -24px rgba(42,43,64,.4);transform:translate3d(0,-4px,0)}
.kma .kma-cards > li:focus-within::before{transform:scaleX(1)}
.kma .kma-cards > li:focus-within::after{color:rgba(250,108,6,.16)}
.kma .kma-cards > li:focus-within .kma-ico-box{color:#fff}
@media (hover:hover){
  .kma .kma-cards > li:hover{--kma-ico-bg:var(--kma-orange);--kma-ico-soft:rgba(255,255,255,.3);border-color:#ffd2b0;box-shadow:0 26px 40px -24px rgba(42,43,64,.4);transform:translate3d(0,-4px,0)}
  .kma .kma-cards > li:hover::before{transform:scaleX(1)}
  .kma .kma-cards > li:hover::after{color:rgba(250,108,6,.16)}
  .kma .kma-cards > li:hover .kma-ico-box{color:#fff}
  /* after the rise-in (kma.js adds kma-risen) the card's own 200 ms transition and the lift win over the rise rules */
  .kma.kma-anim .kma-rise.kma-risen > li:hover{transform:translate3d(0,-4px,0)}
}
.kma.kma-anim .kma-rise.kma-risen > li{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;transition-delay:0s}
.kma.kma-anim .kma-rise.kma-risen > li:focus-within{transform:translate3d(0,-4px,0)}
@media (max-width:1199px){.kma .kma-cards > li{padding:30px 24px 32px}.kma .kma-cards > li::after{font-size:46px;right:20px}}
@media (max-width:767px){.kma .kma-benefits{padding:50px 0 56px}.kma .kma-cards .kma-ico-box{width:56px;height:56px;border-radius:16px;margin-bottom:18px}.kma .kma-cards .kma-ico--duo{width:36px;height:36px}.kma .kma-cards > li::after{font-size:40px;top:16px}}
/* reduced motion: colour change only, no lift, no growing bar */
@media (prefers-reduced-motion:reduce){
  .kma .kma-cards > li,.kma .kma-cards > li:hover,.kma .kma-cards > li:focus-within{transform:none!important;transition:box-shadow .2s ease,border-color .2s ease!important}
  .kma .kma-cards > li::before{transform:none;opacity:0;transition:none}
  .kma .kma-cards > li:hover::before,.kma .kma-cards > li:focus-within::before{opacity:1}
}

/* ======================= v9 (fixes 8) ======================= */
/* Equal card heights per row: the theme's .tpg ul{align-items:flex-start} survived the switch to display:grid and kept
   every card at its own content height. Stretch restores the grid default at every column count; the lit lift is a
   transform, so it never changes the height. */
.kma .kma-cards{align-items:stretch}
.kma .kma-cards > li{align-self:stretch;height:auto}

/* ======================= v10 (fixes 9): the ecosystem diagram on phones ======================= */
/* No list markers anywhere in the diagram (the v6 phone connector used li::before, which picked up the theme's .tpg tick) */
.kma .kma-eco-map li::before,.kma .kma-eco-map li::after{content:none;display:none;background:none}
/* < 768 px: client nodes side by side on top, curves down into a short CRM row, then a spine from the CRM's
   bottom-left with one rounded branch into each compact service row. kma.js draws the lines (same SVG as desktop). */
@media (max-width:767px){
  .kma-eco-wrap{padding:18px 12px 20px;border-radius:18px}
  .kma-eco-lines{display:block}
  .kma .kma-eco-map{grid-template-columns:minmax(0,1fr);row-gap:0}
  .kma .kma-eco-hub{display:block;padding:38px 0 28px}
  /* compact node: 28 px icon tile, 14 px name, 12 px sub-label */
  .kma .kma-eco-node{grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto;column-gap:10px;row-gap:1px;align-content:center;height:auto;padding:9px 10px;border-radius:10px}
  .kma .kma-eco-node .kma-ico-box{grid-row:1 / span 2;width:28px;height:28px;border-radius:8px}
  .kma .kma-eco-node .kma-ico{width:16px;height:16px}
  .kma .kma-eco-name{font-size:14px;line-height:1.25}
  .kma .kma-eco-sub{font-size:12px;line-height:1.3}
  /* top: client side, two equal columns, each node centred (its line leaves from the bottom centre) */
  .kma .kma-eco-in > ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
  .kma .kma-eco-in .kma-eco-node{grid-template-columns:minmax(0,1fr);justify-items:center;row-gap:3px;height:100%;padding:10px 6px;text-align:center}
  .kma .kma-eco-in .kma-eco-node .kma-ico-box{grid-row:auto;margin-bottom:3px}
  .kma .kma-eco-here{box-shadow:0 0 0 3px rgba(250,108,6,.1),0 10px 20px -16px rgba(42,43,64,.35)}
  /* middle: the CRM as one short full-width row */
  .kma .kma-eco-node.kma-eco-core{grid-template-columns:auto minmax(0,auto);justify-content:center;justify-items:start;align-items:center;column-gap:12px;row-gap:0;
    width:100%;height:auto;padding:12px 14px;border-radius:12px;text-align:left;box-shadow:0 0 0 6px rgba(126,151,201,.14),0 14px 26px -18px rgba(42,43,64,.4)}
  .kma .kma-eco-node.kma-eco-core .kma-ico-box{grid-row:auto;width:36px;height:36px;border-radius:10px}
  .kma .kma-eco-node.kma-eco-core .kma-ico{width:20px;height:20px}
  .kma .kma-eco-node.kma-eco-core .kma-eco-name{font-size:16px;line-height:1.25}
  /* bottom: services, one column of rows, indented so the spine runs to their left */
  .kma .kma-eco-out > ul{display:flex;flex-direction:column;gap:8px;padding-left:34px}
  .kma .kma-eco-out .kma-eco-node{text-align:left}
}

/* ======================= v11 (fixes 10) ======================= */
/* phones: every service row fills the column from its branch to the panel's right padding (the theme's
   .tpg ul{align-items:flex-start} made each row shrink to its text) */
@media (max-width:767px){
  .kma .kma-eco-out > ul{align-items:stretch}
  .kma .kma-eco-out > ul > li{align-self:stretch;width:auto}
  .kma .kma-eco-out .kma-eco-node{width:100%}
}

/* ======================= v12 (fixes 12): right-to-left pages (ar, fa, he; <html dir="rtl">) ======================= */
/* Phone internals always run left to right: the captures are LTR app screens, the B track slides with a negative
   translateX and the dots follow the slides. No effect on LTR pages (direction is already ltr there). */
.kma .kma-screen,.kma .kma-dots{direction:ltr}
/* The theme's RTL edits give every .wrap-content ul li padding-right:1.8em and move every li::before to right:0
   (specificity 0,2,2). That outranked .kma ul li{padding:0}: it squeezed the ecosystem rows, cards and chips and
   collapsed the cards' accent bar. Everything below only matches under dir="rtl". */
html[dir="rtl"] .kma ul li{padding-left:0;padding-right:0}
html[dir="rtl"] .kma .kma-ticks li{padding-right:28px}
html[dir="rtl"] .kma .kma-ticklist li{padding-right:30px}
html[dir="rtl"] .kma .kma-ticks li::before,html[dir="rtl"] .kma .kma-ticklist li::before{left:auto;right:0}
html[dir="rtl"] .kma .kma-chips li{padding-left:20px;padding-right:20px}
/* benefit cards: own padding back, right-aligned text, number in the top-left corner, accent bar grows from the right */
html[dir="rtl"] .kma .kma-cards > li{padding-left:30px;padding-right:30px;text-align:right}
html[dir="rtl"] .kma .kma-cards > li > *{text-align:right}
html[dir="rtl"] .kma .kma-cards > li::before{left:0;right:0;transform-origin:right}
html[dir="rtl"] .kma .kma-cards > li::after{right:auto;left:24px}
@media (max-width:1199px){html[dir="rtl"] .kma .kma-cards > li{padding-left:24px;padding-right:24px}html[dir="rtl"] .kma .kma-cards > li::after{left:20px}}
/* hybrid card */
html[dir="rtl"] .kma .kma-hybrid-col{text-align:right}
html[dir="rtl"] .kma .kma-hybrid-col li{padding-right:16px}
html[dir="rtl"] .kma .kma-hybrid-col li::before{left:auto;right:0}
/* cross-link arrow and FAQ chevron */
html[dir="rtl"] .kma .kma-xl-link::after{content:" \2190"}
html[dir="rtl"] .kma .kma-faq summary{padding:22px 0 22px 44px}
html[dir="rtl"] .kma .kma-faq summary::after{right:auto;left:6px}
html[dir="rtl"] .kma .kma-faq .kma-text{padding:0 0 22px 44px}
/* ecosystem on phones: the mirror of LTR, spine down the CRM's right side, rows indented from the right */
@media (max-width:767px){
  html[dir="rtl"] .kma .kma-eco-out > ul{padding-left:0;padding-right:34px}
  html[dir="rtl"] .kma .kma-eco-out .kma-eco-node,html[dir="rtl"] .kma .kma-eco-node.kma-eco-core{text-align:right}
}

/* ======================= v13 (fixes 13): no white band under the footer below 992 px ======================= */
/* The theme's .wrapper{overflow:hidden} clipped the footer's decorative leaf (.footer:after, bottom:-100px below
   992 px). Section 1 relaxed it to overflow-x:clip for sticky pinning, so the leaf made the document 100 px taller
   than the footer. clip on both axes restores the theme's clipping and, unlike hidden, is not a scroll container,
   so position:sticky still pins. Browsers without overflow:clip ignore this line and behave as in v12. */
.wrapper:has(.kma){overflow-y:clip}
