/* =========================================================
   AMLPRO — UI refresh layer (loaded last, after page CSS)
   Uses the site's original colour palette.
   2. Header + mobile toggle (+ Login button)
   3. Mobile menu (sheet on phones, drawer on tablets)
   4. Branded loader
   5. Footer
   6. Responsive fixes
   ========================================================= */

:root {
  --rf-ink: #161727;
  --rf-text: #434357;
  --rf-muted: #737386;
  --rf-line: #e6e6ea;
  --rf-soft: #f3f3f6;
  --rf-violet: #8046e1;
  --rf-violet-ink: #5a29ad;
  --rf-violet-soft: #b491ee;
  --rf-btn: #642ac3;
  --rf-btn-hover: #511fa4;
}

/* ---------- 2. Header + mobile toggle ---------- */
.st-88 { white-space: nowrap; flex-shrink: 0; }
.st-82 { min-width: 0; }
.st-83 { max-width: 100%; height: 36px; object-fit: contain; object-position: left center; }

/* Menu toggle (also used for the close button inside the menu) */
.st-67 {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin: 0;
  border: 1px solid #e6e6ea; border-radius: 12px;
  background: #fff; color: var(--rf-ink);
  box-shadow: 0 1px 2px rgba(22, 23, 39, .06);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.st-67:hover { background: var(--rf-soft); border-color: #d4d4d9; }
.st-67:active { transform: scale(.96); }
.st-67:focus-visible { outline: 2px solid var(--rf-violet); outline-offset: 2px; }
.st-67 svg { display: block; width: 18px; height: 18px; }
.ntb-lines { position: relative; display: block; width: 18px; height: 12px; }
.ntb-lines i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: left .25s ease; }
.ntb-lines i:nth-child(1) { top: 0; }
.ntb-lines i:nth-child(2) { top: 5px; left: 6px; }
.ntb-lines i:nth-child(3) { top: 10px; }
.nav-toggle-btn:hover .ntb-lines i:nth-child(2) { left: 0; }

/* Header actions: Login + Get Started, equal size with a clear gap */
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hdr-login, .hdr-actions .st-88 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  font: 600 14px/1 'Sora', sans-serif; letter-spacing: .005em; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hdr-login {
  border: 1px solid #dcdce3; background: #fff; color: var(--rf-ink);
  box-shadow: 0 1px 2px rgba(22, 23, 39, .05);
}
.hdr-login svg { color: var(--rf-muted); transition: color .2s ease; }
.hdr-login:hover { border-color: #b9a6e4; background: #faf8fe; color: var(--rf-btn); }
.hdr-login:hover svg { color: var(--rf-btn); }
.hdr-actions .st-88 {
  margin: 0; padding: 0 16px 0 20px; border: 1px solid #5a24b4;
  background: linear-gradient(180deg, #6e35d0 0%, #642ac3 100%); color: #fff;
  box-shadow: 0 1px 2px rgba(22, 23, 39, .14), 0 8px 18px -10px rgba(100, 42, 195, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.hdr-actions .st-88:hover { background: #511fa4 !important; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(22, 23, 39, .14), 0 12px 22px -10px rgba(100, 42, 195, .8), inset 0 1px 0 rgba(255, 255, 255, .15); }
.hdr-actions .st-88 svg { transition: transform .2s ease; }
.hdr-actions .st-88:hover svg { transform: translateX(3px); }
.hdr-login:focus-visible, .hdr-actions .st-88:focus-visible { outline: 2px solid var(--rf-violet); outline-offset: 2px; }

/* Mobile menu footer: Login + Get Started side by side */
.mm-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.mm-login { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid #d4d4d9; background: #fff; color: var(--rf-ink); font-weight: 600; font-size: 15px; line-height: 1; }
.mm-login:hover { background: var(--rf-soft); color: var(--rf-ink); }

/* Switch to the menu button a little earlier so Login + Get Started never crowd the nav */
@media (max-width: 1099px) {
  .v2-desk { display: none; }
  .v2-mob { display: contents; }
}

@media (max-width: 999px) {
  .st-81 { height: 64px; gap: 16px; }
  .st-83 { height: 32px; }
  .st-117 { inset: 64px 0 0 0; }
}
@media (max-width: 400px) {
  .st-83 { height: 28px; }
}

/* Desktop nav: stop the centred nav colliding with the logo on small laptops */
@media (min-width: 1100px) and (max-width: 1199px) {
  .st-81 { gap: 20px; }
  .st-83 { height: 30px; }
  .st-84 { position: static; transform: none; margin-left: auto; gap: 0; }
  .hdr-login, .hdr-actions .st-88 { padding: 0 14px; }
  .hdr-actions { gap: 10px; }
  .st-85, .st-87 { padding: 9px 9px; font-size: 14.5px; white-space: nowrap; }
  .st-88 { padding: 10px 14px; }
}

/* ---------- 3. Mobile menu ---------- */
html.mm-lock, html.mm-lock body { overflow: hidden; }
.mm-backdrop {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(13, 13, 22, .4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .28s ease;
}
.mm .st-64 {
  opacity: 0; transform: translateY(-10px);
  transition: opacity .26s ease, transform .32s cubic-bezier(.2, .8, .2, 1);
  will-change: transform, opacity;
}
.mm.is-open .mm-backdrop { opacity: 1; }
.mm.is-open .st-64 { opacity: 1; transform: none; }

.st-65 { height: 64px; padding: 0 20px; }
.st-66 { height: 30px; }
.st-68 { padding: 6px 20px 12px; }
.st-70 { padding: 16px 0; font-size: 16px; line-height: 1.3; text-align: left; }
.st-71 { flex: none; width: 18px; height: 18px; }
.st-69:has([data-acc-panel]:not([hidden])) .st-70 { color: var(--rf-violet-ink); }
.st-69:has([data-acc-panel]:not([hidden])) .st-71 { color: var(--rf-violet-ink); }
.st-72 { gap: 2px; padding: 0 0 14px; animation: rfAcc .28s cubic-bezier(.2, .8, .2, 1) both; }
.st-73 { gap: 12px; min-height: 44px; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; font-size: 15px; line-height: 1.3; transition: background-color .2s ease, color .2s ease; }
.st-73:hover, .st-73:focus-visible { background: #f7f7f8; color: var(--rf-ink); }
.st-74 { width: 32px; height: 32px; border-radius: 9px; }
.st-75, .st-76 { padding: 16px 0; font-size: 16px; line-height: 1.3; color: var(--rf-ink); }
.st-77 { padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fff; }
.st-78 { min-height: 50px; padding: 0 20px; border-radius: 12px; font-size: 15px; line-height: 1; box-shadow: 0 8px 20px -10px rgba(100, 42, 195, .55); }
.st-78:hover { background: var(--rf-btn-hover); color: #fff; }
@keyframes rfAcc { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Tablets: the menu becomes a right-hand drawer over a dimmed page */
@media (min-width: 600px) {
  .mm .st-64 {
    left: auto; width: min(420px, 100%);
    border-left: 1px solid #e6e6ea;
    box-shadow: -30px 0 60px -30px rgba(22, 23, 39, .45);
    transform: translateX(32px);
  }
  .mm.is-open .st-64 { transform: none; }
  .st-65, .st-68, .st-77 { padding-left: 24px; padding-right: 24px; }
}

/* ---------- 4. Branded loader ---------- */
.site-loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(60% 50% at 50% 45%, rgba(152, 104, 232, .14), transparent 70%), #fff;
  opacity: 1; visibility: visible;
  transition: opacity .5s ease, visibility .5s;
}
.site-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loader.is-hidden, html.no-loader .site-loader { display: none; }
.ld { display: flex; flex-direction: column; align-items: center; gap: 22px; transition: transform .5s ease; }
.site-loader.is-done .ld { transform: scale(.98); }
.ld-mark { width: clamp(72px, 20vw, 92px); height: auto; overflow: visible; }
.ld-ring { stroke: rgba(152, 104, 232, .6); stroke-width: 1.5; transform-origin: 60px 77px; transform: scale(.32); opacity: 0; animation: ldPing 1.8s cubic-bezier(.2, .7, .2, 1) 1.05s infinite; }
.ld-a { stroke: var(--rf-ink); stroke-dasharray: 150; stroke-dashoffset: 150; animation: ldDraw .75s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.ld-shield { transform-origin: 60px 77px; transform: scale(.4); opacity: 0; animation: ldPop .5s cubic-bezier(.2, 1.4, .4, 1) .62s forwards; }
.ld-shield path:first-child { fill: #9868e8; }
.ld-check { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: ldDraw .4s ease-out .92s forwards; }
.ld-word { display: block; height: 22px; width: auto; opacity: 0; transform: translateY(6px); animation: ldUp .6s ease .55s forwards; }
.ld-bar { position: relative; display: block; width: 112px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(24, 25, 40, .08); }
.ld-bar i { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #6a3fd6, #a878e8); animation: ldBar 1.2s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
@keyframes ldDraw { to { stroke-dashoffset: 0; } }
@keyframes ldPop { to { transform: scale(1); opacity: 1; } }
@keyframes ldUp { to { opacity: 1; transform: none; } }
@keyframes ldBar { to { transform: scaleX(1); } }
@keyframes ldPing { 0% { transform: scale(.32); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .site-loader { display: none; } }

/* ---------- 5. Footer ---------- */
.ft { position: relative; background: #0a0b13; color: #c6c6d4; font-family: 'Sora', system-ui, sans-serif; }
.ft::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, #5420ac, #8046e1 50%, #b491ee); }
.ft a { text-decoration: none; }
.ft-in { max-width: 1440px; margin: 0 auto; padding: 68px clamp(20px, 4vw, 32px) 52px; }
.ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ft-brand { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ft-logo { display: inline-flex; align-self: flex-start; }
.ft-logo img { display: block; height: 34px; width: auto; }
.ft-tag { margin: 0; font-size: 14.5px; line-height: 1.7; color: #c6c6d4; text-wrap: pretty; }
.ft-reach { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.ft-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 28px; }
.ft-contact a { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; color: #eaeaf0; transition: color .2s ease; }
.ft-contact a:hover { color: #fff; }
.ft-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--rf-violet-soft); background: rgba(128, 70, 225, .16); border: 1px solid rgba(177, 141, 238, .25); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.ft-ic svg { display: block; }
.ft-contact a:hover .ft-ic { background: var(--rf-btn); border-color: transparent; color: #fff; }
.ft-social { display: flex; gap: 10px; }
.ft-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #d2d2dd; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
.ft-social a:hover { color: #fff; background: rgba(128, 70, 225, .2); border-color: rgba(177, 141, 238, .5); transform: translateY(-2px); }
.ft-social svg { display: block; }

.ft-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 32px; padding-top: 44px; }
.ft-sub { margin-top: 14px; font: 600 11px/1.3 'Sora', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8b8b9d; }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.ft-h { position: relative; display: block; margin-bottom: 6px; padding-bottom: 12px; font: 600 15px/1.3 'Sora', system-ui, sans-serif; letter-spacing: -.005em; color: #fff; }
.ft-h::after { content: ''; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; border-radius: 2px; background: var(--rf-violet-soft); }
.ft-col a { font-size: 14px; line-height: 1.45; color: #c6c6d4; transition: color .2s ease, transform .2s ease; }
.ft-col a:hover { color: #fff; transform: translateX(2px); }
.ft-bar { border-top: 1px solid rgba(255, 255, 255, .08); }
.ft-bar-in { max-width: 1440px; margin: 0 auto; padding: 22px clamp(20px, 4vw, 32px) 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; color: #9a9aaa; }
.ft-bar-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ft-bar-links a { color: #9a9aaa; transition: color .2s ease; }
.ft-bar-links a:hover { color: #fff; }
.ft :focus-visible { outline: 2px solid var(--rf-violet-soft); outline-offset: 3px; border-radius: 6px; }


@media (max-width: 900px) {
  .ft-top { flex-direction: column; }
  .ft-brand { flex-basis: auto; max-width: 520px; }
  .ft-reach { width: 100%; align-items: flex-start; }
  .ft-contact { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ft-in { padding-top: 52px; padding-bottom: 40px; }
  .ft-top { padding-bottom: 32px; gap: 28px; }
  .ft-logo img { height: 30px; }
  .ft-contact { flex-direction: column; gap: 14px; }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; padding-top: 36px; }
  .ft-bar-in { flex-direction: column; }
}

/* scroll-to-top: match the toggle's rounded square */
.st-63 { right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 10px 24px -8px rgba(128, 70, 225, .55); }

/* ---------- 6. Responsive fixes ---------- */

/* Hero CTA pairs and final CTA buttons: deliberate stacking on phones */
@media (max-width: 900px) {
  .st-299 { justify-content: flex-start; }
}
@media (max-width: 479px) {
  .st-127, .st-299, .st-369 { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .st-127 > a, .st-299 > a, .st-369 > a { justify-content: center; text-align: center; }
  .st-128, .st-129, .st-300, .st-301, .st-370, .st-371 { width: 100%; }
}

/* Home hero: flow strip wraps into a grid instead of a sideways-scrolling bar */
@media (max-width: 700px) {
  .st-135 { overflow: visible; }
  .st-136 { min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; padding: 20px 8px; }
  .st-137, .st-138, .st-139 { display: none; }
  .st-142 { font-size: 12px; line-height: 1.3; }
}
/* Home hero orbit: keep the orbiting chips inside the viewport on phones */
@media (max-width: 600px) {
  .st-133 { width: 78%; }
}

/* Product tour steps: on phones the result pill drops under its label instead of squeezing it */
@media (max-width: 520px) {
  .tr-step { grid-template-columns: 30px minmax(0, 1fr); align-items: start; row-gap: 6px; }
  .tr-step .tr-n { grid-row: span 2; }
  .tr-step .tr-res { grid-column: 2; justify-self: start; }
}

/* CTA groups on small phones: equal, full-width, centred buttons */
@media (max-width: 479px) {
  .final-cta-ctas { align-items: stretch; width: 100%; }
  .final-cta-ctas .btn { width: 100%; }
}
@media (max-width: 420px) {
  .in-ctas, .hero-ctas { flex-direction: column; align-items: stretch; }
  .in-ctas > .btn, .hero-ctas > .btn { width: 100%; justify-content: center; }
}

/* Home "process" grid: 3 + 3 on tablets instead of 4 + 2 with an empty cell */
@media (min-width: 560px) and (max-width: 1099px) {
  .st-259 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
