/* ============================================================
   Payrovia — Global Payroll & HR
   Design system v2 — sophisticated, mature, conversion-focused
   ============================================================ */

@import url("https://cdn.jsdelivr.net/npm/flag-icons@7.2.3/css/flag-icons.min.css");

:root {
  --slate-950: #060a14;
  --slate-925: #0a0f1f;
  --slate-900: #0f172a;
  --slate-850: #15203a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-150: #ebeff5;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --accent: #0ea5e9;
  --accent-deep: #0284c7;
  --accent-teal: #14b8a6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --font-sans:
    "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono:
    "Fragment Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
    Consolas, monospace;

  --container: 1200px;
  --container-wide: 1320px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.22);
  --shadow-xl: 0 50px 100px -30px rgba(15, 23, 42, 0.32);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-premium: cubic-bezier(0.21, 0.92, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "tnum";
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
::selection {
  background: var(--slate-900);
  color: var(--white);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--slate-900);
}
h1 {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.04em;
}
h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  letter-spacing: -0.025em;
}
h4 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
p {
  margin: 0 0 1em;
  color: var(--slate-600);
}
.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide {
  max-width: var(--container-wide);
}
.container--narrow {
  max-width: 900px;
}

/* ---------- Top promo bar ---------- */
.promo {
  background: var(--slate-950);
  color: var(--slate-200);
  font-size: 13px;
  padding: 9px 24px;
  text-align: center;
  letter-spacing: -0.005em;
}
.promo a {
  color: var(--accent-teal);
  font-weight: 600;
}
.promo a:hover {
  color: var(--white);
}
.promo .pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(20, 184, 166, 0.18);
  color: var(--accent-teal);
  border-radius: 100px;
  margin-right: 10px;
  text-transform: uppercase;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--slate-200);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__brand img {
  height: 28px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s var(--ease-out);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav__link:hover {
  color: var(--slate-900);
  background: var(--slate-100);
}
.nav__link svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.25s var(--ease-out);
}
.nav__item {
  position: relative;
}
.nav__item:hover .nav__link svg {
  transform: rotate(180deg);
}

/* Mega menu */
.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  width: 720px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
  z-index: 100;
}
.nav__item:hover .megamenu,
.nav__item:focus-within .megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 4px);
}
.megamenu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.megamenu__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s var(--ease-out);
}
.megamenu__item:hover {
  background: var(--slate-50);
}
.megamenu__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-900);
  color: var(--white);
  border-radius: 8px;
  flex-shrink: 0;
}
.megamenu__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.megamenu__desc {
  font-size: 12px;
  color: var(--slate-500);
  line-height: 1.5;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--slate-900);
  transition:
    transform 0.3s var(--ease-out),
    top 0.3s var(--ease-out),
    opacity 0.3s var(--ease-out);
}
.nav__toggle span:nth-child(1) {
  top: 14px;
}
.nav__toggle span:nth-child(2) {
  top: 19px;
}
.nav__toggle span:nth-child(3) {
  top: 24px;
}
.nav.is-open .nav__toggle span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .megamenu {
    display: none;
  }
}
@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }
  .nav__links,
  .nav__cta .btn--text {
    display: none;
  }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 12px 0 24px;
    border-bottom: 1px solid var(--slate-200);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.is-open .nav__link {
    padding: 14px 24px;
    font-size: 17px;
    border-radius: 0;
    width: 100%;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--slate-900);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--slate-900);
  color: var(--white);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn--primary:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.45);
}

/* Signup button matching the Payrovia logo teal underline (#1ACEA0) */
.btn--signup {
  background: #1ACEA0;
  color: #031C41;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s var(--ease-out);
}
.btn--signup:hover {
  background: #15b38a;
  color: #031C41;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(3, 28, 65, 0.35);
}
.btn--secondary {
  border-color: var(--slate-300);
  color: var(--slate-900);
  background: var(--white);
}
.btn--secondary:hover {
  border-color: var(--slate-900);
  background: var(--slate-50);
}
.btn--ghost {
  color: var(--slate-700);
}
.btn--ghost:hover {
  background: var(--slate-100);
}

/* Distinctive vertical switcher pills for the Flex console (tier-1 micro detail) */
.flex-vertical-pills {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.flex-vertical-pill {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  white-space: nowrap;
}

.flex-vertical-pill:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.flex-vertical-pill.is-active {
  background: #1ACEA0;
  color: #031C41;
  font-weight: 600;
  box-shadow: 0 2px 8px -2px rgba(26, 206, 160, 0.4);
}
.btn--text {
  padding: 8px 0;
  color: var(--slate-600);
}
.btn--text:hover {
  color: var(--slate-900);
}
.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(14, 165, 233, 0.06),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(20, 184, 166, 0.05),
      transparent 40%
    );
}

/* Animated aurora gradient — Linear/Vercel style depth */
.hero__aurora {
  position: absolute;
  inset: -10% -5%;
  z-index: -2;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
  overflow: hidden;
}
.hero__aurora::before,
.hero__aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero__aurora::before {
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.4) 0%,
    rgba(14, 165, 233, 0) 60%
  );
  top: -25%;
  left: -10%;
  animation: auroraDrift1 20s ease-in-out infinite alternate;
}
.hero__aurora::after {
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.38) 0%,
    rgba(20, 184, 166, 0) 60%
  );
  top: -5%;
  right: -15%;
  animation: auroraDrift2 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(12%, 8%) scale(1.18);
  }
}
@keyframes auroraDrift2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-10%, 6%) scale(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__aurora::before,
  .hero__aurora::after {
    animation: none;
  }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 30%,
    black 30%,
    transparent 80%
  );
  z-index: -1;
}
.hero__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* Brand-worthy status badge (replaces the old eyebrow pill) */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 100px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(14, 165, 233, 0.06);
  margin-bottom: 32px;
  text-decoration: none;
  transition: all 200ms var(--ease-out);
}
.hero__badge:hover {
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 20px rgba(20, 184, 166, 0.12);
  transform: translateY(-1px);
}
.hero__badge-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}
.hero__badge-dot::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.5);
  animation: badgePing 2.2s ease-out infinite;
}
@keyframes badgePing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.hero__badge-label {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 9.5px;
  color: var(--accent-emerald);
}
.hero__badge-text {
  color: var(--slate-700);
}
.hero__badge-arrow {
  color: var(--slate-400);
  font-size: 14px;
  transition: transform 200ms var(--ease-out);
}
.hero__badge:hover .hero__badge-arrow {
  transform: translateX(3px);
  color: var(--accent-teal);
}

/* Legacy .hero__eyebrow kept for sub-pages still using it */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero__eyebrow .arrow {
  padding: 4px 10px;
  background: var(--slate-100);
  border-radius: 100px;
  color: var(--slate-600);
  font-size: 11px;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(180deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--slate-600);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--slate-500);
  font-feature-settings: "tnum";
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.hero__meta svg {
  color: var(--accent-emerald);
}

