/* ============================================================
   Digital Jeeva360 — Design System
   Light · Clean · Professional · Brand green (#2563eb family)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f4f7fb;
  --navy: #0a1124;           /* deep ink for dark accent surfaces (footer, dashboard, CTA band) */
  --heading: #0e2836;
  --ink: #1d3643;
  --ink-dim: #4d6270;
  --ink-faint: #7d8f9a;
  --blue: #2563eb;           /* brand green (primary) */
  --blue-2: #1d4ed8;         /* deep green */
  --cyan: #0ea5e9;           /* teal (secondary) */
  --violet: #8b5cf6;         /* light green (gradient partner) */
  --violet-2: #60a5fa;
  --success: #16a34a;
  --glass: #ffffff;
  --glass-2: #f2f6fb;
  --stroke: #e3e9f1;
  --stroke-2: #d3dde9;
  --glow-blue: 0 12px 32px rgba(29, 78, 216, 0.16);
  --glow-violet: 0 12px 32px rgba(29, 78, 216, 0.12);
  --shadow-card: 0 8px 28px rgba(13, 45, 60, 0.07);
  --shadow-card-lg: 0 18px 44px rgba(13, 45, 60, 0.11);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
/* iOS Safari ignores overflow-x on body alone; clip avoids creating a scroll container */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--heading);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.25rem; color: var(--ink-dim); }
p strong, li strong { color: var(--heading); }

ul, ol { color: var(--ink-dim); padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

::selection { background: rgba(37, 99, 235, 0.25); color: var(--heading); }

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue-2); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.container-narrow { width: min(880px, 92vw); margin-inline: auto; }

.section { padding-block: var(--section-pad); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Page background wash ----------
   Static, cheap-to-paint gradients only. The old fixed, blurred,
   animated aurora layers forced huge GPU compositing surfaces and
   caused white flashes while scrolling on mobile — never again. */
.aurora {
  position: absolute; top: 0; left: 0; right: 0; height: min(100vh, 900px);
  z-index: -2; pointer-events: none;
  background:
    radial-gradient(56rem 30rem at 85% -12%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(48rem 26rem at -8% 6%, rgba(14, 165, 233, 0.08), transparent 60%);
}
.grid-noise { display: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue-2), var(--blue), var(--violet-2));
  z-index: 120; border-radius: 0 3px 3px 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--stroke);
  box-shadow: 0 6px 24px rgba(13, 45, 60, 0.06);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .site-header.scrolled { background: rgba(255, 255, 255, 0.92); }
}
.nav {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 1.5rem; padding-block: 0.7rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); white-space: nowrap;
}
.brand .mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
}
.brand .mark svg { width: 100%; height: 100%; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
  font-weight: 800; font-size: 1.02rem; letter-spacing: 0.02em;
  background: linear-gradient(92deg, #2563eb, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small {
  font-weight: 600; font-size: 0.55rem; letter-spacing: 0.42em;
  color: #3b82f6; -webkit-text-fill-color: #3b82f6; margin-top: 2px;
}

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; padding: 0;
  /* Menu sits flush in the top-right corner: auto margin pushes links + CTA right */
  margin: 0 0 0 auto;
}
.nav-links > li { margin: 0; position: relative; }
.nav-links a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 10px;
  color: var(--ink); font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue-2); background: var(--glass-2); }

.dropdown-menu {
  padding: 0.9rem; border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(13, 45, 60, 0.14);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
  list-style: none;
}
/* Desktop-only dropdown positioning — scoped so the centering transform
   can never apply on mobile, whatever the selector specificity */
