/* =============================================================
   Revfinity — AI-Accelerated RCM for UAE Healthcare
   Stylesheet (vanilla CSS3, no build tools)
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #040F22;
  --navy-900: #071A33;
  --navy-800: #0B2447;
  --navy-700: #123468;
  --navy-600: #1B4585;

  --teal-600: #0C8F8D;
  --teal-500: #0EA5A4;
  --teal-400: #14C8C4;
  --teal-300: #5EE4E0;
  --teal-100: #D8F7F6;

  --gold-500: #F5B227;
  --gold-100: #FFF3D6;

  --red-500: #E5484D;
  --red-100: #FDE7E8;
  --green-500: #16A34A;

  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --surface-2: #EEF3F9;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --border: #E2E8F0;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(7, 26, 51, .22);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --transition: .3s var(--ease);

  --header-h: 72px;
  --utility-h: 38px;
  --container: 1200px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy-900);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform var(--transition); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 36, 71, .25);
}
.btn--primary:hover { background: var(--navy-700); box-shadow: 0 10px 24px rgba(11, 36, 71, .32); }

.btn--accent {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--navy-950);
  box-shadow: 0 8px 22px rgba(20, 200, 196, .35);
}
.btn--accent:hover { box-shadow: 0 12px 28px rgba(20, 200, 196, .45); }

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }

.btn--ghost-dark {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn--ghost-dark:hover { background: var(--navy-800); color: #fff; }

.btn--light {
  background: #fff;
  color: var(--navy-800);
}
.btn--light:hover { background: var(--teal-100); }

.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .8);
  font-size: .8rem;
  height: var(--utility-h);
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.utility-bar__left, .utility-bar__right { display: flex; align-items: center; gap: 1.4rem; }
.utility-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: inherit;
  transition: color var(--transition);
  white-space: nowrap;
}
.utility-item .icon { color: var(--teal-400); width: 1em; height: 1em; }
.utility-item .loc-short { display: none; }
a.utility-item:hover { color: #fff; }
.utility-item--accent {
  color: var(--navy-950);
  background: var(--teal-400);
  padding: .25rem .8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
a.utility-item--accent:hover { color: var(--navy-950); background: var(--teal-300); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .96);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--navy-900);
}
.logo__mark { width: 40px; height: 40px; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__mark rect { fill: var(--navy-800); }
.logo__line { fill: none; stroke: var(--teal-400); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.logo__text { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.logo__text span { color: var(--teal-500); }
.logo--light { color: #fff; }
.logo--light .logo__mark rect { fill: var(--navy-700); }
.logo--light .logo__text span { color: var(--teal-400); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: .55rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .93rem;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover { color: var(--navy-900); }
.nav__link.is-active { color: var(--navy-900); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(20, 200, 196, .18), transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, #0E2B57 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.hero__glow--1 { width: 520px; height: 520px; background: var(--teal-500); top: -200px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--2 { width: 380px; height: 380px; background: var(--navy-600); bottom: -200px; left: -100px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(40px, 30px); } }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem .4rem .6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-300);
  animation: fadeUp .8s var(--ease) both;
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(20, 200, 196, .25);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(20,200,196,.25);} 50% { box-shadow: 0 0 0 8px rgba(20,200,196,.08);} }

.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1.4rem 0 1.2rem;
  letter-spacing: -0.03em;
  animation: fadeUp .8s .1s var(--ease) both;
}
.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, .78);
  max-width: 58ch;
  animation: fadeUp .8s .2s var(--ease) both;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.8rem 0;
  animation: fadeUp .8s .3s var(--ease) both;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .86rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.badge:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.badge .icon { color: var(--teal-400); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  animation: fadeUp .8s .4s var(--ease) both;
}
.hero__note {
  margin-top: 1.4rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
  animation: fadeUp .8s .5s var(--ease) both;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Hero dashboard visual */