/* Floating flag-chip strip — visual "15 markets" proof */
.hero__flagstrip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.6);
}
.hero__flagchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 14px rgba(14, 165, 233, 0.04);
  transition:
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
  animation: flagFloat 6s ease-in-out infinite;
}
.hero__flagchip .fi {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.hero__flagchip:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.06),
    0 12px 28px rgba(20, 184, 166, 0.18);
}
/* Stagger animation so chips drift independently */
.hero__flagchip:nth-child(1) {
  animation-delay: 0s;
}
.hero__flagchip:nth-child(2) {
  animation-delay: -0.5s;
}
.hero__flagchip:nth-child(3) {
  animation-delay: -1s;
}
.hero__flagchip:nth-child(4) {
  animation-delay: -1.5s;
}
.hero__flagchip:nth-child(5) {
  animation-delay: -2s;
}
.hero__flagchip:nth-child(6) {
  animation-delay: -2.5s;
}
.hero__flagchip:nth-child(7) {
  animation-delay: -3s;
}
.hero__flagchip:nth-child(8) {
  animation-delay: -3.5s;
}
.hero__flagchip:nth-child(9) {
  animation-delay: -4s;
}
.hero__flagchip:nth-child(10) {
  animation-delay: -4.5s;
}
.hero__flagchip:nth-child(11) {
  animation-delay: -5s;
}
.hero__flagchip:nth-child(12) {
  animation-delay: -5.5s;
}
.hero__flagchip:nth-child(13) {
  animation-delay: -2.2s;
}
.hero__flagchip:nth-child(14) {
  animation-delay: -3.7s;
}
.hero__flagchip:nth-child(15) {
  animation-delay: -4.8s;
}

/* Intentional stylistic contrast (per review c68dcf24 Issue 10):
   Playful staggered flagFloat + map pinPulse provide "delightful proof" warmth
   and live-system energy. These are deliberately distinct from the sober
   "technical catalog / precision instrument" language used on country cards,
   .integration-hub, industries, and plans. Do not "catalog-ify" without strong
   product direction. */
@keyframes flagFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__flagchip {
    animation: none;
  }
}
@media (max-width: 600px) {
  .hero__flagchip {
    width: 36px;
    height: 36px;
  }
  .hero__flagchip .fi {
    width: 20px;
    height: 15px;
  }
  .hero__flagstrip {
    gap: 6px;
    margin-top: 40px;
  }
}

/* ---------- Interactive map ---------- */
.map-section {
  position: relative;
  padding: 30px 0 100px;
  overflow: hidden;
}
.map-wrap {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.map-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.map-card.ledger {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.01) 1px, transparent 1px);
  background-size: 22px 24px;
}
.map-card__header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--slate-150);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.map-card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.map-card__title small {
  color: var(--slate-500);
  font-weight: 500;
  margin-left: 8px;
}
.map-card__legend {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--slate-500);
}
.map-card__legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.map-card__body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  min-height: 540px;
}
@media (max-width: 960px) {
  .map-card__body {
    grid-template-columns: 1fr;
  }
}

.map-area {
  position: relative;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(14, 165, 233, 0.04),
      transparent 65%
    ),
    var(--slate-50);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-svg {
  width: 100%;
  height: auto;
  max-height: 520px;
}

.continent {
  fill: var(--slate-200);
  transition: fill 0.3s var(--ease-out);
}

.country-pin {
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}
.country-pin:hover {
  transform: scale(1.18);
}
.country-pin__ring {
  fill: none;
  stroke: var(--accent-teal);
  stroke-width: 1.25;
  opacity: 0;
  animation: pinPulse 2.4s ease-out infinite;
}
.country-pin__dot {
  fill: var(--white);
  stroke: var(--slate-900);
  stroke-width: 2;
  transition:
    fill 0.2s var(--ease-out),
    stroke 0.2s var(--ease-out);
}
.country-pin:hover .country-pin__dot,
.country-pin.is-active .country-pin__dot {
  fill: var(--accent-teal);
  stroke: var(--accent-teal);
  stroke-width: 2.25;
}
.country-pin.is-active .country-pin__ring {
  opacity: 1;
}
.country-pin__label {
  font: 700 10px/1 var(--font-mono);
  fill: var(--slate-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.country-pin.is-active .country-pin__label {
  fill: var(--slate-900);
  font-weight: 700;
  letter-spacing: 0.04em;
}

@keyframes pinPulse {
  0% {
    r: 6;
    opacity: 0.8;
  }
  100% {
    r: 18;
    opacity: 0;
  }
}

.map-detail {
  padding: 28px;
  border-left: 1px solid var(--slate-150);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
}
@media (max-width: 960px) {
  .map-detail {
    border-left: none;
    border-top: 1px solid var(--slate-150);
  }
}
.map-detail__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.map-detail__name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.map-detail__currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.map-detail__sub {
  color: var(--slate-500);
  font-size: 14px;
  margin: 4px 0 0;
}
.map-detail__block {
  padding-top: 4px;
}
.map-detail__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 10px;
}
.map-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.map-detail__tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: 100px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.map-detail__capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.map-detail__cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-700);
  font-weight: 500;
}
.map-detail__cap svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}
.map-detail__cap.is-off {
  color: var(--slate-400);
}
.map-detail__cap.is-off svg {
  color: var(--slate-300);
}
.map-detail__footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--slate-150);
  font-size: 12px;
  color: var(--slate-500);
}
.map-detail__footer strong {
  color: var(--slate-900);
}

/* ---------- Section base ---------- */
.section {
  padding: 110px 0;
}
.section--alt {
  background: var(--slate-50);
}
.section--dark {
  background: var(--slate-900);
  color: var(--slate-100);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}
.section--dark p {
  color: var(--slate-400);
}
.section__head {
  max-width: 780px;
  margin: 0 auto 70px;
  text-align: center;
}
.section__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.section--dark .section__eyebrow {
  color: var(--accent-teal);
}
.section__lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--slate-600);
}
.section--dark .section__lead {
  color: var(--slate-400);
}

/* ---------- Logo bar ---------- */
.logo-bar {
  padding: 50px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
}
.logo-bar__label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 28px;
}
.logo-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 32px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo-bar__item {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--slate-400);
  text-align: center;
  transition: color 0.25s var(--ease-out);
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.logo-bar__item:hover {
  color: var(--slate-700);
}
.logo-bar__item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 30px 0;
  background: var(--slate-950);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: marquee 60s linear infinite;
}
.marquee__item {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate-500);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
}
.marquee__item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--slate-700);
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.stat {
  padding: 50px 28px;
  text-align: center;
  border-right: 1px solid var(--slate-200);
}
.stat:last-child {
  border-right: none;
}
.stat__num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #0f172a, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
}
@media (max-width: 720px) {
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
  }
  .stat:last-child {
    border-bottom: none;
  }
}

/* ---------- Tabs ---------- */
.tabs {
  background: var(--slate-50);
  border-radius: var(--radius-2xl);
  padding: 14px;
  border: 1px solid var(--slate-200);
}
.tabs__nav {
  display: flex;
  gap: 6px;
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow-x: auto;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar {
  display: none;
}
.tabs__btn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  background: transparent;
  color: var(--slate-500);
  border-radius: 8px;
  transition: all 0.2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tabs__btn:hover {
  color: var(--slate-900);
  background: var(--slate-50);
}
.tabs__btn.is-active {
  background: var(--slate-900);
  color: var(--white);
}
.tabs__btn .ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tabs__panel {
  display: none;
  padding: 36px;
}
.tabs__panel.is-active {
  display: block;
  animation: panelFade 0.4s var(--ease-out);
}
@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tabs__panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .tabs__panel-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tabs__panel {
    padding: 24px;
  }
}
.tabs__panel h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}
.tabs__panel .split__lead {
  font-size: 17px;
  margin-bottom: 22px;
}

