/* Homepage hero: scattered drifting tiles that open into preview cards. Palette: navy/teal. */
.hm-hero{position:relative;min-height:880px;padding:calc(var(--nav-h) + 8.5rem) 0 8rem;overflow:hidden}
.hm-hero__center{position:relative;z-index:3;text-align:center;max-width:800px;margin:0 auto;padding:0 1.5rem;pointer-events:none}
.hm-hero__center a,.hm-hero__center .hm-chip{pointer-events:auto}
.hm-hero h1{font-size:clamp(3rem,6.2vw,6rem);line-height:.98;letter-spacing:-.03em;margin:1.5rem 0 1.75rem}
.hm-hero p{font-size:clamp(1.15rem,2vw,1.6rem);line-height:1.45;color:#3E5670;max-width:720px;margin:0 auto}
.hm-hero .hm-actions{margin-top:2.5rem}
.hm-hero .hm-btn{padding:.95rem 1.6rem;font-size:1.05rem;border-radius:12px}

.hm-field{position:absolute;inset:0;z-index:1}
.hm-lane{position:absolute;top:0;bottom:0;width:150px;overflow:visible}
.hm-lane__track{animation:hm-drift var(--dur,90s) linear infinite;will-change:transform}
.hm-field:hover .hm-lane__track,.hm-field.paused .hm-lane__track{animation-play-state:paused}
.hm-lane.l1{left:calc(50% - 560px);--dur:96s}
.hm-lane.l4{right:calc(50% - 560px);--dur:104s;padding-top:300px}
.hm-lane.l2{left:max(2rem,calc(50% - 720px));--dur:80s;padding-top:200px}
.hm-lane.l3{right:max(2rem,calc(50% - 720px));--dur:88s;padding-top:90px}
@keyframes hm-drift{from{transform:translateY(0)}to{transform:translateY(-50%)}}
.hm-fade{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(#F4F7FC 0,rgba(244,247,252,0) 16%,rgba(244,247,252,0) 78%,#F4F7FC 100%)}

.hm-t{display:block;width:128px;margin:var(--g,180px) 0 0 var(--x,0);background:none;border:0;padding:0;text-align:left;cursor:pointer;color:#4B6785;font:inherit;font-size:.95rem;line-height:1.35}
.hm-t .th{width:112px;height:112px;border-radius:14px;overflow:hidden;position:relative;background:#fff;border:1px solid #D6E0EB;box-shadow:0 10px 30px rgba(27,58,92,.08);transition:transform .35s,box-shadow .35s}
.hm-t .th .mock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.39);transform-origin:center}
.hm-t span{display:block;margin-top:.65rem}
.hm-t:hover .th,.hm-t:focus-visible .th{transform:translateY(-4px);box-shadow:0 18px 40px rgba(27,58,92,.16)}
.hm-t:focus-visible{outline:2px solid #00BCD4;outline-offset:6px;border-radius:14px}
.hm-t.pat .th{background:#E3EEF9;border-color:transparent;box-shadow:none}

/* preview card */
.hm-pop{position:absolute;z-index:5;width:360px;background:#fff;border:1px solid #D6E0EB;border-radius:20px;padding:1.4rem;box-shadow:0 30px 70px rgba(27,58,92,.18);opacity:0;transform:translateY(8px) scale(.98);transition:opacity .2s,transform .2s;pointer-events:none}
.hm-pop.open{opacity:1;transform:none;pointer-events:auto}
.hm-pop h4{font:600 1.05rem 'Inter',sans-serif;color:#0A0F1E;margin:0 0 .9rem}
.hm-pop .pv{height:190px;border-radius:12px;background:#E8EFF7;position:relative;overflow:hidden;margin-bottom:1rem}
.hm-pop .pv .mock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(1.05)}
.hm-pop p{font-size:1rem;color:#3E5670;margin:0 0 1.1rem;line-height:1.5}
.hm-pop a{display:inline-block;border:1px solid #D6E0EB;border-radius:10px;padding:.55rem 1rem;color:#1B3A5C;text-decoration:none;font-weight:500}
.hm-pop a:hover{border-color:#1B3A5C}

/* mobile: horizontal marquee of the same tiles */
.hm-marquee{display:none;position:relative;z-index:1;margin-top:3rem;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.hm-marquee__track{display:flex;gap:1.25rem;width:max-content;animation:hm-slide 70s linear infinite}
.hm-marquee .hm-t{margin:0;width:120px}
.hm-marquee .hm-t .th{width:112px;height:112px}
.hm-marquee .hm-t .th .mock{transform:translate(-50%,-50%) scale(.4)}
@keyframes hm-slide{to{transform:translateX(-50%)}}
@media(max-width:1560px){.hm-lane.l2,.hm-lane.l3{display:none}.hm-lane.l1{left:max(1rem,calc(50% - 560px))}.hm-lane.l4{right:max(1rem,calc(50% - 560px))}}
@media(max-width:1180px){.hm-field,.hm-fade,.hm-pop{display:none}.hm-marquee{display:block}.hm-hero{min-height:0;padding-bottom:4rem}}
@media(prefers-reduced-motion:reduce){.hm-lane__track,.hm-marquee__track{animation:none}}

/* mocks (designed at 280x180) */
.mock{width:280px;height:180px;background:#fff;border-radius:12px;font:12px/1.3 'Inter',sans-serif;color:#0A0F1E;padding:14px;box-sizing:border-box}
.mk-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.mk-top b{font-weight:600}.mk-top span{color:#4B6785}
.mk-top em{font-style:normal;background:#D7F2F6;color:#007686;border-radius:99px;padding:2px 8px;font-weight:600}
.mk-kpis{display:flex;gap:8px;margin-bottom:10px}
.mk-kpis div{flex:1;border:1px solid #E3EAF2;border-radius:8px;padding:5px 7px}
.mk-kpis span{display:block;color:#4B6785;font-size:10px}.mk-kpis b{font-size:15px}
.mk-bars{display:flex;align-items:flex-end;gap:7px;height:62px;border-top:1px solid #E3EAF2;padding-top:6px}
.mk-bars i{flex:1;border-radius:4px 4px 0 0;background:#DDE6F1}.mk-bars i:nth-child(odd){background:#2C5F8C}.mk-bars i:last-child{background:#00BCD4}
.mk-phone{background:transparent;display:grid;place-items:center;padding:0}
.mk-ph{width:116px;height:176px;border:5px solid #0A0F1E;border-radius:20px;background:#fff;padding:8px 8px;box-sizing:border-box}
.mk-notch{width:36px;height:5px;border-radius:9px;background:#E3EAF2;margin:0 auto 7px}
.mk-ph b{display:block;font-size:11px;margin-bottom:6px}
.mk-slot{border:1px solid #E3EAF2;border-radius:7px;padding:4px 6px;margin-bottom:5px;font-size:10px}
.mk-slot.on{border-color:#00BCD4;background:#F0FBFD}
.mk-go{background:#1B3A5C;color:#fff;text-align:center;border-radius:7px;padding:5px;font-size:10px;font-weight:600;margin-top:4px}
.mk-price{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.mk-price div{border:1px solid #E3EAF2;border-radius:9px;padding:8px;text-align:center}
.mk-price div.on{border-color:#00BCD4;box-shadow:0 0 0 3px #D7F2F6}
.mk-price span{color:#4B6785;font-size:10px}.mk-price b{display:block;font-size:17px;margin:2px 0 6px}
.mk-price i{display:block;height:4px;background:#E3EAF2;border-radius:4px;margin:5px 0}
.mk-price em{display:block;font-style:normal;margin-top:8px;background:#1B3A5C;color:#fff;border-radius:6px;padding:4px;font-size:10px}
.mk-site{padding:0;overflow:hidden}
.mk-chrome{display:flex;gap:4px;align-items:center;padding:8px 10px;border-bottom:1px solid #E3EAF2}
.mk-chrome i{width:7px;height:7px;border-radius:50%;background:#DCE5EF}.mk-chrome span{flex:1;height:8px;margin-left:8px;border-radius:5px;background:#F1F5FA}
.mk-sh{padding:14px 12px;background:linear-gradient(135deg,#1B3A5C,#2C5F8C);color:#fff}
.mk-sh b{display:block;font:500 15px 'Newsreader',Georgia,serif;margin-bottom:6px}
.mk-sh em{font-style:normal;background:#00BCD4;color:#0A0F1E;border-radius:99px;padding:2px 9px;font-weight:600;font-size:10px}
.mk-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:10px}
.mk-cols i{height:36px;border-radius:7px;background:#E3EEF9}
.mk-chat{display:flex;flex-direction:column;gap:6px}
.mk-b{max-width:72%;padding:6px 9px;border-radius:12px;font-size:11px}
.mk-b.l{background:#EEF3F8;align-self:flex-start;border-bottom-left-radius:3px}
.mk-b.r{background:#1B3A5C;color:#fff;align-self:flex-end;border-bottom-right-radius:3px}
.mk-in{margin-top:auto;border:1px solid #E3EAF2;border-radius:99px;padding:5px 10px;color:#9AAFC8;font-size:10px}
.mk-board{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#F4F7FC}
.mk-board div{background:#fff;border-radius:8px;padding:6px}
.mk-board span{display:block;font-size:10px;color:#4B6785;margin-bottom:5px}
.mk-board i{display:block;height:26px;border-radius:6px;background:#E3EEF9;margin-bottom:5px}
.mk-board i.s{height:18px}.mk-board i.t{background:#D7F2F6;border-left:3px solid #00BCD4}
.mk-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #EEF2F7;font-size:11px}
.mk-row.tot{border:0;font-weight:700;font-size:12px}
.mk-login{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:16px 50px}
.mk-login b{text-align:center;font:500 15px 'Newsreader',Georgia,serif}
.mk-f{border:1px solid #DCE5EF;border-radius:7px;padding:6px 8px;color:#4B6785;font-size:11px}
.mk-map{position:relative;padding:0;background:repeating-linear-gradient(45deg,#EEF4FA 0 10px,#F7FAFD 10px 20px)}
.mk-map svg{position:absolute;inset:0;width:100%;height:100%}
.mk-pill{position:absolute;right:10px;bottom:10px;background:#fff;border-radius:99px;padding:4px 10px;font-weight:600;font-size:11px;box-shadow:0 4px 12px rgba(27,58,92,.12)}
.mk-cal .mk-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}
.mk-cal .mk-grid i{height:24px;border-radius:5px;background:#F1F5FA}
.mk-cal .mk-grid i.on{background:#1B3A5C}.mk-cal .mk-grid i.on2{background:#00BCD4}
.mk-pattern{background:#D7E6F4;padding:0}
.mk-pattern svg{width:100%;height:100%}

/* tablets and phones: a calm, centred set of tiles, nothing cut off at the edges */
@media(max-width:1180px){
  .hm-marquee{-webkit-mask-image:none;mask-image:none;overflow:visible;margin-top:3.5rem}
  .hm-marquee__track{animation:none;width:auto;flex-wrap:wrap;justify-content:center;gap:1.5rem 1.25rem;max-width:760px;margin:0 auto;padding:0 1rem}
  .hm-marquee__track .hm-t:nth-child(n+9){display:none}
}
@media(max-width:600px){.hm-marquee__track .hm-t:nth-child(n+7){display:none}.hm-marquee .hm-t{width:96px}.hm-marquee .hm-t .th{width:92px;height:92px}.hm-marquee .hm-t .th .mock{transform:translate(-50%,-50%) scale(.32)}}
/* hero actions + small screens */
.hm-actions{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}
@media(max-width:600px){
  .hm-hero{padding:calc(var(--nav-h) + 2.75rem) 0 2.5rem}
  .hm-hero h1{font-size:clamp(2.4rem,11vw,3rem);margin:0 0 1.1rem}
  .hm-hero p{font-size:1.05rem;line-height:1.5}
  .hm-hero .hm-actions{margin-top:1.75rem;flex-direction:column;align-items:stretch;max-width:20rem;margin-left:auto;margin-right:auto}
  .hm-hero .hm-btn{justify-content:center;padding:.85rem 1.25rem;font-size:1rem}
}
@media(max-width:600px){.hm-marquee .hm-t span{font-size:.85rem;margin-top:.5rem;line-height:1.3}.hm-marquee{margin-top:2.25rem}}
