/* ─── Google Fonts: Inter ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── Scroll progress bar ────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #F5C85E, #3478F6);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 999px 999px 0;
}

/* ─── Back to top button ─────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #143A86;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(20,58,134,.28);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: #0B2D6F;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  #back-to-top { bottom: 6.5rem; }
}

/* ─── Scroll reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-fade {
  opacity: 0;
  transition: opacity .6s ease;
}
.reveal-fade.visible { opacity: 1; }

/* ─── Hero floating card animation ───────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.float-anim { animation: float 4s ease-in-out infinite; }

/* ─── Hero banner shimmer ─────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ─── Pulse badge ─────────────────────────────────────────────────── */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245,200,94,.55); }
  70% { box-shadow: 0 0 0 10px rgba(245,200,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,200,94,0); }
}
.pulse-gold { animation: pulse-ring 2.2s ease-out infinite; }

/* ─── Icon bubble hover ───────────────────────────────────────────── */
.icon-bubble {
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-hover:hover .icon-bubble {
  transform: scale(1.12) rotate(-4deg);
}

/* ─── Button ripple effect ────────────────────────────────────────── */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.22);
  opacity: 0;
  border-radius: inherit;
  transition: opacity .18s ease;
}
.btn-ripple:active::after { opacity: 1; }

/* ─── FAQ / details smooth expand ────────────────────────────────── */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  font-weight: 900;
  color: #3478F6;
  transition: transform .22s ease;
  line-height: 1;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details > *:not(summary) {
  animation: slide-down .22s ease;
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Diagnostic card selected glow ──────────────────────────────── */
.diagnostic-card.selected {
  background: #FFF8EA;
  border-color: #F5C85E;
  box-shadow: 0 0 0 3px rgba(245,200,94,.35), 0 16px 42px rgba(20,58,134,.10);
}

/* ─── Sticky header blur on scroll ───────────────────────────────── */
header.scrolled {
  box-shadow: 0 2px 20px rgba(20,58,134,.10);
}

/* ─── Section stagger grid children ──────────────────────────────── */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s ease, transform .45s ease;
}
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: .07s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: .14s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: .21s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: .28s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: .35s; }

/* ─── Tooltip ─────────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0B1736;
  color: #fff;
  padding: .35rem .65rem;
  border-radius: .5rem;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
}

/* ─── Thank-you success bounce ────────────────────────────────────── */
@keyframes bounce-in {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  80%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}
.bounce-in { animation: bounce-in .6s cubic-bezier(.22,1,.36,1) both; }

/* ─── Number counter step highlight ──────────────────────────────── */
.step-card {
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.step-card:hover {
  background: #EEF6FF;
  transform: translateX(4px);
}

/* ─── Skip-to-main: visually hidden until focused (accessibility) ─── */
.skip-to-main {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: white;
  color: #143A86;
  font-weight: 900;
  font-size: .9rem;
  padding: .75rem 1.25rem;
  border-radius: .85rem;
  text-decoration: none;
  border: 2px solid #3478F6;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  transition: top .1s ease;
  white-space: nowrap;
}
.skip-to-main:focus { top: .75rem; outline: none; }