/* ============================================================
   COMMAND LEDGER TABS (homepage #product only)
   Closes the visual seam with #flex terminal + industry ledgers.
   Steel-plate dark surface, Fragment Mono data, green live accents,
   ECG rules, registration marks, terminal-grade mocks.
   Applied via .tabs--command modifier on main index.html
   ============================================================ */
.tabs--command {
  background: #030509;
  border: 1px solid rgba(255, 95, 31, 0.12);
  border-radius: 14px;
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 12px;
  margin-top: 4px;
}

/* Distinctive command header label above the ledger tabs (closes seam) */
.command-ledger__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-left: 4px;
}
.command-ledger__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #475569;
  background: rgba(255, 95, 31, 0.06);
  border: 1px solid rgba(255, 95, 31, 0.12);
  padding: 3px 10px 2px;
  border-radius: 999px;
  white-space: nowrap;
}
.command-ledger__label::before {
  content: '●';
  color: #1ACEA0;
  margin-right: 6px;
  font-size: 8px;
  vertical-align: middle;
}
.tabs--command .tabs__nav {
  background: #0a0f1f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 4px;
  gap: 3px;
  margin-bottom: 10px;
}
.tabs--command .tabs__btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  color: #64748b;
  transition: all 0.15s var(--ease-out);
}
.tabs--command .tabs__btn:hover {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
}
.tabs--command .tabs__btn.is-active {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}
.tabs--command .tabs__btn.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: #1ACEA0;
  box-shadow: 0 0 8px rgba(26, 206, 160, 0.5);
  border-radius: 2px;
}
/* Live status pip on the active command tab */
.tabs--command .tabs__btn.is-active::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #1ACEA0;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 2px rgba(26, 206, 160, 0.25);
  vertical-align: middle;
}

.tabs--command .tabs__panel {
  padding: 26px 28px 22px;
  background: transparent;
  color: #e2e8f0;
}
.tabs--command .tabs__panel h3 {
  color: #f1f5f9;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  letter-spacing: -0.01em;
}
.tabs--command .tabs__panel .split__lead {
  color: #94a3b8;
  font-size: 16px;
}

/* Ledger-style lists inside command panels */
.tabs--command .split__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.tabs--command .split__list li {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 14.2px;
  color: #cbd5e1;
  border-left: 1px solid rgba(26, 206, 160, 0.35);
  transition: all 0.2s var(--ease-out);
}
.tabs--command .split__list li:hover {
  color: #f1f5f9;
  border-left-color: #1ACEA0;
  padding-left: 18px;
}

/* ECG / scan rule */
.tabs--command .ledger-rule {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(20, 184, 166, 0.35),
    transparent
  );
  margin: 18px 0 16px;
}

/* Command-grade mocks — dark terminal readouts */
.tabs--command .mock {
  background: #05070f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  padding: 18px 18px 14px;
}
.tabs--command .mock__bar span {
  background: rgba(255, 255, 255, 0.15);
}
.tabs--command .mock__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tabs--command .mock__row {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.tabs--command .mock__row .name {
  color: #f1f5f9;
  font-weight: 600;
}
.tabs--command .mock__row .sub {
  color: #64748b;
}
.tabs--command .mock__row .amount {
  font-family: var(--font-mono);
  color: #1ACEA0;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tabs--command .mock__pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  background: rgba(26, 206, 160, 0.12);
  color: #1ACEA0;
  border: 1px solid rgba(26, 206, 160, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
}

/* Obsessive tab-switch stagger for command panels (tier-1 detail)
   Auto-animates natural content (grid + lists) on every tab activation.
   Feels like loading a fresh mission view in the ledger.
*/
.tabs--command .tabs__panel.is-active .tabs__panel-grid > div,
.tabs--command .tabs__panel.is-active .split__list li {
  animation: ledgerItemIn 0.5s var(--ease-premium) both;
}
.tabs--command .tabs__panel.is-active .tabs__panel-grid > div:nth-child(1) { animation-delay: 0.02s; }
.tabs--command .tabs__panel.is-active .tabs__panel-grid > div:nth-child(2) { animation-delay: 0.08s; }
.tabs--command .tabs__panel.is-active .split__list li:nth-child(1) { animation-delay: 0.05s; }
.tabs--command .tabs__panel.is-active .split__list li:nth-child(2) { animation-delay: 0.09s; }
.tabs--command .tabs__panel.is-active .split__list li:nth-child(3) { animation-delay: 0.13s; }
.tabs--command .tabs__panel.is-active .split__list li:nth-child(4) { animation-delay: 0.17s; }
.tabs--command .tabs__panel.is-active .split__list li:nth-child(5) { animation-delay: 0.21s; }
.tabs--command .tabs__panel.is-active .split__list li:nth-child(6) { animation-delay: 0.25s; }
.tabs--command .tabs__panel.is-active .split__list li:nth-child(7) { animation-delay: 0.29s; }
.tabs--command .tabs__panel.is-active .split__list li:nth-child(8) { animation-delay: 0.33s; }

@keyframes ledgerItemIn {
  from {
    opacity: 0;
    transform: translateY(11px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabs--command .tabs__btn.is-active::after,
  .tabs--command .tabs__btn.is-active::before,
  .tabs--command .split__list li,
  .tabs--command .tabs__panel.is-active .tabs__panel-grid > div,
  .tabs--command .tabs__panel.is-active .split__list li {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
}

/* ---------- Features full grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--white);
  padding: 36px 30px;
  transition: background 0.3s var(--ease-out);
}
.feature:hover {
  background: var(--slate-50);
}
.feature__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-out);
}
.feature:hover .feature__icon {
  transform: rotate(-6deg) scale(1.06);
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.feature p {
  font-size: 14.5px;
  margin: 0;
  line-height: 1.65;
  color: var(--slate-600);
}

/* ---------- Split (two col) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split--reverse > :first-child {
  order: 2;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split--reverse > :first-child {
    order: 0;
  }
}
.split h2 {
  margin-bottom: 18px;
}
.split__lead {
  font-size: 18px;
  color: var(--slate-600);
  margin-bottom: 24px;
}
.split__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.split__list li {
  padding: 14px 0 14px 30px;
  position: relative;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-weight: 500;
  font-size: 15.5px;
}
.section--dark .split__list li {
  color: var(--slate-300);
  border-color: rgba(255, 255, 255, 0.08);
}
.split__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}
.split__list li:last-child {
  border-bottom: none;
}

/* ---------- Mockup card ---------- */
.mock {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  overflow: hidden;
}
.section--dark .mock {
  background: var(--slate-850);
  border-color: rgba(255, 255, 255, 0.08);
}
.mock__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.mock__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-200);
}
.section--dark .mock__bar span {
  background: rgba(255, 255, 255, 0.15);
}
.mock__title {
  font-size: 12px;
  color: var(--slate-500);
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.section--dark .mock__title {
  color: var(--slate-400);
}
.mock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 14px;
}
.section--dark .mock__row {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.mock__row:last-child {
  border-bottom: none;
}
.mock__row .name {
  font-weight: 600;
  color: var(--slate-900);
}
.section--dark .mock__row .name {
  color: var(--white);
}
.mock__row .sub {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 500;
}
.mock__row .amount {
  font-weight: 700;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.section--dark .mock__row .amount {
  color: var(--white);
}
.mock__pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  background: rgba(20, 184, 166, 0.12);
  color: #0d9488;
  letter-spacing: 0.02em;
}
.mock__pill--amber {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
.mock__pill--slate {
  background: var(--slate-100);
  color: var(--slate-600);
}
.section--dark .mock__pill--slate {
  background: rgba(255, 255, 255, 0.08);
  color: var(--slate-300);
}

/* Code mockup */
.code-mock {
  background: var(--slate-925);
  color: var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
}
.code-mock .key {
  color: #93c5fd;
}
.code-mock .str {
  color: #86efac;
}
.code-mock .num {
  color: #fcd34d;
}
.code-mock .cmt {
  color: var(--slate-500);
  font-style: italic;
}
.code-mock .fn {
  color: #f0abfc;
}

/* ---------- Steps (numbered) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 14px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.section--dark .step::before {
  color: var(--accent-teal);
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Industry cards ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.industry-card {
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  transition: all 0.3s var(--ease-out);
  position: relative;
}
.industry-card.ledger {
  /* inherits the .ledger bg pattern */
}
.industry-card:hover {
  border-color: var(--slate-900);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.industry-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  color: var(--slate-900);
  border-radius: 8px;
  margin-bottom: 18px;
  transition: all 0.3s var(--ease-out);
}
.industry-card:hover .industry-card__icon {
  background: var(--slate-900);
  color: var(--white);
}
.industry-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.industry-card p {
  font-size: 14px;
  color: var(--slate-600);
  margin: 0 0 14px;
  line-height: 1.55;
}
.industry-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.industry-card__tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: 100px;
  font-family: var(--font-mono);
}

/* ---------- Country coverage cards (flags + improved details layout) ---------- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
}
@media (min-width: 1280px) {
  .country-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
}
@media (min-width: 1600px) {
  .country-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.country-card {
  padding: 16px 16px 14px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
}
.country-card.ledger {
  background-image: inherit;
} /* combined via class on html */
.country-card:hover {
  border-color: var(--slate-900);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.country-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.country-head .fi {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  display: block;
}
.country-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: 999px;
  line-height: 1;
}

.country-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 7px;
  color: var(--slate-900);
  line-height: 1.2;
}

.country-body {
  font-size: 12.25px;
  line-height: 1.42;
  color: var(--slate-600);
  flex: 1;
  margin-bottom: 10px;
}
.country-body br {
  content: "";
  display: block;
  margin-bottom: 2px;
}

.country-footer {
  margin-top: auto;
}
.country-footer span {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 3px 9px;
  background: var(--slate-100);
  color: var(--slate-500);
  border-radius: 999px;
  display: inline-block;
  letter-spacing: 0.3px;
}

/* ---------- Precision catalog: ledger texture + registration marks (for Quiet Technical Authority) ---------- */
.ledger {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.014) 1px, transparent 1px);
  background-size: 18px 21px;
  background-position: 0 1px;
}
.regmark {
  position: relative;
}
.regmark::after {
  content: "⊕";
  position: absolute;
  top: 7px;
  right: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--slate-400);
  opacity: 0;
  transform: translateY(-1px) scale(0.6);
  transition:
    opacity 180ms var(--ease-out),
    transform 220ms var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.regmark:hover::after {
  opacity: 0.9;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .regmark::after {
    transition: none;
    transform: scale(0.95);
  }
  .regmark:hover::after {
    opacity: 0.75;
  }
}