@media (min-width: 1025px) {
  .dropdown-menu {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 540px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
  .dropdown-menu-compact { min-width: 280px; grid-template-columns: 1fr; }
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a { display: block; padding: 0.6rem 0.8rem; border-radius: 12px; }
.dropdown-menu a b { display: block; color: var(--heading); font-weight: 600; font-size: 0.92rem; }
.dropdown-menu a span { display: block; color: var(--ink-faint); font-size: 0.8rem; line-height: 1.4; margin-top: 2px; }
.dropdown-menu a:hover { background: var(--glass-2); }
.dropdown-menu a:hover b { color: var(--blue-2); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none; background: var(--glass-2); border: 1px solid var(--stroke);
  border-radius: 10px; padding: 0.55rem 0.7rem; cursor: pointer; color: var(--heading);
}
.nav-toggle svg { display: block; }

@media (max-width: 1024px) {
  /* nav-links is a fixed overlay (out of flex flow), so push the toggle right explicitly */
  .nav-cta { margin-left: auto; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; z-index: 99; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: #ffffff;
    border-bottom: 1px solid var(--stroke);
    box-shadow: 0 24px 48px rgba(13, 45, 60, 0.12);
    padding: 1rem 4vw 1.5rem; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
    overflow-y: auto; overflow-x: hidden;
    transform: translateY(-115%); transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .dropdown-menu,
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    position: static; transform: none; min-width: 0; width: 100%; opacity: 1; visibility: visible;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 0 0.9rem;
    grid-template-columns: 1fr; display: none;
  }
  .dropdown.open .dropdown-menu { display: grid; }
  /* Compact submenu on phones: hide long descriptions, tighten rows */
  .dropdown-menu a span { display: none; }
  .dropdown-menu a { padding: 0.7rem 0.8rem; border-left: 2px solid var(--stroke); border-radius: 0 10px 10px 0; }
  .dropdown-menu a b { font-size: 0.95rem; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.3);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.3) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(29, 78, 216, 0.4); color: #fff; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  background: #ffffff; color: var(--heading);
  border-color: var(--stroke-2);
  box-shadow: 0 4px 14px rgba(13, 45, 60, 0.05);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue-2); box-shadow: var(--glow-blue); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.88rem; }
.btn-whatsapp { background: #16a34a; color: #fff; box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28); }
.btn-whatsapp:hover { background: #15803d; color: #fff; transform: translateY(-2px); }

/* ---------- Cards ---------- */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-card-lg);
}
.card-static:hover { transform: none; }

.gradient-border { position: relative; background: #ffffff; border-radius: var(--radius); }
.gradient-border::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.55), rgba(14, 165, 233, 0.4) 45%, rgba(96, 165, 250, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.icon-chip {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, #e7f0ff, #dbe8fe);
  border: 1px solid #c3d9fb;
  color: var(--blue-2);
}
.icon-chip svg { width: 26px; height: 26px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #2563eb; margin-bottom: 1.1rem;
  padding: 0.4rem 0.95rem; border-radius: 999px;
  background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.25);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.125rem; }
