/* =========================================================
   NEX HRMS: design system v3
   Identity: the Nexshastra chevron (▲), logo indigo + teal,
   a warm marigold accent, paper texture and tactile, playful UI.
   ========================================================= */
:root {
  --ink: #15133a;
  --ink-2: #39375f;
  --muted: #6a6886;
  --indigo: #3f3da8;          /* logo wordmark */
  --indigo-2: #5754d6;
  --teal: #3cbfa3;            /* logo chevrons */
  --teal-300: #7ee3cc;
  --marigold: #ffb53d;        /* accent */
  --marigold-2: #ffcd70;
  --coral: #ff5d55;
  --green: #22b07d;
  --amber: #f5a524;
  --rose: #ff5d55;
  --violet: #5754d6;

  --paper: #f7f4ee;
  --paper-2: #efeadf;
  --card: #ffffff;
  --line: #e2dccf;
  --line-ink: rgba(21,19,58,.14);
  --bg: var(--paper);
  --bg-soft: var(--paper-2);
  --bg-tint: #ecebfb;
  --night: #121032;
  --night-2: #1a1748;

  --grad: linear-gradient(120deg, var(--indigo) 0%, var(--indigo-2) 50%, var(--teal) 100%);
  --grad-text: none;
  --grad-ink: none;
  --dark-panel: var(--night-2);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 0 rgba(21,19,58,.06);
  --shadow: 0 18px 40px -22px rgba(21,19,58,.35);
  --shadow-lg: 0 40px 80px -36px rgba(21,19,58,.45);
  --hard: 6px 6px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --nav-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);

  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M10 0 20 10 15.5 14.5 10 9 4.5 14.5 0 10Z' fill='%23000'/%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 20 36 28 33 31 28 26 23 31 20 28Z' fill='%2315133a' fill-opacity='.05'/%3E%3C/svg%3E");
  --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 20 36 28 33 31 28 26 23 31 20 28Z' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::after { content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; background-image: var(--grain); opacity: .07; mix-blend-mode: multiply; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, h5 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
h3, h4 { letter-spacing: -.02em; line-height: 1.12; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--marigold); color: var(--ink); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(900px, 100% - 48px); }
.mono { font-family: var(--mono); letter-spacing: .06em; font-size: .75rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hand { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }

/* ---------- Progress, veil, preloader, cursor ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: var(--marigold); }
.page-veil { position: fixed; inset: 0; z-index: 250; pointer-events: none; background: var(--night); opacity: 0; transition: opacity .3s var(--ease); }
.page-veil.on { opacity: 1; pointer-events: auto; }

.preloader { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--night); color: #fff; transition: clip-path .9s cubic-bezier(.7,0,.2,1); clip-path: inset(0 0 0 0); }
.preloader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader svg { width: 150px; overflow: visible; }
.preloader .pc { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; animation: chevIn .7s var(--spring) forwards; }
.preloader .pc:nth-child(1) { animation-delay: .05s; } .preloader .pc:nth-child(2) { animation-delay: .2s; } .preloader .pc:nth-child(3) { animation-delay: .35s; } .preloader .pc:nth-child(4) { animation-delay: .5s; } .preloader .pc:nth-child(5) { animation-delay: .65s; }
@keyframes chevIn { from { opacity: 0; transform: translateY(60px) scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
.preloader-word { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; text-align: center; opacity: 0; animation: fadeUp .6s .75s var(--ease) forwards; }
.preloader-word b { color: var(--teal); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cursor-chev { position: fixed; left: 0; top: 0; z-index: 350; width: 22px; height: 18px; pointer-events: none; background: var(--marigold); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: width .25s var(--spring), height .25s var(--spring), background .2s, opacity .3s; opacity: 0; }
.cursor-chev.on { opacity: 1; }
.cursor-chev.big { width: 40px; height: 32px; background: var(--teal); }

.confetti-canvas { position: fixed; inset: 0; z-index: 360; pointer-events: none; }

/* ---------- Buttons (tactile, offset shadow) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: .97rem; white-space: nowrap; border: 2px solid var(--ink); background: var(--card); color: var(--ink); box-shadow: var(--hard-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s, color .2s; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }
.btn .ic { transition: transform .25s var(--spring); }
.btn:hover .ic { transform: translateX(3px) rotate(-8deg); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 1.05rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: var(--marigold-2); }
.btn-ghost { border-color: transparent; box-shadow: none; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper-2); box-shadow: none; transform: none; }
.btn-outline { background: var(--card); }
.btn-white { background: #fff; color: var(--ink); }
.btn-glass { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: 3px 3px 0 rgba(255,255,255,.25); }
.btn-glass:hover { background: rgba(255,255,255,.08); box-shadow: 5px 5px 0 rgba(255,255,255,.3); }
.on-dark .btn, .hero .btn, .phero .btn, .section.dark .btn { border-color: var(--ink); }
.on-dark .btn-glass, .hero .btn-glass, .phero .btn-glass, .section.dark .btn-glass { border-color: rgba(255,255,255,.7); }
.on-dark .btn-primary, .hero .btn-primary, .phero .btn-primary, .section.dark .btn-primary { box-shadow: 4px 4px 0 var(--teal); }
.on-dark .btn-primary:hover, .hero .btn-primary:hover, .phero .btn-primary:hover, .section.dark .btn-primary:hover { box-shadow: 6px 6px 0 var(--teal); }

.btn-play { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px 0 16px; border-radius: 16px; background: #000; color: #fff; border: 2px solid #000; box-shadow: 4px 4px 0 var(--teal); transition: transform .18s var(--ease), box-shadow .18s; }
.btn-play:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--teal); }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1.08rem; font-family: var(--display); }
.btn-play small { font-size: .6rem; letter-spacing: .14em; font-weight: 500; opacity: .75; font-family: var(--font); }
.btn-play .play-ic { width: 22px; height: 22px; fill: var(--teal); stroke: none; }
.btn-play.dark { background: #000; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--indigo); border-bottom: 2px solid currentColor; padding-bottom: 2px; width: fit-content; }
.link-arrow .ic { transition: transform .25s var(--spring); }
.link-arrow:hover .ic { transform: translateX(5px); }
.on-dark .link-arrow, .link-arrow.light { color: var(--marigold); }

/* ---------- Chips, stickers, eyebrows, highlights ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; border: 2px solid var(--ink); background: var(--card); }
.chip .ic { width: 15px; height: 15px; }
.chip-glass { background: var(--marigold); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.35); transform: rotate(-2deg); }
.chip-tint { background: var(--bg-tint); color: var(--indigo); border-color: transparent; }
.chip-teal { background: #d8f5ee; color: #11795f; border-color: transparent; }
.chip-amber { background: #ffefcc; color: #94580a; border-color: transparent; }
.chip-rose { background: #ffe1df; color: #b4231c; border-color: transparent; }
.chip-dark { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,176,125,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,176,125,0); } 100% { box-shadow: 0 0 0 0 rgba(34,176,125,0); } }

.sticker { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; font-weight: 800; font-family: var(--display); font-size: 1rem; letter-spacing: -.01em; border: 2px solid var(--ink); box-shadow: var(--hard-sm); background: var(--marigold); color: var(--ink); transform: rotate(var(--r, -6deg)); transition: transform .4s var(--spring); white-space: nowrap; }
.sticker:hover { transform: rotate(0) scale(1.08); }
.sticker.teal { background: var(--teal); } .sticker.white { background: #fff; } .sticker.coral { background: var(--coral); color: #fff; } .sticker.ink { background: var(--ink); color: #fff; border-color: #fff; }
.sticker.round { border-radius: 50%; width: 110px; height: 110px; padding: 10px; text-align: center; justify-content: center; white-space: normal; line-height: 1.05; font-size: .95rem; animation: wob 6s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(calc(var(--r, -6deg) * -1)) scale(1.04); } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 16px; height: 13px; background: var(--teal); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; flex: none; }
.eyebrow.light, .on-dark .eyebrow { color: var(--marigold); }
.grad-text, .grad-ink { position: relative; color: inherit; background: linear-gradient(transparent 62%, var(--marigold) 62%, var(--marigold) 92%, transparent 92%) no-repeat 0 0 / 0% 100%; transition: background-size 1s .3s var(--ease); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .grad-text, .phero .grad-text, .on-dark .grad-text, .section.dark .grad-text, .on-dark .grad-ink { color: var(--teal-300); background-image: linear-gradient(transparent 82%, var(--marigold) 82%, var(--marigold) 94%, transparent 94%); }
.grad-text.on, .grad-ink.on, html:not(.anim) .grad-text, html:not(.anim) .grad-ink { background-size: 100% 100%; }
.split .w > .grad-text, .split .w > .grad-ink { transition-delay: .7s; }
.split .w > .grad-text, .split .w > .grad-ink { padding: 0; }

/* ---------- Announcement ---------- */
.announce { position: relative; z-index: 51; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 9px 16px; font-size: .86rem; font-weight: 500; color: var(--ink); background: var(--marigold); border-bottom: 2px solid var(--ink); text-align: center; }
.announce a { font-weight: 800; display: inline-flex; align-items: center; gap: 4px; border-bottom: 2px solid var(--ink); }
.announce .ic { width: 14px; height: 14px; }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,176,125,.25); }