/* Targeted reduced-motion guards for new/enhanced hover transforms
   (country cards, industry cards, hero badge, map pins, plans).
   Matches the explicit treatment given to .hub-item and .regmark.
   Global transition hacks are avoided in favor of specific rules. */
@media (prefers-reduced-motion: reduce) {
  .country-card:hover,
  .industry-card:hover,
  .plan:hover {
    transform: none;
    transition: none;
  }
  .hero__badge:hover {
    transform: none;
    transition: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(14, 165, 233, 0.06);
  }
  .country-pin:hover {
    transform: none;
  }
  .country-pin:hover .country-pin__dot {
    /* preserve color change but kill scale/transition motion */
    transition: none;
  }
}

/* ---------- Integration Hub (Precision Instruments catalog) ---------- */
.integration-hub {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  background: var(--white);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.integration-hub.ledger {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
  background-size: 17px 20px;
}
.hub-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-150);
}
.hub-search {
  flex: 1;
  min-width: 220px;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--slate-50);
  color: var(--slate-900);
  outline: none;
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s;
}
.hub-search:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.08);
  background: var(--white);
}
.hub-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hub-filter {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  line-height: 1;
}
.hub-filter:hover {
  color: var(--slate-900);
  border-color: var(--slate-400);
}
.hub-filter.is-active {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}
.hub-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate-500);
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 4px 0;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
}
@media (min-width: 1100px) {
  .hub-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (min-width: 1400px) {
  .hub-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
  }
}
.hub-item {
  position: relative;
  padding: 14px 12px 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s;
  min-height: 118px;
}
.hub-item:hover {
  transform: translateY(-1px);
  border-color: var(--accent-teal);
  box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.12);
  background: var(--white);
}
.hub-item .regmark::after {
  top: 5px;
  right: 6px;
  font-size: 8px;
} /* tighter for compact */
.hub-logo {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.hub-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.05);
}
.hub-name {
  font-size: 12.25px;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hub-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}
.hub-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  background: var(--slate-200);
  color: var(--slate-600);
  border-radius: 999px;
  line-height: 1.4;
}
.hub-item:hover .hub-cat {
  background: var(--slate-150);
}
@media (prefers-reduced-motion: reduce) {
  .hub-item {
    transition: none;
  }
  .hub-item:hover {
    transform: none;
    box-shadow: none;
  }
}
.hub-empty {
  display: none;
} /* toggled via hub JS for empty results */

/* ---------- Integrations (legacy, replaced by hub on main page) ----------
   Legacy — used only by locale sub-pages (br/, sg/, uk/, etc.) until they
   receive the full .integration-hub + catalog treatment. Do not remove. */
.integrations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.integration {
  padding: 28px 20px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: background 0.3s var(--ease-out);
}
.integration:hover {
  background: var(--slate-50);
}
.integration__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}
.integration__cat {
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 500;
}
.integration__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: 8px;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}