.text-gradient {
  background: linear-gradient(92deg, #1d4ed8 0%, #2563eb 55%, #0ea5e9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.4rem; }
/* Grid/flex items default to min-width:auto, which lets long content force
   the track wider than the viewport — clamp it everywhere */
.grid > *, .split > *, .calc-grid > *, .footer-grid > *, .lead-form > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(4rem, 9vw, 7rem); position: relative; }
.hero-inner { text-align: center; max-width: 900px; margin-inline: auto; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); max-width: 680px; margin: 0 auto 2.2rem; color: var(--ink-dim); }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.6rem; }
.trust-badges {
  display: flex; gap: 0.65rem 1.6rem; justify-content: center; flex-wrap: wrap;
  color: var(--ink-faint); font-size: 0.9rem; font-weight: 500;
}
.trust-badges span { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-badges svg { width: 16px; height: 16px; color: var(--success); flex: none; }

.hero-page { padding-top: clamp(7.5rem, 15vh, 10rem); padding-bottom: clamp(3rem, 6vw, 5rem); }

/* Floating hero cards */
.hero-visual { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.float-card {
  position: absolute; padding: 0.85rem 1.15rem; border-radius: 16px;
  background: #ffffff; border: 1px solid var(--stroke);
  box-shadow: 0 16px 38px rgba(13, 45, 60, 0.14);
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 0.6rem; z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
.float-card b { font-family: var(--font-display); color: var(--heading); }
.float-card small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.72rem; }
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex: none; }
.fc-1 { top: -1.5rem; left: 2%; animation-delay: 0s; }
.fc-2 { top: 18%; right: 1%; animation-delay: 1.4s; }
.fc-3 { bottom: 8%; left: 5%; animation-delay: 2.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@media (max-width: 780px) { .fc-2, .fc-3 { display: none; } .fc-1 { top: -2.2rem; } }

/* ---------- Dashboard mock (kept dark on purpose — reads as a product screenshot) ---------- */
.dash {
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.11);
  --ink-faint: #8fa0b9;
  border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(170deg, #0b1730, #060b1a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 34px 80px rgba(6, 11, 26, 0.35);
}
.dash-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--stroke); }
.dash-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dash-bar i:nth-child(1) { background: #f87171; } .dash-bar i:nth-child(2) { background: #fbbf24; } .dash-bar i:nth-child(3) { background: #34d399; }
.dash-bar span { margin-left: 0.6rem; font-size: 0.78rem; color: var(--ink-faint); font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-body { padding: clamp(1.1rem, 3vw, 2rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dash-stat { background: var(--glass); border: 1px solid var(--stroke); border-radius: 14px; padding: 1rem 1.2rem; }
.dash-stat small { color: var(--ink-faint); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.dash-stat b { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: #fff; margin-top: 0.2rem; }
.dash-stat em { font-style: normal; font-size: 0.78rem; color: #4ade80; font-weight: 600; }
.dash-chart { grid-column: 1 / -1; background: var(--glass); border: 1px solid var(--stroke); border-radius: 14px; padding: 1.2rem; }
.dash-chart svg { width: 100%; height: auto; }
@media (max-width: 680px) { .dash-body { grid-template-columns: 1fr; } }

.chart-bars { display: flex; align-items: flex-end; gap: clamp(0.35rem, 1.2vw, 0.8rem); height: 150px; }
.chart-bars i {
  flex: 1; border-radius: 6px 6px 3px 3px; min-height: 6px;
  background: linear-gradient(180deg, #8b5cf6 0%, rgba(139, 92, 246, 0.2) 100%);
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 1s var(--ease);
}
.chart-bars i.alt { background: linear-gradient(180deg, #38bdf8 0%, rgba(56, 189, 248, 0.18) 100%); }
.in-view .chart-bars i { transform: scaleY(1); }
.chart-bars i:nth-child(2) { transition-delay: 0.06s; } .chart-bars i:nth-child(3) { transition-delay: 0.12s; }
.chart-bars i:nth-child(4) { transition-delay: 0.18s; } .chart-bars i:nth-child(5) { transition-delay: 0.24s; }
.chart-bars i:nth-child(6) { transition-delay: 0.3s; } .chart-bars i:nth-child(7) { transition-delay: 0.36s; }
.chart-bars i:nth-child(8) { transition-delay: 0.42s; } .chart-bars i:nth-child(9) { transition-delay: 0.48s; }
.chart-bars i:nth-child(10) { transition-delay: 0.54s; } .chart-bars i:nth-child(11) { transition-delay: 0.6s; }
.chart-bars i:nth-child(12) { transition-delay: 0.66s; }

.line-chart path.line { stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 2.2s var(--ease) 0.2s; }
.in-view .line-chart path.line { stroke-dashoffset: 0; }
.line-chart path.area { opacity: 0; transition: opacity 1.4s ease 1s; }
.in-view .line-chart path.area { opacity: 1; }

/* ---------- Stats counter band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-band { grid-template-columns: 1fr 1fr; gap: 0.8rem; } }
.stat-item { text-align: center; padding: 1.8rem 1rem; }
.stat-item b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1;
  background: linear-gradient(120deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-item span { display: block; margin-top: 0.55rem; color: var(--ink-faint); font-size: 0.88rem; font-weight: 500; }

/* ---------- Logo marquee ---------- */
.marquee { overflow: hidden; position: relative; padding-block: 1.6rem;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink-faint); white-space: nowrap; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.6rem; opacity: 0.85;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan), transparent);
}
.timeline-step { display: grid; grid-template-columns: 52px 1fr; gap: 1.3rem; align-items: start; }
.timeline-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--blue-2), var(--cyan));
  box-shadow: var(--glow-blue); position: relative; z-index: 1;
}
.timeline-step h3 { margin-bottom: 0.4rem; }
.timeline-step p { margin-bottom: 0; }

/* ---------- Before / After compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: 1.9rem; border-radius: var(--radius); }
.compare-before { background: #fdf3f3; border: 1px solid #f2cdcd; }
.compare-after { background: #eef5ff; border: 1px solid #bfd8f8; }
.compare-col h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; }
.compare-col ul { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.compare-col li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.85rem; font-size: 0.98rem; }
.compare-col li svg { width: 19px; height: 19px; flex: none; margin-top: 4px; }
.compare-before li svg { color: #dc2626; }
.compare-after li svg { color: var(--success); }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.9rem; color: var(--ink-dim); }
.check-list li svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 4px; }
.check-list li b { color: var(--heading); }

/* ---------- Calculator ---------- */
.calc { padding: clamp(1.5rem, 4vw, 3rem); }
.calc-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: start; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-control { margin-bottom: 2rem; }
.calc-control label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--heading); margin-bottom: 0.8rem; font-size: 0.98rem; }
.calc-control output {
  font-family: var(--font-display); font-weight: 700; color: var(--blue-2); font-size: 1.15rem;
  background: rgba(37, 99, 235, 0.09); border: 1px solid rgba(37, 99, 235, 0.28);
  padding: 0.15rem 0.8rem; border-radius: 8px;
}
input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue) var(--fill, 30%), #dde4ee var(--fill, 30%));
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 4px solid var(--blue-2);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.18), 0 4px 12px rgba(13, 45, 60, 0.18);
  transition: transform 0.2s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-2);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.18);
}
.calc-results { display: grid; gap: 1rem; }
.calc-stat {
  padding: 1.25rem 1.5rem; border-radius: 16px;
  background: #f8fafd; border: 1px solid var(--stroke);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.calc-stat span { color: var(--ink-dim); font-size: 0.92rem; font-weight: 500; }
.calc-stat b { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--heading); white-space: nowrap; }
.calc-stat.hero-stat {
  background: linear-gradient(135deg, #e0edff, #dbeafe);
  border-color: #b9d0f0;
  box-shadow: var(--glow-violet);
}
.calc-stat.hero-stat b {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  background: linear-gradient(100deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 1rem; }

/* ---------- Testimonials ---------- */
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.6s var(--ease); }
.slide { flex: 0 0 100%; padding: 0.25rem; }
.testimonial { max-width: 780px; margin-inline: auto; text-align: center; padding: clamp(1.8rem, 4vw, 3rem); }
.testimonial blockquote { margin: 0 0 1.5rem; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; color: var(--ink); font-weight: 450; }
.testimonial .stars { color: #f59e0b; letter-spacing: 0.2em; margin-bottom: 1.2rem; font-size: 1.05rem; }
.testimonial cite { font-style: normal; }
.testimonial cite b { display: block; font-family: var(--font-display); color: var(--heading); }
.testimonial cite span { color: var(--ink-faint); font-size: 0.88rem; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 0.9rem;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--cyan));
  border: 2px solid rgba(13, 45, 60, 0.08);
}
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dots button {
  width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: #d3dce9; transition: all 0.3s var(--ease);
}
.slider-dots button.active { width: 26px; background: linear-gradient(90deg, var(--blue-2), var(--blue)); }
.slider-arrow {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #ffffff; border: 1px solid var(--stroke-2); color: var(--ink);
  transition: all 0.25s var(--ease);
}
.slider-arrow:hover { border-color: var(--blue); color: var(--blue-2); box-shadow: var(--glow-blue); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  border: 1px solid var(--stroke); border-radius: 16px;
  background: #ffffff; overflow: hidden;
  box-shadow: 0 4px 16px rgba(13, 45, 60, 0.04);
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(37, 99, 235, 0.45); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.5rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; color: var(--heading); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--blue-2);
  transition: transform 0.3s var(--ease); flex: none; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.5rem 1.3rem; color: var(--ink-dim); }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.lead-form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .lead-form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--heading); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1.05rem; border-radius: 12px;
  background: #fbfcfe; border: 1px solid var(--stroke-2);
  color: var(--heading); font-family: var(--font-body); font-size: 0.97rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237d8f9a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field select option { background: #ffffff; color: var(--heading); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); background: #ffffff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { grid-column: 1 / -1; font-size: 0.82rem; color: var(--ink-faint); display: flex; gap: 0.5rem; align-items: center; }
.form-note svg { width: 15px; height: 15px; flex: none; color: var(--success); }
.form-success { display: none; text-align: center; padding: 3rem 1.5rem; }
.form-success.show { display: block; }
.form-success .tick {
  width: 72px; height: 72px; margin: 0 auto 1.4rem; border-radius: 50%;
  display: grid; place-items: center; background: #e5f8ef;
  border: 1px solid #a7e3c6; color: var(--success);
}

/* ---------- Case studies / portfolio ---------- */
.case-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.case-visual {
  position: relative; aspect-ratio: 16 / 9.4; overflow: hidden;
  border-bottom: 1px solid var(--stroke);
  display: grid; place-items: center;
  background: linear-gradient(170deg, #0b1730, #060b1a);
}
.case-visual svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.case-card:hover .case-visual svg { transform: scale(1.045); }
.case-body { padding: 1.7rem; display: flex; flex-direction: column; flex: 1; }
.case-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.pill {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.28rem 0.75rem; border-radius: 999px;
  background: rgba(37, 99, 235, 0.1); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.3);
}
.pill.violet { background: rgba(14, 165, 233, 0.09); color: #0369a1; border-color: rgba(14, 165, 233, 0.3); }
.pill.green { background: rgba(22, 163, 74, 0.09); color: #15803d; border-color: rgba(22, 163, 74, 0.3); }
.case-metrics { display: flex; gap: 1.6rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--stroke); }
.case-metrics div b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--heading); }
.case-metrics div span { font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- Blog ---------- */
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-cover { aspect-ratio: 16/8.5; border-bottom: 1px solid var(--stroke); display: grid; place-items: center; position: relative; overflow: hidden; background: #f2f6fb; }
.blog-cover svg { width: 100%; height: 100%; }
.blog-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 0.9rem; align-items: center; font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 0.8rem; }
.blog-body h3 { font-size: 1.18rem; line-height: 1.35; }
.blog-body h3 a { color: var(--heading); }
.blog-body h3 a:hover { color: var(--blue-2); }
.blog-body .excerpt { font-size: 0.94rem; flex: 1; }
.read-more { font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.read-more svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.read-more:hover svg { transform: translateX(4px); }

.article { font-size: 1.08rem; }
.article h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 2.8rem; }
.article h3 { margin-top: 2rem; }
.article img { border-radius: var(--radius); }
.article blockquote {
  margin: 2rem 0; padding: 1.4rem 1.8rem; border-left: 3px solid var(--blue);
  background: #f4f7fb; border-radius: 0 14px 14px 0; color: var(--ink); font-weight: 500;
}
.author-card { display: flex; gap: 1.2rem; align-items: center; }
.author-card .avatar { margin: 0; width: 64px; height: 64px; font-size: 1.15rem; }
.author-card b { font-family: var(--font-display); color: var(--heading); display: block; }
.author-card span { color: var(--ink-faint); font-size: 0.88rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.84rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; gap: 0.35rem; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-faint); opacity: 0.5; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--blue-2); }
.breadcrumbs [aria-current] { color: var(--ink-dim); }