.hero__visual {
  position: relative;
  animation: fadeUp 1s .3s var(--ease) both;
}
.dash {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
.dash__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.dash__title { font-weight: 600; font-size: .95rem; }
.dash__live {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-300);
}
.dash__live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); animation: pulse 1.6s infinite; }

.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dash__kpi {
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.dash__kpi-label { font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.dash__kpi-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.dash__kpi-delta { font-size: .72rem; font-weight: 600; }
.dash__kpi-delta.up { color: var(--teal-300); }
.dash__kpi-delta.down { color: #86EFAC; }

.dash__chart { margin: 1.1rem 0 .4rem; }
.dash__chart svg { width: 100%; height: 110px; }
.dash__line { stroke: var(--teal-400); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.4s .6s var(--ease) forwards; }
.dash__area { opacity: 0; animation: fadeIn 1.2s 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.dash__chart-labels { display: flex; justify-content: space-between; font-size: .68rem; color: rgba(255,255,255,.45); margin-top: .35rem; }

.dash__pipeline { display: grid; gap: .55rem; margin-top: 1rem; }
.dash__row { display: grid; grid-template-columns: 1fr 2fr auto; gap: .7rem; align-items: center; font-size: .78rem; color: rgba(255,255,255,.75); }
.dash__row b { font-weight: 600; color: #fff; }
.dash__bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.dash__note { margin-top: 1rem; max-width: 50%; font-size: .68rem; line-height: 1.45; color: rgba(255,255,255,.5); }
.dash__bar i {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
  animation: grow 1.4s 1s var(--ease) forwards;
}
@keyframes grow { to { width: var(--w); } }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: .7rem;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  box-shadow: var(--shadow-lg);
  font-size: .8rem;
  max-width: 260px;
}
.float-card strong { display: block; font-size: .85rem; }
.float-card span { color: var(--muted); font-size: .74rem; }
.float-card .icon { width: 1.6rem; height: 1.6rem; color: var(--teal-600); }
.float-card--1 { top: -22px; left: -40px; animation: floatY 6s ease-in-out infinite; }
.float-card--2 { bottom: -26px; right: -30px; animation: floatY 7s 1s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -2.4rem;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.stat {
  padding: 1.8rem 1.6rem;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--surface-2); }
.stat__value {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-800);
  line-height: 1.1;
}
.stat__label { font-weight: 600; margin-top: .35rem; }
.stat__sub { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.stats__note { margin: 1rem auto 0; max-width: 820px; text-align: center; font-size: .8rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--surface-2); }
.section[hidden] { display: none; }
.section--dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.section--dark-alt { background: linear-gradient(160deg, var(--navy-950), var(--navy-900)); }

.section__head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: .8rem;
}
.section__head--light .section__eyebrow { color: var(--teal-300); }
.section__title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
}
.section__lead { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.section__head--light .section__lead { color: rgba(255,255,255,.72); }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  min-height: 250px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-400), var(--navy-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover, .service-card.is-active {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 165, 164, .4);
}
.service-card:hover::before, .service-card.is-active::before { transform: scaleX(1); }
.service-card.is-active { background: linear-gradient(180deg, #fff, var(--teal-100)); }

.service-card__step {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
}
.service-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-600);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.service-card__icon .icon { width: 1.5rem; height: 1.5rem; }
.service-card:hover .service-card__icon, .service-card.is-active .service-card__icon { background: var(--navy-800); color: var(--teal-300); transform: rotate(-6deg) scale(1.05); }
.service-card__title { font-weight: 700; font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
.service-card__desc { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.service-card__more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 600; color: var(--teal-600);
}
.service-card__more .icon { transition: transform var(--transition); }
.service-card:hover .service-card__more .icon { transform: translateX(4px); }

.service-card--cta {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: #fff;
  border-color: transparent;
  justify-content: center;
  gap: 1rem;
  cursor: default;
}
.service-card--cta .service-card__desc { color: rgba(255,255,255,.75); }
.service-card--cta:hover { transform: translateY(-6px); }
.service-card--cta::before { display: none; }

.services__panels { margin-top: 1.5rem; }
.service-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  animation: panelIn .45s var(--ease);
}
.service-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.service-panel h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.service-panel p { color: var(--text-2); }
.check-list { list-style: none; margin-top: 1.1rem; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.7rem; color: var(--text-2); font-size: .95rem; }
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: .3rem;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C8F8D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.service-panel__side {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.service-panel__side-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .76rem; font-weight: 600;
  padding: .3rem .65rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy-800);
}
.mini-stat { display: flex; flex-direction: column; padding-top: .9rem; border-top: 1px solid var(--border); }
.mini-stat b { font-size: 1.5rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.mini-stat span { font-size: .84rem; color: var(--muted); }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.5rem;
}
.calc__controls {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.6rem;
}
.calc__field { display: grid; gap: .55rem; }
.calc__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.calc__label-row label { font-weight: 600; font-size: .95rem; }
.calc__label-row output { font-weight: 800; color: var(--teal-300); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc__range-hint { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(255,255,255,.45); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal-400) var(--fill, 50%), rgba(255,255,255,.18) var(--fill, 50%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--teal-400);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--teal-400);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  transition: transform .15s ease;
}
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(20,200,196,.2); }
input[type="range"]:hover::-moz-range-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline-offset: 6px; }