/* ---------- Security ---------- */
.security-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .security-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.badge {
  padding: 22px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
}
.badge:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.badge__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.15);
  color: var(--accent-teal);
  border-radius: 8px;
  margin-bottom: 14px;
}
.badge__name {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.badge__desc {
  color: var(--slate-400);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}
.plan {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out);
}
.plan--featured {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}
.plan--featured h3,
.plan--featured .plan__price strong {
  color: var(--white);
}
.plan--featured p,
.plan--featured li {
  color: var(--slate-300);
}
.plan--featured .plan__price-suffix {
  color: var(--slate-400);
}
.plan__tag {
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--accent-teal);
  color: var(--white);
  border-radius: 100px;
  text-transform: uppercase;
}
.plan h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.plan__desc {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 24px;
}
.plan__price {
  margin-bottom: 26px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan__price strong {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--slate-900);
}
.plan__price-suffix {
  font-size: 14px;
  color: var(--slate-500);
}
.plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan__features li {
  font-size: 14px;
  color: var(--slate-700);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background: var(--accent-teal);
  border-radius: 50%;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l3 3 5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l3 3 5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.plan--featured .plan__features li {
  color: var(--slate-200);
}
.plan .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.testimonial {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonial__logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-700);
  margin-bottom: 18px;
}
.testimonial__quote {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--slate-800);
  margin-bottom: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  flex: 1;
}
.testimonial__quote::before {
  content: '"';
}
.testimonial__quote::after {
  content: '"';
}
.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial__name {
  font-weight: 700;
  font-size: 14px;
}
.testimonial__role {
  font-size: 13px;
  color: var(--slate-500);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--slate-200);
  padding: 4px 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease-out);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] summary::after {
  transform: rotate(180deg);
}
.faq__item summary:hover {
  color: var(--accent-deep);
}
.faq__item p {
  padding: 0 0 24px;
  margin: 0;
  font-size: 16px;
  color: var(--slate-600);
  line-height: 1.7;
  max-width: 700px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--slate-900);
  color: var(--white);
  padding: 110px 24px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(14, 165, 233, 0.25),
      transparent 50%
    ),
    radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.2), transparent 50%);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 30%,
    transparent 80%
  );
}
.cta-band h2 {
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 18px;
}
.cta-band p {
  color: var(--slate-300);
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta-band .btn--primary {
  background: var(--white);
  color: var(--slate-900);
}
.cta-band .btn--primary:hover {
  background: var(--slate-100);
}
.cta-band .btn--secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}
.cta-band .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--slate-950);
  color: var(--slate-400);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
.footer__brand img {
  height: 30px;
  margin-bottom: 18px;
}
.footer__brand p {
  font-size: 14px;
  max-width: 320px;
  color: var(--slate-500);
  margin-bottom: 18px;
}
.footer__brand-meta {
  font-size: 12px;
  color: var(--slate-600);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer__brand-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.footer__col h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--slate-400);
  transition: color 0.2s var(--ease-out);
}
.footer__col a:hover {
  color: var(--white);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--slate-500);
}
.footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__legal a:hover {
  color: var(--white);
}
.footer__socials {
  display: flex;
  gap: 10px;
}
.footer__socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--slate-400);
  transition: all 0.25s var(--ease-out);
}
.footer__socials a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 80px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}
.legal__meta {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 12px;
  font-weight: 500;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-200);
}
.legal h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal p,
.legal li {
  font-size: 16px;
  color: var(--slate-700);
  line-height: 1.75;
}
.legal ul {
  padding-left: 22px;
}
.legal a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- About specific ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.value {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
}
.value:hover {
  border-color: var(--slate-900);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.value h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.value p {
  font-size: 15px;
  margin: 0;
}
.value__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-deep);
  margin-bottom: 12px;
  display: block;
  font-family: var(--font-mono);
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.85s var(--ease-premium),
    transform 0.85s var(--ease-premium);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition:
    opacity 0.7s var(--ease-premium),
    transform 0.7s var(--ease-premium);
}
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger].is-visible > *:nth-child(1) {
  transition-delay: 0.04s;
}
[data-reveal-stagger].is-visible > *:nth-child(2) {
  transition-delay: 0.08s;
}
[data-reveal-stagger].is-visible > *:nth-child(3) {
  transition-delay: 0.12s;
}
[data-reveal-stagger].is-visible > *:nth-child(4) {
  transition-delay: 0.16s;
}
[data-reveal-stagger].is-visible > *:nth-child(5) {
  transition-delay: 0.2s;
}
[data-reveal-stagger].is-visible > *:nth-child(6) {
  transition-delay: 0.24s;
}
[data-reveal-stagger].is-visible > *:nth-child(7) {
  transition-delay: 0.28s;
}
[data-reveal-stagger].is-visible > *:nth-child(8) {
  transition-delay: 0.32s;
}
[data-reveal-stagger].is-visible > *:nth-child(9) {
  transition-delay: 0.36s;
}
[data-reveal-stagger].is-visible > *:nth-child(10) {
  transition-delay: 0.4s;
}
[data-reveal-stagger].is-visible > *:nth-child(11) {
  transition-delay: 0.44s;
}
[data-reveal-stagger].is-visible > *:nth-child(12) {
  transition-delay: 0.48s;
}
[data-reveal-stagger].is-visible > *:nth-child(13) {
  transition-delay: 0.52s;
}
[data-reveal-stagger].is-visible > *:nth-child(14) {
  transition-delay: 0.56s;
}
[data-reveal-stagger].is-visible > *:nth-child(15) {
  transition-delay: 0.6s;
}
[data-reveal-stagger].is-visible > *:nth-child(16) {
  transition-delay: 0.64s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================================
   GEO-ROUTING BANNER
   ===================================================================== */
.geo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.25);
  transform: translateY(-100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.geo-banner.is-visible {
  transform: translateY(0);
}
.geo-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.geo-banner__text {
  font-size: 14.5px;
  line-height: 1.5;
  flex: 1 1 320px;
  min-width: 0;
}
.geo-banner__text strong {
  color: var(--accent-teal);
}
.geo-banner__flag {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
}
.geo-banner__flag .fi {
  height: 20px;
  width: 28px;
  border-radius: 2px;
}
.geo-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.geo-banner__btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 150ms ease;
}
.geo-banner__btn--primary {
  background: var(--accent);
  color: #fff;
}
.geo-banner__btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.geo-banner__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
}
.geo-banner__btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 600px) {
  .geo-banner__inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .geo-banner__text {
    font-size: 13.5px;
    flex-basis: 100%;
  }
  .geo-banner__actions {
    width: 100%;
  }
  .geo-banner__btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 13.5px;
  }
}

/* =====================================================================
   COUNTRY MICROSITE
   ===================================================================== */
.country-bar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.country-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.country-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.country-bar__flag {
  font-size: 18px;
}
.country-bar__name {
  font-weight: 600;
}
.country-bar__sub {
  color: rgba(255, 255, 255, 0.6);
}
.country-bar__links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.country-bar__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
}
.country-bar__links a:hover {
  color: #fff;
}

