/* ==========================================================================
   Parallex · v3 "Pulse" · components.css
   Owns every reusable, class-based component. See NOTES.md for markup.
   Sections: header · mega-menu · mobile sheet · sticky bar · footer · CTA band · ticker ·
   Before/With toggle + wipe · depth gauge · media panel · device frames (phone, tablet) ·
   coded chat · Dex avatar · feed · unit card · comparison card · tiles & cards · step list ·
   FAQ · forms · modal · in-the-flow · page hero (inner) · misc
   ========================================================================== */

/* ============ HEADER ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  color: var(--navy); transition: background-color .3s, box-shadow .3s, color .3s, transform .35s var(--ease-out);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); opacity: 0; transition: opacity .3s; box-shadow: 0 1px 0 var(--border); }
.site-header.is-solid::before { opacity: 1; }
.site-header.is-dark { color: #fff; }
.site-header.is-dark::before { background: rgba(16,22,36,.86); box-shadow: 0 1px 0 rgba(255,255,255,.08); opacity: 1; }
.site-header.is-dark.is-top::before { opacity: 0; }
.site-header.menu-open::before { opacity: 1; background: #fff; box-shadow: 0 1px 0 var(--border); }
.site-header.menu-open { color: var(--navy); }
.hdr { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr-logo { display: inline-flex; align-items: center; height: 44px; flex: none; }
.hdr-logo .logo-svg { width: 118px; height: auto; }
.hdr-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 16px; }
.hdr-nav > li { list-style: none; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px; transition: background-color .2s;
}
.nav-btn .ic { width: 16px; height: 16px; transition: transform .25s var(--ease-out); opacity: .7; }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { background: rgba(80,111,179,.10); }
.site-header.is-dark:not(.menu-open) .nav-btn:hover { background: rgba(255,255,255,.1); }
.nav-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-btn[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--b3); border-radius: 0; }
.hdr-right { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.lang { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.lang a, .lang span { padding: 8px 8px; border-radius: 8px; }
.lang [aria-current] { opacity: 1; } .lang a { opacity: .62; } .lang a:hover { opacity: 1; }
.lang .sep { opacity: .35; padding: 0; }
.hdr-login { font-size: 15px; font-weight: 500; padding: 10px 14px; border-radius: var(--r-pill); }
.hdr-login:hover { background: rgba(80,111,179,.10); }
.site-header .btn-primary { height: 44px; padding: 0 20px; font-size: 15px; }
.site-header.is-dark:not(.menu-open) .btn-primary { --bg: #fff; --fg: var(--navy); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; margin-inline-start: 4px; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease-out), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1099px) {
  .hdr-nav, .hdr-right .lang, .hdr-right .hdr-login { display: none; }
  .burger { display: grid; }
}
@media (max-width: 479px) { .site-header .hdr-cta { display: none; } }

/* ============ MEGA-MENU ============ */
.mega {
  position: absolute; top: calc(100% - 6px); left: var(--margin); right: var(--margin); z-index: 2;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s var(--ease-out), transform .3s var(--ease-snap), visibility 0s .3s;
  color: var(--navy);
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease-out), transform .3s var(--ease-snap), visibility 0s; }
.mega-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-panel); padding: 14px; display: grid; gap: 14px; }
.mega-platform .mega-card { grid-template-columns: 1fr 1fr 340px; }
.mega-solutions .mega-card { grid-template-columns: 1fr 1fr; max-width: 820px; }
.mega-company { left: auto; right: auto; }
.mega-company .mega-card { width: 280px; grid-template-columns: 1fr; }
.mega-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 16px; transition: background-color .2s; }
.mega-item:hover, .mega-item:focus-visible { background: var(--mist); }
.mega-item .gl { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--b1); transition: background .25s, color .25s, transform .3s var(--ease-snap); }
.mega-item:hover .gl { background: var(--b1); color: #fff; transform: rotate(-4deg) scale(1.04); }
.mega-item .gl svg { width: 24px; height: 24px; }
.mega-item b { color: var(--navy); display: block; font-family: var(--f-head); font-weight: 500; font-size: 18px; letter-spacing: -.01em; line-height: 1.2; }
.mega-item span span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; margin-top: 3px; }
.mega-feature {
  grid-row: span 3; position: relative; border-radius: 18px; overflow: hidden; min-height: 280px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  background: #22345A;
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-snap); }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,22,36,0) 30%, rgba(16,22,36,.85)); }
.mega-feature > *:not(img) { position: relative; z-index: 1; }
.mega-feature:hover img { transform: scale(1.05); }
.mega-feature .badge-live { align-self: flex-start; margin-bottom: auto; }
.mega-feature b { font-family: var(--f-head); font-weight: 500; font-size: 22px; letter-spacing: -.015em; display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.mega-feature small { color: var(--on-dark-2); }
.mega-foot { grid-column: 1 / -1; display: flex; gap: 24px; padding: 14px 16px 6px; border-top: 1px solid var(--border); }
.mega-list a { display: block; padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.mega-list a:hover { background: var(--mist); }
.mega-list a span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.mega-scrim { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(16,22,36,.18); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; z-index: 80; }
.mega-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }

/* ============ MOBILE SHEET ============ */
.m-sheet {
  position: fixed; inset: 0; z-index: 85; background: #fff; color: var(--navy); padding: calc(var(--header-h) + 8px) var(--margin) 24px;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .35s var(--ease-snap), visibility 0s .35s;
}
.m-sheet.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease-snap), visibility 0s; }
.m-sheet details { border-bottom: 1px solid var(--border); }
.m-sheet summary, .m-sheet .m-link { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-family: var(--f-head); font-weight: 500; font-size: 24px; letter-spacing: -.02em; cursor: pointer; }
.m-sheet .m-link { border-bottom: 1px solid var(--border); }
.m-sheet summary::-webkit-details-marker { display: none; }
.m-sheet summary .ic { transition: transform .3s var(--ease-out); }
.m-sheet details[open] summary .ic { transform: rotate(45deg); }
.m-sub { display: grid; gap: 2px; padding: 0 0 14px; }
.m-sub a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; }
.m-sub a .gl { width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--b1); display: grid; place-items: center; flex: none; }
.m-sub a b { font-weight: 500; display: block; }
.m-sub a small { display: block; color: var(--muted); }
.m-sheet-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.m-sheet-foot .row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }

