/* =====================================================================
   ROINET homepage (Pages/Index.cshtml) — the "Roinet Homepage" design.
   Uses the colour variables from roinet.css. Classes start with "hm-".
   ===================================================================== */
.rn-home { color: var(--rn-ink); }
.rn-home *, .rn-home *::before, .rn-home *::after { box-sizing: border-box; }
.rn-home a { text-decoration: none; }
.rn-home img { max-width: 100%; }
.rn-home ul { list-style: none; margin: 0; padding: 0; }
.rn-home h2, .rn-home h3, .rn-home p { margin: 0; }
.rn-home button { font: inherit; }
main#main:has(.rn-home) { padding-bottom: 0 !important; }

@keyframes hmVidBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hmFloat { 0%, 100% { translate: 0 0; rotate: -1.5deg; } 50% { translate: 0 -14px; rotate: 1deg; } }
@keyframes hmShadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .6; } }
@keyframes hmPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes hmShine { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(380%); } }
@keyframes hmMarquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- home-only tweaks of the shared pieces (shared ones are in roinet.css) ---------- */
#platforms .hm-h2 { font-size: clamp(28px, 3.2vw, 42px); }
#xpresso .hm-h2, #marketing .hm-h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.08; }
.hm-hero .hm-swoosh { width: clamp(140px, 12.4vw, 210px); }