.country-hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(
      80% 60% at 30% 0%,
      rgba(20, 184, 166, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      60% 50% at 100% 100%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 60%
    ),
    var(--bg);
  overflow: hidden;
}
.country-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent-teal);
  border: 1px solid rgba(20, 184, 166, 0.25);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.country-hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 900px;
  margin: 0 0 24px;
}
.country-hero h1 .accent {
  color: var(--accent-teal);
}
.country-hero__sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--slate-500);
  max-width: 720px;
  margin: 0 0 36px;
}
.country-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.country-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-600);
}
.country-hero__meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}
.country-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.country-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
}
.country-stats__item {
  text-align: center;
}
.country-stats__num {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.country-stats__label {
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 500;
  margin-top: 6px;
}

.statutory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.statutory-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.statutory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.statutory-card__code {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent-teal);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.statutory-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.statutory-card p {
  font-size: 14px;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.55;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.segment-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}
.segment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  border-color: var(--accent-teal);
}
.segment-card__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.segment-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.segment-card p {
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.segment-card__arrow {
  color: var(--accent-teal);
  font-weight: 600;
  font-size: 14.5px;
}

/* RTL (Egypt) */
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .geo-banner__flag {
  margin-left: 8px;
  margin-right: 0;
}

/* =====================================================================
   INTERACTIVE ROI CALCULATOR
   ===================================================================== */
.roi-calc {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(20, 184, 166, 0.06) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}
@media (max-width: 920px) {
  .roi-calc {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }
}
.roi-calc__controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.roi-calc__field {
  display: block;
}
.roi-calc__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.roi-calc__value {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}
.roi-calc__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.roi-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(20, 184, 166, 0.4);
}
.roi-calc__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(20, 184, 166, 0.4);
}
.roi-calc__hint {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}

.roi-calc__results {
  background: #fff;
  color: var(--slate-900);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.roi-calc__total-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
}
.roi-calc__total {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 6px 0 4px;
  color: var(--ink);
}
.roi-calc__total-sub {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 20px;
}
.roi-calc__breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
}
.roi-calc__breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.roi-calc__breakdown-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}
.roi-calc__breakdown-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.roi-calc__cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roi-calc__cta-sub {
  font-size: 12px;
  color: var(--slate-500);
  text-align: center;
}

/* =====================================================================
   STICKY SCROLL CTA
   ===================================================================== */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 900;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100% - 32px);
}
.sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
}
.sticky-cta__text {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
}
.sticky-cta__text strong {
  color: var(--accent-teal);
  font-weight: 600;
}
.sticky-cta__btn {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 150ms ease;
}
.sticky-cta__btn:hover {
  background: var(--accent-hover);
}
.sticky-cta__dismiss {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  transition: color 150ms ease;
}
.sticky-cta__dismiss:hover {
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 600px) {
  .sticky-cta {
    padding: 8px 8px 8px 16px;
    gap: 10px;
    bottom: 12px;
  }
  .sticky-cta__text {
    font-size: 13px;
  }
  .sticky-cta__btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* =====================================================================
   EXIT-INTENT MODAL
   ===================================================================== */
.exit-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.exit-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.exit-modal__box {
  background: #fff;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.exit-modal.is-visible .exit-modal__box {
  transform: scale(1);
}
.exit-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(15, 23, 42, 0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}
.exit-modal__close:hover {
  background: rgba(15, 23, 42, 0.12);
}
.exit-modal__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.exit-modal h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.exit-modal p {
  color: var(--slate-500);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.exit-modal__form {
  display: flex;
  gap: 8px;
}
.exit-modal__form input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  outline: none;
  transition: border-color 150ms ease;
}
.exit-modal__form input[type="email"]:focus {
  border-color: var(--accent-teal);
}
.exit-modal__form button {
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease;
}
.exit-modal__form button:hover {
  background: var(--accent-hover);
}
.exit-modal__benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 4px;
  padding: 16px;
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 12px;
}
.exit-modal__benefit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--slate-700);
  line-height: 1.5;
}
.exit-modal__benefit::before {
  content: "✓";
  color: var(--accent-teal);
  font-weight: 700;
  flex-shrink: 0;
}
.exit-modal__finegrain {
  font-size: 12px;
  color: var(--slate-500);
  margin: 12px 0 0;
  text-align: center;
}
.exit-modal__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-teal);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.exit-modal__success {
  text-align: center;
}
@media (max-width: 540px) {
  .exit-modal__box {
    padding: 28px 22px;
  }
  .exit-modal h3 {
    font-size: 22px;
  }
  .exit-modal__form {
    flex-direction: column;
  }
}

/* =====================================================================
   COUNTRY / LANGUAGE SWITCHER
   ===================================================================== */
.lang-switcher {
  position: relative;
}
.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  text-decoration: none;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}
.lang-switcher__trigger:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.16);
}
.lang-switcher__trigger svg {
  width: 10px;
  height: 10px;
  transition: transform 180ms ease;
}
.lang-switcher.is-open .lang-switcher__trigger svg {
  transform: rotate(180deg);
}
.lang-switcher__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 320px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 950;
}
.lang-switcher.is-open .lang-switcher__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--slate-800);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 120ms ease;
}
.lang-switcher__item:hover {
  background: rgba(20, 184, 166, 0.08);
  color: var(--ink);
}
.lang-switcher__item .fi,
.lang-switcher__trigger .fi {
  height: 14px;
  width: 20px;
  border-radius: 2px;
  flex-shrink: 0;
}
.country-bar__flag .fi {
  height: 18px;
  width: 24px;
  border-radius: 2px;
}
.lang-switcher__item--active {
  background: rgba(20, 184, 166, 0.06);
  font-weight: 600;
  color: var(--ink);
}
.lang-switcher__item .name {
  flex: 1;
}
.lang-switcher__item .lang {
  font-size: 11px;
  color: var(--slate-500);
  font-family: var(--font-mono);
}
.lang-switcher__divider {
  grid-column: 1/-1;
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 6px 0;
}
.lang-switcher__global {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--slate-700);
  font-size: 13px;
  background: rgba(15, 23, 42, 0.04);
}
@media (max-width: 540px) {
  .lang-switcher__panel {
    min-width: 280px;
    right: -8px;
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   COMPARISON TABLE (compare.html)
   ===================================================================== */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 32px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 14.5px;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table thead th.is-us {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-teal) 100%
  );
  position: relative;
}
.compare-table tbody td.is-us {
  background: rgba(20, 184, 166, 0.05);
  font-weight: 600;
  color: var(--ink);
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table td.feature-name {
  font-weight: 600;
  color: var(--slate-800);
}
.compare-yes {
  color: var(--accent-teal);
  font-weight: 700;
}
.compare-no {
  color: #ef4444;
  font-weight: 600;
}
.compare-partial {
  color: #f59e0b;
  font-weight: 600;
}
@media (max-width: 768px) {
  .compare-table {
    font-size: 12.5px;
  }
  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }
}

/* =====================================================================
   DEMO BOOKING FORM
   ===================================================================== */
.book-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}
.book-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.book-form__field.full {
  grid-column: 1/-1;
}
.book-form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
}
.book-form__label .req {
  color: #ef4444;
}
.book-form__input,
.book-form__select,
.book-form__textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.book-form__input:focus,
.book-form__select:focus,
.book-form__textarea:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.book-form__textarea {
  resize: vertical;
  min-height: 100px;
}
.book-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.book-form__radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
}
.book-form__radio .fi {
  height: 13px;
  width: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}
