﻿/* ============ HRMS — page-specific editorial layout ============ */

/* ---- Dual-colour titles and icons -------------------------------------
   Same idea as the home page: headings stay solid ink with ONE accent
   phrase, and that phrase carries the two-colour gradient. Icon tiles are a
   solid gradient plate with a white glyph, cycling the home palette.
   Scoped to .page-hrms so other product pages are untouched. */
.page-hrms .section-title em.hr-dual,
.page-hrms .inner-hero-copy h1 .grad {
  background: linear-gradient(96deg, #6C35FF 0%, #8B5CF6 46%, #0E8C9B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* every section title carries the home page's tapered accent rule, in the
   same purple → teal ramp as its accent phrase. It sits under the title:
   centred in centred heads, flush left beside images. */
.page-hrms .section-title::after {
  content: "";
  display: block;
  width: 148px;
  max-width: 42%;
  height: 3px;
  margin: 16px 0 0;
  border-radius: 999px;
  background: #6C35FF;
}

.page-hrms .section-head.center .section-title::after { margin-inline: auto; }

/* the page's dual brand gradient — identical to the .hr-dual title phrase —
   as a solid plate with a white glyph. js/hrms-icon-palette.js writes the same
   values into --plate / --plate-shadow; these are the no-JS defaults. */
.page-hrms .icon-badge {
  background-image: var(--plate, linear-gradient(96deg, #6C35FF 0%, #8B5CF6 46%, #0E8C9B 100%));
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--plate-shadow, 0 8px 18px rgba(108, 53, 255, 0.22));
}

.page-hrms .icon-badge .ico {
  background-image: none;
  -webkit-text-fill-color: currentColor;
  color: #ffffff;
}

/* eyebrow rule keeps a home-page accent, not an off-brand teal */
.page-hrms .eyebrow::before {
  background-image: linear-gradient(90deg, #6DBE45, #0E8C9B);
}

/* inline glyphs follow the plate colour of their tile */

/* ---- Page colour: no breadcrumb band, no photo background --------------
   The hero is a painted brand gradient with soft brand blooms (the same
   language as the home page) instead of the shared .page-hero-bg photo
   strip used by the other inner pages. */
.page-hrms .page-hero {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(3rem, 6vw, 4.75rem);
  background:
    radial-gradient(760px 420px at 88% -10%, rgba(101, 40, 247, 0.16), transparent 70%),
    radial-gradient(620px 420px at 6% 110%, rgba(114, 191, 68, 0.14), transparent 70%),
    linear-gradient(180deg, #fbf9ff 0%, #f4f0ff 55%, #ffffff 100%);
}

.page-hrms .page-hero::before,
.page-hrms .page-hero::after { display: none; }

/* Soft brand blooms behind the editorial sections, so the page keeps the
   colourful, layered feel of the home page rather than flat white bands. */
.page-hrms .section { position: relative; overflow: hidden; }

.page-hrms .section::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(101, 40, 247, 0.10), transparent 72%);
  pointer-events: none;
}

.page-hrms .section.section-mint::before { background: radial-gradient(closest-side, rgba(114, 191, 68, 0.14), transparent 72%); }
.page-hrms .section.section-peach::before { background: radial-gradient(closest-side, rgba(240, 135, 30, 0.12), transparent 72%); }
.page-hrms .section.section-blue::before { background: radial-gradient(closest-side, rgba(59, 130, 246, 0.12), transparent 72%); }
.page-hrms .section.section-rose::before { background: radial-gradient(closest-side, rgba(236, 72, 153, 0.10), transparent 72%); }
.page-hrms .section.section-ice::before { background: radial-gradient(closest-side, rgba(34, 199, 214, 0.12), transparent 72%); }

.page-hrms .section > .container { position: relative; z-index: 1; }

/* Anchor offset so the sticky header never overlaps section titles */
section[id], [id="modules"], [id="lead"], [id="features"] { scroll-margin-top: 92px; }

/* Interactive lift on hoverable editorial blocks */
.hr-erp-list span {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.hr-erp-list span:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-200);
}

/* Slightly larger, calmer editorial spacing */
.hr-eco-index .hr-eco-item { padding: 11px 0; }
.hr-tl-step { padding: 22px 0; }

.hr-hero-visual { position: relative; }

/* Hero alignment: both columns are pinned to the top and stretched to the
   same height, so the screenshot card is exactly as tall as the description
   beside it — top edge level with the headline, bottom edge level with the
   closing paragraph. The screenshot fills that height and letterboxes
   (object-fit: contain) instead of being cropped. */
.page-hrms .inner-hero { align-items: stretch; }

.page-hrms .inner-hero-visual {
  min-height: 0;
  margin-top: 0;                    /* sit higher, level with the badge; was 56px to
                                       line up with the h1 */
  display: flex;
}

/* hero artwork: the laptop is a transparent image; the three cards are live
   elements on top of it, sized in cqw so they scale with the artwork */
.page-hrms .inner-hero-visual .hr-hero-art {
  position: relative;
  width: 100%;
  max-width: min(580px, 100%);      /* big enough for the laptop screen to read */
  margin-inline: auto;
  align-self: center;
  container-type: inline-size;
}

.page-hrms .inner-hero-visual .hr-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.hr-pop {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 15.95%;
  aspect-ratio: 1;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2.2cqw;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1cqw 2.4cqw color-mix(in srgb, var(--pop-a) 26%, transparent);
  animation: hrPopFloat 6s ease-in-out infinite;
}
.hr-pop--top { --pop-a: #6c35ff; --pop-b: #22c7d6; left: 42.03%; top: 2.73%; }
.hr-pop--left { --pop-a: #0ea5e9; --pop-b: #6c35ff; left: 1.12%; top: 43.98%; animation-delay: -2s; }
.hr-pop--right { --pop-a: #ec4899; --pop-b: #6c35ff; left: 82.93%; top: 43.98%; animation-delay: -4s; }

/* thin gradient border: a spinning conic sweep showing around the inner panel */
.hr-pop::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -50%;
  background: conic-gradient(from 0deg, var(--pop-a), #e9e4fb 28%, var(--pop-b) 52%, #e9e4fb 76%, var(--pop-a));
  animation: hrPopSpin 9s linear infinite;
}

/* inner panel: a soft colour wash drifting slowly across white */
.hr-pop::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: max(1.5px, 0.16cqw);
  border-radius: 2.05cqw;
  background:
    radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--pop-a) 22%, transparent), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--pop-b) 18%, transparent), transparent 70%),
    #ffffff;
  background-size: 180% 180%, 200% 200%, auto;
  animation: hrPopWash 8s ease-in-out infinite alternate;
}