/* ---------- hero ---------- */
.hm-hero { position: relative; margin-top: -82px; }
.hm-hero-stage { position: relative; width: 100%; aspect-ratio: 1671 / 941; overflow: hidden; background: #E8F4F6; }
.hm-hero-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hm-hero-img.is-active { opacity: 1; }
.hm-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(232, 244, 246, 0) 0%, rgba(232, 244, 246, 0.75) 60%, #E8F4F6 100%); pointer-events: none; }
.hm-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 1.6vw, 26px); }
.hm-hero-slides { display: grid; }
.hm-hero-copy { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.1vw, 18px); opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none; visibility: hidden; transition: opacity .7s var(--ease), transform .8s var(--ease), visibility 0s .8s; }
.hm-hero-copy.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .7s var(--ease), transform .8s var(--ease), visibility 0s; }
.hm-hero-bar { width: clamp(44px, 4.4vw, 72px); height: clamp(5px, .45vw, 8px); border-radius: 99px; background: #7CC47F; }
.hm-hero-title { margin: 0; font-family: var(--rn-font); font-weight: 800; font-size: clamp(30px, 3.7vw, 64px); line-height: 1.05; letter-spacing: -0.025em; color: var(--rn-teal); text-wrap: balance; }
.hm-hero-title a { color: inherit !important; transition: color .25s; }
.hm-hero-title a:hover { color: var(--rn-sky) !important; }
.hm-hero-sub { margin: 0; font-size: clamp(15px, 1.45vw, 24px); line-height: 1.5; color: var(--rn-muted); }
.hm-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero-btns:empty { display: none; }
.hm-hero-dots { display: flex; align-items: center; gap: 8px; }
.hm-hero-dots button { border: 0; padding: 0; cursor: pointer; height: 8px; width: 8px; border-radius: 99px; background: rgba(11, 58, 68, 0.22); transition: width .4s var(--ease), background .3s; }
.hm-hero-dots button.is-active { width: 28px; background: var(--rn-sky); }
@media (min-width: 1100px) {
    .hm-hero-text { position: absolute; left: 8.9%; top: 33%; width: 40%; }
}
@media (max-width: 1099.98px) {
    .hm-hero-text { gap: 18px; padding: 28px var(--pad-x) 44px; }
    .hm-hero-title { font-size: clamp(32px, 8vw, 44px); }
    .hm-hero-sub { font-size: 16px; }
}

/* ---------- impact ---------- */
.hm-impact { padding: clamp(17px, 2.1vw, 34px) var(--pad-x); }
.hm-impact-box { position: relative; max-width: 1180px; margin: 0 auto; overflow: hidden; border-radius: 32px; padding: clamp(28px, 3.5vw, 48px); background: linear-gradient(120deg, #FFFFFF 0%, #EEF7FD 45%, #F1F9F3 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 24px 60px rgba(26, 120, 170, 0.10); }
.hm-blob-sky { right: -12%; top: -60%; width: 55%; background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 65%); animation: hmBob 10s ease-in-out infinite; }
.hm-blob-sun { left: -10%; bottom: -70%; width: 50%; background: radial-gradient(circle, rgba(255, 194, 75, 0.16) 0%, rgba(124, 196, 127, 0) 65%); }
.hm-impact-inner { position: relative; display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }
.hm-impact-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hm-impact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (min-width: 520px) { .hm-impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hm-impact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-stat { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(15, 28, 63, 0.06); transition-property: opacity, transform, box-shadow; }
.hm-stat:hover { box-shadow: 0 20px 44px rgba(26, 120, 170, 0.14); }
.hm-stat-icon { width: 56px; height: 56px; object-fit: contain; display: block; filter: drop-shadow(0 8px 14px rgba(15, 28, 63, 0.14)); animation: hmBob 5s ease-in-out var(--bob, 0s) infinite; }
.hm-stat-num { font-family: var(--rn-font); font-weight: 800; font-size: clamp(26px, 2.3vw, 38px); line-height: 1.05; letter-spacing: -0.025em; -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-accent-blue { background-image: linear-gradient(120deg, #1A8FD6, #38BDF8); }
.hm-accent-green { background-image: linear-gradient(120deg, #1F9D5C, #4CC77A); }
.hm-accent-amber { background-image: linear-gradient(120deg, #E08A0B, #FFC24B); }
.hm-accent-purple { background-image: linear-gradient(120deg, #6A57E0, #9B8CFF); }
.hm-stat-label { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--rn-muted); }

/* ---------- Xpresso ---------- */
.hm-xpresso { position: relative; padding: clamp(38px, 4.2vw, 62px) var(--pad-x); }
.hm-xp-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .hm-xp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hm-xp-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 560px; }
.hm-xp-text > img { height: clamp(46px, 4vw, 58px); width: auto; display: block; }
.hm-xp-icons { margin: 6px 0 4px !important; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hm-xp-icons li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 6px 4px; }
.hm-xp-icons img { width: 52px; height: 52px; object-fit: contain; display: block; filter: drop-shadow(0 6px 10px rgba(15, 28, 63, 0.14)); animation: hmBob 4.4s ease-in-out var(--bob, 0s) infinite; }
.hm-xp-icons span { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--rn-teal); }
.hm-play { position: relative; overflow: hidden; margin-top: 6px; display: flex; align-items: center; gap: 12px; padding: 11px 22px 11px 16px; border-radius: 16px; background: var(--rn-ink); color: #fff !important; box-shadow: 0 12px 28px rgba(15, 28, 63, 0.28); }
.hm-play:hover { box-shadow: 0 16px 34px rgba(15, 28, 63, 0.36); }
.hm-play-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.hm-play-text span:first-child { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; opacity: .85; }
.hm-play-text span:last-child { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.hm-shine { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 100%); animation: hmShine 3.2s ease-in-out infinite; }
.hm-xp-phones { position: relative; width: 100%; display: flex; justify-content: center; align-items: flex-end; }
.hm-xp-glow { position: absolute; left: 50%; top: 50%; width: min(90%, 760px); aspect-ratio: 1.6; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(26, 163, 224, 0.18) 0%, rgba(124, 196, 127, 0.08) 45%, rgba(255, 255, 255, 0) 70%); }
.hm-phone { position: relative; z-index: 1; width: 33%; margin: 0 -22px; transition: opacity .9s var(--ease) .35s, transform 1.2s cubic-bezier(.34, 1.25, .64, 1) .35s; }
.hm-phone-m { z-index: 3; width: 40%; transition-delay: .15s; }
.hm-phone-l { transform: translateY(18px) rotate(-7deg); }
.hm-phone-r { transform: translateY(18px) rotate(7deg); }
.rn-js .hm-phone { opacity: 0; }
.rn-js .hm-phone-l { transform: translate(60px, 60px) scale(.9); }
.rn-js .hm-phone-r { transform: translate(-60px, 60px) scale(.9); }
.rn-js .hm-phone-m { transform: translateY(80px) scale(.92); }
.rn-js .is-in .hm-phone { opacity: 1; }
.rn-js .is-in .hm-phone-l { transform: translateY(18px) rotate(-7deg); }
.rn-js .is-in .hm-phone-r { transform: translateY(18px) rotate(7deg); }
.rn-js .is-in .hm-phone-m { transform: translateY(0); }
.hm-phone-bob { animation: hmBob 5s ease-in-out infinite; }
.hm-phone-m .hm-phone-bob { animation-delay: -1.6s; }
.hm-phone-r .hm-phone-bob { animation-delay: -3.2s; }
.hm-phone-frame { padding: 8px; border-radius: 36px; background: linear-gradient(160deg, #22305A 0%, #0F1C3F 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 22px 46px rgba(15, 28, 63, 0.18); }
.hm-phone-m .hm-phone-frame { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 36px 70px rgba(15, 28, 63, 0.30); }
.hm-phone-screen { border-radius: 29px; overflow: hidden; aspect-ratio: 714 / 1500; background: #fff; }
.hm-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 700px) { .hm-phone { margin: 0 -14px; } }
@media (min-width: 960px) {
    .hm-phone { width: clamp(150px, 14.5vw, 200px); }
    .hm-phone-m { width: clamp(180px, 17vw, 236px); }
}

/* ---------- services ---------- */
.hm-services { position: relative; overflow-x: clip; padding: clamp(34px, 3.6vw, 53px) var(--pad-x); }
.hm-blob-r { right: -10%; top: -10%; width: 42vw; max-width: 600px; background: radial-gradient(circle, rgba(26, 163, 224, 0.10) 0%, rgba(26, 163, 224, 0) 70%); }
.hm-blob-l { left: -12%; bottom: -16%; width: 40vw; max-width: 560px; background: radial-gradient(circle, rgba(124, 196, 127, 0.12) 0%, rgba(124, 196, 127, 0) 70%); }
.hm-services-inner { position: relative; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(36px, 4.5vw, 56px); }
.hm-svc-list { --n: 3; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 16px; row-gap: clamp(22px, 2.6vw, 34px); }
.hm-svc-list li { flex: 0 0 calc((100% - (var(--n) - 1) * 16px) / var(--n)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
@media (min-width: 420px) { .hm-svc-list { --n: 4; } }
@media (min-width: 640px) { .hm-svc-list { --n: 5; } }
@media (min-width: 900px) { .hm-svc-list { --n: 7; } }
@media (min-width: 1100px) { .hm-svc-list { --n: 8; } }
.hm-svc-icon { height: clamp(54px, 4.8vw, 70px); display: flex; align-items: center; justify-content: center; }
.hm-svc-icon img { width: clamp(54px, 4.8vw, 70px); height: clamp(54px, 4.8vw, 70px); object-fit: contain; display: block; filter: drop-shadow(0 10px 14px rgba(15, 28, 63, 0.14)); animation: hmBob 4.2s ease-in-out var(--bob, 0s) infinite; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.hm-svc-icon img:hover { transform: translateY(-6px) rotate(-4deg) scale(1.08); }
.hm-svc-list li > span { font-size: clamp(13px, 1vw, 15px); font-weight: 600; line-height: 1.3; color: var(--rn-teal); max-width: 130px; text-wrap: balance; }

/* ---------- marketing kit ---------- */
.hm-marketing { position: relative; padding: clamp(34px, 3.6vw, 58px) var(--pad-x); }
.hm-mk-grid { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 900px) { .hm-mk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .hm-wa { grid-column: 2; } }
.hm-mk-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hm-mk-text .hm-lead { max-width: 480px; }
.hm-mk-points { margin-top: 4px !important; display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 480px; }
.hm-mk-point { width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left; border: 0; cursor: pointer; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0); transition: background .4s, box-shadow .4s; }
.hm-mk-point.is-active { background: linear-gradient(135deg, #E6F5FE 0%, #CDEBFC 100%); box-shadow: inset 0 0 0 1px rgba(26, 163, 224, 0.25), 0 12px 28px rgba(26, 143, 214, 0.14); }
.hm-mk-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.hm-mk-point.is-active .hm-mk-ico { transform: scale(1.08) rotate(-4deg); }
.hm-mk-ico-0 { background: linear-gradient(145deg, #38BDF8 0%, #1A8FD6 100%); box-shadow: 0 8px 18px rgba(26, 143, 214, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.hm-mk-ico-1 { background: linear-gradient(145deg, #FFC24B 0%, #F29A12 100%); box-shadow: 0 8px 18px rgba(242, 154, 18, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.hm-mk-ico-2 { background: linear-gradient(145deg, #4CC77A 0%, #1F9D5C 100%); box-shadow: 0 8px 18px rgba(31, 157, 92, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.hm-mk-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hm-mk-copy span:first-child { font-size: 17px; font-weight: 700; color: var(--rn-teal); }
.hm-mk-copy span:last-child { font-size: 15px; line-height: 1.5; color: var(--rn-muted); }
.hm-mk-stage { position: relative; width: 100%; max-width: 600px; justify-self: center; aspect-ratio: 1 / 0.92; perspective: 1400px; }
.hm-mk-glow { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(26, 163, 224, 0.18) 0%, rgba(124, 196, 127, 0.10) 45%, rgba(255, 255, 255, 0) 72%); }
.hm-mk-card { position: absolute; left: 50%; top: 50%; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 1.1s cubic-bezier(.34, 1.25, .64, 1), opacity .8s, filter .8s; }
.hm-mk-w0 { width: 60%; } .hm-mk-w1 { width: 54%; } .hm-mk-w2 { width: 68%; }
.hm-mk-card.slot-0 { z-index: 3; transform: translate(-50%, -50%) scale(1); }
.hm-mk-card.slot-1 { z-index: 2; opacity: .9; filter: saturate(.85) brightness(.98); transform: translate(-30%, -74%) rotate(7deg) scale(.74); }
.hm-mk-card.slot-2 { z-index: 1; opacity: .9; filter: saturate(.85) brightness(.98); transform: translate(-70%, -30%) rotate(-8deg) scale(.7); }
@media (min-width: 1000px) {
    .hm-mk-card.slot-1 { transform: translate(-22%, -74%) rotate(7deg) scale(.74); }
    .hm-mk-card.slot-2 { transform: translate(-78%, -30%) rotate(-8deg) scale(.7); }
}
.rn-js .hm-mk-stage .hm-mk-card { opacity: 0; }
.rn-js .is-in .hm-mk-stage .hm-mk-card { opacity: .9; }
.rn-js .is-in .hm-mk-stage .hm-mk-card.slot-0 { opacity: 1; }
.hm-mk-card-in { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 6px rgba(15, 28, 63, 0.06), 0 16px 34px rgba(15, 28, 63, 0.12); animation: hmBob 5s ease-in-out var(--bob, 0s) infinite; transition: box-shadow .8s; }
.slot-0 .hm-mk-card-in { box-shadow: 0 2px 6px rgba(15, 28, 63, 0.06), 0 30px 60px rgba(15, 28, 63, 0.22); }
.hm-mk-card img { width: 100%; height: auto; display: block; }
.hm-mk-shine { position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%); transform: translateX(-120%) skewX(-12deg); pointer-events: none; }
.is-in .slot-0 .hm-mk-shine { transform: translateX(260%) skewX(-12deg); transition: transform 1.1s cubic-bezier(.4, 0, .2, 1) .45s; }

.hm-wa { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px; margin-top: -64px; position: relative; z-index: 6; }
.hm-wa-toasts { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 899.98px) { .hm-wa-toasts { order: 2; } }
.hm-wa-toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 14px 32px rgba(15, 28, 63, 0.14); transition: opacity .5s, transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.hm-wa-toast > span:last-child { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hm-wa-toast b { font-size: 14px; font-weight: 700; color: var(--rn-teal); }
.hm-wa-toast > span:last-child span { font-size: 13px; color: var(--rn-muted); }
.hm-wa-badge { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.hm-wa-badge-g { background: linear-gradient(145deg, #4CC77A, #1F9D5C); }
.hm-wa-badge-b { background: linear-gradient(145deg, #38BDF8, #1A8FD6); }
.hm-wa-card { flex: 1 1 240px; max-width: 300px; border-radius: 20px; overflow: hidden; background: #ECE5DD; box-shadow: 0 18px 40px rgba(15, 28, 63, 0.18); transition: opacity .5s, transform .8s cubic-bezier(.34, 1.56, .64, 1); }
.hm-wa-top { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #075E54; color: #fff; font-size: 14px; font-weight: 700; }
.hm-wa-logo { width: 28px; height: 28px; border-radius: 50%; background: #25D366; display: grid; place-items: center; }
.hm-wa-body { padding: 12px 12px 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-height: 92px; }
.hm-wa-dots { display: none; gap: 4px; padding: 10px 14px; border-radius: 14px; background: #fff; }
.hm-wa-dots span { width: 7px; height: 7px; border-radius: 50%; background: #9AA5B1; animation: hmBob .9s ease-in-out infinite; }
.hm-wa-dots span:nth-child(2) { animation-delay: -.3s; } .hm-wa-dots span:nth-child(3) { animation-delay: -.6s; }
.hm-wa-msg { display: flex; flex-direction: column; gap: 4px; max-width: 92%; padding: 10px 12px 6px; border-radius: 14px 14px 4px 14px; background: #DCF8C6; transition: opacity .4s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.hm-wa-msg span:first-child { font-size: 13.5px; line-height: 1.45; color: #1F2C34; }
.hm-wa-tick { align-self: flex-end; font-size: 12px; font-weight: 700; letter-spacing: -2px; color: #34B7F1; transition: color .4s; }
/* animation states set by home.js; without JavaScript the finished state is shown */
.rn-js .hm-wa .hm-wa-card, .rn-js .hm-wa .hm-wa-toast { opacity: 0; transform: translate(0, 18px) scale(.9); }
.rn-js .hm-wa.wa-card .hm-wa-card, .rn-js .hm-wa.wa-t1 .hm-wa-t1, .rn-js .hm-wa.wa-t2 .hm-wa-t2 { opacity: 1; transform: none; }
.rn-js .hm-wa .hm-wa-msg { display: none; opacity: 0; transform: scale(.9); }
.rn-js .hm-wa.wa-msg .hm-wa-msg { display: flex; opacity: 1; transform: none; }
.rn-js .hm-wa.wa-dots .hm-wa-dots { display: flex; }
.rn-js .hm-wa .hm-wa-tick { color: #8696A0; }
.rn-js .hm-wa.wa-tick .hm-wa-tick { color: #34B7F1; }

/* ---------- group companies ---------- */
.hm-platforms { position: relative; padding: clamp(26px, 3vw, 43px) var(--pad-x); }
.hm-pl-inner { position: relative; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(36px, 4.5vw, 60px); }
.hm-pl-inner > .hm-head { gap: 12px; }
.hm-pl-inner .hm-swoosh { width: 140px; }
.hm-pl-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 880px) {
    .hm-pl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hm-pl-row.is-flip .hm-pl-img { order: 2; }
    .hm-pl-row.is-flip .hm-pl-text { order: 1; }
}
@media (max-width: 879.98px) { .rn-js .hm-pl-row .rv-img { transform: translate3d(0, 30px, 0) scale(.94); } }
.hm-pl-img { position: relative; display: flex; justify-content: center; }
.hm-pl-img img { width: 100%; max-width: 520px; height: auto; display: block; filter: drop-shadow(0 20px 26px rgba(15, 28, 63, 0.10)); animation: hmBob 6s ease-in-out var(--bob, 0s) infinite; }
.hm-pl-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hm-pl-text h3 { font-family: var(--rn-font); font-weight: 800; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -0.025em; color: var(--rn-teal); }
.hm-pl-text > p { max-width: 420px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; color: var(--rn-muted); text-wrap: pretty; }
.hm-pl-text > p.hm-pl-note { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px rgba(26, 163, 224, 0.18); font-size: 14px; line-height: 1.5; color: var(--rn-teal); }
.hm-pl-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.hm-pl-chips li { padding: 6px 12px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 58, 68, 0.08); font-size: 13px; font-weight: 600; color: var(--rn-teal); }

/* ---------- who can join + calculator ---------- */
.hm-who { padding: clamp(38px, 4.2vw, 62px) var(--pad-x); }
.hm-who-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px); }
.hm-who-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.6vw, 32px); align-items: start; }
@media (min-width: 960px) { .hm-who-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.hm-who-types { display: flex; flex-direction: column; gap: 12px; }
.hm-who-card { border: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 24px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 8px 22px rgba(15, 28, 63, 0.05); transition: opacity .7s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), background .3s, box-shadow .3s; }
.hm-who-card.is-active { background: #fff; box-shadow: inset 0 0 0 2px var(--rn-sky), 0 18px 40px rgba(26, 120, 170, 0.14); }
.hm-who-top { display: flex; align-items: center; gap: 16px; }
.hm-who-pic { position: relative; flex: none; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: var(--tint); }
.hm-who-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hm-who-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; line-height: 1.45; color: var(--rn-muted); }
.hm-who-title { font-family: var(--rn-font); font-size: 19px; font-weight: 800; color: var(--rn-teal); }
.hm-who-points { display: none; flex-direction: column; gap: 9px; padding: 2px 4px 4px; }
.hm-who-card.is-active .hm-who-points { display: flex; }
.hm-who-pt { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: #2E3A48; }
.hm-tick { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--tint); color: var(--ac); display: grid; place-items: center; }

.hm-calc { display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 2.4vw, 32px); border-radius: 28px; background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 24px 60px rgba(26, 120, 170, 0.10); }
.rn-js .hm-calc.rv { transform: translate3d(0, 40px, 0); }
.hm-calc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hm-calc-head span:first-child { font-family: var(--rn-font); font-size: 20px; font-weight: 800; color: var(--rn-teal); }
.hm-calc-head span:last-child { font-size: 14px; color: var(--rn-muted); }
.hm-calc-rows { display: flex; flex-direction: column; gap: 14px; }
.hm-calc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 6px; }
.hm-calc-row input[type=range] { grid-area: 2 / 1 / 3 / 3; width: 100%; accent-color: var(--ac); cursor: pointer; }
@media (min-width: 480px) {
    .hm-calc-row { grid-template-columns: 172px minmax(0, 1fr) auto; }
    .hm-calc-row input[type=range] { grid-area: auto; }
}
.hm-calc-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hm-calc-name img { width: 30px; height: 30px; flex: none; object-fit: contain; }
.hm-calc-name span { font-size: 15px; font-weight: 600; color: var(--rn-teal); white-space: nowrap; }
.hm-calc-n { min-width: 44px; padding: 5px 10px; border-radius: 10px; background: var(--tint); color: var(--ac); font-size: 15px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.hm-calc-total { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border-radius: 22px; background: linear-gradient(135deg, #0B3A44 0%, #11566A 100%); }
.hm-calc-total-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hm-calc-total-head > span { font-size: 14px; font-weight: 600; color: #D6E6EA; }
.hm-period { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); }
.hm-period button { border: 0; cursor: pointer; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; background: transparent; color: #D6E6EA; transition: background .25s, color .25s; }
.hm-period button.is-active { background: #fff; color: var(--rn-teal); }
.hm-calc-sum { font-family: var(--rn-font); font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- partner stories ---------- */
.hm-narrow { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 36px); }
.hm-wide { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 3.5vw, 44px); }
.hm-stories { position: relative; padding: clamp(24px, 2.7vw, 43px) var(--pad-x); }
.hm-story-list { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.6vw, 18px); }
@media (min-width: 640px) { .hm-story-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .hm-story-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-story { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 14px 36px rgba(15, 28, 63, 0.06); color: var(--rn-teal) !important; transition: transform .45s var(--ease), box-shadow .45s; }
.hm-story:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(26, 163, 224, 0.25), 0 28px 60px rgba(26, 120, 170, 0.16); }
.hm-story-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.hm-story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.hm-story:hover .hm-story-media img { transform: scale(1.06); }
.hm-story-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 58, 68, 0) 45%, rgba(11, 58, 68, 0.55) 100%); }
.hm-pulse { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); animation: hmPulse 2.4s ease-out var(--pd, 0s) infinite; }
.hm-playbtn { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; box-shadow: 0 12px 30px rgba(11, 58, 68, 0.25); display: grid; place-items: center; }
.hm-yt { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.92); font-size: 12px; font-weight: 700; color: var(--rn-teal); }
.hm-story-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.hm-story-quote { font-size: 15px; line-height: 1.5; font-weight: 500; color: #2E3A48; text-wrap: pretty; }
.hm-story-who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.hm-story-who > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.hm-story-who b { font-size: 15px; font-weight: 700; color: var(--rn-teal); }
.hm-story-who > span:last-child span { font-size: 13px; color: var(--rn-muted); }
.hm-avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }

/* ---------- videos ---------- */
.hm-videos { position: relative; padding: clamp(34px, 3.6vw, 58px) var(--pad-x); }
.hm-vid-wrap { position: relative; width: 100%; }
.hm-vid-row { padding: 6px 4px 18px !important; width: 100%; display: flex; gap: clamp(14px, 1.8vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.hm-vid-row::-webkit-scrollbar { display: none; }
.hm-vid-row li { flex: 0 0 clamp(250px, 27vw, 320px); scroll-snap-align: start; }
.hm-vid { display: flex; flex-direction: column; gap: 14px; height: 100%; color: var(--rn-teal) !important; }
.hm-vid-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; box-shadow: 0 12px 30px rgba(15, 28, 63, 0.07); transition: transform .45s var(--ease), box-shadow .45s; }
.hm-vid:hover .hm-vid-media { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(26, 120, 170, 0.16); }
.hm-vid-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-playbtn-left { left: 16px; margin-left: 0; box-shadow: 0 10px 24px rgba(11, 58, 68, 0.2); }
.hm-tag { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.92); font-size: 12px; font-weight: 700; color: var(--topic); }
.hm-dur { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 8px; background: rgba(11, 58, 68, 0.75); color: #fff; font-size: 12px; font-weight: 700; }
.hm-vid-title { font-size: 17px; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.hm-arrow { display: none; position: absolute; top: calc(50% - 40px); width: 48px; height: 48px; border: 0; cursor: pointer; border-radius: 50%; place-items: center; font-size: 20px; transition: transform .2s; }
.hm-arrow:hover { transform: scale(1.08); }
.hm-arrow-prev { left: -22px; background: #fff; color: var(--rn-teal); box-shadow: 0 10px 26px rgba(15, 28, 63, 0.12); }
.hm-arrow-next { right: -22px; background: var(--rn-sky); color: #fff; box-shadow: 0 10px 26px rgba(26, 163, 224, 0.32); }
@media (min-width: 1100px) { .hm-arrow { display: grid; } }

/* topic colours (videos and blog) */
.hm-topic-loans { --topic: #1676B8; --topic-bg: linear-gradient(150deg, #E4F2FC, #BFE2F7); --topic-tint: #E4F2FC; }
.hm-topic-insurance { --topic: #178452; --topic-bg: linear-gradient(150deg, #E6F6EC, #BDE6CB); --topic-tint: #E6F6EC; }
.hm-topic-funds { --topic: #5845C9; --topic-bg: linear-gradient(150deg, #F1EEFE, #D7D0FB); --topic-tint: #F1EEFE; }
.hm-topic-banking { --topic: #C47A08; --topic-bg: linear-gradient(150deg, #FFF3E1, #FBDDA8); --topic-tint: #FFF3E1; }
.hm-topic-grow { --topic: #C23B62; --topic-bg: linear-gradient(150deg, #FDEBF0, #F8C9D6); --topic-tint: #FDEBF0; }
.hm-topic-other { --topic: #0F7C86; --topic-bg: linear-gradient(150deg, #E3F5F5, #BFE8E8); --topic-tint: #E3F5F5; }
.hm-vid-media { background: var(--topic-bg); }

/* ---------- blog ---------- */
.hm-blog { position: relative; padding: clamp(24px, 2.7vw, 43px) var(--pad-x); }
.hm-blog-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.6vw, 18px); }
@media (min-width: 960px) {
    .hm-blog-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .hm-blog-grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 640px; justify-self: center; }
    .hm-post.is-big { grid-row: span 2; }
}
.hm-post { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 14px 36px rgba(15, 28, 63, 0.06); color: var(--rn-teal) !important; transition: opacity .8s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), box-shadow .3s; }
.hm-post:hover { box-shadow: inset 0 0 0 1px rgba(26, 163, 224, 0.22), 0 26px 56px rgba(26, 120, 170, 0.14); }
.hm-post-cover { position: relative; display: block; min-height: 120px; background: var(--topic-bg); overflow: hidden; }
.hm-post.is-big .hm-post-cover { flex: 1 1 auto; min-height: 190px; }
.hm-post-glow { position: absolute; right: -12%; top: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%); }
.hm-post-cover img { position: absolute; left: 50%; top: 50%; width: 46%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 16px 24px rgba(11, 58, 68, 0.18)); animation: hmVidBob 6s ease-in-out var(--d, 0s) infinite; }
.hm-post.is-big .hm-post-cover img { width: 26%; }
.hm-post-body { display: flex; flex-direction: column; gap: 8px; padding: clamp(16px, 1.6vw, 20px); flex: 1; }
.hm-post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--rn-muted); }
.hm-post-tag { padding: 5px 10px; border-radius: 9px; background: var(--topic-tint); color: var(--topic); font-weight: 700; }
.hm-post-title { font-family: var(--rn-font); font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; color: var(--rn-teal); text-wrap: balance; }
.hm-post.is-big .hm-post-title { font-size: clamp(20px, 1.8vw, 24px); }
.hm-post-sum { font-size: 14px; line-height: 1.5; color: var(--rn-muted); text-wrap: pretty; }
.hm-post-more { margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--rn-blue); }
@media (min-width: 560px) {
    .hm-post:not(.is-big) { flex-direction: row; }
    .hm-post:not(.is-big) .hm-post-cover { flex: 0 0 38%; }
}
@media (min-width: 960px) {
    .hm-blog-grid.is-single .hm-post { flex-direction: column; }
}

/* ---------- feature video ---------- */
.hm-film { padding: clamp(19px, 2.4vw, 38px) var(--pad-x); }
.hm-film-box { position: relative; max-width: 620px; margin: 0 auto; }
.hm-film-shadow { position: absolute; left: 8%; right: 8%; bottom: -34px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 58, 68, 0.22), rgba(11, 58, 68, 0)); animation: hmShadow 6s ease-in-out infinite; }
.hm-film-phone { display: block; position: relative; padding: 12px; border-radius: 44px; background: linear-gradient(145deg, #2A2F36 0%, #0E1116 55%, #23282F 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 30px 60px rgba(15, 28, 63, 0.22); animation: hmFloat 6s ease-in-out infinite; transition: box-shadow .4s; }
.hm-film-phone:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 40px 80px rgba(26, 120, 170, 0.28); }
.hm-film-btn { position: absolute; width: 3px; background: #1A1E24; }
.hm-film-btn-l { left: -3px; top: 28%; height: 36px; border-radius: 2px 0 0 2px; }
.hm-film-btn-r { right: -3px; top: 34%; height: 56px; border-radius: 0 2px 2px 0; }
.hm-film-screen { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 32px; overflow: hidden; background: #000; }
.hm-film-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-film-notch { position: absolute; left: 12px; top: 50%; width: 22px; height: 66px; margin-top: -33px; border-radius: 12px; background: #000; }
.hm-pulse-lg { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, 0.5); }
.hm-film-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--rn-sky); box-shadow: 0 12px 30px rgba(26, 163, 224, 0.45); display: grid; place-items: center; transition: transform .35s cubic-bezier(.34, 1.6, .64, 1); }
.hm-film-phone:hover .hm-film-play { transform: scale(1.1); }

/* ---------- partner logos ---------- */
.hm-partners { position: relative; padding: clamp(38px, 4.8vw, 67px) 0; overflow: hidden; }
.hm-blob-pl { left: -10%; top: -20%; width: 44vw; max-width: 620px; background: radial-gradient(circle, rgba(26, 163, 224, 0.12) 0%, rgba(26, 163, 224, 0) 70%); }
.hm-blob-pr { right: -8%; bottom: -30%; width: 40vw; max-width: 560px; background: radial-gradient(circle, rgba(124, 196, 127, 0.14) 0%, rgba(124, 196, 127, 0) 70%); }
.hm-partners-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 52px); }
.hm-pad { padding: 0 var(--pad-x); }
.hm-marquee { width: 100%; overflow: hidden; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%); }
.hm-marquee-track { display: flex; width: max-content; animation: hmMarquee 60s linear infinite; }
.hm-marquee:hover .hm-marquee-track, .hm-marquee:focus-within .hm-marquee-track { animation-play-state: paused; }
.hm-logo-row { display: flex; gap: clamp(14px, 1.6vw, 22px); padding-right: clamp(14px, 1.6vw, 22px) !important; }
.hm-logo { flex: none; width: clamp(150px, 14vw, 200px); height: clamp(76px, 6.6vw, 96px); border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 58, 68, 0.06), 0 1px 2px rgba(15, 28, 63, 0.04), 0 10px 26px rgba(15, 28, 63, 0.06); display: flex; align-items: center; justify-content: center; padding: 12px 18px; transition: transform .35s var(--ease), box-shadow .35s; }
.hm-logo:hover { transform: translateY(-4px) scale(1.04); box-shadow: inset 0 0 0 1px rgba(26, 163, 224, 0.25), 0 16px 34px rgba(26, 120, 170, 0.14); }
.hm-logo a { display: contents; }
.hm-logo img { max-width: 100%; max-height: clamp(36px, 3.2vw, 50px); width: auto; height: auto; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) {
    .hm-marquee { overflow-x: auto; }
    .hm-marquee-track { animation: none; }
}

/* ---------- join ---------- */
.hm-join { padding: clamp(29px, 3.6vw, 53px) var(--pad-x); }
.hm-join-box { max-width: 1160px; margin: 0 auto; border-radius: 32px; background: linear-gradient(135deg, #FBF3E4 0%, #F1F6EC 45%, #DDF0E4 100%); box-shadow: inset 0 0 0 1px rgba(31, 138, 91, 0.08); padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.hm-join-box h2 { font-family: var(--rn-font); font-weight: 800; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.025em; color: var(--rn-ink); text-wrap: balance; }
.hm-join-box p { font-size: 18px; color: var(--rn-muted); }