.book-form__radio input {
  display: none;
}
.book-form__radio:has(input:checked) {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--accent-teal);
  color: var(--ink);
  font-weight: 600;
}
.book-form__submit {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.book-form__trust {
  font-size: 12.5px;
  color: var(--slate-500);
}
@media (max-width: 600px) {
  .book-form {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
  }
}

/* Side-by-side: form on the left, what-to-expect on the right */
.book-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 920px) {
  .book-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.book-aside {
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  color: #fff;
  border-radius: 20px;
  padding: 36px;
  position: sticky;
  top: 96px;
}
.book-aside h3 {
  font-size: 22px;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.book-aside__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.book-aside__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.book-aside__list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(20, 184, 166, 0.35);
  display: inline-block;
  margin-top: 2px;
  position: relative;
}
.book-aside__list li::after {
  content: "✓";
  position: absolute;
  margin-left: -19px;
  margin-top: -1px;
  color: var(--accent-teal);
  font-size: 13px;
  font-weight: 700;
}
.book-aside__quote {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent-teal);
  padding: 16px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}
.book-aside__quote-author {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
  font-style: normal;
  font-weight: 500;
}

/* Sub-page hero (smaller than home hero) */
.subhero {
  padding: 100px 0 60px;
  background:
    radial-gradient(
      60% 50% at 20% 0%,
      rgba(20, 184, 166, 0.08) 0%,
      transparent 60%
    ),
    var(--bg);
}
.subhero h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 800px;
  margin: 18px 0 16px;
}
.subhero p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--slate-600);
  max-width: 660px;
  margin: 0;
  line-height: 1.55;
}

/* Customer story card */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.story-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
}
.story-card__logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  text-transform: uppercase;
}
.story-card__metric {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--accent-teal);
}
.story-card__metric-label {
  font-size: 13px;
  color: var(--slate-600);
  font-weight: 500;
  margin-top: 4px;
}
.story-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
  color: var(--ink);
}
.story-card p {
  color: var(--slate-600);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.story-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--slate-500);
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-top: auto;
}
.story-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Security / trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.trust-badge {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-badge__cert {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: fit-content;
}
.trust-badge h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.trust-badge p {
  font-size: 13.5px;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   PAYROVIA FLEX — Industrial Blueprint Section
   "Blueprint & High-Vis" aesthetic: construction precision + premium SaaS
   ============================================================ */

.flex-section {
  background: #05070f;
  color: #e2e8f0;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Blueprint paper grid + subtle texture */
.flex-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at 25% 30%, rgba(255, 95, 31, 0.035) 0%, transparent 50%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

.flex-section .container {
  position: relative;
  z-index: 1;
}

.flex__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff5f1f;
  background: rgba(255, 95, 31, 0.1);
  padding: 4px 14px 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 31, 0.2);
  margin-bottom: 18px;
}

.flex__eyebrow .dot {
  width: 5px;
  height: 5px;
  background: #ff5f1f;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 95, 31, 0.3);
}

.flex-section h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 18px;
  max-width: 18ch;
}

.flex-section .section__lead,
.flex__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 52ch;
}

.flex__intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

@media (max-width: 980px) {
  .flex__intro-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

.flex__manifesto h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.flex__manifesto p {
  color: #94a3b8;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.flex__manifesto ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.flex__manifesto li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #cbd5e1;
}

.flex__manifesto li::before {
  content: "▸";
  color: #ff5f1f;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Blueprint visual card */
.blueprint-visual {
  background: #0a0f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 24px 26px;
  position: relative;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

.blueprint-visual::before {
  content: "ISSUED FOR CONSTRUCTION";
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 95, 31, 0.6);
  transform: rotate(0deg);
  border: 1px solid rgba(255, 95, 31, 0.3);
  padding: 2px 8px;
  border-radius: 2px;
}

.blueprint-visual__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.blueprint-visual__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #64748b;
}

.blueprint-visual__site {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.blueprint-visual__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.blueprint-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}

.blueprint-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: #ff5f1f;
  line-height: 1;
  font-feature-settings: "tnum";
}

.blueprint-stat__label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 4px;
}

/* Role explorer */
.flex__roles {
  margin-top: 82px;
}

.flex__roles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.flex__roles-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.flex__roles-header p {
  font-size: 13.5px;
  color: #64748b;
  margin: 6px 0 0;
}

.role-switch {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.role-switch__btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.role-switch__btn:hover {
  color: #e2e8f0;
}

.role-switch__btn.is-active {
  background: #ff5f1f;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(255, 95, 31, 0.4);
}

.flex__viewport {
  background: #0a0f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  min-height: 312px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.viewport-panel {
  display: none;
}

.viewport-panel.is-active {
  display: block;
  animation: viewportFade 0.35s var(--ease-out);
}

@keyframes viewportFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.viewport-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

@media (max-width: 860px) {
  .viewport-grid {
    grid-template-columns: 1fr;
  }
}

.viewport-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff5f1f;
  margin: 0 0 12px;
}

.viewport-col p {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 18px;
}

.viewport-list {
  font-size: 13.8px;
  color: #94a3b8;
  line-height: 1.75;
  padding-left: 4px;
}

.viewport-list li {
  margin-bottom: 7px;
}

/* Mini mock phone for WhatsApp */
.mock-phone {
  background: #111827;
  border-radius: 22px;
  border: 8px solid #1f2937;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  width: 100%;
  max-width: 268px;
  margin: 0 auto;
}

.mock-phone__header {
  background: #1f2937;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
  font-family: var(--font-mono);
}

.mock-phone__body {
  padding: 14px;
  min-height: 168px;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}

.whatsapp-bubble--in {
  background: #1f2937;
  color: #e5e7eb;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.whatsapp-bubble--out {
  background: #ff5f1f;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.whatsapp-bubble small {
  display: block;
  opacity: 0.6;
  font-size: 10px;
  margin-top: 4px;
}

/* GPS mini map */
.gps-map {
  background: #0b1220;
  border-radius: 12px;
  height: 138px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 95, 31, 0.15);
}

.gps-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,95,31,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,95,31,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

.gps-dot {
  position: absolute;
  left: 42%;
  top: 38%;
  width: 11px;
  height: 11px;
  background: #ff5f1f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 95, 31, 0.25);
  z-index: 2;
}

.gps-ring {
  position: absolute;
  left: 36%;
  top: 32%;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 95, 31, 0.45);
  border-radius: 50%;
  animation: gpsPulse 2.4s ease-out infinite;
}

@keyframes gpsPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { opacity: 0; }
}

.gps-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #ff5f1f;
  background: rgba(0,0,0,0.4);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* Compliance matrix */
.flex__compliance {
  margin-top: 78px;
}

.compliance-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 16px;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.compliance-badge {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 16px;
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
  cursor: default;
}

.compliance-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 95, 31, 0.35);
}

.compliance-badge__code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ff5f1f;
  letter-spacing: 0.04em;
}

.compliance-badge__name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 3px 0 5px;
}

.compliance-badge__desc {
  font-size: 12.2px;
  color: #64748b;
  line-height: 1.45;
}

/* Shift Simulator — the hero interactive */
.shift-simulator {
  margin-top: 82px;
  background: #0a0f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 36px 36px;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sim-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.sim-header .sim-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.08em;
}

.sim-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}

@media (max-width: 820px) {
  .sim-body {
    grid-template-columns: 1fr;
  }
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-btn {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 95, 31, 0.3);
  background: rgba(255, 95, 31, 0.08);
  color: #ff5f1f;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sim-btn:hover:not(:disabled) {
  background: #ff5f1f;
  color: #fff;
  border-color: #ff5f1f;
  transform: translateX(2px);
}