/* ============ STICKY MOBILE CTA BAR ============ */
.m-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: none; gap: 8px; padding: 8px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: var(--sh-float);
  transform: translateY(140%); transition: transform .4s var(--ease-snap);
}
.m-bar .btn { flex: 1; height: 48px; }
.m-bar .m-wa { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--border-2); }
.m-bar .m-wa svg { width: 24px; height: 24px; }
.m-bar.is-shown { transform: none; }
@media (max-width: 767px) { .m-bar { display: flex; } }
.no-sticky .m-bar { display: none !important; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: #fff; padding: clamp(64px, 50px + 3vw, 96px) 0 32px; position: relative; overflow: hidden; }
.ft-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ft-top .logo-svg { width: 150px; color: #fff; margin-bottom: 22px; }
.ft-top p { color: var(--on-dark-2); max-width: 52ch; font-size: 17px; }
.ft-top .btn-row { justify-content: flex-end; }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 0; }
.ft-cols h2 { font-family: var(--f-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--b3); font-weight: 500; margin-bottom: 16px; }
.ft-cols ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.ft-cols a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: #E3E8F2; }
.ft-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: var(--on-dark-2); font-size: 14px; }
.ft-bottom .tag { margin-inline-start: auto; font-family: var(--f-head); color: #fff; font-size: 16px; letter-spacing: -.01em; }
.ft-bottom .lang a { opacity: .7; color: #fff; } .ft-bottom .lang [aria-current] { color: #fff; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: #fff; font-size: 14px; }
.motion-toggle .ic { width: 16px; height: 16px; }
.ft-word { position: absolute; right: -2vw; bottom: -4vw; font-family: var(--f-head); font-weight: 500; font-size: 22vw; letter-spacing: -.06em; line-height: .8; color: rgba(255,255,255,.025); pointer-events: none; user-select: none; }
@media (max-width: 899px) {
  .ft-top { grid-template-columns: 1fr; }
  .ft-top .btn-row { justify-content: flex-start; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-bottom .tag { margin-inline-start: 0; width: 100%; }
}
@media (max-width: 767px) { .site-footer { padding-bottom: 96px; } }

/* ============ FINAL CTA BAND ============ */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(96px, 60px + 8vw, 176px) 0; text-align: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(50% 50% at 50% 45%, rgba(26,39,68,1), transparent 70%), radial-gradient(34% 40% at 50% 38%, rgba(103,142,229,.30), transparent 70%); z-index: -1; }
.cta-band .cta-mark { width: 92px; height: 76px; margin: 0 auto 36px; display: grid; gap: 12px; align-content: center; }
.cta-mark i { display: block; height: 16px; border-radius: 3px; transform-origin: left center; }
.cta-mark i:nth-child(1) { width: 64%; background: var(--b3); }
.cta-mark i:nth-child(2) { width: 82%; background: var(--b2); }
.cta-mark i:nth-child(3) { width: 100%; background: var(--b1); }
.js .cta-mark i { transform: scaleX(0); transition: transform .7s var(--ease-snap); }
.js .cta-band.is-in .cta-mark i { transform: none; }
.js .cta-band.is-in .cta-mark i:nth-child(2) { transition-delay: .12s; }
.js .cta-band.is-in .cta-mark i:nth-child(3) { transition-delay: .24s; }
.cta-band h2 { font-size: var(--t-display); line-height: .98; letter-spacing: -.04em; max-width: 13ch; margin: 0 auto; }
.cta-band p { color: var(--on-dark-2); font-size: var(--t-lead); max-width: 40ch; margin: 28px auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 40px; }
.cta-band .orbit-pills { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-band .orbit-pills span { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); color: var(--on-dark-2); font-size: 14px; white-space: nowrap; animation: floaty 7.76s ease-in-out infinite; }
.cta-band .orbit-pills .live-dot { width: 6px; height: 6px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 899px) { .cta-band .orbit-pills { display: none; } }

/* ============ LIVE TICKER (marquee) ============ */
.ticker { position: relative; display: flex; align-items: center; height: 60px; background: #fff; border-block: 1px solid var(--border); overflow: hidden; }
.ticker-label { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 20px 0 var(--margin); background: #fff; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); box-shadow: 16px 0 24px 4px #fff; }
.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker-track ul { display: flex; list-style: none; padding: 0; }
.ticker-track li { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; white-space: nowrap; font-weight: 500; font-size: 15px; color: var(--navy); position: relative; }
.ticker-track li::after { content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); transform: translate(50%, -50%); }
.ticker-track li .ic { width: 18px; height: 18px; color: var(--b1); }
.ticker-track li .t { color: var(--faint); font-weight: 400; font-size: 13px; }
.ticker:hover .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-ctrl { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 var(--margin) 0 16px; background: #fff; box-shadow: -16px 0 24px 4px #fff; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--border-2); background: #fff; color: var(--navy); transition: background .2s; }
.icon-btn:hover { background: var(--mist); }
.icon-btn .ic { width: 16px; height: 16px; }
.icon-btn[aria-pressed="true"] .i-pause, .icon-btn:not([aria-pressed="true"]) .i-play { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker-track { animation-name: marqueeRtl; } @keyframes marqueeRtl { to { transform: translateX(50%); } }
@media (max-width: 767px) { .ticker-label .lbl-long { display: none; } .ticker-ctrl .badge { display: none; } .ticker { height: 52px; } }

/* ============ BEFORE / WITH TOGGLE ============ */
.bw-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill);
  background: #fff; box-shadow: inset 0 0 0 1px var(--border-2), 0 8px 20px -12px rgba(16,22,36,.25); isolation: isolate;
}
.bw-toggle::before { /* sliding thumb */
  content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill); background: var(--navy);
  transition: transform .42s var(--ease-snap), background-color .3s;
}
.bw[data-state="before"] .bw-toggle::before { transform: translateX(0); background: var(--red-bg); }
.bw[data-state="with"] .bw-toggle::before, .bw:not([data-state]) .bw-toggle::before { transform: translateX(100%); }
[dir="rtl"] .bw[data-state="with"] .bw-toggle::before { transform: translateX(-100%); }
.bw-toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 500; font-size: 14.5px; white-space: nowrap; color: var(--muted); transition: color .3s; }
.bw-toggle button[aria-checked="true"] { color: #fff; }
.bw-toggle button[data-bw-set="before"][aria-checked="true"] { color: var(--red-text); }
.bw-toggle .mk { width: 16px; height: 13px; }
.bw-toggle button[data-bw-set="with"] .mk { color: currentColor; opacity: .55; transition: opacity .3s; }
.bw-toggle button[data-bw-set="with"][aria-checked="true"] .mk { color: #fff; opacity: 1; } /* plain solid white mark on the active With chip */
.on-dark .bw-toggle { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.on-dark .bw-toggle button { color: var(--on-dark-2); }
.on-dark .bw[data-state="with"] .bw-toggle::before, .on-dark.bw[data-state="with"] .bw-toggle::before { background: var(--b1); }
.on-dark .bw-toggle button[data-bw-set="with"][aria-checked="true"] { color: #fff; }
.bw-toggle button .x { font-size: 15px; line-height: 1; }

/* stacked states: both in the DOM, the inactive one hidden but keeping height */
.bw-stack { display: grid; }
.bw-stack > [data-bw-state] { grid-area: 1 / 1; transition: opacity .35s var(--ease-out), visibility 0s; }
.bw[data-state="before"] [data-bw-state="with"], .bw[data-state="with"] [data-bw-state="before"] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s; }
/* problem lines: gray + red strike; answer lines slam in */
.bw-before-h { color: var(--before-text); }
.on-dark .bw-before-h { color: #8791A6; }
.bw-with-h { color: inherit; }

/* three-bar wipe overlay (inject .wipe into any positioned media panel; site.js plays it) */
.wipe { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; border-radius: inherit; display: grid; grid-template-rows: 1fr 1fr 1fr; }
.wipe i { display: block; transform: translateX(-101%); }
.wipe i:nth-child(1) { background: var(--b3); } .wipe i:nth-child(2) { background: var(--b2); } .wipe i:nth-child(3) { background: var(--b1); }
.wipe.is-playing i { animation: wipeBar .6s cubic-bezier(.7,0,.3,1) forwards; }
.wipe.is-playing i:nth-child(2) { animation-delay: 60ms; } .wipe.is-playing i:nth-child(3) { animation-delay: 120ms; }
@keyframes wipeBar { 0% { transform: translateX(-101%); } 45%, 55% { transform: translateX(0); } 100% { transform: translateX(101%); } }
[dir="rtl"] .wipe i { transform: translateX(101%); }
[dir="rtl"] .wipe.is-playing i { animation-name: wipeBarRtl; }
@keyframes wipeBarRtl { 0% { transform: translateX(101%); } 45%, 55% { transform: translateX(0); } 100% { transform: translateX(-101%); } }
/* grayscale Before media */
.bw[data-state="before"] .bw-media-gray, .is-before-gray { filter: grayscale(1) contrast(.92); }

/* ============ DEPTH GAUGE ============ */
.depth { position: fixed; left: 20px; top: 50%; z-index: 60; transform: translateY(-50%); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; color: var(--navy); }
.depth.is-on { opacity: 1; visibility: visible; transition: opacity .4s; }
.depth ol { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 22px; }
.depth ol::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1px; background: currentColor; opacity: .25; }
.depth .fill { position: absolute; left: 13px; top: 8px; width: 1px; height: calc(100% - 16px); background: var(--b3); transform-origin: top; transform: scaleY(var(--p, 0)); }
.depth a { position: relative; display: flex; align-items: center; min-height: 28px; }
.depth .n { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 500; background: var(--mist); box-shadow: inset 0 0 0 1px currentColor; transition: background .3s, color .3s, transform .3s var(--ease-snap), box-shadow .3s; }
.depth a[aria-current="step"] .n { background: var(--b1); color: #fff; box-shadow: 0 0 0 5px rgba(103,142,229,.25); transform: scale(1.1); }
.depth.on-dark { color: #fff; }
.depth.on-dark .n { background: #121A2E; }
.depth.on-dark a[aria-current="step"] .n { background: var(--b3); color: var(--navy); }
@media (max-width: 1023px) { .depth { display: none; } }
/* mobile top bar variant */
.depth-m { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 60; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 var(--margin); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 500; box-shadow: 0 1px 0 var(--border); transform: translateY(-110%); transition: transform .35s var(--ease-snap); visibility: hidden; }
.depth-m.is-on { transform: none; visibility: visible; }
.depth-m .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--b3); transform-origin: left; transform: scaleX(var(--p, 0)); }
.depth-m .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--b1); color: #fff; font-size: 12px; }
.depth-m.on-dark { background: rgba(16,22,36,.9); color: #fff; box-shadow: none; }
@media (min-width: 1024px) { .depth-m { display: none; } }

/* ============ MEDIA PANEL ============ */
.media-panel { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-tile); overflow: hidden; background: var(--field); box-shadow: var(--sh-soft); isolation: isolate; }
@media (max-width: 767px) { .media-panel { aspect-ratio: 4 / 5; } }
.media-panel > img, .media-panel > video { width: 100%; height: 100%; object-fit: cover; }
.sample { position: absolute; z-index: 5; right: 14px; bottom: 14px; }
.sample-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.sample-badge .ic { width: 13px; height: 13px; }
.panel-ctrl { position: absolute; z-index: 6; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.panel-ctrl .icon-btn { background: rgba(255,255,255,.9); box-shadow: 0 4px 12px -4px rgba(16,22,36,.3); }

/* ============ DEVICE FRAMES ============ */
/* Phone: width drives everything (container queries); inner UI uses em from .phone-screen */
/* registered so --pw resolves to px where it is set (cq/vh units included) and children inherit that px, keeping screen and shell radii concentric */
@property --pw { syntax: "<length>"; inherits: true; initial-value: 300px; }
.phone { --pw: 300px; position: relative; width: var(--pw); aspect-ratio: 9 / 19.2; border-radius: calc(var(--pw) * .17); padding: calc(var(--pw) * .032); background: linear-gradient(145deg, #2A3142, #0E1322 40%, #1B2233); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 50px 90px -40px rgba(16,22,36,.65), 0 20px 40px -24px rgba(16,22,36,.45); container-type: inline-size; flex: none; }
.phone::before { /* side button */ content: ""; position: absolute; right: -2px; top: 26%; width: 3px; height: 12%; border-radius: 2px; background: #1B2233; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .14); overflow: hidden; background: #fff; font-size: 4.4cqw; line-height: 1.35; color: var(--navy); isolation: isolate; }
.phone-sm { --pw: 220px; } .phone-xs { --pw: 160px; }
.phone-label { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: #fff; font-size: 14px; font-weight: 500; }
.phone-label .ic { width: 16px; height: 16px; color: var(--b3); }

/* tablet / desktop frame */
.tablet { --tw: 640px; position: relative; width: var(--tw); aspect-ratio: 4 / 3; border-radius: calc(var(--tw) * .045); padding: calc(var(--tw) * .022); background: linear-gradient(145deg, #2A3142, #0E1322 40%, #1B2233); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 60px 110px -40px rgba(16,22,36,.6); container-type: inline-size; }
.tablet-screen { width: 100%; height: 100%; border-radius: calc(var(--tw) * .026); overflow: hidden; background: #F7F9FD; font-size: 2.05cqw; color: var(--navy); position: relative; }

/* ============ CODED CHAT (WhatsApp-style) ============ */
.chat { display: flex; flex-direction: column; height: 100%; background: var(--wa-bg); font-size: 1em; }
.chat-head { display: flex; align-items: center; gap: .7em; padding: 1.5em 1.2em .7em; background: var(--wa-head); color: #fff; } /* top padding clears the screen corner now there is no status bar */
.chat-head .back { opacity: .9; font-size: 1.3em; line-height: 1; }
.chat-head b { display: block; font-weight: 500; font-size: 1.05em; line-height: 1.2; }
.chat-head small { display: block; font-size: .8em; opacity: .8; }
.chat-head .acts { margin-inline-start: auto; display: flex; gap: .9em; opacity: .9; }
.chat-head .acts svg { width: 1.2em; height: 1.2em; }
.chat-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .45em; padding: .8em .8em 1em;
  background-image: radial-gradient(rgba(16,22,36,.045) 1px, transparent 1.2px); background-size: 1.4em 1.4em; }
.chat-day { align-self: center; padding: .25em .7em; border-radius: .6em; background: #fff; color: var(--muted); font-size: .78em; box-shadow: 0 1px 1px rgba(0,0,0,.06); margin-bottom: .3em; }
.msg { position: relative; max-width: 84%; padding: .5em .7em .45em; border-radius: .75em; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.08); font-size: .95em; line-height: 1.38; align-self: flex-start; }
.msg.out { align-self: flex-end; background: var(--wa-out); }
.msg .tm { float: right; margin: .35em 0 -.2em .7em; font-size: .72em; color: #667085; display: inline-flex; align-items: center; gap: .15em; }
.msg .tm .ticks { color: #53BDEB; width: 1.3em; height: 1.3em; }
.msg b { font-weight: 500; }
.msg-actions { align-self: flex-start; width: 84%; display: grid; gap: .3em; }
.msg-actions span { display: block; text-align: center; padding: .5em; border-radius: .6em; background: #fff; color: #0B7B6B; font-weight: 500; font-size: .92em; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.msg-actions span.is-tapped { background: #E7F6F2; }
.typing { align-self: flex-start; display: inline-flex; gap: .25em; padding: .7em .8em; border-radius: .75em; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.typing i { width: .42em; height: .42em; border-radius: 50%; background: #9AA3B5; animation: typeDot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typeDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-.25em); opacity: 1; } }
.chat-input { display: flex; align-items: center; gap: .5em; padding: .55em .7em 1.9em; background: #F0F2F5; }
.chat-input .f { flex: 1; height: 2.3em; border-radius: 1.2em; background: #fff; padding: 0 .9em; display: flex; align-items: center; color: #8A93A3; font-size: .9em; }
.chat-input .snd { width: 2.3em; height: 2.3em; border-radius: 50%; background: #1DAA61; display: grid; place-items: center; color: #fff; }
.chat-input .snd svg { width: 1.1em; height: 1.1em; }
.chat-input .plus { color: #3B4250; font-size: 1.3em; }
/* message entry animation (site.js adds .is-shown progressively; no-JS all visible) */
.js [data-chat] .msg, .js [data-chat] .msg-actions, .js [data-chat] .chat-day { display: none; }
.js [data-chat] .is-shown { display: block; animation: msgIn .38s var(--ease-snap) both; }
.js [data-chat] .typing.is-shown { display: inline-flex; } /* keep the three dots in a row */
.js [data-chat] .msg-actions.is-shown { display: grid; }
.js [data-chat].chat-all .msg, .js [data-chat].chat-all .msg-actions, .js [data-chat].chat-all .chat-day { display: block; animation: none; }
.js [data-chat].chat-all .msg-actions { display: grid; }
/* polish: short chats start at the top (WhatsApp), full chats pin to the newest message (site.js toggles .is-full) */
.js .chat-body:not(.is-full) { justify-content: flex-start; }
@keyframes msgIn { from { opacity: 0; transform: translateY(.8em) scale(.96); } to { opacity: 1; transform: none; } }
.chat-caption { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.on-dark .chat-caption { color: var(--on-dark-2); }

/* Dex avatar (brief 5.5): blue gradient circle, three bars, eye dot, green online dot */
.dex-av { --s: 44px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; flex: none; background: radial-gradient(120% 120% at 25% 15%, #8FB0F5, #5C7ECC 45%, #3B5690); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.dex-av::before { content: ""; position: absolute; left: 26%; top: 30%; width: 48%; height: 40%;
  background: linear-gradient(#fff, #fff) 0 0 / 64% 22% no-repeat, linear-gradient(#fff, #fff) 0 50% / 82% 22% no-repeat, linear-gradient(#fff, #fff) 0 100% / 100% 22% no-repeat; border-radius: 1px; opacity: .95; }
.dex-av::after { content: ""; position: absolute; right: 22%; top: 28%; width: 12%; height: 12%; border-radius: 50%; background: #fff; }
.dex-av .on { position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 2px #fff; }
.chat-head .dex-av { --s: 2.3em; }
.chat-head .dex-av .on { box-shadow: 0 0 0 1.5px var(--wa-head); }

/* ============ ACTIVITY FEED ============ */
.feed { color: var(--navy); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-float); padding: 14px; font-size: 14px; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 12px; font-weight: 500; }
.feed-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.feed-item { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; line-height: 1.3; }
.feed-item .fi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--b1); }
.feed-item .fi .ic { width: 17px; height: 17px; }
.feed-item .fx b { font-weight: 500; }
.feed-item .fx small { display: block; color: var(--muted); font-size: 12.5px; }
.feed-item .ft { color: var(--faint); font-size: 12px; white-space: nowrap; }
.feed-item.is-hot { background: linear-gradient(90deg, rgba(103,142,229,.12), rgba(103,142,229,0)); }
.feed-item.is-win .fi { background: var(--live-bg); color: var(--live-text); }
.feed-item.is-heart .fi { background: #FDE4E7; color: #E0314B; }
.js [data-feed] .feed-item { display: none; }
.js [data-feed] .feed-item.is-shown { display: grid; animation: feedIn .45s var(--ease-snap) both; }
.js [data-feed].feed-all .feed-item { display: grid; animation: none; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
/* single fact line (inline) */
.fact { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: #fff; box-shadow: var(--sh-float); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.fact .live-dot { margin-inline-start: 2px; }

/* ============ UNIT CARD ============ */
.unit-card { width: 250px; background: #fff; border-radius: 20px; box-shadow: var(--sh-float); padding: 14px; font-size: 13px; color: var(--navy); }
.unit-card .uc-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.unit-card h4 { font-size: 24px; margin: 6px 0 2px; letter-spacing: -.02em; }
.unit-card .uc-meta { color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.unit-card .uc-plan { margin: 10px 0; height: 84px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; }
.unit-card .uc-plan svg { width: 70%; height: 80%; color: var(--bdeep); }
.unit-card .uc-foot { display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.unit-card .price { font-family: var(--f-head); font-size: 18px; letter-spacing: -.01em; }

/* ============ COMPARISON CARD ============ */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-tile); overflow: hidden; box-shadow: var(--sh-panel); background: #fff; }
.compare-col { padding: clamp(24px, 16px + 2vw, 44px); }
.compare-col h3 { font-family: var(--f-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.compare-before { background: linear-gradient(180deg, var(--before-bg), var(--before-bg-2)); color: var(--before-text); }
.compare-before h3 { color: var(--red-text); }
.compare-with h3 { color: var(--b1); }
.compare ul { list-style: none; padding: 0; display: grid; }
.compare li { display: flex; align-items: center; gap: 14px; min-height: 64px; border-top: 1px solid rgba(16,22,36,.07); font-size: clamp(16px, 15px + .3vw, 19px); font-weight: 500; }
.compare .cx, .compare .ck { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.compare .cx { background: var(--red-bg); color: var(--red); }
.compare .ck { background: var(--tint); color: var(--b1); }
.compare .cx .ic, .compare .ck .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.js .compare[data-rows] li { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease-snap); }
.js .compare[data-rows].is-in li { opacity: 1; transform: none; }
@media (max-width: 767px) { .compare { grid-template-columns: 1fr; } }

/* ============ TILES & CARDS ============ */
.tile { position: relative; border-radius: var(--r-tile); background: #fff; box-shadow: var(--sh-soft), 0 0 0 1px var(--border); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease-snap), box-shadow .4s; transform-style: preserve-3d; }
.tile[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tile::after { /* light-up on hover */ content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px 300px at var(--mx, 50%) var(--my, 0%), rgba(103,142,229,.14), transparent 60%); box-shadow: inset 0 0 0 1px rgba(103,142,229,.45); }
.tile:hover::after { opacity: 1; }
.tile-field { background: var(--field); color: #fff; box-shadow: var(--sh-soft); }
.tile-dark { background: var(--stage); color: #fff; box-shadow: var(--sh-soft); }
.tile-mist { background: var(--mist); }
.tile-pad { padding: clamp(24px, 18px + 1.2vw, 36px); }

/* product card */
.product-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; min-height: 240px; }
.product-card .gl, .gl-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--b1); }
.product-card .gl svg, .gl-tile svg { width: 28px; height: 28px; }
.product-card h3 { font-size: var(--t-h4); letter-spacing: -.01em; margin-top: 8px; }
.product-card p { color: var(--muted); }
.product-card .tlink { margin-top: auto; }
.cards-grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* role card (bento) */
.role-card { display: flex; flex-direction: column; min-height: 460px; }
.role-card .rc-ui { position: relative; flex: 1; min-height: 240px; padding: 22px 22px 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.role-card .rc-copy { padding: 22px 26px 26px; display: grid; gap: 10px; }
.role-card .rc-copy .eyebrow { font-size: 12.5px; }
.role-card h3 { font-size: clamp(22px, 19px + .6vw, 28px); letter-spacing: -.02em; line-height: 1.1; }
.role-card .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }

/* project card */
.project-card { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 440px; color: #fff; background: var(--navy); }
.project-card .pc-media { position: relative; overflow: hidden; }
.project-card .pc-media img, .project-card .pc-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-card .pc-body { padding: clamp(28px, 20px + 2vw, 48px); display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }
@media (max-width: 899px) { .project-card { grid-template-columns: 1fr; } .project-card .pc-media { aspect-ratio: 16 / 10; } }

/* ============ STEP LIST ============ */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: var(--gutter); counter-reset: st; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 1px; background: var(--border-2); }
.steps li { position: relative; display: grid; gap: 12px; align-content: start; }
.steps .sn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--border-2), var(--sh-card); font-family: var(--f-head); font-weight: 500; font-size: 20px; position: relative; z-index: 1; }
.steps li.is-done .sn { background: var(--navy); color: #fff; box-shadow: none; }
.steps b { font-family: var(--f-head); font-weight: 500; font-size: var(--t-h4); letter-spacing: -.01em; line-height: 1.2; display: block; }
.steps p { color: var(--muted); }
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 26px; bottom: 26px; left: 26px; right: auto; width: 1px; height: auto; }
  .steps li { grid-template-columns: 52px 1fr; column-gap: 18px; }
  .steps li > :not(.sn) { grid-column: 2; }
  .steps .sn { grid-row: span 2; }
  [dir="rtl"] .steps::before { left: auto; right: 26px; }
}

/* ============ FAQ ============ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 20px 0; font-family: var(--f-head); font-weight: 500; font-size: clamp(19px, 17px + .5vw, 24px); letter-spacing: -.015em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--border-2); transition: background .25s, color .25s, transform .4s var(--ease-snap); }
.faq .pm .ic { width: 18px; height: 18px; }
.faq details[open] .pm { transform: rotate(45deg); background: var(--navy); color: #fff; box-shadow: none; }
.faq summary:hover .pm { box-shadow: inset 0 0 0 1px var(--b1); }
.faq .ans { padding: 0 64px 28px 0; color: var(--muted); font-size: var(--t-body); max-width: 72ch; }
.faq details[open] .ans { animation: ansIn .35s var(--ease-out); }
@keyframes ansIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: start; }
.faq-wrap .sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 899px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .sec-head { position: static; } .faq .ans { padding-right: 0; } }

/* ============ FORMS ============ */
.form { display: grid; gap: 18px; }
.form-card { background: #fff; border-radius: var(--r-tile); box-shadow: var(--sh-panel); padding: clamp(24px, 18px + 1.8vw, 44px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 599px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-weight: 500; font-size: 15px; }
.field .req { color: var(--red-text); margin-inline-start: 2px; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-input); border: 1px solid #D6D9DF; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #B9C0CC; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--b1); box-shadow: 0 0 0 3px rgba(103,142,229,.35); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23101624' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
[dir="rtl"] .select { background-position: left 14px center; padding-right: 16px; padding-left: 44px; }
.phone-field { display: grid; grid-template-columns: 116px 1fr; gap: 8px; direction: ltr; }
.help { font-size: 13.5px; color: var(--muted); }
.hint { font-size: 13.5px; color: #8A5A00; display: flex; gap: 6px; align-items: center; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { appearance: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid #B9C0CC; background: #fff; display: grid; place-items: center; margin: 0; transition: background .2s, border-color .2s; cursor: pointer; }
.check input::after { content: ""; width: 12px; height: 7px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-snap); }
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 3px solid var(--b3); outline-offset: 2px; }
.err { display: none; align-items: center; gap: 6px; color: var(--red-text); font-size: 14px; font-weight: 500; }
.err .ic { width: 16px; height: 16px; }
.field.has-error .err { display: flex; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red-text); box-shadow: 0 0 0 3px rgba(180,35,51,.12); }
.field.has-error .check input { border-color: var(--red-text); }
.privacy { font-size: 13.5px; color: var(--muted); }
.form-note { display: none; padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: 14.5px; }
.form-note.is-on { display: block; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success .ok { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; animation: okPop .6s var(--ease-snap); }
.form-success .ok .ic { width: 34px; height: 34px; stroke-width: 2; }
.form-success h3 { font-size: var(--t-h3); margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 44ch; margin: 0 auto; }
.form-done .form { display: none; }
.form-done .form-success { display: block; }
@keyframes okPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ VIDEO MODAL ============ */
.modal { width: min(1120px, 92vw); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 22px; background: #000; color: #fff; overflow: visible; }
.modal::backdrop { background: rgba(8,11,20,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .4s var(--ease-snap); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal video { width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; background: #000; }
.modal-head { position: absolute; left: 0; right: 0; bottom: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.modal-head h2 { font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: #fff; }
.modal-close { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.modal-close:hover { background: rgba(255,255,255,.22); }
.modal-close .ic { width: 20px; height: 20px; }

/* ============ IN THE FLOW NAVIGATOR ============ */
.inflow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 12px; }
.inflow .next { grid-column: 2; }
.inflow a { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--border); transition: box-shadow .3s, transform .4s var(--ease-snap); }
.inflow a:hover { box-shadow: 0 0 0 1px var(--b3), var(--sh-card); transform: translateY(-2px); }
.inflow .dir { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: block; }
.inflow b { font-family: var(--f-head); font-weight: 500; font-size: 20px; letter-spacing: -.01em; display: block; }
.inflow small { color: var(--muted); display: block; }
.inflow .next { justify-content: flex-end; text-align: end; }
.inflow .gl-tile { width: 44px; height: 44px; border-radius: 12px; }
@media (max-width: 767px) { .inflow { grid-template-columns: 1fr; } .inflow .next { grid-column: auto; justify-content: flex-start; text-align: start; } }

/* ============ INNER PAGE HERO (stubs + later stages) ============ */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 30px + 3vw, 80px)) 0 clamp(64px, 50px + 4vw, 112px); overflow: hidden; }
.page-hero .crumbs { margin-bottom: 28px; }
.page-hero .ph-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 20px + 3vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(44px, 28px + 3.9vw, 84px); line-height: .98; letter-spacing: -.045em; margin: 18px 0 24px; max-width: 14ch; }
.page-hero .t-lead { color: var(--muted); max-width: 52ch; }
.page-hero .btn-row { margin-top: 36px; }
.page-hero .ph-visual { position: relative; min-height: 420px; border-radius: var(--r-tile); background: var(--field); overflow: hidden; box-shadow: var(--sh-soft); display: grid; place-items: center; }
.page-hero.solo .ph-grid { grid-template-columns: 1fr; max-width: 900px; }
@media (max-width: 899px) { .page-hero .ph-grid { grid-template-columns: 1fr; } .page-hero .ph-visual { min-height: 340px; } }
.stub-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }

/* ============ BENTO ============ */
.bento { display: grid; gap: var(--gutter); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento > .span-3 { grid-column: span 3; } .bento > .span-4 { grid-column: span 4; } .bento > .span-5 { grid-column: span 5; } .bento > .span-6 { grid-column: span 6; } .bento > .span-7 { grid-column: span 7; } .bento > .span-8 { grid-column: span 8; } .bento > .span-12 { grid-column: span 12; }
@media (max-width: 1023px) { .bento > [class*="span-"] { grid-column: span 6; } .bento > .span-12, .bento > .span-8, .bento > .span-7 { grid-column: span 12; } }
@media (max-width: 767px) { .bento > [class*="span-"] { grid-column: span 12; } }

/* minimal header (join / tip) */
.hdr-min .hdr-right { gap: 10px; }
@media (max-width: 599px) { .hdr-min .hdr-login-min { display: none; } .hdr-min .lang-min { display: inline-flex !important; } .hdr-min .hdr-right { gap: 4px; } .hdr-min .lang a, .hdr-min .lang span:not(.sep) { padding: 8px 5px; } .hdr-min .btn-primary { padding: 0 16px; font-size: 14px; } } /* stage 2: min header fits 390 px */
.hdr-min .lang { display: inline-flex !important; }
.footer-min { padding: 36px 0 32px; }
.footer-min .ft-bottom { border-top: 0; padding-top: 0; }
.footer-min .logo-svg { width: 120px; color: #fff; }
@media (max-width: 767px) { .footer-min { padding-bottom: 36px; } }

/* stub visual (inner-page heroes until later stages replace them) */
.stub-vis { position: relative; width: 100%; height: 100%; min-height: inherit; display: grid; place-items: center; }
.stub-vis .sv-core { width: 132px; height: 132px; border-radius: 40px; background: #fff; color: var(--b1); display: grid; place-items: center; box-shadow: var(--sh-float); animation: floaty 7.76s ease-in-out infinite; }
.stub-vis .sv-core svg { width: 64px; height: 64px; }
.stub-vis .chip { position: absolute; animation: floaty 7.76s ease-in-out infinite; }
.stub-vis .chip:nth-of-type(3) { left: 8%; top: 18%; animation-delay: -1s; }
.stub-vis .chip:nth-of-type(4) { right: 7%; top: 30%; animation-delay: -3s; }
.stub-vis .chip:nth-of-type(5) { left: 12%; bottom: 16%; animation-delay: -5s; }
.stub-vis .chip:nth-of-type(6) { right: 10%; bottom: 22%; animation-delay: -2s; }
.stub-vis .rings { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0 110px, rgba(255,255,255,.18) 111px 112px, transparent 113px 190px, rgba(255,255,255,.12) 191px 192px, transparent 193px); }
@media (max-width: 599px) { .stub-vis .chip { font-size: 13px; min-height: 36px; } }
@media (max-width: 899px) { .demo-grid > .form-card { order: -1; } }

.page-join .ph-grid { align-items: start; }
.page-join .ph-grid > div:first-child { padding-top: 40px; }
html[lang="ar"] .page-hero h1 { font-size: clamp(36px, 24px + 3vw, 66px); max-width: 16ch; }

/* ============ stage 3 fix: RTL Before/With thumb anchors to the inline start (was pinned left, so Arabic toggles hid the active label) ============ */
[dir="rtl"] .bw-toggle::before { left: auto; right: 4px; }

/* ---------- floor card (landing hero tower; reused by the Hubs tower) ---------- */
.floor-card { width: 322px; padding: 16px; border-radius: 20px; background: #fff; color: #101624; box-shadow: 0 30px 70px -24px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.6); font-size: 13px; line-height: 1.3; }
.floor-card [hidden] { display: none !important; }
.floor-card-title { font-family: var(--f-head); font-weight: 500; font-size: 28px; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 4px; }
.floor-card-summary { margin: 0 0 12px; color: #667085; font-size: 12px; }
.floor-card-summary:empty { display: none; }
.floor-card-plan { height: 150px; border-radius: 12px; background: #f0f4fc; display: grid; place-items: center; overflow: hidden; color: var(--b1); }
.floor-card-plan img { width: 100%; height: 100%; object-fit: contain; }
.floor-card-plan svg { width: 78%; height: 78%; }
.floor-card-meta { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 8px; margin-top: 14px; }
.floor-card-meta div { min-width: 0; display: grid; gap: 3px; }
.floor-card-meta small { color: #7a8497; font-size: 10px; line-height: 1.2; }
.floor-card-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #101624; font-family: var(--f-head); font-size: 15px; font-weight: 500; letter-spacing: -.015em; }
.floor-card-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.floor-card-gallery:empty { display: none; }
.floor-card-thumb { aspect-ratio: 1.25; overflow: hidden; border-radius: 8px; background: #edf1f8; box-shadow: 0 0 0 1px #dce2ed; padding: 0; }
.floor-card-thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px #678ee5; }
.floor-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.floor-card-thumb.is-loading img { opacity: 0; } /* thumbnails fade in once decoded, the card itself never waits */
.floor-card-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: #315db7; font-size: 12px; font-weight: 600; text-decoration: none; }
.floor-card-link:hover { text-decoration: underline; }

/* phones are shown without device chrome: no status bar, dynamic island or home indicator */
.phone .status-bar, .phone .phone-island, .phone .home-ind { display: none !important; }

/* ---------- 360° viewer: the Hub's tour, full viewport, like the live Hub ---------- */
.pano { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0B1020; color: #fff; }
.pano::backdrop { background: rgba(5,8,16,.85); }
.pano iframe { display: block; width: 100%; height: 100%; border: 0; }
.pano-close { position: absolute; top: 20px; right: 20px; z-index: 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.pano-close:hover { background: var(--mist); }
.pano-close .ic { width: 20px; height: 20px; }

/* ---------- chat card: a WhatsApp conversation without the phone around it ---------- */
.chat-card { width: min(100%, 340px); border-radius: 22px; overflow: hidden; background: var(--wa-bg); box-shadow: var(--sh-panel); font-size: 14px; line-height: 1.35; color: var(--navy); }
.chat-card .chat { height: auto; }
.chat-card .chat-head { padding: 14px 16px; }
.chat-card .chat-body { min-height: 300px; justify-content: flex-start; padding: 14px 14px 16px; overflow: visible; } /* steady height while messages arrive */