.hr-pop-ico {
  display: grid;
  place-items: center;
  width: 4.15cqw;
  height: 4.15cqw;
  margin-bottom: 0.6cqw;
  border-radius: 1.2cqw;
  background: linear-gradient(145deg, #7a3ff5, #4c1cc4);
  color: #ffffff;
  font-size: 2cqw;
}
.hr-pop-title { font-size: 1.83cqw; font-weight: 700; line-height: 1.2; color: #17152b; }
.hr-pop-val { font-size: 3.35cqw; font-weight: 800; line-height: 1.15; color: #5b24e6; }
.hr-pop-sub { font-size: 1.5cqw; line-height: 1.25; color: #5a586f; }

@keyframes hrPopFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -1cqw; }
}
@keyframes hrPopSpin {
  to { transform: rotate(360deg); }
}
@keyframes hrPopWash {
  from { background-position: 0% 0%, 100% 100%, 0 0; }
  to { background-position: 100% 100%, 0% 0%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hr-pop,
  .hr-pop::before,
  .hr-pop::after { animation: none; }
}

/* wide screens have spare room beside the headline, so the artwork grows into it */
@media (min-width: 1280px) {
  .page-hrms .inner-hero-visual .hr-hero-art {
    flex: none;
    width: 580px;
    max-width: none;
    margin-inline: auto 0;
    margin-left: -52px;
  }
}

@media (max-width: 600px) {
  .page-hrms .inner-hero-visual .hr-hero-art { max-width: min(440px, 100%); }
}

/* Hero artwork slides in leftwards from the right edge. (0,3,0) outranks the
   generic .reveal fade-up in animations.css, so it replaces rather than merges. */
.page-hrms .hr-hero-visual.reveal {
  transform: translateX(80px);
  transition-duration: 0.9s;
}
.page-hrms .hr-hero-visual.reveal.is-visible { transform: translateX(0); }

@media (max-width: 900px) {
  /* shorter travel on narrow screens; :not() keeps the at-rest rule winning */
  .page-hrms .hr-hero-visual.reveal:not(.is-visible) { transform: translateX(32px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hrms .hr-hero-visual.reveal { transform: none; }
}

.page-hrms .inner-hero-visual .hr-carousel-viewport { flex: 1 1 auto; min-height: 0; }

.page-hrms .inner-hero-visual .hr-carousel-slide {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-hrms .inner-hero-visual .hr-carousel-slide img {
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;              /* fill the matched height, never crop */
  object-position: 50% 50%;
}

/* ---- Real product screenshots (assets/hrms-shots) --------------------
   One reusable frame so every screenshot on the page sits in the same
   white "browser card", scales fluidly and stays legible on any device. */

/* Captions sit under the frame, never over the UI */

/* Two stacked shots with a soft overlap — used in the hero and the
   dashboard section so it reads like a real product surface. */

/* ---- Auto slider for the two-shot sections -----------------------------
   Slides share one grid cell, so the frame never jumps height while the
   active shot cross-fades: it rises in with a soft scale and a slow
   Ken Burns drift, while the outgoing shot lifts away. */

.hr-carousel-viewport {
  display: grid;                 /* every slide occupies the same cell */
  /* the frame takes its shape from the slide that is on screen, so a
     portrait screenshot is not letterboxed inside a landscape box */
  aspect-ratio: var(--ar, 1200 / 400);
  transition: aspect-ratio 0.8s var(--ease);
  border-radius: var(--r-lg, 20px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 52px rgba(17, 24, 39, 0.12);
  border: 1px solid var(--border, #e6e4f1);
}

.hr-carousel-slide {
  grid-area: 1 / 1;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.75s var(--ease), transform 0.95s var(--ease);
  pointer-events: none;
}

.hr-carousel-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* outgoing direction: the previous shot drifts up and away */
.hr-carousel-slide.is-previous {
  transform: translateY(-26px) scale(0.985);
}

/* slow drift on the live slide so a still screenshot still feels alive */
.hr-carousel-slide.is-active img {
  animation: hrShotDrift var(--drift, 9s) ease-out both;
}

@keyframes hrShotDrift {
  from { transform: scale(1.045); }
  to   { transform: scale(1); }
}

/* dots + progress bar */
.hr-carousel-dots {
  display: flex;
  flex-wrap: wrap;                  /* many slides must never overflow a phone */
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hr-carousel-dot {
  position: relative;
  width: 26px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--purple-300, #c4b5fd) 55%, #ffffff);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease);
}

.hr-carousel-dot:hover { background: var(--purple-400, #a78bfa); }

.hr-carousel-dot:focus-visible {
  outline: 2px solid var(--purple-600, #6528f7);
  outline-offset: 3px;
}

.hr-carousel-dot.is-active {
  width: 54px;
  background: color-mix(in srgb, var(--purple-200, #ddd6fe) 70%, #ffffff);
}

/* the progress fill runs while the slide is on screen */
.hr-carousel-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: var(--grad-purple, linear-gradient(90deg, #7b4bff, #6528f7));
  animation: hrDotProgress var(--interval, 6000ms) linear both;
  animation-play-state: var(--play, running);
}

@keyframes hrDotProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Split layout used by the attendance / insights sections */

/* Small screens: everything stacks, and nothing overflows sideways */
@media (max-width: 1023px) {
    
  /* stacked hero: the copy keeps its rhythm, the carousel follows with a
     clear gap and returns to its natural height (no matching column) */
  .page-hrms .inner-hero-visual { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
  .page-hrms .inner-hero-visual .hr-carousel-slide { height: auto; display: block; }
  .page-hrms .inner-hero-visual .hr-carousel-slide img { object-fit: contain; }
}

@media (max-width: 560px) {
  .hr-carousel-viewport { border-radius: 14px; }
    .hr-carousel-viewport { box-shadow: 0 12px 30px rgba(17, 24, 39, 0.10); }
      .hr-carousel-dots { gap: 6px; margin-top: 12px; }
  .hr-carousel-dot { width: 16px; height: 5px; }
  .hr-carousel-dot.is-active { width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .hr-carousel-slide { transition: opacity 0.2s linear; transform: none; }
  .hr-carousel-slide.is-active img { animation: none; }
  .hr-carousel-dot.is-active::after { animation: none; transform: scaleX(1); }
}

/* Hero icon styling — the badge glyph was the same 18px as the body icons
   inside a 13px pill, and the trust list had no item rule at all (so the
   <ul> bullets showed through next to the glyphs). Both are fixed here and
   scoped to the HRMS page. */
.page-hrms .hero-badge .ico {
  font-size: 13px;
  width: 13px;
  height: 13px;
  line-height: 1;
}

.page-hrms .inner-hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-hrms .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
}

.page-hrms .trust-item .ico {
  font-size: 15px;
  width: 15px;
  height: 15px;
  line-height: 1;
  color: var(--purple-600);
}

/* The floating "hr-mini" chips lived in the hero, which now shows real
   product screenshots instead, so those rules are no longer needed. */

/* --- Section 3: ecosystem --- */
.hr-eco { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hr-eco > .reveal:first-child { order: 2; }
.hr-eco > .reveal:last-child { order: 1; }
.hr-eco-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.hr-eco-index .hr-eco-item {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--border-soft);
  color: var(--text-body); font-size: 15px;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.hr-eco-index .hr-eco-item:hover { color: var(--purple-700); padding-left: 6px; }
.hr-eco-index .hr-eco-item b { font-family: "Plus Jakarta Sans", sans-serif; color: var(--purple-300); font-size: 13px; min-width: 24px; }

/* Login screenshot that sits on the left of the ecosystem section */
.hr-eco-video { margin: 0; }

.hr-eco-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg, 20px);
  border: 1px solid var(--border-soft, #e6e8f0);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.hr-eco-video-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hr-eco-video figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted, #5b6478);
}

/* --- Section 5/6/12: dashboard moments --- */

/* Inside that tinted panel the shots read as cards, so flatten their own frame */
.hr-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.hr-callout { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.hr-callout h3 { font-size: 15.5px; margin-bottom: 4px; }
.hr-callout p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* --- Centralized device management: a laptop running the Device Setup
   dashboard (one sliding view per capability, js/dv-demo.js) on animated
   rings, two live pop cards around it, and the capabilities as a compact
   two-column list that follows the screen --- */
.dv-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.dv-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 70px 20px 80px;
}

/* background: soft glow, rotating dashed orbit and rippling rings */
.dv-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(520px, 100%);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
}

.dv-rings b {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.22), rgba(14, 140, 155, 0.1) 60%, transparent);
}

.dv-rings i {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(108, 53, 255, 0.28);
  border-radius: 50%;
  opacity: 0;
  animation: dvRipple 6s cubic-bezier(0.25, 0.6, 0.4, 1) infinite;
}

.dv-rings i:nth-child(2) { animation-delay: 2s; }
.dv-rings i:nth-child(3) { animation-delay: 4s; }

.dv-rings::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 2px dashed rgba(108, 53, 255, 0.22);
  border-radius: 50%;
  animation: dvSpin 40s linear infinite;
}

.dv-rings::after {
  content: "";
  position: absolute;
  top: 9%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #6C35FF;
  box-shadow: 0 0 0 5px rgba(108, 53, 255, 0.18);
  transform-origin: 6px calc(min(520px, 100%) * 0.41 + 6px);
  animation: dvSpin 12s linear infinite;
}

@keyframes dvRipple {
  0%   { scale: 0.55; opacity: 0; }
  15%  { opacity: 1; }
  100% { scale: 1.15; opacity: 0; }
}

@keyframes dvSpin { to { rotate: 360deg; } }

/* laptop */
.dv-laptop {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  filter: drop-shadow(0 34px 50px rgba(75, 32, 200, 0.24));
}

.dv-lid {
  position: relative;
  padding: 3.2% 3.2% 3.6%;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(160deg, #3a3656, #15131f);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.dv-cam {
  position: absolute;
  top: 1.3%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #4b4766;
}

.dv-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #f7f6fd;
  container-type: inline-size;
}

.dv-base {
  position: relative;
  height: 16px;
  margin: 0 -7%;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #e4e1ef, #b9b4cf);
}

.dv-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  height: 6px;
  translate: -50% 0;
  border-radius: 0 0 8px 8px;
  background: #a7a1c2;
}

/* the app inside the screen — sized from the screen width (cqw) so it
   scales evenly with the laptop */
.dv-app {
  display: flex;
  height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 2.15cqw;
  color: #181632;
}

.dv-app .ico { width: 1em; height: 1em; font-size: inherit; line-height: 1; }
.dv-side .ico { font-size: 1.15em; }

.dv-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  width: 3.4em;
  padding: 1em 0;
  background: linear-gradient(180deg, #6C35FF, #4B20C8);
  color: rgba(255, 255, 255, 0.55);
}

.dv-side .on { color: #ffffff; padding: 0.45em; margin: -0.45em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.18); box-sizing: content-box; }
.dv-logo { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.05em; color: #ffffff; }

.dv-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.dv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85em 1.3em;
  border-bottom: 1px solid #ebe8f6;
  background: #ffffff;
  font-size: 0.95em;
  color: #6b6890;
}

.dv-top em { font-style: normal; margin: 0 0.3em; }
.dv-top b { color: #181632; }
.dv-user { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: linear-gradient(135deg, #8B5CF6, #EC4899); color: #ffffff; font-size: 0.85em; font-weight: 800; }

.dv-slides { position: relative; flex: 1; overflow: hidden; }

.dv-slide {
  position: absolute;
  inset: 0;
  padding: 1.3em;
  visibility: hidden;
  translate: 100% 0;
  transition: none;
}

.dv-slide.is-active,
.dv-slide.is-prev { visibility: visible; transition: translate 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.dv-slide.is-active { translate: 0 0; }
.dv-slide.is-prev   { translate: -100% 0; }

/* shared bits */
.dv-tag { display: inline-block; padding: 0.2em 0.6em; border-radius: 0.5em; font-size: 0.85em; font-weight: 700; }
.dv-tag.g { background: #ecf8e6; color: #3E8E2D; }
.dv-tag.r { background: #fdecef; color: #be123c; }
.dv-tag.o { background: #fff4e5; color: #c2410c; }

.dv-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 0.8em; overflow: hidden; box-shadow: 0 0 0 1px #ebe8f6; }
.dv-table th { padding: 0.75em 0.9em; background: #f1eefc; font-size: 0.85em; font-weight: 700; color: #6b6890; text-align: left; }
.dv-table td { padding: 0.8em 0.9em; border-top: 1px solid #f0eef8; font-size: 0.95em; white-space: nowrap; }

/* 1. registration */
.dv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.dv-form div { padding: 0.7em 0.9em; border: 1px solid #e6e2f6; border-radius: 0.7em; background: #ffffff; }
.dv-form small { display: block; font-size: 0.8em; color: #6b6890; }
.dv-form b { font-size: 1em; }
.dv-row-end { display: flex; justify-content: flex-end; gap: 0.7em; margin-top: 1.1em; }
.dv-btn { padding: 0.65em 1.2em; border-radius: 0.6em; background: linear-gradient(135deg, #6C35FF, #8B5CF6); color: #ffffff; font-weight: 700; box-shadow: 0 0.5em 1em rgba(108, 53, 255, 0.3); }
.dv-btn.ghost { background: #ffffff; color: #6b6890; box-shadow: inset 0 0 0 1px #e6e2f6; }

/* 2. network signal */
.dv-sig { display: inline-flex; align-items: flex-end; gap: 0.15em; height: 1em; }
.dv-sig i { width: 0.3em; border-radius: 0.1em; background: #ddd8ee; }
.dv-sig i:nth-child(1) { height: 30%; } .dv-sig i:nth-child(2) { height: 55%; } .dv-sig i:nth-child(3) { height: 80%; } .dv-sig i:nth-child(4) { height: 100%; }
.dv-sig.s4 i, .dv-sig.s3 i:nth-child(-n+3) { background: #3E8E2D; }
.dv-sig.s1 i:nth-child(1) { background: #e11d48; }

/* 3. areas */
.dv-areas { display: flex; flex-direction: column; gap: 0.7em; }
.dv-areas > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; padding: 0.75em 0.9em; border: 1px solid #e6e2f6; border-radius: 0.8em; background: #ffffff; }
.dv-areas b { display: inline-flex; align-items: center; gap: 0.5em; margin-right: auto; }
.dv-areas b .ico { color: #6C35FF; }
.dv-areas span { padding: 0.25em 0.7em; border-radius: 999px; background: #f1eefc; color: #4B20C8; font-size: 0.85em; font-weight: 600; }

/* 4. device types */
.dv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8em; height: 100%; align-content: center; }
.dv-tiles div { display: flex; flex-direction: column; align-items: center; gap: 0.35em; padding: 1.2em 0.4em; border-radius: 0.9em; background: #ffffff; box-shadow: 0 0 0 1px #ebe8f6; }
.dv-tiles .ico { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 0.7em; background: linear-gradient(135deg, #6C35FF, #0E8C9B); color: #ffffff; box-sizing: border-box; padding: 0.7em; }
.dv-tiles b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.8em; }
.dv-tiles small { font-size: 0.85em; color: #6b6890; }

/* 5. user count */
.dv-bars { display: flex; flex-direction: column; gap: 1em; padding: 0.4em 0.2em; }
.dv-bars div { display: grid; grid-template-columns: 6.5em 1fr 2.6em; align-items: center; gap: 0.8em; font-size: 0.95em; }
.dv-bars i { height: 0.8em; border-radius: 999px; background: #ece8fa; overflow: hidden; }
.dv-bars i::before { content: ""; display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6C35FF, #0E8C9B); transition: width 1s var(--ease) 0.35s; }
.is-active .dv-bars i::before { width: var(--w); }
.dv-bars b { text-align: right; }

/* 6. sync */
.dv-sync { padding: 1em; border-radius: 0.9em; background: #ffffff; box-shadow: 0 0 0 1px #ebe8f6; }
.dv-sync-head { display: flex; justify-content: space-between; margin-bottom: 0.6em; }
.dv-sync-head span { color: #3E8E2D; font-weight: 700; }
.dv-progress { height: 0.7em; border-radius: 999px; background: #ece8fa; overflow: hidden; }
.dv-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #3E8E2D, #6DBE45); transition: width 1.6s var(--ease) 0.3s; }
.is-active .dv-progress i { width: 100%; }
.dv-sync ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin: 1em 0 0; padding: 0; list-style: none; font-size: 0.95em; }
.dv-sync li { display: flex; align-items: center; gap: 0.5em; }
.dv-sync li .ico { color: #3E8E2D; }

/* 7. templates */
.dv-tpl { display: flex; align-items: center; gap: 2em; height: 100%; padding: 0 1em; }
.dv-donut { display: grid; place-items: center; flex-shrink: 0; width: 9em; height: 9em; border-radius: 50%; background: conic-gradient(#6C35FF 0 58%, #0E8C9B 58% 82%, #F59E0B 82% 100%); }
.dv-donut > span { display: grid; place-items: center; align-content: center; width: 6.2em; height: 6.2em; border-radius: 50%; background: #f7f6fd; }
.dv-donut b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.5em; }
.dv-donut small { font-size: 0.8em; color: #6b6890; }
.dv-tpl ul { flex: 1; margin: 0; padding: 0; list-style: none; }
.dv-tpl li { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0; border-bottom: 1px solid #ebe8f6; }
.dv-tpl li b { margin-left: auto; }
.dv-tpl li i { width: 0.8em; height: 0.8em; border-radius: 0.25em; }
.dv-tpl .p { background: #6C35FF; } .dv-tpl .t { background: #0E8C9B; } .dv-tpl .o { background: #F59E0B; }

/* 8. status */
.dv-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7em; }
.dv-status div { display: flex; flex-direction: column; gap: 0.2em; padding: 0.8em 0.9em; border-radius: 0.8em; background: #ffffff; box-shadow: 0 0 0 1px #ebe8f6; font-weight: 700; }
.dv-status small { font-weight: 500; font-size: 0.85em; color: #6b6890; }
.dv-status i { width: 0.7em; height: 0.7em; border-radius: 50%; margin-bottom: 0.3em; }
.dv-status .on { background: #3E8E2D; box-shadow: 0 0 0 0.25em rgba(62, 142, 45, 0.18); }
.dv-status .off { background: #e11d48; box-shadow: 0 0 0 0.25em rgba(225, 29, 72, 0.15); }
.dv-status .warn { background: #F59E0B; box-shadow: 0 0 0 0.25em rgba(245, 158, 11, 0.18); }

/* 10. live */
.dv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7em; margin-bottom: 0.9em; }
.dv-kpis div { padding: 0.7em 0.9em; border-radius: 0.8em; background: #ffffff; box-shadow: 0 0 0 1px #ebe8f6; }
.dv-kpis b { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.35em; }
.dv-kpis small { font-size: 0.8em; color: #6b6890; }
.dv-live svg { display: block; width: 100%; height: 7em; }
.dv-area { fill: rgba(108, 53, 255, 0.12); }
.dv-line { fill: none; stroke: #6C35FF; stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* the two pop cards around the laptop */
.dv-pop {
  position: absolute;
  z-index: 2;
  padding: 12px 14px;
  border: 1px solid var(--border, #e6e4f1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
  font-size: 12px;
  color: var(--ink-800, #181632);
  animation: chFloat 7s ease-in-out infinite;
}

.dv-pop-t {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
}

.dv-pop-t .ico { width: 1em; height: 1em; font-size: 11px; color: #6C35FF; }

.dv-pop--status { top: 22px; right: 0; }
.dv-stat { display: flex; gap: 8px; }
.dv-stat span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.dv-stat i { width: 7px; height: 7px; border-radius: 50%; }
.dv-stat .on { background: #ecf8e6; color: #3E8E2D; }
.dv-stat .on i { background: #3E8E2D; box-shadow: 0 0 0 3px rgba(62, 142, 45, 0.18); }
.dv-stat .off { background: #fdecef; color: #be123c; }
.dv-stat .off i { background: #e11d48; }

.dv-pop--sync {
  left: 0;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 9px;
  animation-delay: -3.5s;
}

/* pop cards zoom out once the stage is revealed */
.dv-stage .dv-pop { opacity: 0; scale: 0.4; transition: opacity 0.5s var(--ease), scale 0.75s cubic-bezier(0.34, 1.56, 0.64, 1); }
.dv-stage.is-visible .dv-pop { opacity: 1; scale: 1; }
.dv-stage.is-visible .dv-pop--status { transition-delay: 0.6s; }
.dv-stage.is-visible .dv-pop--sync   { transition-delay: 0.85s; }

/* right column */
.dv-lead { margin: 0 0 22px; font-size: 16px; color: var(--text-muted); }

.dv-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* compact title-only items; the one shown on the laptop is marked */
.dv-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(108, 53, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.dv-list li.is-current { background: #ffffff; border-color: rgba(108, 53, 255, 0.28); box-shadow: 0 10px 24px rgba(75, 32, 200, 0.1); }
.dv-list li.is-current b { color: #6C35FF; }

.dv-list .ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6C35FF, #8B5CF6 55%, #0E8C9B);
  box-shadow: 0 8px 16px rgba(108, 53, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.dv-list b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 14.5px; line-height: 1.3; color: var(--ink-800, #181632); transition: color 0.3s var(--ease); }

#devices { overflow-x: clip; }

@media (max-width: 960px) {
  .dv-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dv-stage { padding: 84px 0 70px; }
  .dv-pop { font-size: 11px; padding: 9px 11px; }
  .dv-pop--status { top: 4px; }
  .dv-pop--sync { bottom: 10px; }
  .dv-list { gap: 8px; }
  .dv-list li { padding: 8px 9px; gap: 9px; }
  .dv-list .ico { width: 30px; height: 30px; font-size: 12px; }
  .dv-list b { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .dv-rings i, .dv-rings::before, .dv-rings::after, .dv-pop { animation: none; }
  .dv-rings i { opacity: 0.5; }
  .dv-stage .dv-pop { opacity: 1; scale: 1; transition: none; }
  .dv-slide, .dv-bars i::before, .dv-progress i { transition: none; }

}

/* --- Attendance marking methods: square photo tiles in a sliding row
   (js/am-slider.js), each with a frosted label bar across the bottom.
   The row pads top and bottom so the hover lift and shadow are not clipped. --- */
.am-grid {
  --am-gap: clamp(12px, 1.6vw, 18px);
  --am-show: 4;
  display: flex;
  gap: var(--am-gap);
  margin: clamp(1.5rem, 2.6vw, 2.25rem) 0 -30px;
  padding: 10px 0 40px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.am-grid::-webkit-scrollbar { display: none; }

.am-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--am-show) - 1) * var(--am-gap)) / var(--am-show));
  margin: 0;
  aspect-ratio: 1;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 16px;
  background: var(--purple-50, #f1ecff);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.09);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.am-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;         /* subjects sit high; the label covers the foot */
  transition: transform 0.6s var(--ease);
}

.am-card:hover { transform: translateY(-5px); box-shadow: 0 14px 24px rgba(75, 32, 200, 0.16); }
.am-card:hover img { transform: scale(1.05); }

.am-card figcaption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-800, #181632);
}

.am-card figcaption .ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6C35FF, #8B5CF6);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.am-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.am-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #d9cdf7;
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.am-dot.is-active { width: 24px; background: #6528f7; }
.am-dot:focus-visible { outline: 2px solid #6528f7; outline-offset: 3px; }

@media (max-width: 1023px) {
  .am-grid { --am-show: 3; }
}

@media (max-width: 760px) {
  .am-grid { --am-show: 2; }
  .am-card figcaption { left: 6px; right: 6px; bottom: 6px; min-height: 0; padding: 8px 8px 8px 10px; border-radius: 11px; font-size: 12.5px; }
  .am-card figcaption .ico { width: 28px; height: 28px; font-size: 12px; }
}

@media (max-width: 420px) {
  .am-card figcaption .ico { display: none; }
}

/* callouts with a real product screenshot on top, all cropped to one frame */
.hr-callout--shot {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hr-callout--shot:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1); }

/* the shot runs edge to edge; only the copy below it is tinted */
.hr-callout-shot {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft, #eceaf6);
}

.hr-callout-body {
  flex: 1;
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, #f6f2ff, #efe9ff);
}

.hr-callout-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform 0.6s var(--ease);
}

.hr-callout--shot:hover .hr-callout-shot img { transform: scale(1.04); }

/* --- Section 7: chatbot --- */

/* --- Section 9: payroll pipeline --- */

/* --- Section 11: appraisal editorial two-column --- */
.hr-tl { position: relative; display: grid; gap: 0; }
.hr-tl::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--purple-200), var(--purple-100)); }
.hr-tl-step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 18px 0; }
.hr-tl-step .num { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--purple-300); color: var(--purple-600); display: grid; place-items: center; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; position: relative; z-index: 1; }
.hr-tl-step h3 { font-size: 16px; margin-bottom: 4px; }
.hr-tl-step p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* Performance & Appraisal: title-only steps, compact and centred on the dot */
#performance .hr-tl-step { align-items: center; padding: 10px 0; }
#performance .hr-tl-step h3 { margin: 0; }

/* --- Section 13: ERP architecture --- */
.hr-erp { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 22px; align-items: center; background: linear-gradient(160deg, #ece4ff, #fff 60%, #e9efff); border: 1px solid var(--purple-100); border-radius: var(--r-xl); padding: clamp(1.6rem, 3vw, 2.6rem); }
.hr-erp-center { text-align: center; background: var(--grad-purple); color: #fff; border-radius: var(--r-lg); padding: 22px 26px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 18px; box-shadow: var(--shadow-md); }
.hr-erp-list { display: grid; gap: 8px; }
.hr-erp-list span { background: #fff; border: 1px solid var(--purple-100); border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink-800); }

/* --- Section 6 pointers --- */

@media (max-width: 1023px) {
  .hr-eco, .hr-erp { grid-template-columns: 1fr; }
      .hr-callouts { grid-template-columns: 1fr; }
  
  /* Tablet: the CTA stays centred and compact — an inline button is already
     only as wide as its label, so no cap is needed here. */
}

@media (max-width: 640px) {
  /* Phone: nearly full width, with the container's side padding as margins */
}

/* ---- Hero spacing --------------------------------------------------------
   The breadcrumb band was removed from this page, so the hero supplies its
   own balanced top and bottom spacing instead of inheriting the shared strip.
   Content is deliberately trimmed (badge, title, one lead, two CTAs) so the
   copy column stays short and the carousel keeps the visual balance. */
.page-hrms .inner-hero { align-items: center; }

.page-hrms .inner-hero-copy .lead { margin-top: 16px; }

.page-hrms .inner-hero-ctas { margin-top: 24px; }

/* --- Section 4: Core HR & employee lifecycle ---
   Feature list on the left; on the right the live Core HR dashboard with
   real product screenshots popping out around it. */
.ch-split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ch-visual {
  position: relative;
  padding: 100px 24px;           /* room above/below for the pop-outs */
}

/* soft brand glow behind the composition */
.ch-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(108, 53, 255, 0.16), rgba(34, 199, 214, 0.08) 60%, transparent 75%);
  filter: blur(10px);
}

.ch-main {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border, #e6e4f1);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(75, 32, 200, 0.18);
}

.ch-main { aspect-ratio: 1.6; }
.ch-main img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* screenshot pop-outs */
.ch-pop {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border, #e6e4f1);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.16);
  animation: chFloat 7s ease-in-out infinite;
}

.ch-pop img { display: block; width: 100%; height: auto; }

.ch-pop figcaption {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--border-soft, #eceaf6);
  background: #fbfaff;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-800, #181632);
}

.ch-pop figcaption .ico { width: 1em; height: 1em; font-size: 11px; color: var(--purple-600, #6528f7); }

.ch-pop--emp    { top: 0;    left: 0;  width: 46%; }
.ch-pop--charts { bottom: 0; left: 0;  width: 50%; animation-delay: -4.6s; }

/* small stat chip */

.ch-chip-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #6DBE45, #3E8E2D);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.ch-chip-ico .ico { width: 1em; height: 1em; }

.ch-chip-txt { display: flex; flex-direction: column; line-height: 1.3; }
.ch-chip-txt b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 12.5px; font-weight: 700; color: var(--ink-800, #181632); white-space: nowrap; }
.ch-chip-txt em { font-style: normal; font-size: 11px; color: var(--text-muted, #56527a); white-space: nowrap; }

@keyframes chFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* Pop-outs zoom out from the dashboard once the visual is revealed: each
   grows from its inner corner (the side facing the main image) with a small
   overshoot, staggered after the main image has faded in. */
.ch-pop {
  opacity: 0;
  scale: 0.35;
  transition:
    opacity 0.5s var(--ease),
    scale 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ch-pop--emp    { transform-origin: 100% 100%; }
.ch-pop--charts { transform-origin: 100% 0; }

.ch-visual.is-visible .ch-pop { opacity: 1; scale: 1; }
.ch-visual.is-visible .ch-pop--emp    { transition-delay: 0.75s; }
.ch-visual.is-visible .ch-pop--charts { transition-delay: 1.15s; }

/* --- Section 5: Attendance — same composition, mirrored: image left,
   content right. Text stays first in the markup so it leads on mobile. */
.ch-split--rev { grid-template-columns: 1.25fr 1fr; }
.ch-split--rev > .ch-visual { order: -1; }

/* two shots on opposite corners, same as Core HR */
.ch-pop--today { top: 0;    left: 0;  width: 38%; transform-origin: 100% 100%; }
.ch-pop--log   { bottom: 0; right: 0; width: 42%; transform-origin: 0 0;    animation-delay: -1.2s; }

.ch-visual.is-visible .ch-pop--today { transition-delay: 0.75s; }
.ch-visual.is-visible .ch-pop--log   { transition-delay: 1s; }

/* Core HR: Attendance's frame and card style, with just two shots on
   opposite corners — large one top-left, wide one bottom-right. */
.ch-visual--core .ch-pop--emp    { top: 0;    left: 0;    right: auto; width: 38%; transform-origin: 100% 100%; }
.ch-visual--core .ch-pop--charts { bottom: 0; left: auto; right: 0;    width: 42%; transform-origin: 0 0; animation-delay: -1.2s; }

.ch-visual--core.is-visible .ch-pop--emp    { transition-delay: 0.75s; }
.ch-visual--core.is-visible .ch-pop--charts { transition-delay: 1s; }

@media (max-width: 960px) {
  .ch-split,
  .ch-split--rev { grid-template-columns: 1fr; }
  .ch-split--rev > .ch-visual { order: 0; }
  .ch-visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .ch-main { aspect-ratio: auto; }
  .ch-main img { height: auto; }
}

@media (max-width: 640px) {
  .ch-visual { padding: 44px 6px 64px; }
  .ch-pop figcaption { padding: 5px 8px; font-size: 10px; }
  .ch-pop--emp    { left: 0; width: 52%; }
    .ch-pop--charts { left: 0; width: 58%; }
    .ch-pop--today  { width: 54%; }
  .ch-pop--log    { width: 54%; }

  .ch-visual--core .ch-pop--emp    { width: 54%; }
  .ch-visual--core .ch-pop--charts { width: 54%; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-pop { animation: none; transition: none; opacity: 1; scale: 1; }
}

/* ==========================================================================
   Mobile ESS — phone walkthrough (driven by js/ess-demo.js)
   ========================================================================== */
.ess-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* the phone sits on a soft round backdrop with rings rippling out from it */
.ess-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 36px 0;
}

.ess-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1) 62%, transparent);
  translate: -50% -50%;
  pointer-events: none;
}

.ess-wave i {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(108, 53, 255, 0.3);
  border-radius: 50%;
  opacity: 0;
  animation: essWave 6s cubic-bezier(0.25, 0.6, 0.4, 1) infinite;
}

.ess-wave i:nth-child(2) { animation-delay: 2s; }
.ess-wave i:nth-child(3) { animation-delay: 4s; }

@keyframes essWave {
  0%   { scale: 0.45; opacity: 0; }
  15%  { opacity: 1; }
  100% { scale: 1.35; opacity: 0; }
}

.ess-stage .ess-phone { z-index: 1; }

/* the outer rings can run past the screen edge on phones; never let them
   widen the page */
#ess { overflow-x: clip; }

.ess-phone {
  --ess-ink: #181632;
  --ess-muted: #6b6890;
  --ess-pri: #6C35FF;
  position: relative;
  width: min(300px, 82vw);
  aspect-ratio: 9 / 18.5;
  /* the screens are laid out for a 300px phone; zoom shrinks the whole
     device evenly instead of re-sizing every element */
  zoom: 0.8;
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a2745, #121022);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(75, 32, 200, 0.25),
    0 12px 28px rgba(17, 24, 39, 0.18);
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ess-ink);
}

/* the screen glass inside the bezel */
.ess-phone::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 35px;
  background: linear-gradient(180deg, #f7f4ff 0%, #ffffff 40%);
}

.ess-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 22px;
  border-radius: 999px;
  background: #121022;
  translate: -50% 0;
}

.ess-status {
  position: absolute;
  top: 21px;
  left: 34px;
  right: 30px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.ess-status span { display: flex; gap: 5px; font-size: 9.5px; }

.ess-screens {
  position: absolute;
  inset: 54px 12px 64px;
  overflow: hidden;
}

.ess-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 16px 0;
  background: transparent;
  visibility: hidden;
  translate: 100% 0;                /* waiting off to the right */
  pointer-events: none;
  transition: none;                 /* parked screens jump back unseen */
}

/* slider: the active screen slides in from the right, the previous one
   slides out to the left */
.ess-screen.is-active,
.ess-screen.is-prev { visibility: visible; transition: translate 0.55s cubic-bezier(0.65, 0, 0.35, 1); }
.ess-screen.is-active { translate: 0 0; }
.ess-screen.is-prev   { translate: -100% 0; }

/* a slide that is just a real app screenshot fills the screen */
.ess-screen > img:only-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.ess-phone .ico { width: 1em; height: 1em; line-height: 1; }

/* shared bits */
.ess-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 2px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.ess-title > .ico { font-size: 11px; color: var(--ess-muted); }

.ess-field {
  padding: 8px 12px;
  border: 1px solid #ebe7fb;
  border-radius: 12px;
  background: #ffffff;
}

.ess-field small { display: block; font-size: 9.5px; color: var(--ess-muted); }
.ess-field b { font-size: 12.5px; }
.ess-field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* primary action button with a before / after label */
.ess-cta {
  position: relative;
  display: grid;
  place-items: center;
  height: 42px;
  margin-top: auto;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6C35FF, #8B5CF6);
  box-shadow: 0 10px 22px rgba(108, 53, 255, 0.35);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.ess-cta > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 7px; transition: opacity 0.3s var(--ease); }
.ess-cta-b { opacity: 0; }
.is-done .ess-cta { background: linear-gradient(135deg, #3E8E2D, #6DBE45); box-shadow: 0 10px 22px rgba(62, 142, 45, 0.3); color: #ffffff; }
.is-done .ess-cta-a { opacity: 0; }
.is-done .ess-cta-b { opacity: 1; }

/* 1. check in */
.ess-app-head { display: flex; align-items: center; gap: 10px; }
.ess-app-head > .ico { margin-left: auto; color: var(--ess-muted); font-size: 13px; }
.ess-app-head small { display: block; font-size: 10px; color: var(--ess-muted); }
.ess-app-head b { font-size: 13.5px; }

.ess-av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.ess-clock { margin-top: 10px; text-align: center; }
.ess-clock b { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.ess-clock small { font-size: 11px; color: var(--ess-muted); }

.ess-geo {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ecf8e6;
  color: #3E8E2D;
  font-size: 10px;
  font-weight: 700;
}

.ess-checkin {
  position: relative;
  display: grid;
  place-items: center;
  margin: 14px auto 0;
  width: 128px;
  height: 128px;
}

.ess-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(108, 53, 255, 0.18), transparent);
  animation: essPulse 2.2s ease-out infinite;
}

.ess-btn-in {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C35FF, #8B5CF6);
  box-shadow: 0 14px 30px rgba(108, 53, 255, 0.4);
  color: #ffffff;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ess-phone .ess-btn-in .ico { font-size: 28px; }
.ess-btn-in em { grid-area: 2 / 1; font-style: normal; font-size: 11px; font-weight: 700; transition: opacity 0.3s; }
.ess-in-b { opacity: 0; }
.is-done .ess-btn-in { background: linear-gradient(135deg, #3E8E2D, #6DBE45); box-shadow: 0 14px 30px rgba(62, 142, 45, 0.35); }
.is-done .ess-in-a { opacity: 0; }
.is-done .ess-in-b { opacity: 1; }

.ess-toast {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #181632;
  color: #ffffff;
  font-size: 10.5px;
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
}

.ess-toast .ico { color: #6DBE45; }
.is-done .ess-toast { opacity: 1; translate: 0 0; }

@keyframes essPulse {
  0% { scale: 0.8; opacity: 1; }
  100% { scale: 1.25; opacity: 0; }
}

/* 2. leave */
.ess-bal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ess-bal div { padding: 8px 4px; border-radius: 12px; background: #f1ecff; text-align: center; }
.ess-bal div:nth-child(2) { background: #fdf0f6; }
.ess-bal div:nth-child(3) { background: #ecf8e6; }
.ess-bal b { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 17px; font-weight: 800; }
.ess-bal small { font-size: 9.5px; color: var(--ess-muted); }

/* 3. payslip */
.ess-pay {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4B20C8, #6C35FF 60%, #8B5CF6);
  color: #ffffff;
}

.ess-pay small { display: block; font-size: 10px; opacity: 0.8; }
.ess-pay b { display: block; margin: 2px 0 6px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.ess-pay span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; opacity: 0.9; }

.ess-lines { display: flex; flex-direction: column; }
.ess-lines div { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid #efedf8; font-size: 11.5px; }
.ess-lines span { color: var(--ess-muted); }
.ess-lines .neg b { color: #e11d48; }

.ess-cta--line { background: #ffffff; box-shadow: inset 0 0 0 1.5px #6C35FF; color: #6C35FF; }

/* 4. expense: receipt attachment row */
.ess-receipt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #ffffff; border: 1px dashed #c9bdf6; font-size: 11px; }
.ess-receipt > .ico:first-child { width: 1em; height: 1em; font-size: 16px; color: var(--ess-pri); }
.ess-receipt b { display: block; font-size: 11.5px; }
.ess-receipt small { display: block; font-size: 10px; color: var(--ess-muted); }
.ess-receipt > .ico:last-child { width: 1em; height: 1em; margin-left: auto; color: #3E8E2D; }

/* 5. gps live tracking: route map with a pulsing live point */
.ess-map { position: relative; overflow: hidden; height: 168px; border-radius: 16px; border: 1px solid #ebe7fb; }
.ess-map svg { display: block; width: 100%; height: 100%; }
.ess-live { transform-box: fill-box; transform-origin: center; animation: essLive 1.6s ease-out infinite; }
@keyframes essLive { 0% { stroke-width: 2; } 50% { stroke-width: 7; stroke-opacity: 0.35; } 100% { stroke-width: 2; } }
.ess-track { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #ffffff; box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12); color: #3E8E2D; font-size: 10px; font-weight: 700; transition: box-shadow 0.3s var(--ease); }
.ess-track .ico { width: 1em; height: 1em; }
.is-done .ess-track { box-shadow: 0 0 0 2px rgba(62, 142, 45, 0.35); }
.ess-stops { display: flex; flex-direction: column; gap: 6px; }
.ess-stops div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #ffffff; border: 1px solid #ebe7fb; font-size: 11px; }
.ess-stops span { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; }
.ess-stops span.g { background: #6DBE45; }
.ess-stops span.p { background: #6C35FF; }
.ess-stops small { margin-left: auto; color: var(--ess-muted); font-size: 10px; }

/* 6. notifications: the tap opens the newest alert, which lights up */
.ess-notes { display: flex; flex-direction: column; gap: 8px; }
.ess-note { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #ffffff; border: 1px solid #ebe7fb; }
.ess-note b { display: block; font-size: 11.5px; }
.ess-note small { font-size: 9.5px; color: var(--ess-muted); }
.ess-note > span { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.ess-note .g { background: #ecf8e6; color: #3E8E2D; }
.ess-note .p { background: #f1ecff; color: #6C35FF; }
.ess-note .o { background: #fff4e5; color: #D97706; }
.ess-note { transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.is-done .ess-note:first-child { border-color: #c9b8fb; background: #f6f2ff; box-shadow: 0 6px 16px rgba(108, 53, 255, 0.14); }

.is-active .ess-note { animation: essIn 0.5s var(--ease) both; }
.is-active .ess-note:nth-child(2) { animation-delay: 0.12s; }
.is-active .ess-note:nth-child(3) { animation-delay: 0.24s; }

@keyframes essIn {
  from { opacity: 0; translate: 0 10px; }
  to   { opacity: 1; translate: 0 0; }
}

/* app tab bar */
.ess-tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 56px;
  padding-bottom: 6px;
  border-top: 1px solid #efedf8;
  border-radius: 0 0 35px 35px;
  background: #ffffff;
  color: #b4b0cc;
  font-size: 15px;
}

/* the finger tap */
.ess-tap {
  position: absolute;
  z-index: 5;
  top: 60%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(108, 53, 255, 0.7);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: left 0.6s var(--ease), top 0.6s var(--ease);
}

.ess-tap.is-tapping { animation: essTap 1.1s ease-out forwards; }

@keyframes essTap {
  0%   { opacity: 0; scale: 1.4; }
  30%  { opacity: 1; scale: 1; }
  45%  { opacity: 1; scale: 0.8; box-shadow: 0 0 0 0 rgba(108, 53, 255, 0.45); }
  75%  { opacity: 0.8; scale: 1; box-shadow: 0 0 0 16px rgba(108, 53, 255, 0); }
  100% { opacity: 0; scale: 1; }
}

/* right-hand feature rows follow the phone */
.ess-step { cursor: pointer; border-radius: 14px; }
.ess-step:focus-visible { outline: 2px solid rgba(108, 53, 255, 0.5); outline-offset: 4px; }
.ess-step h3 { transition: color 0.3s var(--ease); }
.ess-step .icon-badge { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.ess-step.is-current { padding-left: 8px; }
.ess-step.is-current h3 { color: #6C35FF; }
.ess-step.is-current .icon-badge { transform: scale(1.08); box-shadow: 0 10px 22px rgba(108, 53, 255, 0.3); }

@media (prefers-reduced-motion: reduce) {
  .ess-screen, .ess-tap { transition: none; }
  .ess-live { animation: none; }
  .ess-ring, .ess-note { animation: none; }
  .ess-wave i { animation: none; opacity: 0.6; }
  .ess-wave i:nth-child(1) { scale: 0.7; }
  .ess-wave i:nth-child(3) { scale: 1.15; }
}

/* ==========================================================================
   ESS Mobile App — copy left, three app screens fanned out on the right
   (Pro-Chat, Punch with geo-fence, Payslip). The phones are built in HTML
   so they stay sharp at any resolution; the screens scale from each
   phone's width (cqw).
   ========================================================================== */
.ma-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.ma-lead { margin: 0 0 24px; font-size: 16px; color: var(--text-muted); }

/* Mobile App points: accordion, one open at a time */
.ma-acc { display: flex; flex-direction: column; gap: 12px; }
.ma-acc-item {
  border: 1px solid var(--border, #e6e4f1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.ma-acc-item.is-open { border-color: #d9ccff; box-shadow: 0 14px 30px rgba(91, 36, 230, 0.10); }
.ma-acc-h { margin: 0; font-size: 16.5px; }
.ma-acc-btn {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 14px 18px; border: 0; border-radius: 16px; background: none;
  font: inherit; font-weight: 700; color: inherit; text-align: left; cursor: pointer;
}
.ma-acc-btn:focus-visible { outline: 2px solid var(--primary, #6528f7); outline-offset: 2px; }
.ma-acc .icon-badge { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; }
.ma-acc-title { flex: 1; }
.ma-acc-chev {
  display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; background: #f3eeff; color: #6528f7; font-size: 12px; line-height: 1;
  transition: transform .3s ease, background-color .25s ease, color .25s ease;
}
.ma-acc-item.is-open .ma-acc-chev { transform: rotate(180deg); background: #6528f7; color: #fff; }
.ma-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.ma-acc-panel > div { overflow: hidden; min-height: 0; }
.ma-acc-item.is-open .ma-acc-panel { grid-template-rows: 1fr; }
/* text lines up under the title (badge 46px + 16px gap) */
.ma-acc-panel p { margin: 0; padding: 0 18px 16px 80px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 480px) { .ma-acc-panel p { padding-left: 18px; } }
@media (prefers-reduced-motion: reduce) { .ma-acc-panel, .ma-acc-chev { transition: none; } }

/* section background: soft brand wash with a faint dot grid */
#mobile-app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(52% 70% at 82% 45%, rgba(108, 53, 255, 0.16), transparent 70%),
    radial-gradient(40% 55% at 8% 12%, rgba(34, 199, 214, 0.12), transparent 70%),
    radial-gradient(38% 50% at 30% 100%, rgba(109, 190, 69, 0.1), transparent 70%),
    linear-gradient(180deg, #faf8ff, #f3efff);
}
#mobile-app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(108, 53, 255, 0.16) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
}

/* stage */
.ma-stage {
  position: relative;
  height: clamp(440px, 42vw, 540px);
  isolation: isolate;
}

.ma-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 86%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.22), rgba(14, 140, 155, 0.08) 62%, transparent);
}

.ma-glow::before,
.ma-glow::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1.5px dashed rgba(108, 53, 255, 0.22);
  border-radius: 50%;
  animation: dvSpin 50s linear infinite;
}
.ma-glow::after { inset: -4%; border-style: solid; border-color: rgba(108, 53, 255, 0.1); animation-direction: reverse; }

.ma-phone {
  position: absolute;
  top: 50%;
  width: 36%;
  aspect-ratio: 9 / 18.6;
  padding: 2.4%;
  border-radius: 34px;
  background: linear-gradient(150deg, #e9e7f2, #c9c5da);
  box-shadow: 0 30px 60px rgba(75, 32, 200, 0.2), 0 10px 22px rgba(17, 24, 39, 0.12), inset 0 0 0 1.5px rgba(255, 255, 255, 0.8);
  transition: transform 0.6s var(--ease);
}


/* three phones showing real app screens: the middle one in front, the
   other two tilted behind it */
.ma-phone--shot {
  width: auto;
  aspect-ratio: 502 / 1098;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(150deg, #e4e4ea, #b4b4be 55%, #d2d2da);
  box-shadow:
    0 24px 48px rgba(75, 32, 200, 0.2),
    0 8px 18px rgba(17, 24, 39, 0.14),
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    inset 0 0 0 4px #9a9aa6;
}
.ma-phone--center { left: 50%; z-index: 2; height: 78%; transform: translate(-50%, -50%); }
.ma-phone--left { left: 25%; z-index: 1; height: 66%; transform: translate(-50%, -50%) rotate(-6deg); }
.ma-phone--right { left: 75%; z-index: 1; height: 66%; transform: translate(-50%, -50%) rotate(6deg); }

/* side phones start stacked behind the middle one and fan out when the
   section scrolls into view; then all three float. The float uses the
   separate translate property so it never fights the transform above. */
.ma-stage--trio .ma-phone--shot { transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.ma-stage--trio:not(.is-visible) .ma-phone--left,
.ma-stage--trio:not(.is-visible) .ma-phone--right { left: 50%; transform: translate(-50%, -50%) scale(0.9); }
.ma-stage--trio .ma-phone--left,
.ma-stage--trio .ma-phone--right { transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, left 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.ma-stage--trio.is-visible .ma-phone--shot { animation: maFloat 6s ease-in-out 1.2s infinite; }
.ma-stage--trio.is-visible .ma-phone--left { animation-delay: 1.9s; }
.ma-stage--trio.is-visible .ma-phone--right { animation-delay: 2.6s; }
.ma-stage--trio .ma-glow { animation: maPulse 7s ease-in-out infinite; }
@keyframes maFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes maPulse {
  0%, 100% { opacity: 0.75; scale: 1; }
  50% { opacity: 1; scale: 1.05; }
}

/* side buttons */
.ma-key { position: absolute; width: 4px; border-radius: 0 3px 3px 0; background: #a6a6b0; }
.ma-key--power { right: -4px; top: 26%; height: 11%; }
.ma-key--vol { left: -4px; top: 20%; height: 16%; border-radius: 3px 0 0 3px; }

/* the screen clips the screenshot to its rounded corners */
.ma-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #f4f2fb;
}

.ma-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.ma-island {
  position: absolute;
  top: 0.8%;
  left: 50%;
  z-index: 1;
  width: 35%;
  height: 4%;
  border-radius: 999px;
  background: #0f0e20;
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .ma-phone--shot { padding: 6px; border-radius: 26px; }
  .ma-screen { border-radius: 21px; }
  .ma-phone--left { left: 28%; }
  .ma-phone--right { left: 72%; }
}

@media (max-width: 960px) {
  .ma-split { grid-template-columns: 1fr; }
  .ma-stage { max-width: 620px; width: 100%; margin-inline: auto; }
}

@media (max-width: 640px) {
  .ma-stage { height: 112vw; max-height: 500px; }

}

@media (prefers-reduced-motion: reduce) {
  .ma-glow::before, .ma-glow::after { animation: none; }
  .ma-stage--trio .ma-glow,
  .ma-stage--trio.is-visible .ma-phone--shot { animation: none; }
  .ma-stage--trio .ma-phone--shot { transition: none; }
}

/* ==========================================================================
   Payroll, Training and Performance — the Core HR composition (.ch-visual
   main screen + .ch-pop pop-outs). Payroll uses real screenshots; Training
   and Performance use app screens built in HTML (.mk), sized from the
   frame width (cqw) so they stay sharp at any resolution.
   ========================================================================== */
.ch-visual.px-visual { padding: 70px 24px 78px; }

.px-lead { margin: 0 0 22px; font-size: 16px; color: var(--text-muted); }

/* payroll flow */
.px-flow { display: flex; flex-direction: column; gap: 12px; }
.px-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border, #e6e4f1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}
.px-stage + .px-stage::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 54px;
  width: 2px;
  height: 12px;
  background: linear-gradient(#8B5CF6, #0E8C9B);
}
.px-tag {
  flex-shrink: 0;
  width: 104px;
  padding: 6px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #6C35FF, #8B5CF6);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.px-tag--out { background: linear-gradient(135deg, #3E8E2D, #6DBE45); }
.px-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.px-chips span { padding: 5px 11px; border-radius: 999px; background: #f4f1ff; color: #3b2a8f; font-size: 13px; font-weight: 600; }

/* pop-outs */
.px-pop--loan   { top: 0; left: 0; width: 250px; padding: 12px 14px; font-size: 12px; transform-origin: 100% 100%; }
.px-pop--run,
.px-pop--rem,
.px-pop--letter { right: 0; bottom: 0; width: 236px; padding: 12px 14px; font-size: 12px; transform-origin: 0 0; animation-delay: -2.4s; }
.px-pop--cert,
.px-pop--score  { top: 22px; left: 0; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; transform-origin: 100% 100%; animation-delay: -4.6s; }

.ch-visual.is-visible .px-pop--loan,
.ch-visual.is-visible .px-pop--cert,
.ch-visual.is-visible .px-pop--score  { transition-delay: 0.75s; }
.ch-visual.is-visible .px-pop--run,
.ch-visual.is-visible .px-pop--rem,
.ch-visual.is-visible .px-pop--letter { transition-delay: 1s; }

.px-run-t { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 12.5px; font-weight: 800; color: var(--ink-800, #181632); }
.px-run-t .ico { width: 1em; height: 1em; font-size: 11px; color: #6C35FF; }

.px-run { margin: 0; padding: 0; list-style: none; }
.px-run li { position: relative; padding: 4px 0 4px 22px; color: var(--ink-800, #181632); font-weight: 600; }
.px-run li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%; }
.px-run .done::before { background: #3E8E2D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.px-run .now { color: #6C35FF; }
.px-run .now::before { border: 2px solid #6C35FF; box-sizing: border-box; animation: pxPulse 1.6s ease-in-out infinite; }
@keyframes pxPulse { 50% { box-shadow: 0 0 0 5px rgba(108, 53, 255, 0.15); } }

.px-cert-ico { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, #F59E0B, #F97316); color: #ffffff; font-size: 15px; }
.px-cert-ico .ico { width: 1em; height: 1em; }

.px-rem { display: flex; align-items: center; gap: 10px; }
.px-rem small { display: block; color: var(--text-muted); font-size: 11px; }
.px-rem div b { display: block; font-size: 12px; color: var(--ink-800, #181632); }
.px-date { display: grid; place-items: center; flex-shrink: 0; width: 40px; padding: 4px 0; border-radius: 10px; background: #f1ecff; color: #6C35FF; font-size: 9.5px; font-weight: 800; line-height: 1.1; }
.px-date b { font-size: 16px; }

.px-ring { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: conic-gradient(#6C35FF 0 84%, #ece7ff 84% 100%); }
.px-ring b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ffffff; font-family: "Plus Jakarta Sans", sans-serif; font-size: 12.5px; color: var(--ink-800, #181632); }

.px-letter { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-muted); }
.px-letter b { color: var(--ink-800, #181632); }
.px-letter:first-of-type b { color: #3E8E2D; }
.px-letter b.red { color: #e11d48; }

.px-loan { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.px-loan div { padding: 8px 6px; border-radius: 10px; text-align: center; }
.px-loan b { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; line-height: 1.1; }
.px-loan small { font-size: 10.5px; color: #4a4768; }
.px-loan .c { background: #e4f7fb; }
.px-loan .c b { color: #0891b2; }
.px-loan .o { background: #fff4e5; }
.px-loan .o b { color: #ea580c; }
.px-sent { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 9px; border-radius: 999px; background: #ecf8e6; color: #3E8E2D; font-weight: 700; }
.px-sent .ico { width: 1em; height: 1em; }

/* built app screens */
.ch-main.mk { aspect-ratio: auto; container-type: inline-size; background: #f7f6fd; }
.mk-app { height: 100%; display: flex; flex-direction: column; font-family: "Inter", system-ui, sans-serif; font-size: 2cqw; color: #181632; }
.mk-app .ico { width: 1em; height: 1em; font-size: inherit; line-height: 1; }
.mk-top { display: flex; align-items: center; gap: 1.2em; padding: 0.95em 1.4em; background: #ffffff; border-bottom: 1px solid #ebe8f6; }
.mk-logo { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; color: #3E8E2D; }
.mk-logo b { color: #6C35FF; }
.mk-crumb { color: #6b6890; font-size: 0.95em; }
.mk-av { margin-left: auto; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: linear-gradient(135deg, #8B5CF6, #EC4899); color: #ffffff; font-size: 0.85em; font-weight: 800; }
.mk-body { flex: 1; display: flex; flex-direction: column; gap: 1em; padding: 1.3em 1.4em; }

.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9em; }
.mk-kpis div { padding: 0.8em 1em; border-radius: 0.8em; background: #ffffff; box-shadow: 0 0 0 1px #ebe8f6; }
.mk-kpis b { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.6em; }
.mk-kpis small { color: #6b6890; font-size: 0.85em; }

.mk-rows { display: flex; flex-direction: column; gap: 0.6em; }
.mk-row { display: grid; grid-template-columns: 2.4em 1fr 7em 2.6em; align-items: center; gap: 0.9em; padding: 0.7em 0.9em; border-radius: 0.8em; background: #ffffff; box-shadow: 0 0 0 1px #ebe8f6; }
.mk-row b { display: block; font-size: 1em; }
.mk-row small { color: #6b6890; font-size: 0.82em; }
.mk-row em { font-style: normal; font-weight: 800; color: #6C35FF; text-align: right; }
.mk-ico { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 0.7em; color: #ffffff; }
.mk-ico.p { background: linear-gradient(135deg, #6C35FF, #8B5CF6); }
.mk-ico.t { background: linear-gradient(135deg, #0E8C9B, #2dd4bf); }
.mk-ico.o { background: linear-gradient(135deg, #F97316, #F59E0B); }
.mk-ico.g { background: linear-gradient(135deg, #3E8E2D, #6DBE45); }
.mk-bar { height: 0.6em; border-radius: 999px; background: #ece8fa; overflow: hidden; }
.mk-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6C35FF, #0E8C9B); }

.mk-steps { display: flex; gap: 0.5em; }
.mk-steps span { flex: 1; padding: 0.5em 0; border-radius: 0.6em; background: #ece8fa; color: #6b6890; font-size: 0.85em; font-weight: 700; text-align: center; }
.mk-steps .done { background: #ecf8e6; color: #3E8E2D; }
.mk-steps .now { background: linear-gradient(135deg, #6C35FF, #8B5CF6); color: #ffffff; }
.mk-emp { display: flex; align-items: center; gap: 0.9em; padding: 0.8em 1em; border-radius: 0.8em; background: #ffffff; box-shadow: 0 0 0 1px #ebe8f6; }
.mk-emp small { display: block; color: #6b6890; font-size: 0.85em; }
.mk-face { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: linear-gradient(135deg, #8B5CF6, #EC4899); color: #ffffff; font-weight: 800; font-size: 0.9em; }
.mk-pill { margin-left: auto; padding: 0.3em 0.8em; border-radius: 999px; background: #fff4e5; color: #c2410c; font-size: 0.82em; font-weight: 700; }
.mk-table { width: 100%; border-collapse: collapse; border-radius: 0.8em; overflow: hidden; background: #ffffff; box-shadow: 0 0 0 1px #ebe8f6; }
.mk-table th { padding: 0.7em 1em; background: #f1eefc; color: #6b6890; font-size: 0.85em; text-align: left; }
.mk-table td { padding: 0.7em 1em; border-top: 1px solid #f0eef8; }
.mk-table td b { color: #6C35FF; }

@media (max-width: 640px) {
  .ch-visual.px-visual { padding: 56px 6px 70px; }
  .px-pop--loan { width: 200px; padding: 9px 11px; font-size: 10.5px; }
  .px-pop--run, .px-pop--rem, .px-pop--letter { width: 190px; padding: 9px 11px; font-size: 10.5px; }
  .px-pop--cert, .px-pop--score { top: 4px; }
  .px-stage { flex-direction: column; gap: 10px; }
  .px-stage + .px-stage::before { left: 58px; }
}

/* ---- Phones: compact pop-outs so the screen behind them stays visible ---- */
@media (max-width: 640px) {
  /* Payroll / Training / Performance cards */
  .px-pop--loan,
  .px-pop--run,
  .px-pop--rem,
  .px-pop--letter { width: 158px; padding: 8px 10px; border-radius: 11px; font-size: 9.5px; }
  .px-run-t { margin-bottom: 5px; font-size: 10px; gap: 5px; }
  .px-run li { padding: 2px 0 2px 16px; }
  .px-run li::before { top: 3px; width: 10px; height: 10px; }
  .px-run .done::before { background-size: 8px; }
  .px-loan { gap: 4px; margin-bottom: 3px; }
  .px-loan div { padding: 5px 4px; border-radius: 8px; }
  .px-loan b { font-size: 13px; }
  .px-loan small { font-size: 8.5px; }
  .px-letter { padding: 2px 0; gap: 6px; white-space: nowrap; }
  .px-run li { white-space: nowrap; }
  .px-pop--loan, .px-pop--run { width: 168px; }
  .px-sent { margin-top: 3px; padding: 2px 7px; }
  .px-rem { gap: 7px; }
  .px-rem div b { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 108px; }
  .px-rem small { font-size: 8.5px; }
  .px-date { width: 32px; font-size: 8px; }
  .px-date b { font-size: 12px; }

  /* small chips (certificate, rating, device sync) */
  .px-pop--cert,
  .px-pop--score,
  .dv-pop--sync { gap: 7px; padding: 6px 10px 6px 6px; border-radius: 11px; }
  .px-cert-ico,
  .dv-pop--sync .ch-chip-ico { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
  .px-ring { width: 32px; height: 32px; }
  .px-ring b { width: 24px; height: 24px; font-size: 10px; }
  .px-pop--cert .ch-chip-txt b,
  .px-pop--score .ch-chip-txt b,
  .dv-pop--sync .ch-chip-txt b { font-size: 10.5px; }
  .px-pop--cert .ch-chip-txt em,
  .px-pop--score .ch-chip-txt em,
  .dv-pop--sync .ch-chip-txt em { font-size: 9px; }

  /* device status card */
  .dv-pop--status { padding: 7px 9px; border-radius: 11px; }
  .dv-pop-t { margin-bottom: 5px; font-size: 10px; }
  .dv-stat { gap: 5px; }
  .dv-stat span { padding: 2px 7px; gap: 4px; font-size: 9.5px; }
  .dv-stat i { width: 5px; height: 5px; }

  /* Core HR / Attendance screenshot pops */
  .ch-visual--core .ch-pop--emp,
  .ch-visual--core .ch-pop--charts,
  .ch-pop--today,
  .ch-pop--log { width: 46%; }
}

/* Payroll on phones: the screenshot is short, so the two cards sit above and
   below it, overlapping only its edges instead of covering the register */
@media (max-width: 640px) {
  #payroll .ch-visual.px-visual { padding: 92px 6px 104px; }
  #payroll .px-pop--loan { top: 0; left: 0; }
  #payroll .px-pop--run { right: 0; bottom: 0; }
  #payroll .px-loan small { white-space: nowrap; }
  #payroll .px-loan .o small { font-size: 0; }
  #payroll .px-loan .o small::after { content: "Pending"; font-size: 8.5px; }
}

/* ==========================================================================
   Attendance Management — accordion list (native <details>; the shared
   name attribute keeps one item open at a time). Shorter than the old
   always-open rows.
   ========================================================================== */
.hr-acc { display: flex; flex-direction: column; gap: 8px; }

.hr-acc-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hr-acc-item[open] {
  border-color: rgba(108, 53, 255, 0.35);
  box-shadow: 0 14px 30px rgba(75, 32, 200, 0.1);
}

.hr-acc-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.hr-acc-item summary::-webkit-details-marker { display: none; }
.hr-acc-item summary:focus-visible { outline: 2px solid #6C35FF; outline-offset: 2px; border-radius: 14px; }

.hr-acc-item .icon-badge { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; }
.hr-acc-item h3 { flex: 1; margin: 0; font-size: 16px; }

.hr-acc-caret {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.hr-acc-item[open] .hr-acc-caret { transform: rotate(180deg); color: #6C35FF; }

.hr-acc-item p {
  margin: 0;
  padding: 0 14px 12px 62px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  animation: hrAccIn 0.3s var(--ease);
}
@keyframes hrAccIn { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 640px) {
  .hr-acc-item p { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hr-acc-item p { animation: none; }
}

/* ==========================================================================
   Core HR and Attendance visuals — the dashboard shots are white on pale
   sections, so each sits in a solid purple frame with a tilted colour card
   behind it (mirrored when the image is on the left).
   ========================================================================== */
.ch-visual--framed { isolation: isolate; padding: 84px 60px; }

.ch-visual--framed .ch-main {
  padding: 4px;
  border: 0;
  border-radius: 24px;
  background: #6C35FF;
  box-shadow: 0 30px 70px rgba(75, 32, 200, 0.24);
}
.ch-visual--framed .ch-main img {
  border-radius: 20px;
  background: #ffffff;
}

/* tilted card behind the frame, gently rocking */
.ch-visual--framed::after {
  content: "";
  position: absolute;
  inset: 70px 40px 70px 80px;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(108, 53, 255, 0.28), rgba(34, 199, 214, 0.22) 55%, rgba(109, 190, 69, 0.22));
  transform: rotate(4deg);
  animation: chCardRock 8s ease-in-out infinite;
}

@keyframes chCardRock {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-8px); }
}

/* image on the left (Attendance): the card leans the other way */
.ch-split--rev .ch-visual--framed::after {
  inset: 70px 80px 70px 40px;
  animation-name: chCardRockRev;
}
@keyframes chCardRockRev {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-8px); }
}

@media (max-width: 1023px) {
  .ch-visual--framed { padding: 84px 32px; }
  .ch-visual--framed::after { inset: 70px 16px 70px 48px; }
  .ch-split--rev .ch-visual--framed::after { inset: 70px 48px 70px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-visual--framed::after { animation: none; }
}
@media (max-width: 640px) {
  .ch-visual--framed { padding: 44px 6px 64px; }
  .ch-visual--framed::after { inset: 36px 0 52px 16px; }
  .ch-split--rev .ch-visual--framed::after { inset: 36px 16px 52px 0; }
}

/* Payroll: same purple frame and tilted card; its pop-outs are HTML cards,
   so they shrink by width rather than percentage */
.px-visual.ch-visual--framed { padding: 70px 60px 78px; }
@media (min-width: 641px) {
  #payroll .px-pop--loan { width: 222px; padding: 10px 12px; font-size: 11px; }
  #payroll .px-pop--run  { width: 212px; padding: 10px 12px; font-size: 11px; }
  #training .px-pop--rem,
  #performance .px-pop--letter { width: 212px; padding: 10px 12px; font-size: 11px; }
}
@media (max-width: 1023px) {
  .px-visual.ch-visual--framed { padding: 70px 32px 78px; }
}

/* Training and Appraisal use app screens built in HTML (.mk) — inside the
   purple frame the screen gets its own rounded, tinted surface */
.ch-visual--framed .ch-main.mk .mk-app {
  overflow: hidden;
  border-radius: 20px;
  background: #f7f6fd;
}

/* ==========================================================================
   Leave Management cards — the screenshots are white, so each card gets its
   own accent: a tinted outline, the shot inset on a coloured panel with its
   own border, and a matching tint behind the copy.
   ========================================================================== */
.hr-callout--shot { --acc: #6C35FF; --acc-soft: #f1ecff; border: 1.5px solid color-mix(in srgb, var(--acc) 30%, transparent); }
.hr-callout--shot:nth-child(2) { --acc: #0E8C9B; --acc-soft: #e3f5f8; }
.hr-callout--shot:nth-child(3) { --acc: #3E8E2D; --acc-soft: #eaf6e4; }

.hr-callout--shot .hr-callout-shot {
  padding: 14px 14px 0;
  border-bottom: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 20%, #ffffff), var(--acc-soft));
}
.hr-callout--shot .hr-callout-shot img {
  border: 1px solid color-mix(in srgb, var(--acc) 28%, transparent);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #ffffff;
  box-shadow: 0 -2px 18px color-mix(in srgb, var(--acc) 18%, transparent);
}

/* Leave cards: show the whole screenshot instead of a zoomed-in crop */
.hr-callouts--fit .hr-callout-shot { aspect-ratio: 15 / 8; }
.hr-callouts--fit .hr-callout-shot img {
  box-sizing: border-box;
  padding: 10px;
  object-fit: contain;
  object-position: 50% 50%;
}
.hr-callouts--fit .hr-callout--shot:hover .hr-callout-shot img { transform: none; }
.hr-callouts--fit { grid-template-columns: repeat(3, 1fr); }
.hr-callouts--fit .hr-callout--shot .hr-callout-shot { padding: 10px 10px 0; }
.hr-callouts--fit .hr-callout-shot img { padding: 8px; }
.hr-callouts--fit .hr-callout-body { padding: 13px 16px 15px; }
.hr-callouts--fit .hr-callout-body h3 { font-size: 15px; }
.hr-callouts--fit .hr-callout-body p { font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) {
  .hr-callouts--fit { grid-template-columns: 1fr; }
}

.hr-callout--shot .hr-callout-body {
  border-top: 3px solid var(--acc);
  background: var(--acc-soft);
}
.hr-callout--shot .hr-callout-body h3 { color: color-mix(in srgb, var(--acc) 70%, #181632); }

.hr-callout--shot:hover {
  border-color: var(--acc);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--acc) 22%, transparent);
}

/* section title accent phrase: one solid colour (no gradient) */
.page-hrms .section-title em.hr-dual {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #6C35FF;
  -webkit-text-fill-color: #6C35FF;
}

/* ==========================================================================
   Leave Management — extra block under the three cards: a sample year-end
   screen beside the year-end, approval and holiday rules (content from
   leave-management.html). Accent follows the section's leave pink.
   ========================================================================== */
.lv-more {
  --lv: #db2777;
  --lv-soft: #fdf0f7;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1.5px solid color-mix(in srgb, var(--lv) 22%, transparent);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #fff8fb 100%);
  box-shadow: 0 18px 44px rgba(190, 24, 93, 0.08);
}
.lv-more-shot {
  margin: 0;
  padding: 12px 12px 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, #fbcfe8, var(--lv-soft));
}
.lv-more-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--lv) 25%, transparent);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 18px rgba(219, 39, 119, 0.15);
  transition: transform 0.6s var(--ease);
}
.lv-more:hover .lv-more-shot img { transform: translateY(-4px); }
.lv-more-eyebrow { margin: 0 0 8px; color: var(--lv); font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.lv-more-copy h3 { margin: 0; font-size: clamp(20px, 2vw, 25px); line-height: 1.25; }
.lv-more-copy > p:not(.lv-more-eyebrow) { margin: 10px 0 0; color: var(--text-muted); font-size: 15px; }
.lv-more-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.lv-more-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.lv-more-list li > span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--lv-soft); color: var(--lv); }
.lv-more-list b { display: block; color: var(--text, #181632); font-size: 14.5px; }
.lv-more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--lv); font-weight: 700; text-decoration: none; }
.lv-more-link:hover { gap: 12px; }
.lv-more-link:focus-visible { outline: 2px solid var(--lv); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 900px) {
  .lv-more { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-more-shot img { transition: none; }
  .lv-more:hover .lv-more-shot img { transform: none; }
}

/* module list items link to their section on this page */
a.hr-eco-item { color: inherit; text-decoration: none; cursor: pointer; }
a.hr-eco-item:focus-visible { outline: 2px solid var(--purple-600, #6528f7); outline-offset: 2px; border-radius: 6px; }

/* Year-end & approvals: short copy, four colour-coded tiles (the leave
   cards' purple, teal and green, plus the leave pink) */
.lv-more {
  position: relative;
  grid-template-columns: 1.3fr 1fr;
  overflow: hidden;
}
.lv-more::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #6C35FF 0 25%, #0E8C9B 25% 50%, #3E8E2D 50% 75%, #DB2777 75%);
}
.lv-more-copy h3 { font-size: clamp(20px, 2vw, 24px); }
.lv-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.lv-tiles li {
  display: grid;
  gap: 2px;
  padding: 14px 14px 13px;
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  border-top: 3px solid var(--c);
  border-radius: 14px;
  background: var(--cs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lv-tiles li:hover { transform: translateY(-3px); box-shadow: 0 12px 24px color-mix(in srgb, var(--c) 20%, transparent); }
.lv-tiles span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 11px;
  background: var(--c);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 30%, transparent);
}
.lv-tiles b { font-size: 14.5px; color: color-mix(in srgb, var(--c) 65%, #181632); }
.lv-tiles small { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 900px) {
  .lv-more { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lv-tiles { gap: 8px; }
  .lv-tiles li { padding: 11px 11px 10px; }
  .lv-tiles span { width: 30px; height: 30px; margin-bottom: 6px; font-size: 13px; }
  .lv-tiles b { font-size: 13.5px; }
  .lv-tiles small { font-size: 12px; }
}
@media (max-width: 340px) {
  .lv-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-tiles li { transition: none; }
  .lv-tiles li:hover { transform: none; }
}

/* ---- Recruitment & onboarding (stage 1 · join) ---- */
.rj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.rj-head .section-title { margin-bottom: 0; }
.rj-stages { display: flex; flex-wrap: wrap; gap: 8px; }
.rj-stages a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.rj-stages a:hover { border-color: var(--purple-300, #b9a2ff); color: var(--purple-700, #4f1fd1); transform: translateY(-1px); }
.rj-stages a.is-on { background: var(--purple-600, #6528f7); border-color: var(--purple-600, #6528f7); color: #fff; }
.rj-stages a:focus-visible { outline: 2px solid var(--purple-600, #6528f7); outline-offset: 2px; }

.rj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rj-left { display: grid; gap: 20px; }
.rj-shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 24px 50px -24px rgba(75, 32, 200, .35), var(--shadow-sm);
}
.rj-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f3f1f8; border-bottom: 1px solid var(--border-soft); }
.rj-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e05b5b; }
.rj-bar i:nth-child(2) { background: #f0b45b; }
.rj-bar i:nth-child(3) { background: #72bf44; }
.rj-shot img { display: block; width: 100%; height: auto; }

.rj-day1 {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--r-lg);
  background: #1b1535;
  color: #fff;
}
.rj-day1-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c35ff, #8b5cf6);
  box-shadow: 0 10px 22px -8px rgba(108, 53, 255, .7);
}
.rj-day1-ic .ico { font-size: 24px; width: 24px; height: 24px; color: #fff; }
.rj-day1 h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.rj-day1 p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

.rj-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rj-card {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.rj-card:hover { transform: translateY(-3px); border-color: var(--purple-200, #d9ccff); box-shadow: 0 18px 36px -20px rgba(75, 32, 200, .4); }
.rj-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--purple-50, #f4f0ff);
  border: 1px solid var(--purple-100, #e9e2ff);
  color: var(--purple-600, #6528f7);
  box-shadow: 0 6px 14px -8px rgba(75, 32, 200, .45);
}
.rj-ic .ico { font-size: 20px; width: 20px; height: 20px; }
.rj-card h3 { font-size: 17px; margin-bottom: 12px; }
.rj-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rj-card li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--text-body); }
.rj-card li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple-600, #6528f7); }

@media (max-width: 1023px) {
  .rj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rj-head { margin-bottom: 24px; }
  .rj-stages { gap: 6px; }
  .rj-stages a { padding: 7px 12px; font-size: 12.5px; }
  .rj-cards { grid-template-columns: 1fr; gap: 14px; }
  .rj-card { padding: 18px; }
  .rj-ic { width: 44px; height: 44px; margin-bottom: 12px; }
  .rj-day1 { padding: 18px; gap: 12px; }
  .rj-day1-ic { width: 44px; height: 44px; }
  .rj-day1-ic .ico { font-size: 20px; width: 20px; height: 20px; }
}
/* general version: three stacked cards, icon beside the text */
.rj-cards--list { grid-template-columns: 1fr; gap: 16px; }
.rj-card--row { display: flex; align-items: flex-start; gap: 18px; padding: 24px; }
.rj-card--row .rj-ic { flex: none; margin-bottom: 0; }
.rj-card--row h3 { margin-bottom: 6px; }
.rj-card--row p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 560px) {
  .rj-card--row { gap: 14px; padding: 18px; }
}

/* ---- One Connected Platform: 20-module accordion (two columns of ten) ---- */
.hr-eco-acc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
.hr-eco-acc-col { display: grid; align-content: start; }
.hr-eco-acc-item { border-bottom: 1px solid var(--border-soft); }
.hr-eco-acc-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-800);
  transition: color .2s var(--ease);
}
.hr-eco-acc-item summary::-webkit-details-marker { display: none; }
.hr-eco-acc-item summary:hover { color: var(--acc); }
.hr-eco-acc-item summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
.hr-eco-acc-item summary b { flex: none; min-width: 22px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 12.5px; color: var(--purple-300); }
.hr-eco-acc-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--acc-soft);
  color: var(--acc);
}
.hr-eco-acc-ic .ico { font-size: 12.5px; width: 13px; height: 13px; }
.hr-eco-acc-name { flex: 1; min-width: 0; line-height: 1.3; }
.hr-eco-acc-caret { flex: none; font-size: 11px; width: 11px; height: 11px; color: var(--text-muted); transition: transform .25s var(--ease); }
.hr-eco-acc-item[open] summary { color: var(--acc); }
.hr-eco-acc-item[open] .hr-eco-acc-caret { transform: rotate(180deg); color: var(--acc); }
.hr-eco-acc-body { padding: 0 2px 14px 70px; }
.hr-eco-acc-body p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.hr-eco-acc-body a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--acc); }
.hr-eco-acc-body a .ico { font-size: 11px; width: 11px; height: 11px; transition: transform .2s var(--ease); }
.hr-eco-acc-body a:hover .ico { transform: translateX(3px); }
@media (max-width: 1100px) and (min-width: 1024px) {
  .hr-eco-acc { column-gap: 16px; }
}
@media (max-width: 640px) {
  .hr-eco-acc { grid-template-columns: 1fr; }
  .hr-eco-acc-body { padding-left: 62px; }
}
/* layout of this section: see "One Connected Platform: modules either side" below */

/* ---- One Connected Platform: modules either side of the One Login shot ---- */
.hr-eco:has(.hr-eco-acc) { display: block; }
.hr-eco-acc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(20px, 2.6vw, 36px); align-items: center; }
.hr-eco-acc > .hr-eco-video { grid-column: 2; grid-row: 1; margin: 0; }
.hr-eco-acc > .hr-eco-acc-col:first-of-type { grid-column: 1; grid-row: 1; }
.hr-eco-acc > .hr-eco-acc-col:last-of-type { grid-column: 3; grid-row: 1; }
.hr-eco-acc-body { padding-left: 40px; }
.hr-eco-acc-body p { margin: 0; }
@media (max-width: 1023px) {
  /* image on top, then the two module columns side by side */
  .hr-eco-acc { grid-template-columns: 1fr 1fr; row-gap: 28px; align-items: start; }
  .hr-eco-acc > .hr-eco-video { grid-column: 1 / -1; grid-row: 1; max-width: 640px; justify-self: center; }
  .hr-eco-acc > .hr-eco-acc-col:first-of-type { grid-column: 1; grid-row: 2; }
  .hr-eco-acc > .hr-eco-acc-col:last-of-type { grid-column: 2; grid-row: 2; }
}
@media (max-width: 640px) {
  .hr-eco-acc { grid-template-columns: 1fr; row-gap: 0; }
  .hr-eco-acc > .hr-eco-video { margin-bottom: 24px; }
  .hr-eco-acc > .hr-eco-acc-col:first-of-type, .hr-eco-acc > .hr-eco-acc-col:last-of-type { grid-column: 1; grid-row: auto; }
}
.hr-eco-acc > .hr-eco-video figcaption { text-align: center; }

/* ---- One Connected Platform, balanced: 8 · (image + 4) · 8, no numbers ---- */
.hr-eco-acc { align-items: start; }
.hr-eco-acc > .hr-eco-acc-col.hr-eco-acc-col--a { grid-column: 1; grid-row: 1; }
.hr-eco-acc > .hr-eco-acc-mid { grid-column: 2; grid-row: 1; display: grid; gap: 14px; }
.hr-eco-acc > .hr-eco-acc-col.hr-eco-acc-col--c { grid-column: 3; grid-row: 1; }
.hr-eco-acc-mid .hr-eco-video { margin: 0; }
/* caption kept for screen readers; hidden so all three columns end level */
.hr-eco-acc-mid .hr-eco-video figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hr-eco-acc-body { padding-left: 38px; }
@media (max-width: 1023px) {
  /* image on top, then 8 | 8, then the last four as 2 | 2 */
  .hr-eco-acc { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .hr-eco-acc > .hr-eco-acc-mid { display: contents; }
  .hr-eco-acc-mid .hr-eco-video { grid-column: 1 / -1; grid-row: 1; max-width: 640px; justify-self: center; margin-bottom: 24px; }
  .hr-eco-acc > .hr-eco-acc-col.hr-eco-acc-col--a { grid-column: 1; grid-row: 2; }
  .hr-eco-acc > .hr-eco-acc-col.hr-eco-acc-col--c { grid-column: 2; grid-row: 2; }
  .hr-eco-acc-mid .hr-eco-acc-col.hr-eco-acc-col--b { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: 1fr 1fr; column-gap: inherit; column-gap: clamp(20px, 2.6vw, 36px); align-items: start; }
}
@media (max-width: 640px) {
  .hr-eco-acc { grid-template-columns: 1fr; }
  .hr-eco-acc > .hr-eco-acc-col.hr-eco-acc-col--a, .hr-eco-acc > .hr-eco-acc-col.hr-eco-acc-col--c, .hr-eco-acc-mid .hr-eco-video { grid-column: 1; grid-row: auto; }
  .hr-eco-acc-mid .hr-eco-acc-col.hr-eco-acc-col--b { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; }
  /* phone order: image, then 1-8, 9-12, 13-20 */
  .hr-eco-acc-mid .hr-eco-video { order: -1; }
  .hr-eco-acc > .hr-eco-acc-col.hr-eco-acc-col--c { order: 2; }
  .hr-eco-acc-mid .hr-eco-acc-col.hr-eco-acc-col--b { order: 1; }
}

/* ---- ESS walkthrough: extra app flows ---- */
.ess-av .ico { font-size: 13px; }
/* selfie attendance */
.ess-selfie { display: grid; justify-items: center; gap: 8px; padding: 4px 0 2px; }
.ess-selfie-frame {
  position: relative; display: grid; place-items: center; width: 118px; height: 138px; overflow: hidden;
  border-radius: 46% 46% 42% 42%; background: linear-gradient(160deg, #efeaff, #e4f4ff);
  box-shadow: inset 0 0 0 3px #6C35FF; color: #b7a9ef; font-size: 54px;
}
.ess-phone .ess-selfie-frame .ico { font-size: 54px; }
.ess-selfie-scan { position: absolute; left: 10%; right: 10%; top: 12%; height: 3px; border-radius: 3px; background: #6C35FF; box-shadow: 0 0 10px #6C35FF; animation: essScan 2.2s ease-in-out infinite alternate; }
@keyframes essScan { to { top: 84%; } }
.is-done .ess-selfie-frame { box-shadow: inset 0 0 0 3px #3E8E2D; color: #9bd189; }
.is-done .ess-selfie-scan { opacity: 0; }
.ess-selfie small { font-size: 9.5px; color: var(--ess-muted); }
/* approvals */
.ess-count { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #f1ecff; color: #6C35FF; font-size: 10px; font-weight: 800; }
.ess-appr .ess-tick { margin-left: auto; width: 1em; height: 1em; font-size: 15px; color: #d6d2e4; transition: color .3s; }
.is-done .ess-appr .ess-tick { color: #3E8E2D; }
.is-done .ess-appr { border-color: #cfe9c6; background: #f6fbf4; }
/* reports: hours this week */
.ess-bars { padding: 10px 10px 8px; border-radius: 14px; background: #fff; border: 1px solid #ebe7fb; }
.ess-bars small { font-size: 9.5px; color: var(--ess-muted); }
.ess-bars div { display: flex; align-items: flex-end; gap: 7px; height: 70px; margin-top: 6px; }
.ess-bars i { flex: 1; height: var(--h); min-height: 3px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #8b5cf6, #6C35FF); }
.ess-bars span { display: flex; gap: 7px; margin-top: 4px; }
.ess-bars em { flex: 1; text-align: center; font-style: normal; font-size: 8.5px; color: var(--ess-muted); }

/* feature list beside the phone: 11 compact rows in two columns */
.ess-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.ess-rows .at-row { padding: 12px 0; gap: 12px; }
.ess-rows .at-row .icon-badge { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.ess-rows .at-row h3 { font-size: 14.5px; margin-bottom: 2px; }
.ess-rows .at-row p { font-size: 12.5px; line-height: 1.45; }
@media (max-width: 640px) {
  .ess-rows { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ess-selfie-scan { animation: none; }
}

/* ---- ESS: desktop web portal behind the phone ---- */
.ess-stage:has(.ess-desk) { display: flex; align-items: flex-end; justify-content: center; padding: 30px 0 20px; }
.ess-stage:has(.ess-desk) .ess-phone { margin-left: -120px; z-index: 2; }
.ess-desk {
  --ess-ink: #181632; --ess-muted: #6b6890; --ess-pri: #6C35FF;
  position: relative; z-index: 1; flex: none;
  width: 470px; margin-bottom: 58px;
  font-family: "Inter", system-ui, sans-serif; color: var(--ess-ink);
}
.ess-mon { padding: 10px; border-radius: 18px; background: linear-gradient(145deg, #2a2745, #121022); box-shadow: inset 0 0 0 2px rgba(255,255,255,.07), 0 34px 60px rgba(75,32,200,.22), 0 10px 24px rgba(17,24,39,.16); }
.ess-mon-scr { display: grid; grid-template-columns: 96px 1fr; height: 286px; overflow: hidden; border-radius: 10px; background: #f7f6fd; }
.ess-mon-neck { display: block; width: 70px; height: 34px; margin: 0 auto; background: linear-gradient(180deg, #2a2745, #3a3658); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.ess-mon-base { display: block; width: 170px; height: 10px; margin: 0 auto; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #3a3658, #1c1a30); box-shadow: 0 10px 18px rgba(17,24,39,.2); }
.ess-desk .ico { width: 1em; height: 1em; line-height: 1; }
/* sidebar */
.ess-web-side { display: flex; flex-direction: column; gap: 1px; padding: 10px 6px; background: #fff; border-right: 1px solid #ece9f6; }
.ess-web-logo { margin: 0 6px 8px; font: 800 10.5px "Plus Jakarta Sans", sans-serif; color: #6DBE45; }
.ess-web-logo b { color: #6C35FF; }
.ess-web-nav { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 7px; font-size: 8.6px; font-weight: 600; color: #6b6890; cursor: pointer; transition: background-color .3s, color .3s; }
.ess-web-nav .ico { font-size: 8.5px; color: #a39dbb; transition: color .3s; }
.ess-web-nav.is-on { background: #f1ecff; color: #5b21d6; }
.ess-web-nav.is-on .ico { color: #6C35FF; }
/* main */
.ess-web-main { display: flex; flex-direction: column; min-width: 0; }
.ess-web-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #fff; border-bottom: 1px solid #ece9f6; font-size: 9px; color: #8a84a3; }
.ess-web-top b { color: #181632; }
.ess-web-user { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; background: #f1ecff; color: #5b21d6; font-weight: 700; }
.ess-web-user .ico { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #6C35FF; color: #fff; font-size: 7px; }
.ess-web-body { display: grid; grid-template-columns: 1fr 112px; gap: 10px; padding: 10px; min-height: 0; flex: 1; }
/* the mirrored phone screen, shrunk evenly */
.ess-web-card { position: relative; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #ebe7fb; }
.ess-web-card > * { zoom: .62; }
.ess-web-card { display: flex; flex-direction: column; gap: 9px; padding: 9px 10px; }
.ess-web-card .ess-title { margin-bottom: 0; }
.ess-web-card .ess-title > .ico:first-child { display: none; }
.ess-web-card .ess-toast { position: static; opacity: 0; translate: 0 0; }
.ess-web-card.is-done .ess-toast { opacity: 1; }
.ess-web-card .ess-checkin { margin: 4px 0; }
.ess-web-tiles { display: grid; gap: 7px; align-content: start; }
.ess-web-tiles div { padding: 6px 8px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #ebe7fb; }
.ess-web-tiles small { display: block; font-size: 7.5px; color: #8a84a3; font-weight: 600; }
.ess-web-tiles b { display: block; font: 800 11px "Plus Jakarta Sans", sans-serif; }
.ess-web-tiles em { font-style: normal; font-size: 7.5px; color: #8a84a3; }
.ess-web-tiles em.g { color: #3E8E2D; } .ess-web-tiles em.o { color: #D97706; }
/* cursor */
.ess-cursor { position: absolute; left: 30%; top: 40%; z-index: 3; color: #181632; font-size: 15px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); transition: left .7s cubic-bezier(.4,0,.2,1), top .7s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.ess-cursor .ico { width: 1em; height: 1em; color: #fff; -webkit-text-stroke: 1.2px #181632; }
.ess-cursor::after { content: ""; position: absolute; left: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: rgba(108,53,255,.35); opacity: 0; }
.ess-cursor.is-click::after { animation: essClick .8s ease-out .65s; }
@keyframes essClick { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }

@media (max-width: 1200px) {
  .ess-desk { width: 420px; }
  .ess-mon-scr { height: 258px; }
}
@media (max-width: 1023px) {
  .ess-desk { width: 460px; }
}
@media (max-width: 640px) {
  /* not enough room for both devices: phone only */
  .ess-desk { display: none; }
  .ess-stage:has(.ess-desk) .ess-phone { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ess-cursor { transition: none; }
  .ess-cursor.is-click::after { animation: none; }
}
/* the phone overlaps the desktop's right side, so the portal keeps that
   strip clear and shows the mirrored screen in the space left of it */
.ess-web-body { grid-template-columns: 1fr; padding-right: 118px; }
.ess-web-card > * { zoom: .54; }
.ess-web-card { justify-content: flex-start; }
.ess-web-card .ess-cta { margin-top: auto; }
@media (max-width: 1200px) { .ess-web-body { padding-right: 112px; } }
/* smaller phone beside the desktop */
.ess-stage:has(.ess-desk) .ess-phone { zoom: .66; margin-left: -150px; }
.ess-web-body { padding-right: 96px; }
@media (max-width: 1200px) { .ess-web-body { padding-right: 92px; } }
@media (max-width: 640px) {
  .ess-stage:has(.ess-desk) .ess-phone { zoom: .8; margin-left: 0; }
}