/* ---------- Navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(247,244,238,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 2px solid transparent; transition: border-color .3s, transform .35s var(--ease); }
.nav.scrolled { border-bottom-color: var(--ink); }
.nav.hide { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 46px; height: auto; transition: transform .5s var(--spring); }
.brand:hover img { transform: translateY(-4px) scale(1.08); }
.brand-text { font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: var(--teal); letter-spacing: -.03em; }
.brand-text b { color: var(--indigo); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 14px; border-radius: 12px; font-size: .96rem; font-weight: 600; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-link:hover, .nav-item.open > .nav-link, .nav-link.active { color: var(--ink); background: var(--paper-2); }
.nav-link .chev { width: 16px; height: 16px; transition: transform .3s var(--spring); }
.nav-item { position: relative; }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 44px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; border: 2px solid var(--ink); background: var(--card); box-shadow: var(--hard-sm); }
.nav-toggle .ic { width: 22px; height: 22px; }

.mega { position: absolute; top: calc(100% + 16px); left: -150px; width: 940px; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--hard); padding: 14px; opacity: 0; visibility: hidden; transform: translateY(10px) rotate(-.6deg); transform-origin: 20% 0; transition: opacity .2s var(--ease), transform .3s var(--spring), visibility .2s; }
.mega.sm { width: 640px; left: -60px; }
.mega::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr 270px; gap: 6px; }
.mega.sm .mega-grid { grid-template-columns: 1fr 1fr; }
.mega-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; transition: background .15s; }
.mega-item:hover, .mega-item.active { background: var(--paper); }
.mega-item b { display: block; font-size: .94rem; font-weight: 700; color: var(--ink); }
.mega-item small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.mi-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-2); color: var(--indigo); border: 1.5px solid var(--line); transition: background .2s, color .2s, transform .35s var(--spring); }
.mega-item:hover .mi-icon { background: var(--marigold); color: var(--ink); border-color: var(--ink); transform: rotate(-10deg) scale(1.1); }
.mi-icon .ic { width: 18px; height: 18px; }
.mega-feature { position: relative; overflow: hidden; border-radius: 16px; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--night-2) var(--pattern-dark); }
.mega-feature::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 130px; background: var(--teal); opacity: .25; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.mega-feature h4 { font-size: 1.2rem; }
.mega-feature p { font-size: .87rem; color: #cfcde8; line-height: 1.5; }
.mega-feature .link-arrow { margin-top: auto; font-size: .9rem; color: var(--marigold); }

.drawer { position: fixed; inset: var(--nav-h) 0 0; background: var(--paper); z-index: 49; visibility: hidden; transform: translateY(-12px); opacity: 0; overflow-y: auto; transition: transform .35s var(--ease), opacity .3s, visibility .35s; }
.drawer.open { transform: none; opacity: 1; visibility: visible; }
.drawer-inner { padding: 12px 24px 40px; display: flex; flex-direction: column; }
.drawer-inner > a { padding: 13px 4px; font-weight: 700; font-family: var(--display); font-size: 1.15rem; border-bottom: 1.5px dashed var(--line); }
.drawer-inner > a.active { color: var(--indigo); }
.drawer-inner .mega-label { padding: 20px 4px 6px; }
.drawer-cta { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 1081px) { .drawer { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section.tight { padding: 84px 0; }
.section.soft { background: var(--paper-2) var(--pattern-light); }
.section.dark, .on-dark { color: #fff; }
.section.dark { background: var(--night) var(--pattern-dark); overflow: hidden; }
.section-head { max-width: 820px; margin: 0 0 64px; text-align: left; }
.section-head.center, .section-head:has(+ .tabs), .section-head:has(+ .phones) { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2, .h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.section-head p { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-head.center p, .section-head:has(+ .tabs) p, .section-head:has(+ .phones) p { margin-inline: auto; }
.on-dark .section-head p, .section.dark .section-head p { color: #c4c2e2; }
.lead { font-size: 1.15rem; color: var(--muted); }
.on-dark .lead { color: #cfcde8; }

.orb, .grid-lines, .hero-spot { display: none !important; }
.chev-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes drift { 50% { transform: translate(30px, 20px); } }

/* Big chevron decorations */
.chev-deco { position: absolute; pointer-events: none; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--night); padding: 72px 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(60% 60% at 50% 100%, rgba(60,191,163,.28), transparent 70%); z-index: -1; }
.hero-inner { position: relative; text-align: center; max-width: 980px; margin: 0 auto; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.6rem); margin: 26px 0 24px; line-height: .95; letter-spacing: -.05em; }
.hero-sub { font-size: 1.22rem; color: #cfcde8; max-width: 680px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 38px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: .94rem; color: #c4c2e2; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--teal); width: 18px; height: 18px; stroke-width: 3; }
.hero-stage { position: relative; margin: 70px auto 0; width: min(1120px, 100%); perspective: 1600px; }
.hero-dash { width: 100%; transform-origin: 50% 0; transform: rotateX(16deg) scale(.95); filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); }
.hero-phone { position: absolute; width: 19%; left: -3%; bottom: -4%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 100px; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.float-card { position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; border-radius: 16px; background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--hard-sm); white-space: nowrap; text-align: left; transform: rotate(var(--r, -2deg)); }
.float-card b { display: block; font-size: .88rem; font-weight: 800; }
.float-card small { display: block; font-size: .75rem; color: var(--muted); }
.fc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); flex: none; border: 2px solid var(--ink); }
.fc-icon .ic { width: 18px; height: 18px; }
.fc-icon.teal { background: var(--teal); } .fc-icon.indigo { background: var(--indigo); color: #fff; } .fc-icon.amber { background: var(--marigold); } .fc-icon.rose { background: var(--coral); color: #fff; }
.hero-stage .fc-1 { top: 8%; left: -4%; --r: -4deg; animation: float 6s ease-in-out infinite; }
.hero-stage .fc-2 { top: 34%; right: -5%; --r: 3deg; animation: float 7s ease-in-out infinite .8s; }
.hero-stage .fc-3 { bottom: 14%; right: 6%; --r: -2deg; animation: float 6.5s ease-in-out infinite 1.6s; }

/* Split words */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; will-change: transform; }