.calc__assumptions {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.2rem;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.calc__assumptions strong { display: block; color: #fff; margin-bottom: .5rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.calc__assumptions ul { list-style: none; display: grid; gap: .35rem; }
.calc__assumptions li { padding-left: 1rem; position: relative; }
.calc__assumptions li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-400); }
.calc__assumptions b { color: var(--teal-300); }

.calc__results {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.calc__headline { text-align: center; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--border); }
.calc__headline-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.calc__headline-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-800);
  margin: .4rem 0 .2rem;
  font-variant-numeric: tabular-nums;
  transition: transform .2s ease;
}
.calc__headline-value.is-bumping { transform: scale(1.04); }
.calc__headline-sub { font-size: .9rem; color: var(--muted); }
.calc__headline-sub span { font-weight: 700; color: var(--teal-600); }

.calc__compare { display: grid; gap: .9rem; }
.calc__compare-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .35rem; color: var(--text-2); }
.calc__compare-head b { font-variant-numeric: tabular-nums; }
.calc__bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.calc__bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; transition: width .5s var(--ease); }
.calc__bar--bad i { background: linear-gradient(90deg, #F87171, var(--red-500)); }
.calc__bar--good i { background: linear-gradient(90deg, var(--teal-400), var(--teal-600)); }

.calc__breakdown { margin: 0; display: grid; gap: .5rem; font-size: .9rem; }
.calc__breakdown div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.calc__breakdown div:last-child { border-bottom: 0; }
.calc__breakdown dt { color: var(--muted); }
.calc__breakdown dd { margin: 0; font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__disclaimer { font-size: .74rem; color: var(--muted); text-align: center; }

/* ---------- Compliance ---------- */
.compliance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.compliance-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.compliance-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(14,165,164,.4); }
.compliance-card__badge { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compliance-card__meta { font-size: .82rem; color: var(--text-2); font-weight: 500; }
.compliance-card p { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.wordmark {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: .55rem 0;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.wordmark--nabidh { background-image: linear-gradient(90deg, #0B6E4F, #12A37A); }
.wordmark--malaffi { background-image: linear-gradient(90deg, #1E3A8A, #2563EB); }
.wordmark--riayati { background-image: linear-gradient(90deg, #7C2D12, #EA580C); }
.wordmark--eclaim { background-image: linear-gradient(90deg, #0B2447, #0EA5A4); }
.wordmark--shafafiya { background-image: linear-gradient(90deg, #4C1D95, #8B5CF6); }
.wordmark--frameworks { background-image: linear-gradient(90deg, #B45309, #F5B227); }
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: auto; padding-top: .8rem;
  font-size: .8rem; font-weight: 600; color: var(--green-500);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }

.regulator-strip {
  margin-top: 2rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.6rem;
}
.regulator-strip__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.regulator-strip__items { display: flex; flex-wrap: wrap; gap: .6rem; }
.regulator {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .85rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: .82rem;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}
.regulator b { color: var(--navy-800); }
.regulator:hover { background: var(--teal-100); color: var(--navy-800); }

/* ---------- AI Edge (versus) ---------- */
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.versus__col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex; flex-direction: column;
}
.versus__col--ai { border-color: rgba(14,165,164,.35); box-shadow: 0 0 0 4px rgba(20,200,196,.08), var(--shadow); }
.versus__head { margin-bottom: 1.4rem; }
.versus__head h3 { font-size: 1.15rem; margin-top: .5rem; color: var(--text-2); font-weight: 600; }
.versus__tag {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--red-100); color: #B91C1C;
}
.versus__tag--ai { background: var(--teal-100); color: var(--teal-600); }

.flow { list-style: none; display: grid; gap: .3rem; position: relative; }
.flow__step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: start;
  padding: .8rem .6rem;
  border-radius: var(--radius);
  position: relative;
  transition: background var(--transition);
}
.flow__step:hover { background: var(--surface-2); }
.flow__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(.6rem + 15px);
  top: calc(.8rem + 30px);
  bottom: -.6rem;
  width: 2px;
  background: var(--border);
}
.flow__marker {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: .8rem; font-weight: 700;
  background: var(--surface-2);
  color: var(--text-2);
  position: relative; z-index: 1;
}
.versus__col--ai .flow__marker { background: var(--navy-800); color: var(--teal-300); }
.versus__col--ai .flow__step:not(:last-child)::after { background: var(--teal-100); }
.flow__step strong { display: block; font-size: .95rem; }
.flow__step span { display: block; font-size: .82rem; color: var(--muted); margin-top: .1rem; }
.flow__time {
  font-size: .78rem; font-weight: 700;
  padding: .3rem .6rem;
  border-radius: var(--radius-sm);
  background: var(--red-100); color: #B91C1C;
  white-space: nowrap;
}
.versus__col--ai .flow__time { background: var(--teal-100); color: var(--teal-600); }

.versus__total {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .9rem; color: var(--muted);
}
.versus__total b { font-size: 1.4rem; font-weight: 800; color: #B91C1C; letter-spacing: -0.02em; }
.versus__total--ai b { color: var(--teal-600); }

.versus__divider { display: flex; align-items: center; justify-content: center; }
.versus__divider span {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 0 0 8px rgba(11,36,71,.08);
}

.ai-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.ai-stat {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex; flex-direction: column;
  transition: transform var(--transition);
}
.ai-stat:hover { transform: translateY(-4px); }
.ai-stat b { font-size: 1.8rem; font-weight: 800; color: var(--teal-300); letter-spacing: -0.02em; }
.ai-stat span { font-size: .85rem; color: rgba(255,255,255,.75); }
.ai-stats__note { margin: 1rem auto 0; max-width: 820px; text-align: center; font-size: .8rem; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__intro .section__title { margin-bottom: 1.2rem; }
.about__intro p { color: var(--text-2); margin-bottom: 1rem; }
.about__points { list-style: none; display: grid; gap: .7rem; margin-top: 1.4rem; }
.about__points li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.about__points .icon { color: var(--teal-600); margin-top: .2rem; }

.about__process { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.process-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.process-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.process-card__num {
  position: absolute; top: .8rem; right: 1.1rem;
  font-size: 2.6rem; font-weight: 800; color: var(--surface-2);
  line-height: 1; letter-spacing: -0.04em;
}
.process-card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy-800); color: var(--teal-300);
  margin-bottom: 1rem;
}
.process-card h3 { font-size: 1.05rem; margin-bottom: .5rem; position: relative; }
.process-card p { font-size: .88rem; color: var(--muted); position: relative; }

/* ---------- Testimonials carousel ---------- */
.carousel { max-width: 900px; margin: 0 auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel__track { display: flex; transition: transform .6s var(--ease); will-change: transform; }
.testimonial {
  flex: 0 0 100%;
  min-width: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}
.testimonial__result {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-width: 150px;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(20,200,196,.1);
  border: 1px solid rgba(20,200,196,.25);
}
.testimonial__result b { font-size: 1.8rem; font-weight: 800; color: var(--teal-300); letter-spacing: -0.02em; }
.testimonial__result span { font-size: .78rem; color: rgba(255,255,255,.7); }
.testimonial blockquote { margin: 0; font-size: 1.08rem; line-height: 1.65; color: rgba(255,255,255,.9); }
.testimonial__author { display: flex; align-items: center; gap: .8rem; margin-top: 1.3rem; grid-column: 2; }
.testimonial__author strong { display: block; font-size: .95rem; }
.testimonial__author span { font-size: .8rem; color: rgba(255,255,255,.6); }
.avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--navy-600));
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.5rem; }
.carousel__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.carousel__btn:hover { background: var(--teal-500); transform: scale(1.06); }
.carousel__dots { display: flex; gap: .5rem; }
.carousel__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background var(--transition), transform var(--transition), width var(--transition);
}
.carousel__dot.is-active { background: var(--teal-400); width: 26px; border-radius: 5px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info .section__title { margin-bottom: 1rem; }
.contact__list { list-style: none; display: grid; gap: 1.2rem; margin: 2rem 0; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .15rem; }
.contact__list a { font-weight: 600; color: var(--navy-800); word-break: break-all; }
.contact__list a:hover { color: var(--teal-600); }
.contact__list span { color: var(--text-2); }
.contact__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-100); color: var(--teal-600);
  flex-shrink: 0;
}
.contact__promise {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}
.contact__promise strong { display: block; margin-bottom: .6rem; }
.contact__promise ol { padding-left: 1.2rem; display: grid; gap: .4rem; color: var(--text-2); font-size: .92rem; }

.contact__form-wrap { position: relative; }
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
  position: relative;
}
.form__title { font-size: 1.25rem; margin-bottom: .2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__group { display: grid; gap: .4rem; }
.form__group label { font-size: .88rem; font-weight: 600; }
.form__group label span { color: var(--red-500); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14,165,164,.15);
}
.form input::placeholder, .form textarea::placeholder { color: #9AA6B8; }
.form textarea { resize: vertical; min-height: 130px; }
.form .is-invalid { border-color: var(--red-500); background: #FFF8F8; }
.form__error { font-size: .78rem; color: var(--red-500); min-height: 1em; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute; right: 1rem; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.form select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.form select:invalid { color: #9AA6B8; }
.form__consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .84rem; color: var(--text-2); cursor: pointer; }
.form__consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--teal-500); flex-shrink: 0; cursor: pointer; }

.form__success {
  display: flex; gap: 1rem; align-items: flex-start;
  background: linear-gradient(180deg, #F0FDFA, var(--teal-100));
  border: 1px solid rgba(14,165,164,.4);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  animation: panelIn .5s var(--ease);
}
.form__success[hidden] { display: none; }
.form__success .icon { width: 2rem; height: 2rem; color: var(--teal-600); flex-shrink: 0; }
.form__success strong { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.form__success p { font-size: .9rem; color: var(--text-2); margin-bottom: .9rem; }
.form__success a { font-weight: 600; }
.form.is-submitted .form__row, .form.is-submitted .form__group, .form.is-submitted .form__consent, .form.is-submitted #submitBtn, .form.is-submitted .form__error { display: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.72);
  padding: 4rem 0 2rem;
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__brand p { margin: 1.2rem 0; max-width: 40ch; }
.footer__email {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--teal-300); font-weight: 600;
  transition: color var(--transition);
}
.footer__email:hover { color: #fff; }
.footer__col h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; display: grid; gap: .55rem; }
.footer__col a { color: rgba(255,255,255,.7); transition: color var(--transition), padding-left var(--transition); }
.footer__col a:hover { color: var(--teal-300); padding-left: 4px; }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid;
  gap: .8rem;
}
.footer__copy { color: #fff; font-weight: 500; }
.footer__legal { font-size: .78rem; color: rgba(255,255,255,.5); max-width: 110ch; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-500); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* keep hover transform on cards once revealed */
.service-card.reveal.is-visible, .compliance-card.reveal.is-visible, .process-card.reveal.is-visible {
  transition: opacity .7s var(--ease), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  transition-delay: 0s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin: 2.5rem auto 0; }
  .float-card--1 { left: 0; top: -18px; }
  .float-card--2 { right: 0; bottom: -18px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .compliance__grid { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .versus { grid-template-columns: 1fr; }
  .versus__divider span { width: 48px; height: 48px; }
  .ai-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(15,23,42,.12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__link { display: block; padding: .8rem .9rem; font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: var(--teal-100); color: var(--navy-900); }
  .nav__cta { margin-top: .6rem; }

  .utility-bar__left .utility-item--hide-sm, .utility-bar__right a[href^="mailto"] { display: none; }
  .service-panel { grid-template-columns: 1fr; padding: 1.5rem; }
  .testimonial { grid-template-columns: 1fr; padding: 1.7rem; gap: 1.2rem; }
  .testimonial__result { flex-direction: row; gap: .8rem; min-width: 0; justify-content: flex-start; text-align: left; }
  .testimonial__author { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .utility-bar { font-size: .74rem; }
  .utility-bar__inner { gap: .6rem; }
  .utility-bar__left, .utility-bar__right { gap: .8rem; min-width: 0; }
  .utility-bar__left { flex: 1; }
  .utility-bar__left .utility-item:not(.utility-item--hide-sm) { display: flex; min-width: 0; }
  .utility-bar__left .utility-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .utility-item .loc-long { display: none; }
  .utility-item .loc-short { display: inline; }
  .utility-item--accent { padding: .2rem .65rem; font-size: .72rem; flex-shrink: 0; }
  .calc__controls, .calc__results { min-width: 0; }
  .calc__field, .calc__label-row label { min-width: 0; }
  .btn--block { white-space: normal; text-align: center; line-height: 1.25; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__text { font-size: 1.25rem; }
  .hero { padding-top: 3rem; }
  .hero__title { font-size: 2rem; }
  .hero__actions .btn { width: 100%; }
  .dash { padding: 1rem; }
  .dash__kpis { gap: .5rem; }
  .dash__kpi { padding: .6rem; }
  .dash__kpi-value { font-size: 1.15rem; }
  .dash__row { grid-template-columns: 1fr auto; }
  .dash__row .dash__bar { grid-column: 1 / -1; }
  .float-card { display: none; }
  .dash__note { max-width: none; }
  .stats { margin-top: 1.5rem; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); padding: 1.4rem; }
  .stat:last-child { border-bottom: 0; }
  .services__grid, .compliance__grid, .about__process, .ai-stats { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .calc__controls, .calc__results { padding: 1.4rem; }
  .calc__breakdown div { flex-direction: column; gap: .1rem; }
  .calc__breakdown dd { white-space: normal; }
  .regulator-strip { flex-direction: column; align-items: flex-start; }
  .flow__step { grid-template-columns: auto 1fr; }
  .flow__time { grid-column: 2; justify-self: start; }
  .versus__col { padding: 1.3rem; }
  .form { padding: 1.4rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .back-to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dash__line { stroke-dashoffset: 0; }
  .dash__area { opacity: 1; }
  .dash__bar i { width: var(--w); }
}
