/* ─────────────────────────────────────────
   BASE & RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563EB;
  --blue-dark:  #1d4ed8;
  --blue-light: #eff6ff;
  --navy:       #0f172a;
  --navy-mid:   #1e293b;
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --white:      #ffffff;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 20px 40px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --nav-h:      72px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100vw;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: clamp(5rem, 8vw, 7rem); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px;
  padding: .65rem 1.4rem;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
/* Allow long labels to wrap gracefully on small screens */
@media (max-width: 480px) {
  .btn--lg { white-space: normal; text-align: center; line-height: 1.4; }
  .quiz-results-footer__cta { white-space: normal; text-align: center; line-height: 1.4; }
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn--lg { font-size: 1.05rem; padding: .85rem 1.75rem; border-radius: 10px; }
.btn--sm { font-size: .85rem; padding: .5rem 1.1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────
   BADGE
───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(37,99,235,.2);
  margin-bottom: 1.5rem;
}
.badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  -webkit-animation: pulse 2s ease-in-out infinite;
  animation: pulse 2s ease-in-out infinite;
}

@-webkit-keyframes pulse {
  0%, 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
  50%       { opacity: .5; -webkit-transform: scale(1.4); transform: scale(1.4); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: var(--nav-h);
  overflow: visible;
}

.nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  min-height: var(--nav-h);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.nav__logo:hover { color: var(--blue); }
.nav__logo-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 7px; display: block; }
.nav__logo-text { font-size: 1.3rem; font-weight: 800; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a:not(.btn) {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--blue); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 0.75rem 0 1.5rem;
  z-index: 9999;
}
.nav__mobile.open {
  display: flex;
}
.nav__mobile a {
  padding: .75rem clamp(1.25rem, 5vw, 2.5rem);
  font-weight: 500;
  color: var(--text-muted);
  display: block;
}
.nav__mobile a:hover { color: var(--blue); }
.nav__mobile .btn { margin: .75rem clamp(1.25rem, 5vw, 2.5rem) 0; display: inline-flex; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(4rem, 7vw, 6rem);
  background: radial-gradient(ellipse 80% 60% at 60% -10%, rgba(37,99,235,.08) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 90% 80%, rgba(37,99,235,.05) 0%, transparent 70%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.hero__headline {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero__headline em {
  font-style: normal;
  color: var(--blue);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__trust {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero__trust::before {
  content: '🔒 ';
}

/* Visual */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
}

.hero__diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__diagram-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,.15);
  -webkit-animation: spin-slow linear infinite;
  animation: spin-slow linear infinite;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.hero__diagram-ring--outer {
  width: 320px; height: 320px;
  animation-duration: 30s;
}
.hero__diagram-ring--mid {
  width: 220px; height: 220px;
  animation-duration: 20s;
  animation-direction: reverse;
  border-color: rgba(37,99,235,.2);
}
.hero__diagram-ring--inner {
  width: 90px; height: 90px;
  border: none;
  border-radius: 16px;
  overflow: visible;
}
.hero__diagram-ring--inner svg { width: 90px; height: 90px; border-radius: 16px; }

@-webkit-keyframes spin-slow { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero__card {
  position: absolute;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.hero__card-icon { font-size: 1.4rem; }
.hero__card-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hero__card-value { font-size: 1.15rem; font-weight: 800; color: var(--text); }

.hero__card--1 { top: 8%; right: 0; -webkit-animation: float 4s ease-in-out infinite; animation: float 4s ease-in-out infinite; }
.hero__card--2 { bottom: 15%; left: 0; -webkit-animation: float 4s ease-in-out 1.3s infinite; animation: float 4s ease-in-out 1.3s infinite; }
.hero__card--3 { top: 50%; right: 0; transform: translateY(-50%); animation: float 4s ease-in-out 2.6s infinite; }

@-webkit-keyframes float {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50%       { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero__card--3 { -webkit-animation: float3 4s ease-in-out 2.6s infinite; animation: float3 4s ease-in-out 2.6s infinite; }
@-webkit-keyframes float3 {
  0%, 100% { -webkit-transform: translateY(-50%); transform: translateY(-50%); }
  50%       { -webkit-transform: translateY(calc(-50% - 8px)); transform: translateY(calc(-50% - 8px)); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 8px)); }
}

/* ─────────────────────────────────────────
   STATS
───────────────────────────────────────── */
.stats {
  background: var(--navy);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}

.stats__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.stats__item {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding-inline: 1rem;
}

.stats__number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stats__plus { color: var(--blue); font-size: .75em; }

.stats__label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stats__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-light), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.service-card:hover {
  border-color: rgba(37,99,235,.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
  position: relative;
  z-index: 1;
}
.service-card__icon svg { width: 22px; height: 22px; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
  position: relative;
  z-index: 1;
}
.service-card p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.how { background: #f8fafc; }

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.how__step {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
}
.how__step:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-md);
}

.how__step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue-light);
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how__step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}
.how__step-content p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.how__step-arrow {
  position: absolute;
  top: 50%;
  right: -1.25rem;
  transform: translateY(-50%);
  width: 1rem;
  color: var(--blue);
  z-index: 2;
}
.how__step-arrow svg { width: 16px; height: 16px; }

/* ─────────────────────────────────────────
   WHY US
───────────────────────────────────────── */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-item {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
}
.why-item:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-item__icon {
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue);
}
.why-item__icon svg { width: 20px; height: 20px; }

.why-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.why-item p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding-block: clamp(5rem, 8vw, 7rem);
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.cta-section__eyebrow { color: #93c5fd; }

.cta-section__text h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.cta-section__text p {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.cta-section__checklist {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cta-section__checklist li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  font-weight: 500;
}
.cta-section__checklist li svg { width: 20px; height: 20px; flex-shrink: 0; }

/* CTA Card */
.cta-card {
  background: var(--navy-mid);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0,0,0,.3);
}

.cta-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cta-card__avatar {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.cta-card__name {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}
.cta-card__role {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-top: .15rem;
}

.cta-card__meta {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
}
.cta-card__meta span { display: flex; align-items: center; gap: .5rem; }

.cta-card .btn--primary {
  font-size: 1rem;
  padding: 1rem 1.5rem;
}

.cta-card__note {
  text-align: center;
  margin-top: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__logo .nav__logo-text { color: var(--white); }
.footer__logo:hover .nav__logo-text { color: #93c5fd; }

.footer__tagline {
  font-size: .95rem;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .55rem;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  padding-block: 1.25rem;
  background: rgba(0,0,0,.2);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer__copy {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.footer__bottom-tag {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  font-style: italic;
}

/* ─────────────────────────────────────────
   OPS HEALTH SCORE — TEASER
───────────────────────────────────────── */
.quiz-section { background: var(--white); }

.quiz-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  background: var(--blue-light);
  border: 1.5px solid rgba(37,99,235,.2);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
}

.quiz-teaser__stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}
.quiz-teaser__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}
.quiz-teaser__stat span {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.quiz-teaser__stat small {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.quiz-teaser__note {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   QUIZ MODAL
───────────────────────────────────────── */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.quiz-modal[hidden] { display: none; }

.quiz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,15,30,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.quiz-modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 64px rgba(0,0,0,.2);
  overflow: hidden;
  animation: quizFadeIn .25s ease;
}
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.quiz-modal__header {
  padding: 1.5rem 1.5rem .75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.quiz-modal__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.quiz-modal__label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
}
.quiz-modal__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  background: none; border: none;
}
.quiz-modal__close:hover { background: var(--blue-light); color: var(--blue); }
.quiz-modal__close svg { width: 18px; height: 18px; }

.quiz-progress {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .5rem;
}
.quiz-progress__bar {
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
  width: 10%;
}
.quiz-progress__label {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quiz-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.quiz-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Question step */
.quiz-step__q {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .5rem;
}
.quiz-step__topic {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.quiz-choice {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  text-align: left;
  width: 100%;
  font-family: 'Figtree', sans-serif;
  font-size: .93rem;
  color: var(--text);
  line-height: 1.5;
}
.quiz-choice:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.quiz-choice.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--text);
}
.quiz-choice.selected .quiz-choice__num {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.quiz-choice__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--text-muted);
}

/* Email gate */
.quiz-email {
  text-align: center;
  padding: 1rem 0;
}
.quiz-email__icon { font-size: 3rem; margin-bottom: 1rem; }
.quiz-email h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
}
.quiz-email p {
  color: var(--text-muted);
  font-size: .93rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.quiz-email__form {
  display: flex;
  gap: .75rem;
  max-width: 420px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
}
.quiz-email__form input {
  flex: 1;
  min-width: 200px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Figtree', sans-serif;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.quiz-email__form input:focus { border-color: var(--blue); }
.quiz-email__form input.error { border-color: #ef4444; }
.quiz-email__note { font-size: .75rem; color: var(--text-muted); }

/* Results */
.quiz-results { text-align: center; }
.quiz-results__score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.quiz-results__score-ring {
  position: relative;
  width: clamp(90px, 20vw, 120px);
  height: clamp(90px, 20vw, 120px);
}
.quiz-results__score-ring svg {
  width: 100%; height: 100%;
}
.quiz-results__score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text);
}
.quiz-results__rating {
  font-size: 1.35rem;
  font-weight: 800;
  padding: .4rem 1.25rem;
  border-radius: 999px;
}
.quiz-results__rating.critical  { background: #fef2f2; color: #dc2626; }
.quiz-results__rating.at-risk   { background: #fff7ed; color: #ea580c; }
.quiz-results__rating.improving { background: #fefce8; color: #ca8a04; }
.quiz-results__rating.optimized { background: #f0fdf4; color: #16a34a; }

.quiz-results__summary {
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: .93rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: left;
}

.quiz-results__areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.75rem;
  text-align: left;
}
.quiz-area {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .875rem 1rem;
}
.quiz-area__name {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.quiz-area__bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .3rem;
}
.quiz-area__bar {
  height: 100%;
  border-radius: 999px;
  transition: width .8s cubic-bezier(.4,0,.2,1) .3s;
}
.quiz-area__score {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quiz-results__cta { margin-bottom: .75rem; }
.quiz-results-footer {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.quiz-results-footer__cta {
  flex: 1;
  min-width: 0;
  white-space: normal;
  line-height: 1.35;
  font-size: .9rem;
  padding: .75rem 1rem;
}
.quiz-results-footer__right {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}

/* Stack vertically on mobile so nothing overflows */
@media (max-width: 540px) {
  .quiz-results-footer {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }
  .quiz-results-footer__cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: .88rem;
  }
  .quiz-results-footer__right {
    justify-content: center;
  }
}
.quiz-share {
  display: none; /* no longer used inline */
}
.quiz-share__icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: var(--white);
  transition: all var(--transition);
  color: var(--text-muted);
}
.quiz-share__icon svg { width: 18px; height: 18px; }
.quiz-share__icon:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quiz-share__linkedin:hover  { background: #0077b5; color: white; border-color: #0077b5; }
.quiz-share__whatsapp:hover  { background: #25d366; color: white; border-color: #25d366; }
.quiz-share__copy:hover      { background: var(--blue); color: white; border-color: var(--blue); }
.quiz-share__copy.copied     { background: #16a34a; color: white; border-color: #16a34a; }

.quiz-results__retake {
  font-size: .82rem;
  color: var(--text-muted);
  background: none; border: none;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  text-decoration: underline;
  transition: color var(--transition);
}
.quiz-results__retake:hover { color: var(--blue); }

/* Mobile quiz tweaks */
@media (max-width: 600px) {
  .quiz-modal__box  { max-height: 95vh; border-radius: 16px 16px 0 0; align-self: flex-end; }
  .quiz-modal       { align-items: flex-end; padding: 0; }
  .quiz-results__areas { grid-template-columns: 1fr; }
  .quiz-email__form { flex-direction: column; }
  .quiz-email__form input { width: 100%; }
  .quiz-email__form .btn { width: 100%; justify-content: center; }
  .quiz-teaser__stats { gap: 2rem; }
}

/* ─────────────────────────────────────────
   TECH STACK AUDIT
───────────────────────────────────────── */
.audit-section { background: #f8fafc; }

.audit-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-sm);
}
.audit-teaser__stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}
.audit-teaser__stat { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.audit-teaser__stat span {
  font-size: 2rem; font-weight: 900; color: var(--blue); line-height: 1;
}
.audit-teaser__stat small {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
}
.audit-teaser__note { font-size: .82rem; color: var(--text-muted); }

/* Step headings */
.audit-step__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: .35rem;
}
.audit-step__sub {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Category / generic tiles */
.audit-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.audit-tile {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  font-family: 'Figtree', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  width: 100%;
}
.audit-tile:hover { border-color: var(--blue); background: var(--blue-light); }
.audit-tile.selected { border-color: var(--blue); background: var(--blue-light); }
.audit-tile__check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  background: var(--white);
}
.audit-tile.selected .audit-tile__check {
  background: var(--blue); border-color: var(--blue);
}
.audit-tile__check svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity var(--transition); }
.audit-tile.selected .audit-tile__check svg { opacity: 1; }

/* Tool groups (step 2) */
.audit-group { margin-bottom: 1.75rem; }
.audit-group:last-child { margin-bottom: 0; }
.audit-group__title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: .75rem;
}
.audit-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.audit-chip {
  padding: .5rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  font-family: 'Figtree', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}
.audit-chip:hover { border-color: var(--blue); color: var(--blue); }
.audit-chip.selected { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Pain cards (step 3) */
.audit-pain-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--white);
}
.audit-pain-card:last-child { margin-bottom: 0; }
.audit-pain-card__tool {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}
.audit-pain-card__cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .85rem;
}
.audit-pains { display: flex; flex-direction: column; gap: .5rem; }
.audit-pain {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: .85rem;
  color: var(--text);
  background: var(--white);
  width: 100%;
  text-align: left;
  font-family: 'Figtree', sans-serif;
}
.audit-pain:hover { border-color: var(--blue); }
.audit-pain.selected { border-color: var(--blue); background: var(--blue-light); }
.audit-pain__check {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); background: var(--white);
}
.audit-pain.selected .audit-pain__check { background: var(--blue); border-color: var(--blue); }
.audit-pain__check svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.audit-pain.selected .audit-pain__check svg { opacity: 1; }

/* Team size — radio-style, no circle with text inside */
.audit-team { display: flex; flex-direction: column; gap: .75rem; }

.audit-size-btn {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  font-family: 'Figtree', sans-serif;
  font-size: .95rem;
  color: var(--text);
  text-align: left;
  width: 100%;
}
.audit-size-btn:hover { border-color: var(--blue); background: var(--blue-light); }
.audit-size-btn.selected { border-color: var(--blue); background: var(--blue-light); }
.audit-size-btn__radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  background: var(--white);
}
.audit-size-btn.selected .audit-size-btn__radio {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 4px white;
}
.audit-size-btn__label { font-size: .95rem; color: var(--text); }
.audit-size-btn__label strong { color: var(--text); }

/* Email gate — reuse quiz-email styles via shared classes */

/* Results */
.audit-results__banner {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.audit-results__banner.healthy  { background: #f0fdf4; }
.audit-results__banner.gaps     { background: #fff7ed; }
.audit-results__banner.urgent   { background: #fef2f2; }
.audit-results__banner-icon { font-size: 2rem; margin-bottom: .5rem; }
.audit-results__banner-label {
  font-size: 1.05rem; font-weight: 800; line-height: 1.45;
}
.audit-results__banner.healthy .audit-results__banner-label { color: #16a34a; }
.audit-results__banner.gaps    .audit-results__banner-label { color: #ea580c; }
.audit-results__banner.urgent  .audit-results__banner-label { color: #dc2626; }

.audit-results__meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.audit-results__meta-item { text-align: center; }
.audit-results__meta-num { font-size: 1.5rem; font-weight: 900; color: var(--blue); line-height: 1; }
.audit-results__meta-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-top: .25rem; }

.audit-insight {
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: .85rem;
  background: var(--white);
}
.audit-insight__tool { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.audit-insight__cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.audit-insight__text { font-size: .87rem; color: var(--text-muted); line-height: 1.6; margin-top: .4rem; }

.audit-results__email-note {
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* Mobile */
@media (max-width: 600px) {
  .audit-tiles { grid-template-columns: 1fr; }
  .audit-teaser__stats { gap: 2rem; }
  .audit-results__meta { gap: 1rem; }
}
@media (max-width: 480px) {
  /* Both teaser CTAs full-width on small phones */
  .quiz-teaser .btn--lg,
  .audit-teaser .btn--lg { width: 100%; justify-content: center; }
  /* Score ring score number smaller */
  .quiz-results__score-num { font-size: 1.35rem; }
}

/* ─────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1),
              transform .6s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
  -webkit-transform: translateY(24px) translateZ(0);
  transform: translateY(24px) translateZ(0);
}
.reveal.visible {
  opacity: 1;
  -webkit-transform: translateY(0) translateZ(0);
  transform: translateY(0) translateZ(0);
}

.reveal--delay-1 { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .24s; }
.reveal--delay-3 { transition-delay: .36s; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .services__grid  { grid-template-columns: repeat(2, 1fr); }
  .how__steps      { grid-template-columns: repeat(2, 1fr); }
  .why__grid       { grid-template-columns: repeat(2, 1fr); }
  .how__step-arrow { display: none; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* Nav */
  .nav                { background: rgba(255,255,255,.99); }
  .nav__links         { display: none; }
  .nav__burger        { display: flex; }
  /* nav__mobile shown via .open class in JS — no display override needed here */

  /* Badge — shrink to fit one line */
  .badge {
    font-size: .68rem;
    letter-spacing: .06em;
    padding: .3rem .75rem;
    white-space: nowrap;
  }

  /* Hero */
  .hero__inner        { grid-template-columns: 1fr; text-align: center; }
  .hero__headline     { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__sub          { margin-inline: auto; }
  .hero__actions      { justify-content: center; flex-wrap: wrap; gap: .75rem; }
  .hero__trust        { text-align: center; }
  .hero__visual       { min-height: 280px; margin-top: 2rem; }
  .hero__diagram-ring--outer { width: 240px; height: 240px; }
  .hero__diagram-ring--mid   { width: 165px; height: 165px; }
  .hero__card         { padding: .65rem .9rem; }
  .hero__card-value   { font-size: 1rem; }
  .hero__card-label   { font-size: .65rem; }
  .hero__card-icon    { font-size: 1.1rem; }
  .hero__card--1      { top: 4%; right: 2%; }
  .hero__card--2      { bottom: 10%; left: 2%; }
  .hero__card--3      { right: 2%; }

  /* Stats — 2×2 CSS grid (avoids nth-child issues with hidden dividers) */
  .stats__inner       { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .stats__divider     { display: none; }
  .stats__item        {
    flex: unset;
    min-width: 0;
    padding-block: 1.5rem;
    padding-inline: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  /* Right column items */
  .stats__item:nth-child(2n)   { border-left: 1px solid rgba(255,255,255,.08); }
  /* Bottom row — no border */
  .stats__item:nth-last-child(-n+2) { border-bottom: none; }

  /* Grids → single column */
  .services__grid     { grid-template-columns: 1fr; }
  .how__steps         { grid-template-columns: 1fr; }
  .why__grid          { grid-template-columns: 1fr; }

  /* Cards — tighter padding */
  .service-card       { padding: 1.5rem; }
  .why-item           { padding: 1.5rem; }
  .how__step          { padding: 1.5rem; }

  /* Section headers */
  .section-header h2  { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section            { padding-block: clamp(3rem, 6vw, 5rem); }

  /* CTA */
  .cta-section__inner { grid-template-columns: 1fr; text-align: center; }
  .cta-section__checklist    { align-items: center; }
  .cta-section__checklist li { justify-content: center; }
  .cta-card__meta     { flex-direction: row; flex-wrap: wrap; gap: .6rem; justify-content: center; }

  /* Footer */
  .footer__inner      { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__nav        { grid-template-columns: repeat(2, 1fr); }
  .footer__brand      { padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07); }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {

  /* Badge — single line, even smaller */
  .badge {
    font-size: .62rem;
    letter-spacing: .04em;
    padding: .28rem .65rem;
  }

  /* Hero buttons stacked full-width */
  .hero__actions      { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Hero visual — smaller rings, keep cards visible */
  .hero__visual              { min-height: 240px; }
  .hero__diagram-ring--outer { width: 190px; height: 190px; }
  .hero__diagram-ring--mid   { width: 130px; height: 130px; }
  .hero__card                { padding: .55rem .75rem; gap: .5rem; }
  .hero__card-value          { font-size: .9rem; }
  .hero__card-label          { font-size: .6rem; }

  /* Stats numbers slightly smaller */
  .stats__number      { font-size: 1.75rem; }

  /* Footer nav single column */
  .footer__nav        { grid-template-columns: 1fr; }

  /* CTA card */
  .cta-card           { padding: 1.25rem; }

  /* Reduce section padding */
  .section            { padding-block: 3rem; }
}

/* ─────────────────────────────────────────
   FOCUS STYLES (ACCESSIBILITY)
───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