/* Ticker */
.ticker { position: relative; padding: 18px 0; overflow: hidden; }
.ticker-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.ticker-track span .ic { color: var(--ink); }
.ticker-track > i { width: 22px; height: 18px; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }
.band-dark { background: var(--marigold); color: var(--ink); border-block: 2px solid var(--ink); transform: rotate(-1.2deg); margin: -14px -2% 0; position: relative; z-index: 3; }
.ticker.light .ticker-track span { color: var(--ink-2); }
.mq-outline { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 12vw, 10rem); letter-spacing: -.05em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.on-dark .mq-outline { -webkit-text-stroke-color: rgba(255,255,255,.35); }
.mq-outline .fill { color: var(--marigold); -webkit-text-stroke: 2px var(--ink); }

/* ---------- Page hero (feature pages) ---------- */
.phero { position: relative; overflow: hidden; color: #fff; background: var(--night); padding: 76px 0 92px; isolation: isolate; }
.phero::before { content: ""; position: absolute; right: -8%; top: -30%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(87,84,214,.35), transparent); z-index: -1; }
.phero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #a9a7cc; margin-bottom: 22px; font-family: var(--mono); letter-spacing: .02em; }
.crumbs a:hover { color: var(--marigold); }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }
.phero h1 { font-size: clamp(2.7rem, 5.8vw, 4.8rem); margin: 20px 0 22px; line-height: .98; letter-spacing: -.045em; }
.phero p.lead { color: #cfcde8; max-width: 560px; }
.phero .hero-cta { justify-content: flex-start; margin-top: 34px; }
.phero-media { position: relative; }
.phero-media > img { width: 118%; max-width: none; filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); }
.phero-media.phone > img { width: min(300px, 70%); margin: 0 auto; }
.phero-media .float-card { animation: float 6s ease-in-out infinite; }
.phero-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 76px; border: 2px solid rgba(255,255,255,.18); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.03); }
.phero-stats div { padding: 22px 24px; border-left: 2px dashed rgba(255,255,255,.14); }
.phero-stats div:first-child { border-left: 0; }
.phero-stats b { display: block; font-family: var(--display); font-size: 1.15rem; color: #fff; }
.phero-stats span { font-size: .88rem; color: #a9a7cc; }

/* ---------- Feature rows ---------- */
.frows { display: grid; gap: 130px; }
.frow { display: grid; grid-template-columns: 1fr 1.15fr; gap: 76px; align-items: center; }
.frow.flip { grid-template-columns: 1.15fr 1fr; }
.frow.flip .frow-media { order: -1; }
.frow-copy h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 16px; }
.frow-copy > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
.frow-media { position: relative; }
.frow-media::before { content: ""; position: absolute; inset: 8% 2% -4% 10%; border-radius: 36px; z-index: -1; background: var(--paper-2) var(--pattern-light); border: 2px dashed var(--line); transform: rotate(2deg); }
.section.soft .frow-media::before { background: var(--paper); }
.section.dark .frow-media::before, .on-dark .frow-media::before { display: none; }
.frow-media > img.shot { width: 116%; max-width: none; margin-left: -8%; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.ticks li { position: relative; padding-left: 36px; color: var(--ink-2); font-size: 1rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 18px; background: var(--teal); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transform: rotate(90deg); }
.ticks li:nth-child(2n)::before { background: var(--marigold); }
.ticks li:nth-child(3n)::before { background: var(--indigo-2); }
.ticks b { color: var(--ink); font-weight: 700; }
.on-dark .ticks li { color: #cfcde8; }
.on-dark .ticks b { color: #fff; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { position: relative; overflow: hidden; padding: 30px 26px; border-radius: 22px; background: var(--card); border: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translate(-4px,-4px); box-shadow: var(--hard); }
.card h3, .card h4 { font-size: 1.2rem; font-weight: 800; }
.card p { color: var(--muted); font-size: .97rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; font-size: .92rem; }
.card.tinted { background: var(--paper); }
.grid-4 > .card:nth-child(4n+2), .grid-3 > .card:nth-child(3n+2) { --tint: var(--teal); }
.c-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--ink); background: var(--marigold); border: 2px solid var(--ink); margin-bottom: 8px; transition: transform .45s var(--spring); }
.card:hover .c-icon { transform: rotate(-12deg) scale(1.1); }
.c-icon .ic { width: 24px; height: 24px; }
*:nth-child(4n+2) > .c-icon { background: var(--teal); }
*:nth-child(4n+3) > .c-icon { background: #c9c8f6; }
*:nth-child(4n+4) > .c-icon { background: #ffc9c4; }
.c-icon.soft { background: var(--bg-tint); }
.c-icon.rose { background: #ffd6d2; color: #b4231c; }

.spot { --mx: 50%; --my: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255,181,61,.16), transparent 50%); }
.spot:hover::after { opacity: 1; }
.dark-card { background: rgba(255,255,255,.03); border: 2px solid rgba(255,255,255,.16); color: #fff; }
.dark-card p { color: #b9b7da; }
.dark-card:hover { box-shadow: 6px 6px 0 var(--teal); border-color: #fff; }
.dark-card .c-icon { background: transparent; border-color: rgba(255,255,255,.3); color: var(--marigold); }
.dark-card:hover .c-icon { background: var(--marigold); color: var(--ink); border-color: var(--ink); }

.p-fix { margin-top: auto; padding-top: 14px; border-top: 2px dashed var(--line); display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: #11795f; }
.p-fix .ic { width: 16px; height: 16px; stroke-width: 3; }

/* Sticky notes (problem board) */
.board { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 20px 0; }
.note { position: relative; padding: 34px 24px 26px; min-height: 260px; background: #fff3b8; color: #3b3418; box-shadow: 0 14px 22px -14px rgba(0,0,0,.45), inset 0 -24px 30px -26px rgba(0,0,0,.15); transform: rotate(var(--r, -2deg)); transition: transform .45s var(--spring), box-shadow .3s; display: flex; flex-direction: column; gap: 10px; }
.note:nth-child(2) { background: #d9f4ff; --r: 2deg; } .note:nth-child(3) { background: #ffd9e0; --r: -1deg; } .note:nth-child(4) { background: #dff7d6; --r: 3deg; }
.note:hover { transform: rotate(0) translateY(-8px) scale(1.03); box-shadow: 0 30px 30px -18px rgba(0,0,0,.45); z-index: 2; }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.06); }
.note h3 { font-family: var(--hand); font-size: 1.85rem; font-weight: 700; letter-spacing: 0; line-height: 1.05; }
.note p { font-size: .95rem; }
.note .fix { margin-top: auto; font-weight: 800; font-size: .88rem; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; width: fit-content; transform: rotate(-2deg); }
.note .fix .ic { width: 15px; height: 15px; stroke-width: 3; color: var(--green); }
.note .scribble { position: absolute; right: 14px; top: 14px; font-family: var(--hand); font-size: 1.2rem; color: #c0392b; transform: rotate(8deg); }

/* ---------- Words light up ---------- */
.words-light { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.words-light .wl { color: rgba(255,255,255,.14); transition: color .25s; }
.words-light .wl.lit { color: #fff; }
.words-light .wl.accent.lit { color: var(--marigold); }
html:not(.anim) .words-light .wl { color: #fff; }

/* ---------- Sticky story ---------- */
.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.story-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 24px 32px; border-left: 3px solid var(--line); opacity: .3; transition: opacity .4s, border-color .4s; }
.story-step.active { opacity: 1; border-color: var(--marigold); }
.on-dark .story-step { border-color: rgba(255,255,255,.12); }
.on-dark .story-step.active { border-color: var(--marigold); }
.story-step .num { font-family: var(--mono); font-size: .8rem; color: var(--indigo); letter-spacing: .1em; margin-bottom: 12px; }
.on-dark .story-step .num { color: var(--marigold); }
.story-step h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; }
.story-step p { color: var(--muted); font-size: 1.06rem; }
.on-dark .story-step p { color: #c4c2e2; }
.story-visual { position: sticky; top: calc(50vh - 270px); height: 540px; }
.story-frame { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(30px) scale(.94) rotate(-2deg); transition: opacity .5s var(--ease), transform .6s var(--spring); }
.story-frame.active { opacity: 1; transform: none; }
.story-frame > img { max-height: 100%; width: auto; }
.story-frame > img.wide { width: 112%; max-width: none; height: auto; }
.story-mobile-media { display: none; }

/* ---------- Horizontal scroll ---------- */
.hscroll { position: relative; overflow: hidden; }
.hscroll-track { display: flex; gap: 26px; padding: 10px max(24px, calc((100vw - 1240px) / 2)) 30px; width: max-content; }
.h-card { flex: none; width: min(470px, 82vw); border-radius: 26px; padding: 30px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 440px; background: var(--night-2) var(--pattern-dark); border: 2px solid var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.h-card:nth-child(3n+2) { background-color: var(--indigo); } .h-card:nth-child(3n+3) { background-color: #0f5f52; }
.h-card:hover { transform: translate(-4px,-6px) rotate(-1deg); box-shadow: 8px 8px 0 var(--ink); }
.h-card .h-num { font-family: var(--mono); color: var(--marigold); font-size: .8rem; letter-spacing: .1em; }
.h-card h3 { font-size: 1.8rem; font-weight: 800; }
.h-card p { color: #d6d4ee; }
.h-card img { margin-top: auto; width: 118%; max-width: none; margin-left: -4%; margin-bottom: -40px; border-radius: 14px; transition: transform .5s var(--spring); }
.h-card:hover img { transform: translateY(-10px) rotate(-2deg); }
.h-card .link-arrow { color: var(--marigold); }
.hscroll-hint { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 28px; color: var(--muted); font-size: .88rem; }

/* ---------- Stacking cards ---------- */
.stack { display: grid; gap: 30px; }
.stack-card { position: sticky; top: calc(var(--nav-h) + 30px + var(--i, 0) * 22px); border-radius: 30px; padding: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 2px solid var(--ink); box-shadow: 0 -8px 0 0 var(--paper), 0 -10px 0 0 var(--ink); }
.stack-card:nth-child(2n) { background: #fff8e8; }
.stack-card:nth-child(3n) { background: #eefaf6; }
.stack-card.dark { background: var(--night-2) var(--pattern-dark); color: #fff; }
.stack-card.dark p { color: #cfcde8; }
.stack-card h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; }
.stack-card p { color: var(--muted); }
.stack-card .stack-media img { width: 100%; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 8px; margin: 0 auto 44px; width: fit-content; max-width: 100%; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--hard-sm); }
.tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 12px; font-size: .93rem; font-weight: 700; color: var(--muted); transition: color .2s, background .2s; }
.tab .ic { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); background: var(--paper); }
.tab.active { background: var(--ink); color: #fff; }
.tab.active .ic { color: var(--marigold); }
.tab-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--marigold); }
.tab.active .tab-progress { animation: tabprog var(--tab-time, 7s) linear forwards; }
.tabs.paused .tab-progress { animation-play-state: paused; }
@keyframes tabprog { to { width: 100%; } }
.panel { display: none; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.panel.active { display: grid; animation: panelIn .6s var(--spring); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.panel-copy h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; }
.panel-copy > p { color: var(--muted); margin: 14px 0 24px; font-size: 1.06rem; }
.panel-copy .link-arrow { margin-top: 26px; }
.panel-media { position: relative; }
.panel-media img { width: 112%; max-width: none; margin-left: -4%; }

/* ---------- Payslip ---------- */
.payslip { width: min(390px, 100%); background: #fff; color: var(--ink); border-radius: 22px; padding: 26px 26px 20px; border: 2px solid var(--ink); box-shadow: var(--hard); }
.ps-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.ps-head img { width: 40px; }
.ps-label { margin-top: 18px; font-size: .86rem; color: var(--muted); }
.ps-net { font-family: var(--display); font-size: 2.9rem; font-weight: 800; letter-spacing: -.04em; color: var(--indigo); }
.ps-rows { margin-top: 14px; border-top: 2px dashed var(--line); }
.ps-rows div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1.5px dashed var(--line); font-size: .92rem; }
.ps-rows span { color: var(--ink-2); }
.ps-rows .plus { color: #11795f; } .ps-rows .minus { color: #c8352e; }
.ps-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.stage { position: relative; display: grid; place-items: center; padding: 30px 0; }
.stage .float-card { animation: float 6s ease-in-out infinite; }

/* ---------- Mock widgets ---------- */
.mock { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--hard); padding: 22px; width: min(470px, 100%); max-width: 100%; overflow-x: auto; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.mock-head b { font-family: var(--display); font-size: 1.1rem; font-weight: 800; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1.5px dashed var(--line); font-size: .9rem; }
.mock-row:first-of-type { border-top: 0; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: .74rem; font-weight: 800; color: var(--ink); background: var(--marigold); border: 2px solid var(--ink); flex: none; }
.mock-row:nth-child(2n) .avatar, .feed-item:nth-child(2n) .avatar { background: var(--teal); }
.mock-row:nth-child(3n) .avatar, .feed-item:nth-child(3n) .avatar { background: #c9c8f6; }
.mock-row .grow { flex: 1; min-width: 0; }
.mock-row .grow b { display: block; font-size: .92rem; }
.mock-row .grow small { color: var(--muted); font-size: .78rem; }
.mock-row .btn { height: 34px; padding: 0 12px; font-size: .8rem; border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; border: 1.5px solid currentColor; white-space: nowrap; }
.pill.ok { background: #d8f5ee; color: #11795f; } .pill.warn { background: #ffefcc; color: #94580a; } .pill.bad { background: #ffe1df; color: #b4231c; } .pill.info { background: var(--bg-tint); color: var(--indigo); }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-cloud span { padding: 11px 18px; border-radius: 14px; background: #fff; border: 2px solid var(--ink); font-weight: 700; font-size: .95rem; color: var(--ink); box-shadow: var(--hard-sm); transition: transform .35s var(--spring), background .2s; display: inline-flex; align-items: center; gap: 8px; }
.chip-cloud span:nth-child(odd) { transform: rotate(-1.5deg); } .chip-cloud span:nth-child(3n) { transform: rotate(1.5deg); }
.chip-cloud span:hover { transform: translateY(-4px) rotate(0) scale(1.05); background: var(--marigold); }
.on-dark .chip-cloud span { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.4); color: #fff; box-shadow: 3px 3px 0 rgba(255,255,255,.15); }
.on-dark .chip-cloud span:hover { background: var(--marigold); color: var(--ink); border-color: var(--ink); }

.feed { display: grid; gap: 10px; width: min(440px, 100%); }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--hard-sm); font-size: .9rem; animation: feedIn .6s var(--spring); }
.feed-item b { font-weight: 800; }
.feed-item small { color: var(--muted); display: block; font-size: .76rem; }
.feed-item .grow { flex: 1; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-20px) scale(.9) rotate(-2deg); } }

/* Face scanner */
.scanner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.scan-frame { position: relative; width: min(380px, 90%); aspect-ratio: 5 / 6; border-radius: 34px; background: radial-gradient(70% 60% at 50% 40%, rgba(87,84,214,.3), transparent 70%), rgba(255,255,255,.03); border: 2px solid rgba(255,255,255,.18); display: grid; place-items: center; overflow: hidden; }
.face-svg { width: 72%; }
.face-svg g circle { animation: blink 2.4s ease-in-out infinite; }
.face-svg g circle:nth-child(3n) { animation-delay: .6s; } .face-svg g circle:nth-child(3n+1) { animation-delay: 1.2s; }
@keyframes blink { 50% { opacity: .25; } }
.corner { position: absolute; width: 40px; height: 40px; border: 4px solid var(--marigold); }
.corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.scan-line { position: absolute; left: 8%; right: 8%; height: 3px; top: 10%; background: var(--teal); box-shadow: 0 0 22px 6px rgba(60,191,163,.55); animation: scan 2.6s ease-in-out infinite; border-radius: 3px; }
@keyframes scan { 50% { top: 88%; } }
.scan-status { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ss-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 800; background: var(--teal); color: var(--ink); border: 2px solid var(--ink); }
.ss-item .ic { width: 15px; height: 15px; stroke-width: 3; }
.scan-meta { display: flex; gap: 24px; color: #8f8db8; font-size: .7rem; }

.route-card { position: relative; border-radius: 26px; overflow: hidden; background: #eef3f8; border: 2px solid var(--ink); box-shadow: var(--hard); aspect-ratio: 4 / 3; width: 100%; }
.route-card > svg { width: 100%; height: 100%; display: block; }
.route-card .pill .ic { width: 14px; height: 14px; }
.route-card .rc-badge { position: absolute; left: 16px; top: 16px; }
.route-card .rc-km { position: absolute; right: 16px; bottom: 16px; }

/* Phones */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 560px; }
.phones > .phone { margin: 0; position: absolute; bottom: 0; transition: transform .9s var(--spring), opacity .9s; }
.phones > .phone img { width: 100%; }
.p-center { width: 280px; z-index: 5; }
.p-side { width: 230px; }
.p-l1 { z-index: 4; transform: translateX(-235px) translateY(-10px) rotate(-6deg); }
.p-r1 { z-index: 4; transform: translateX(235px) translateY(-10px) rotate(6deg); }
.p-l2 { z-index: 3; transform: translateX(-440px) translateY(-30px) rotate(-11deg) scale(.9); }
.p-r2 { z-index: 3; transform: translateX(440px) translateY(-30px) rotate(11deg) scale(.9); }
.phones.pre .p-side { transform: translateX(0) scale(.85); opacity: 0; }
.phones > .phone:hover { z-index: 6; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { padding: 28px; border-radius: 22px; background: #fff; border: 2px solid var(--ink); }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; color: var(--indigo); line-height: 1.05; }
.stat span { color: var(--muted); font-size: .95rem; }
.on-dark .stat { background: transparent; border-color: rgba(255,255,255,.2); }
.on-dark .stat b { color: var(--marigold); }
.on-dark .stat span { color: #b9b7da; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bento .card:not(.b-wide) { min-height: 210px; }
.b-big { grid-column: span 2; grid-row: span 2; color: #fff; background: var(--night-2) var(--pattern-dark) !important; }
.b-big h3 { font-size: 2.1rem; margin-top: 14px; }
.b-big p { color: #cfcde8; font-size: 1.05rem; max-width: 420px; }
.b-big .c-icon { background: var(--marigold); }
.b-big:hover { box-shadow: 8px 8px 0 var(--teal); }
.b-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; background: var(--marigold); }
.b-wide p { color: var(--ink-2); }
.b-wide .c-icon { margin: 0; background: #fff; }
.b-visual { margin-top: auto; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 24px; }
.bv-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .95rem; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.2); }
.bv-pill .ic { width: 16px; height: 16px; stroke-width: 3; }
.bv-pill.ok { background: var(--teal); color: var(--ink); border-color: var(--ink); }
.bv-pill.bad { color: #aeacd2; text-decoration: line-through 2px; text-decoration-color: var(--coral); }
.bv-pill.bad .ic { color: var(--coral); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 14%; right: 14%; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 20px); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-n { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 20px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ink); background: var(--marigold); border: 2px solid var(--ink); box-shadow: var(--hard-sm); transform: rotate(-6deg); transition: transform .4s var(--spring); }
.step:nth-child(2) .step-n { background: var(--teal); transform: rotate(4deg); } .step:nth-child(3) .step-n { background: #c9c8f6; }
.step:hover .step-n { transform: rotate(0) scale(1.12); }
.step h4 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; max-width: 300px; margin: 0 auto; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: 30px; overflow: hidden; border: 2px solid var(--ink); box-shadow: var(--hard); }
.calc-in { padding: 42px; background: #fff; display: grid; gap: 28px; align-content: start; }
.calc-out { padding: 42px; background: var(--night-2) var(--pattern-dark); color: #fff; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.range { display: grid; gap: 10px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: .97rem; }
.range-top output { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--indigo); }
.range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 99px; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--marigold) var(--p, 50%), #fff var(--p, 50%)); outline: none; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 9px; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink); cursor: grab; transform: rotate(45deg); }
.range input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 8px; background: var(--ink); border: 3px solid #fff; cursor: grab; }
.range small { color: var(--muted); font-size: .82rem; }
.calc-big { font-family: var(--display); font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--marigold); }
.calc-out .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1.5px dashed rgba(255,255,255,.2); color: #cfcde8; }
.calc-out .row b { color: #fff; }
.calc-note { font-size: .78rem; color: #a3a1c9; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-head h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.faq-head p { margin-top: 16px; color: var(--muted); }
.faq-head a { color: var(--indigo); font-weight: 700; border-bottom: 2px solid; }
.accordion { display: grid; gap: 14px; }
.acc { background: #fff; border: 2px solid var(--ink); border-radius: 18px; transition: box-shadow .25s, transform .25s; }
.acc:hover { box-shadow: var(--hard-sm); }
.acc[open] { box-shadow: var(--hard); transform: translate(-2px,-2px); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 800; font-size: 1.05rem; font-family: var(--display); letter-spacing: -.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { width: 30px; height: 30px; padding: 5px; flex: none; border-radius: 9px; border: 2px solid var(--ink); background: var(--marigold); transition: transform .4s var(--spring), background .2s; }
.acc[open] summary .ic { transform: rotate(135deg); background: var(--teal); }
.acc .acc-body { padding: 0 22px 22px; color: var(--muted); font-size: 1rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 34px; padding: 84px 56px; text-align: center; color: var(--ink); background: var(--marigold); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); isolation: isolate; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 210px; background: var(--ink); opacity: .08; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.cta-band::before { left: -40px; bottom: -60px; transform: rotate(-12deg); }
.cta-band::after { right: -30px; top: -50px; transform: rotate(14deg); width: 200px; height: 160px; }
.cta-band .eyebrow, .cta-band .eyebrow.light { color: var(--ink); }
.cta-band .eyebrow::before { background: var(--ink); }
.cta-band h2 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); max-width: 900px; margin: 0 auto; }
.cta-band h2 .grad-text { color: var(--ink); background-image: linear-gradient(transparent 62%, #fff 62%, #fff 92%, transparent 92%); }
.cta-band p { color: var(--ink-2); font-size: 1.15rem; margin: 20px auto 0; max-width: 580px; }
.cta-band .hero-cta { margin-top: 36px; }
.cta-band .btn-white, .cta-band .btn-primary { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 #fff; }
.cta-band .btn-play { box-shadow: 4px 4px 0 #fff; }

/* Demo card + form */
.demo-card { position: relative; overflow: hidden; border-radius: 34px; padding: 64px; color: #fff; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; background: var(--night-2) var(--pattern-dark); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--marigold); }
.demo-copy, .demo-form { position: relative; }
.demo-copy h2 { font-size: clamp(2.3rem, 4vw, 3.4rem); }
.demo-copy > p { color: #cfcde8; margin: 16px 0 26px; font-size: 1.1rem; }
.demo-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.demo-points li { display: flex; align-items: center; gap: 10px; color: #e6e5f7; }
.demo-points .ic { color: var(--marigold); stroke-width: 3; }
.demo-mail { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: transparent; border: 2px solid rgba(255,255,255,.4); font-weight: 700; transition: background .2s, color .2s; }
.demo-mail:hover { background: var(--marigold); color: var(--ink); border-color: var(--ink); }
.demo-form { background: #fff; color: var(--ink); border-radius: 24px; padding: 32px; display: grid; gap: 14px; border: 2px solid var(--ink); }
.demo-form h3 { font-size: 1.5rem; margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .97rem; color: var(--ink); padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: var(--hard-sm); }
.field.invalid input, .field.invalid select { border-color: var(--coral); background: #fff4f3; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-grid label { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); padding: 9px 11px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s, transform .3s var(--spring); }
.check-grid label:has(input:checked) { border-color: var(--ink); background: var(--marigold); color: var(--ink); transform: rotate(-1deg); }
.check-grid input { accent-color: var(--ink); }
.form-note { font-size: .9rem; min-height: 1.2em; text-align: center; font-weight: 600; }
.form-note.ok { color: #11795f; } .form-note.err { color: #c8352e; }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--night) var(--pattern-dark); color: #b3b1d6; padding: 84px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 50px; margin-bottom: 50px; border-bottom: 2px dashed rgba(255,255,255,.14); }
.footer-top h3 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; max-width: 640px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 36px; }
.f-brand img { width: 160px; background: #fff; border-radius: 16px; padding: 12px 16px; margin-bottom: 18px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--teal); transform: rotate(-2deg); }
.f-brand p { font-size: .94rem; max-width: 300px; margin-bottom: 20px; }
.f-col { display: flex; flex-direction: column; gap: 10px; font-size: .94rem; }
.f-col h5 { color: var(--marigold); font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.f-col a { transition: color .2s, transform .25s var(--spring); width: fit-content; }
.f-col a:hover { color: #fff; transform: translateX(4px); }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 2px dashed rgba(255,255,255,.12); font-size: .86rem; }
.f-giant { display: flex; justify-content: center; align-items: flex-end; gap: .1em; margin-top: 56px; font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 16vw, 15rem); letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.18); user-select: none; }
.f-giant span { display: inline-block; transition: transform .5s var(--spring), color .3s; }
.f-giant span:hover { transform: translateY(-16px) rotate(-6deg); color: var(--marigold); -webkit-text-stroke-color: var(--marigold); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--ink); background: var(--marigold); border: 2px solid var(--ink); box-shadow: var(--hard-sm); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--spring); }
.to-top .ic { transform: rotate(180deg); width: 22px; height: 22px; stroke-width: 3; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* Reveal */
html.anim .reveal { opacity: 0; transform: translateY(30px); }
html.anim .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* Mock extras (register, bars, kpis, geo, related) */
.reg { display: grid; grid-template-columns: 110px repeat(7, minmax(0, 1fr)); gap: 6px; font-size: .78rem; }
.reg > * { min-width: 0; }
.reg .h { font-family: var(--mono); color: var(--muted); text-align: center; font-size: .66rem; letter-spacing: .06em; padding-bottom: 4px; }
.reg .n { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.reg .c { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .72rem; border: 1.5px solid rgba(21,19,58,.12); transition: transform .3s var(--spring); }
.reg .c:hover { transform: scale(1.15) rotate(-4deg); }
.reg .P { background: #d8f5ee; color: #11795f; } .reg .L { background: #ffefcc; color: #94580a; } .reg .A { background: #ffe1df; color: #b4231c; }
.reg .H { background: var(--bg-tint); color: var(--indigo); } .reg .W { background: #f1efe9; color: #9a97ae; } .reg .V { background: #efe7ff; color: #6b3fd6; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: .76rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.1); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bars div { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--indigo); border: 2px solid var(--ink); height: var(--h, 50%); transform-origin: 50% 100%; position: relative; }
.bars div.alt { background: var(--teal); }
.bars div span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: .62rem; color: var(--muted); }
html.anim .bars div { transform: scaleY(0); transition: transform 1.1s var(--spring); }
html.anim .in .bars div, html.anim .bars.in div, html:not(.anim) .bars div { transform: scaleY(1); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.kpis div { padding: 12px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); }
.kpis small { display: block; font-size: .7rem; color: var(--muted); }
.kpis b { font-family: var(--display); font-size: 1.4rem; font-weight: 800; }
.geo { position: relative; aspect-ratio: 1; width: min(420px, 100%); margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.geo .ring { position: absolute; border-radius: 50%; border: 3px dashed rgba(126,227,204,.55); inset: 12%; animation: spin 30s linear infinite; }
.geo .ring.r2 { inset: 0; border-color: rgba(255,181,61,.35); animation-direction: reverse; animation-duration: 45s; }
.geo .zone { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(60,191,163,.35), rgba(60,191,163,.05) 70%); }
.geo .pin { position: relative; z-index: 2; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; color: var(--ink); background: var(--marigold); border: 2px solid var(--ink); box-shadow: 0 0 0 10px rgba(255,181,61,.2); }
.geo .pin .ic { width: 28px; height: 28px; }
.geo .dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 2px solid var(--ink); box-shadow: 0 0 0 6px rgba(60,191,163,.25); }
.geo .dot.out { background: var(--coral); box-shadow: 0 0 0 6px rgba(255,93,85,.25); }
.geo .tag { position: absolute; z-index: 3; }
@keyframes spin { to { transform: rotate(360deg); } }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.related a.card { min-height: 230px; }

/* ---------- Interactive phone demo (home hero) ---------- */
.hero-play { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; text-align: left; }
.hero-play .hero-inner { text-align: left; margin: 0; }
.hero-play .hero-cta, .hero-play .hero-points { justify-content: flex-start; }
.hero-play .hero-sub { margin: 0; }
.try-wrap { position: relative; display: grid; place-items: center; padding: 30px 0 60px; }
.try-label { position: absolute; top: -6px; left: 4%; font-family: var(--hand); font-size: 1.7rem; color: var(--marigold); transform: rotate(-6deg); display: flex; align-items: flex-end; gap: 6px; z-index: 6; }
.try-label svg { width: 70px; height: 50px; stroke: var(--marigold); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.pdemo { position: relative; width: 320px; height: 650px; border-radius: 48px; background: #0d0c22; border: 3px solid #2e2b62; padding: 12px; box-shadow: 0 50px 80px -30px rgba(0,0,0,.7), 12px 12px 0 rgba(60,191,163,.35); transform: rotate(3deg); transition: transform .6s var(--spring); }
.pdemo:hover { transform: rotate(0); }
.pd-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #f1f0fa; color: var(--ink); display: flex; flex-direction: column; padding: 18px 16px; gap: 12px; font-family: var(--font); }
.pd-notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 24px; border-radius: 99px; background: #0d0c22; transform: translateX(-50%); z-index: 3; }
.pd-top { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.pd-top small { font-family: var(--mono); font-size: .6rem; color: var(--muted); letter-spacing: .08em; display: block; }
.pd-top b { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.pd-top .pd-logo { width: 36px; height: 36px; border-radius: 11px; background: #fff; display: grid; place-items: center; border: 1.5px solid var(--line); }
.pd-top .pd-logo img { width: 26px; }
.pd-card { position: relative; border-radius: 24px; padding: 18px; color: #fff; background: linear-gradient(150deg, #4a46d8, #3f3da8 55%, #1e8f7d); overflow: hidden; }
.pd-status { display: inline-block; font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.16); }
.pd-clock { font-family: var(--mono); font-size: 2.6rem; font-weight: 500; letter-spacing: -.02em; margin: 8px 0 2px; }
.pd-clock small { font-size: .8rem; margin-left: 4px; opacity: .8; }
.pd-sub { font-size: .75rem; opacity: .8; }
.pd-times { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0; font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; }
.pd-times div { border-left: 1px solid rgba(255,255,255,.25); padding-left: 8px; }
.pd-times div:first-child { border: 0; padding: 0; }
.pd-times b { display: block; font-size: .92rem; letter-spacing: 0; margin-top: 4px; }
.pd-slider { position: relative; height: 54px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-weight: 700; font-size: .9rem; user-select: none; touch-action: none; overflow: hidden; }
.pd-slider .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 54px; background: rgba(255,255,255,.18); border-radius: 16px; }
.pd-slider .label { position: relative; animation: shimmer 2.4s linear infinite; background: linear-gradient(90deg, rgba(255,255,255,.5) 30%, #fff 50%, rgba(255,255,255,.5) 70%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pd-knob { position: absolute; left: 5px; top: 5px; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--indigo); display: grid; place-items: center; cursor: grab; box-shadow: 0 6px 14px rgba(0,0,0,.25); z-index: 2; }
.pd-knob:active { cursor: grabbing; }
.pd-knob .ic { width: 20px; height: 20px; stroke-width: 3; }
.pd-knob.hint { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(26px); } }
.pd-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pd-quick span { background: #fff; border-radius: 14px; padding: 9px 4px; text-align: center; font-size: .62rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); }
.pd-quick .ic { display: block; margin: 0 auto 4px; width: 16px; height: 16px; color: var(--indigo); }
.pd-today { background: #fff; border-radius: 18px; padding: 14px; border: 1px solid var(--line); font-size: .78rem; }
.pd-today b { font-family: var(--display); font-size: .95rem; display: block; margin-bottom: 4px; }
.pd-scan { position: absolute; inset: 0; z-index: 5; background: rgba(13,12,34,.94); display: grid; place-items: center; align-content: center; gap: 18px; color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s; text-align: center; padding: 20px; }
.pd-scan.on { opacity: 1; pointer-events: auto; }
.pd-scan .scan-frame { width: 200px; border-radius: 28px; }
.pd-scan .msg { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--teal-300); min-height: 1.2em; }
.pd-done { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; align-content: center; gap: 10px; background: var(--teal); color: var(--ink); text-align: center; opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity .3s, transform .5s var(--spring); padding: 24px; }
.pd-done.on { opacity: 1; transform: none; pointer-events: auto; }
.pd-done .big { width: 86px; height: 86px; border-radius: 26px; background: #fff; border: 3px solid var(--ink); display: grid; place-items: center; margin: 0 auto 6px; animation: pop .6s var(--spring); }
.pd-done .big .ic { width: 44px; height: 44px; stroke-width: 3; color: var(--green); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.pd-done h4 { font-size: 1.6rem; font-weight: 800; }
.pd-done p { font-size: .85rem; }
.pd-done .pill { background: #fff; color: var(--ink); }
.pd-done button { margin-top: 10px; font-weight: 800; font-size: .85rem; border-bottom: 2px solid; }
.try-counter { position: absolute; z-index: 6; right: -2%; bottom: 14%; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; padding: 14px 18px; box-shadow: var(--hard-sm); transform: rotate(-3deg); text-align: left; }
.try-counter small { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: var(--muted); }
.try-counter b { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.try-counter b.bump { animation: bump .6s var(--spring); color: var(--green); }
@keyframes bump { 40% { transform: scale(1.4); } }

/* ---------- Day cycle (home) ---------- */
.day { position: relative; color: #fff; --sky1: #f6c27a; --sky2: #8ec9e8; transition: none; }
.day-sky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: linear-gradient(180deg, var(--sky2), var(--sky1)); z-index: 0; }
.day-sun { position: absolute; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, #fff6d8, #ffd36b 60%, rgba(255,200,90,0) 72%); left: var(--sx, 10%); top: var(--sy, 70%); transform: translate(-50%,-50%); filter: blur(.3px); }
.day-sky .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; }
.day-sky .stars { position: absolute; inset: 0; opacity: var(--stars, 0); background-image: radial-gradient(2px 2px at 20% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 12%, #fff, transparent), radial-gradient(2px 2px at 40% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 35%, #fff, transparent), radial-gradient(1.5px 1.5px at 10% 40%, #fff, transparent), radial-gradient(2px 2px at 58% 8%, #fff, transparent); }
.day-clock { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 12px; border-radius: 999px; background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--hard-sm); }
.day-clock .face { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); position: relative; background: var(--paper); }
.day-clock .face i { position: absolute; left: 50%; bottom: 50%; width: 3px; border-radius: 3px; background: var(--ink); transform-origin: 50% 100%; }
.day-clock .face .hh { height: 11px; margin-left: -1.5px; transform: rotate(var(--hr, 0deg)); }
.day-clock .face .mm { height: 15px; width: 2px; margin-left: -1px; background: var(--coral); transform: rotate(var(--mn, 0deg)); }
.day-clock b { font-family: var(--mono); font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.day-clock span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.day-scenes { position: relative; z-index: 2; margin-top: -100vh; }
.day-scene { min-height: 100vh; display: grid; align-items: center; padding: calc(var(--nav-h) + 100px) 0 60px; }
.day-scene .inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.day-scene .copy { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 26px; padding: 34px; box-shadow: var(--hard); max-width: 480px; }
.day-scene .copy .time { font-family: var(--mono); font-size: .85rem; color: var(--indigo); letter-spacing: .08em; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.day-scene .copy h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 12px; }
.day-scene .copy p { color: var(--muted); }
.day-scene .copy .link-arrow { margin-top: 18px; }
.day-scene .vis { display: grid; place-items: center; }
.day-scene .vis img.wide { width: 112%; max-width: none; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.day-scene .vis img.tall { width: min(300px, 80%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.day-scene:nth-child(even) .copy { order: 2; }

/* ---------- Module switchboard (home) ---------- */
.switch { display: flex; gap: 12px; height: 560px; }
.sw-tile { position: relative; flex: 1; min-width: 0; border-radius: 26px; border: 2px solid var(--ink); overflow: hidden; background: var(--card); transition: flex .7s var(--spring), box-shadow .3s; cursor: pointer; display: flex; flex-direction: column; }
.sw-tile:nth-child(8n+1) { --t: var(--marigold); } .sw-tile:nth-child(8n+2) { --t: var(--teal); } .sw-tile:nth-child(8n+3) { --t: #c9c8f6; } .sw-tile:nth-child(8n+4) { --t: #ffc9c4; }
.sw-tile:nth-child(8n+5) { --t: #bfe9ff; } .sw-tile:nth-child(8n+6) { --t: #d7f3c8; } .sw-tile:nth-child(8n+7) { --t: #ffe08a; } .sw-tile:nth-child(8n+8) { --t: #e3d5ff; }
.sw-tile.open { flex: 6; box-shadow: var(--hard); }
.sw-tab { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 0 22px; background: var(--t); transition: opacity .3s; }
.sw-tile.open .sw-tab { opacity: 0; pointer-events: none; }
.sw-tab .ic { width: 28px; height: 28px; }
.sw-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; white-space: nowrap; }
.sw-tab em { font-style: normal; font-family: var(--mono); font-size: .72rem; }
.sw-body { position: relative; height: 100%; padding: 34px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center; opacity: 0; transition: opacity .4s .2s; min-width: 760px; }
.sw-tile.open .sw-body { opacity: 1; }
.sw-body h3 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.035em; margin: 8px 0 12px; }
.sw-body p { color: var(--muted); margin-bottom: 18px; }
.sw-body .ticks li { font-size: .93rem; }
.sw-body img { width: 120%; max-width: none; }
.sw-body .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--t); border: 2px solid var(--ink); font-weight: 800; font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links .nav-link.hide-lg { display: none; }
  .mega { width: 840px; left: -100px; }
  .mega-grid { grid-template-columns: 1fr 1fr 220px; }
  .p-l2, .p-r2 { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .f-col.res { display: none; }
  .board { grid-template-columns: 1fr 1fr; }
  .sw-body { min-width: 640px; grid-template-columns: 1fr; } .sw-body img { display: none; }
}
@media (max-width: 1080px) {
  :root { --nav-h: 66px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .phero-grid, .frow, .frow.flip, .story, .panel, .panel.active, .faq-inner, .demo-card, .calc, .hero-play, .day-scene .inner { grid-template-columns: 1fr; }
  .day-scene:nth-child(even) .copy { order: 0; }
  .hero-play .hero-inner { text-align: center; } .hero-play .hero-cta, .hero-play .hero-points { justify-content: center; } .hero-play .hero-sub { margin: 0 auto; }
  .frow.flip .frow-media { order: 0; }
  .frow { gap: 44px; } .frows { gap: 96px; }
  .frow-media > img.shot, .panel-media img, .phero-media > img, .day-scene .vis img.wide { width: 100%; margin: 0; }
  .phero { padding: 60px 0 72px; }
  .phero-stats { grid-template-columns: 1fr 1fr; }
  .phero-stats div:nth-child(3) { border-left: 0; }
  .phero-stats div:nth-child(n+3) { border-top: 2px dashed rgba(255,255,255,.14); }
  .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .story-visual { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 0 0 0 22px; margin-bottom: 44px; }
  .story-mobile-media { display: block; margin-top: 22px; }
  .stack-card { grid-template-columns: 1fr; padding: 32px; }
  .faq-head { position: static; }
  .demo-card { padding: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: span 2; }
  .f-col.res { display: flex; }
  .hscroll { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .hscroll::-webkit-scrollbar { display: none; }
  .h-card { scroll-snap-align: center; }
  .related { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .switch { flex-direction: column; height: auto; }
  .sw-tile { flex: none; min-height: 74px; }
  .sw-tab { flex-direction: row; padding: 0 22px; }
  .sw-tab span { writing-mode: horizontal-tb; transform: none; }
  .sw-body { min-width: 0; padding: 26px; display: none; }
  .sw-tile.open .sw-body { display: grid; }
  .try-counter { right: 4%; }
}
@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .phones { height: 480px; }
  .p-center { width: 240px; } .p-side { width: 200px; }
  .p-l1 { transform: translateX(-120px) translateY(-10px) rotate(-8deg) scale(.9); }
  .p-r1 { transform: translateX(120px) translateY(-10px) rotate(8deg) scale(.9); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .hero-stage .float-card small { display: none; }
  .hero-stage .fc-2 { display: none; }
  .board { grid-template-columns: 1fr; gap: 34px; }
  .pdemo { width: 290px; height: 600px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .container.narrow { width: calc(100% - 32px); }
  .nav-cta .btn-primary { display: none; }
  .announce { font-size: .78rem; gap: 2px 8px; padding: 8px 12px; }
  .announce-dot { display: none; }
  .hero h1 { font-size: 3rem; }
  .hero-cta .btn, .hero-cta .btn-play { width: 100%; justify-content: center; }
  .float-card { padding: 8px 10px 8px 8px; gap: 8px; }
  .float-card b { font-size: .76rem; }
  .fc-icon { width: 28px; height: 28px; border-radius: 8px; }
  .grid-2, .grid-3, .grid-4, .stats, .bento, .phero-stats, .check-grid, .related { grid-template-columns: 1fr; }
  .phero-stats div { border-left: 0 !important; border-top: 2px dashed rgba(255,255,255,.14); }
  .phero-stats div:first-child { border-top: 0; }
  .b-big, .b-wide { grid-column: auto; grid-row: auto; }
  .b-wide { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 52px 22px; border-radius: 26px; box-shadow: 6px 6px 0 var(--ink); }
  .demo-card { padding: 26px 16px; border-radius: 26px; }
  .demo-form, .calc-in, .calc-out { padding: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .scan-meta { flex-direction: column; gap: 4px; align-items: center; }
  .stack-card { padding: 24px; }
  .reg { grid-template-columns: 84px repeat(7, 1fr); gap: 4px; }
  .sticker { font-size: .85rem; padding: 8px 12px; }
  .band-dark { transform: rotate(-2deg); }
  .try-label { font-size: 1.4rem; left: 0; }
}

/* Grid children may shrink below their content width */
.frow > *, .phero-grid > *, .story > *, .panel > *, .faq-inner > *, .demo-card > *, .calc > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .stack-card > *, .hero-play > *, .day-scene .inner > * { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.anim .reveal { opacity: 1; transform: none; }
  .preloader { display: none; }
}

/* ---------- Prev / next module pager (inner pages) ---------- */
.next-strip { padding: 56px 0 96px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager-link { display: flex; flex-direction: column; gap: 6px; padding: 26px 30px; border-radius: 22px; border: 2px solid var(--ink); background: var(--card); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.pager-link:hover { transform: translate(-3px,-3px); box-shadow: var(--hard); background: var(--paper-2); }
.pager-link small { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager-link b { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: -.025em; }
.pager-link.prev b .ic { transform: rotate(180deg); }
.pager-link.next { text-align: right; align-items: flex-end; }
.pager-link .ic { transition: transform .3s var(--spring); }
.pager-link.next:hover .ic { transform: translateX(6px); }
.pager-link.prev:hover .ic { transform: rotate(180deg) translateX(6px); }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-link.next { text-align: left; align-items: flex-start; } }

/* ---------- Real face in the scanners ---------- */
.scan-frame { background: radial-gradient(70% 60% at 50% 42%, #2c2a74, #17154a 70%); isolation: isolate; }
.real-face { width: 76%; overflow: visible; }
.real-face .eye { transform-box: fill-box; transform-origin: 50% 50%; animation: eyeBlink 3.8s infinite; }
.real-face .eye + .eye { animation-delay: .02s; }
@keyframes eyeBlink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.08); } 96% { transform: scaleY(1); } }
.real-face .mesh { animation: meshPulse 2.6s ease-in-out infinite; }
.real-face .dots circle { animation: dotPop 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.real-face .dots circle:nth-child(3n) { animation-delay: .3s; } .real-face .dots circle:nth-child(3n+1) { animation-delay: .6s; }
@keyframes meshPulse { 0%, 100% { stroke-opacity: .25; } 50% { stroke-opacity: .85; } }
@keyframes dotPop { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
.scan-frame .scan-line { z-index: 2; }

/* ---------- Official-style Google Play logo ---------- */
.gp-logo { width: 24px; height: 26px; flex: none; }