/* ---------- CTA band (dark emerald accent block) ---------- */
.cta-band {
  position: relative; text-align: center; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(48rem 22rem at 50% -30%, rgba(139, 92, 246, 0.3), transparent 70%),
    linear-gradient(160deg, #0b1730, #060b1a);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 30px 70px rgba(6, 11, 26, 0.3);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fff; }
.cta-band p { max-width: 620px; margin-inline: auto; font-size: 1.1rem; color: #b6c6dd; }
.cta-band .eyebrow { color: #93c5fd; background: rgba(147, 197, 253, 0.1); border-color: rgba(147, 197, 253, 0.3); }
.cta-band .eyebrow::before { background: #93c5fd; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.cta-band .btn-ghost:hover { border-color: #93c5fd; color: #fff; }
.cta-band .hero-ctas { margin-bottom: 0; margin-top: 2rem; }

/* ---------- Guarantee ---------- */
.guarantee { display: flex; gap: 1.6rem; align-items: flex-start; }
.guarantee .icon-chip { margin: 0; width: 62px; height: 62px; }
@media (max-width: 600px) { .guarantee { flex-direction: column; } }

/* ---------- Footer (dark anchor) ---------- */
.site-footer {
  margin-top: var(--section-pad);
  background: var(--navy);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #7f97a1; margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: #b4c6cd; font-size: 0.94rem; }
.footer-grid a:hover { color: #ffffff; }
.footer-brand p { font-size: 0.94rem; max-width: 34ch; color: #9db3bb; }
.brand-footer { margin-bottom: 0.9rem; }
.brand-footer .mark { width: 54px; height: 54px; background: #ffffff; border-radius: 14px; padding: 5px; }
.brand-footer .brand-text { font-size: 1.12rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.13); color: #b4c6cd;
  transition: all 0.25s var(--ease);
}
.footer-social a:hover { color: #fff; border-color: var(--blue); box-shadow: var(--glow-blue); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.newsletter { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.newsletter input {
  flex: 1; min-width: 0; padding: 0.7rem 1rem; border-radius: 11px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: 0.9rem;
}
.newsletter input::placeholder { color: #8ba2ab; }
.newsletter input:focus { outline: none; border-color: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.6rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.84rem; color: #7f97a1;
}
.footer-bottom a { color: #7f97a1; }
.footer-bottom a:hover { color: #d7e3e7; }
.footer-legal { display: flex; gap: 1.4rem; }
.site-footer .form-success { padding: 1rem 0; text-align: left; }
.site-footer .form-success p { color: #b4c6cd; }

/* ---------- Floating action buttons ---------- */
.fab-stack { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90; display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-end; }
.fab {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; border: 0; color: #fff; position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab svg { width: 27px; height: 27px; }
.fab-whatsapp { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35); }
.fab-chat { background: linear-gradient(135deg, var(--blue-2), var(--cyan)); box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35); }
.fab-chat::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.5); animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Chatbot ---------- */
.chatbot {
  position: fixed; right: 1.3rem; bottom: 9.5rem; z-index: 95;
  width: min(390px, calc(100vw - 2rem)); height: min(600px, calc(100dvh - 11rem));
  border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--stroke);
  box-shadow: 0 34px 90px rgba(13, 45, 60, 0.24);
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.chatbot.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chatbot-head {
  padding: 1.05rem 1.25rem; display: flex; align-items: center; gap: 0.85rem;
  background: linear-gradient(135deg, #e5efff, #dbeafe);
  border-bottom: 1px solid var(--stroke);
}
.chatbot-head .bot-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--blue-2), var(--cyan)); color: #fff;
}
.chatbot-head b { font-family: var(--font-display); color: var(--heading); display: block; font-size: 0.98rem; }
.chatbot-head small { color: #0c8a5c; font-size: 0.76rem; display: flex; align-items: center; gap: 0.35rem; }
.chatbot-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.chatbot-close { margin-left: auto; background: none; border: 0; color: var(--ink-faint); cursor: pointer; padding: 0.4rem; border-radius: 8px; }
.chatbot-close:hover { color: var(--heading); background: rgba(13, 45, 60, 0.06); }
.chatbot-log { flex: 1; overflow-y: auto; padding: 1.15rem; display: flex; flex-direction: column; gap: 0.75rem; scroll-behavior: smooth; }
.msg { max-width: 85%; padding: 0.75rem 1rem; border-radius: 16px; font-size: 0.92rem; line-height: 1.55; animation: msg-in 0.3s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-bot { align-self: flex-start; background: #f2f6fa; border: 1px solid var(--stroke); color: var(--ink); border-bottom-left-radius: 5px; }
.msg-bot a { color: var(--blue-2); font-weight: 600; }
.msg-user { align-self: flex-end; background: linear-gradient(135deg, var(--blue-2), var(--cyan)); color: #fff; border-bottom-right-radius: 5px; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 0.45rem; align-self: flex-start; max-width: 95%; }
.quick-replies button {
  padding: 0.42rem 0.9rem; border-radius: 999px; cursor: pointer; font-size: 0.82rem; font-weight: 600;
  background: rgba(37, 99, 235, 0.09); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
}
.quick-replies button:hover { background: var(--blue-2); color: #fff; }
.typing { display: inline-flex; gap: 4px; padding: 0.9rem 1.1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.18s; } .typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 70%, 100% { opacity: 0.25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
.chatbot-input { display: flex; gap: 0.6rem; padding: 0.9rem; border-top: 1px solid var(--stroke); }
.chatbot-input input {
  flex: 1; min-width: 0; padding: 0.75rem 1rem; border-radius: 12px;
  background: #fbfcfe; border: 1px solid var(--stroke-2); color: var(--heading); font-size: 0.93rem;
}
.chatbot-input input:focus { outline: none; border-color: var(--blue); }
.chatbot-input button {
  width: 46px; height: 46px; flex: none; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-2), var(--cyan)); color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.chatbot-input button:hover { transform: scale(1.06); box-shadow: var(--glow-blue); }

/* ---------- Exit intent popup ---------- */
.exit-popup {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1.2rem;
  background: rgba(6, 11, 26, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.exit-popup.show { opacity: 1; visibility: visible; }
.exit-popup-card {
  max-width: 520px; width: 100%; padding: clamp(1.8rem, 5vw, 2.8rem); text-align: center; position: relative;
  transform: translateY(20px) scale(0.97); transition: transform 0.4s var(--ease);
}
.exit-popup.show .exit-popup-card { transform: none; }
.exit-close { position: absolute; top: 1rem; right: 1rem; background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-faint); cursor: pointer; }
.exit-close:hover { color: var(--heading); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 85; display: none;
  padding: 0.8rem 4vw calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--stroke);
  box-shadow: 0 -8px 24px rgba(13, 45, 60, 0.08);
  transform: translateY(110%); transition: transform 0.4s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 680px) {
  .sticky-cta { display: block; }
  .fab-stack { bottom: 5.4rem; }
  .chatbot { bottom: 5.6rem; height: min(560px, calc(100dvh - 7rem)); }
}

/* ---------- Reveal animations ----------
   Hidden state only applies when JS is running (html.js), so content can
   never be stuck invisible if a script fails — fixes blank areas on scroll */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(34px); }
html.js .reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; } .reveal-d4 { transition-delay: 0.4s; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--stroke); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; background: #fff; }
th, td { text-align: left; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--stroke); }
th { background: #f2f6fb; font-family: var(--font-display); color: var(--heading); font-size: 0.85rem; letter-spacing: 0.04em; }
td { color: var(--ink-dim); }
tr:last-child td { border-bottom: 0; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tool-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem; border-radius: 999px;
  background: #ffffff; border: 1px solid var(--stroke-2); font-size: 0.9rem; font-weight: 600; color: var(--ink);
  box-shadow: 0 3px 10px rgba(13, 45, 60, 0.04);
}
.tool-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); }

.err-404 { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; line-height: 1; margin-bottom: 1rem;
  background: linear-gradient(120deg, #1d4ed8, #2563eb, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Small-screen refinements (414 / 390 / 375 / 320) ---------- */
@media (max-width: 768px) {
  .split { gap: 2rem; }
  .section-head { margin-bottom: 2.25rem; }
}
@media (max-width: 430px) {
  /* Guaranteed 16px side padding on phones (375/390/414) */
  .container, .container-narrow { width: calc(100% - 32px); }
  .hero-ctas .btn { width: 100%; }
  .glass-card { padding: 1.5rem; }
  .calc { padding: 1.4rem; }
  .compare-col { padding: 1.4rem; }
  .testimonial { padding: 1.6rem 1.2rem; }
  .cta-band { padding: 2.5rem 1.4rem; border-radius: 20px; }
  .case-metrics { gap: 1rem; flex-wrap: wrap; }
  .dash-body { padding: 1rem; }
  .timeline-step { grid-template-columns: 44px 1fr; gap: 1rem; }
  .timeline-num { width: 44px; height: 44px; font-size: 0.95rem; }
  .timeline::before { left: 21px; }
}
@media (max-width: 360px) {
  html { font-size: 15px; }
  .trust-badges { gap: 0.5rem 1rem; font-size: 0.84rem; }
  .brand-text { font-size: 0.9rem; }
}
@media (max-width: 320px) {
  html { font-size: 14px; }
  .stats-band { grid-template-columns: 1fr; }
  .eyebrow { letter-spacing: 0.09em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .chart-bars i { transform: scaleY(1); }
  .line-chart path.line { stroke-dashoffset: 0; }
}

/* ---------- Print ---------- */
@media print {
  .aurora, .grid-noise, .fab-stack, .chatbot, .sticky-cta, .scroll-progress, .site-header { display: none; }
  body { background: #fff; color: #000; }
}