.sim-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sim-btn .icon {
  font-size: 15px;
  width: 18px;
  display: inline-block;
}

.sim-log {
  background: #05070f;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.2px;
  line-height: 1.65;
  color: #64748b;
  min-height: 188px;
  max-height: 224px;
  overflow-y: auto;
}

.sim-log .log-line {
  display: block;
  margin-bottom: 4px;
}

.sim-log .log-line--success {
  color: #14b8a6;
}

.sim-log .log-line--warning {
  color: #f59e0b;
}

.sim-log .log-line--action {
  color: #ff5f1f;
  font-weight: 600;
}

.sim-escrow {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.sim-escrow-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.escrow-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.escrow-pot {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.escrow-pot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff5f1f, #f59e0b);
  width: 0%;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.escrow-pot.released::after {
  width: 100%;
}

.escrow-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #475569;
  margin-top: 6px;
}

/* Final CTA row */
.flex__cta-row {
  margin-top: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn--flex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff5f1f;
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  box-shadow: 0 10px 25px -8px rgba(255, 95, 31, 0.45);
}

.btn--flex:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px -10px rgba(255, 95, 31, 0.5);
}

.btn--flex-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.btn--flex-secondary:hover {
  border-color: #ff5f1f;
  color: #ff5f1f;
}

/* Small print */
.flex__footnote {
  font-size: 12px;
  color: #475569;
  margin-top: 28px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ============================================================
   FLEX v2 — 05:47 SITE TERMINAL (more immersive console)
   ============================================================ */

.site-terminal {
  background: #030509;
  border: 1px solid rgba(255, 95, 31, 0.15);
  border-radius: 14px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 32px;
}

.terminal-header {
  background: #0a0f1f;
  border-bottom: 1px solid rgba(255, 95, 31, 0.12);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.terminal-header__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.terminal-header__site {
  color: #f1f5f9;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.terminal-header__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
  font-size: 11px;
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #14b8a6;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
}

.terminal-header__time {
  color: #64748b;
  font-size: 11px;
}

.view-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.view-switch__btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
}

.view-switch__btn.is-active {
  background: #ff5f1f;
  color: #fff;
  box-shadow: 0 2px 8px -1px rgba(255, 95, 31, 0.5);
}

.terminal-body {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.9fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px;
}

@media (max-width: 1100px) {
  .terminal-body {
    grid-template-columns: 1fr;
  }
}

.terminal-pane {
  background: #05070f;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.terminal-pane__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-pane__title .live {
  color: #14b8a6;
  font-size: 9px;
  background: rgba(20, 184, 166, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Live Roster Pane */
.roster-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
  font-size: 13px;
  transition: background 0.2s;
}

.roster-row:hover {
  background: rgba(255, 95, 31, 0.08);
}

.roster-row .name {
  flex: 1;
  color: #e2e8f0;
  font-weight: 600;
}

.roster-row .trade {
  color: #64748b;
  font-size: 11px;
  font-family: var(--font-mono);
}

.roster-row .status {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
}

.roster-row .status.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* Mini Site Radar / Plan */
.site-radar {
  position: relative;
  height: 168px;
  background: #020408;
  border-radius: 8px;
  border: 1px solid rgba(255, 95, 31, 0.1);
  overflow: hidden;
  margin-bottom: 14px;
}

.site-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,95,31,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,95,31,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255,95,31,0.25) 40deg, transparent 90deg);
  animation: radarSweep 4s linear infinite;
  pointer-events: none;
}

@keyframes radarSweep {
  to { transform: rotate(360deg); }
}

.worker-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #ff5f1f;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 95, 31, 0.3);
  transition: left 1.2s var(--ease-out), top 1.2s var(--ease-out);
  z-index: 2;
}

.worker-dot.arrived {
  background: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.35);
}

.radar-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #475569;
  letter-spacing: 0.04em;
}

/* Enhanced Simulator inside console */
.sim-enhanced {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sim-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.sim-step-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 95, 31, 0.2);
  background: rgba(255, 95, 31, 0.05);
  color: #ff5f1f;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-step-btn:hover:not(:disabled) {
  background: #ff5f1f;
  color: #fff;
  border-color: #ff5f1f;
}

.sim-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sim-step-btn .step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  width: 18px;
  flex-shrink: 0;
}

.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.sim-metric {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}

.sim-metric__value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #ff5f1f;
  line-height: 1;
}

.sim-metric__label {
  font-size: 9px;
  color: #475569;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* Right log pane */
.activity-log {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: #64748b;
  background: #020408;
  border-radius: 6px;
  padding: 12px;
  overflow-y: auto;
  max-height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-log .entry {
  display: block;
  margin-bottom: 5px;
}

.activity-log .entry .time {
  color: #475569;
  margin-right: 6px;
}

.activity-log .entry.system { color: #14b8a6; }
.activity-log .entry.radio { color: #f59e0b; }
.activity-log .entry.action { color: #ff5f1f; font-weight: 600; }

/* Improved compliance badges for terminal feel */
.compliance-badge {
  position: relative;
  overflow: hidden;
}

.compliance-badge::after {
  content: "VERIFIED";
  position: absolute;
  top: 10px;
  right: -28px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #14b8a6;
  transform: rotate(35deg);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  background: rgba(20, 184, 166, 0.15);
  padding: 1px 22px;
}

.compliance-badge:hover::after {
  opacity: 1;
  right: -18px;
}

/* ============================================================
   INDUSTRY DEEP DIVE PAGES — Cohesive "Operational Ledger" aesthetic
   Used across /industries/*.html for consistency and distinctiveness
   ============================================================ */

.industry-hero {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.industry-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.industry-hero .container {
  position: relative;
  z-index: 1;
}

.industry-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.industry-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.028em;
  max-width: 17ch;
  margin-bottom: 18px;
}

.industry-hero .lead {
  font-size: 1.1rem;
  max-width: 56ch;
  color: #94a3b8;
  margin-bottom: 28px;
}

.industry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 30px;
}

.industry-meta span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: #cbd5e1;
}

.industry-section-head {
  max-width: 740px;
  margin-bottom: 36px;
}

.industry-section-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-teal);
  text-transform: uppercase;
}

.industry-capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.industry-capability {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 0.2s var(--ease-out);
}

.industry-capability:hover {
  border-color: #14b8a6;
}

.industry-capability h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 8px;
}

.industry-capability p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 12px;
}

.industry-capability .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.industry-capability .tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.06);
  color: #64748b;
  border-radius: 4px;
}

.industry-convergence {
  background: #020617;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 36px 32px;
  margin: 52px 0;
}

.industry-layer {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 11px;
  padding: 22px 24px;
}

.industry-layer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.industry-layer h4 {
  font-size: 16px;
  color: #fff;
  margin: 0 0 10px;
}

.industry-layer ul {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
  padding-left: 16px;
}

.industry-case {
  background: #0f172a;
  border-left: 5px solid #14b8a6;
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 16px;
}

.industry-case .quote {
  font-size: 15px;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.industry-case .attribution {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #64748b;
}

.industry-faq {
  max-width: 780px;
}

.industry-faq p {
  margin-bottom: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

.industry-faq strong {
  color: #0f172a;
  display: block;
  margin-bottom: 4px;
}
