/* =====================================================================
   pages/home.css — homepage sections
   ===================================================================== */

.section--tight {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  text-align: left;
}

.section-head--row > div:first-child {
  max-width: 640px;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero-hub {
  position: relative;
  z-index: 2; /* lets the search suggestions drop over the next section */
  isolation: isolate;
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  background: #f7f9fc;
}

.hero-hub__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Ponder-style dot grid (canvas from backgrounds.js): waves pulse out from the
   LAB chip, random points and the cursor; fades out towards the edges */
.hero-hub__dots {
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 40%, transparent 100%);
}

/* warm flare in the top-right corner, like a light source */
.hero-hub__flare {
  position: absolute;
  z-index: -1;
  top: -260px;
  right: -200px;
  width: 760px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 53, 0.42), rgba(255, 150, 90, 0.18) 55%, transparent);
  filter: blur(20px);
  transform: rotate(-24deg);
  animation: flare 12s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}

.hero-hub__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 58%;
  width: 760px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 108, 255, 0.16), rgba(0, 194, 168, 0.08) 60%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@keyframes flare {
  from { transform: rotate(-24deg) translate(0, 0) scale(1); opacity: 0.9; }
  to   { transform: rotate(-18deg) translate(-40px, 30px) scale(1.08); opacity: 1; }
}

/* Soft light that follows the cursor across the hero */
.hero-hub__spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 30%), rgba(10, 108, 255, 0.1), rgba(0, 194, 168, 0.05) 40%, transparent 70%);
  transition: background 0.2s linear;
  pointer-events: none;
}

/* Tiny glowing particles drifting upward */
.hero-hub__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-hub__particles i {
  position: absolute;
  bottom: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(10, 108, 255, 0.45);
  box-shadow: 0 0 10px 2px rgba(10, 108, 255, 0.35);
  opacity: 0;
  animation: particle-rise var(--d) linear infinite;
  animation-delay: var(--delay);
}

.hero-hub__particles i.is-teal {
  background: rgba(0, 194, 168, 0.5);
  box-shadow: 0 0 10px 2px rgba(0, 194, 168, 0.35);
}

.hero-hub__particles i.is-orange {
  background: rgba(255, 107, 53, 0.5);
  box-shadow: 0 0 10px 2px rgba(255, 107, 53, 0.35);
}

@keyframes particle-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translate(18px, -50vh); }
  90%  { opacity: 0.6; }
  100% { transform: translate(-12px, -105vh); opacity: 0; }
}

/* Gradient words in the headline shimmer slowly */
.hero-hub h1 .text-gradient .split-word > span,
.hero-hub h1 .text-gradient {
  background: linear-gradient(90deg, #0a6cff 0%, #00c2a8 30%, #6c5ce7 50%, #00c2a8 70%, #0a6cff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 7s linear infinite;
}

@keyframes text-shimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 250% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hub__particles { display: none; }
}

.hero-hub__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-hub h1 {
  max-width: 900px;
  margin-top: var(--sp-5);
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);
  letter-spacing: -0.035em;
}

.hero-hub__lead {
  max-width: 640px;
  margin-top: var(--sp-5);
  font-size: var(--fs-md);
  color: var(--text-2);
}

.hero-hub__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* Small announcement pill above the headline */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  transition: border-color var(--dur), box-shadow var(--dur);
}

.pill-badge:hover {
  border-color: var(--cta);
  box-shadow: 0 0 0 4px var(--cta-50);
}

.pill-badge svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease-out);
}

.pill-badge:hover svg {
  transform: translateX(3px);
}

.pill-badge__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.6);
  animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
  70%  { box-shadow: 0 0 0 8px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* Frosted secondary button */
.btn--glass {
  --btn-bg: rgba(255, 255, 255, 0.8);
  --btn-border: var(--border-strong);
  --btn-color: var(--text);
  backdrop-filter: blur(8px);
}

.btn--glass:hover {
  --btn-border: var(--text);
}

/* ---------- Hub diagram ---------- */
.hero-hub__diagram {
  margin-top: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.hub {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 440;
}

.hub__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hub__line {
  fill: none;
  stroke: #bfcadb;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.hub__line--faint {
  stroke: #dde3ee;
  stroke-dasharray: 4 6;
}

.hub__pulse {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 200;
  stroke-dashoffset: 22;
  animation: hub-pulse 3.2s linear infinite;
  animation-delay: var(--d, 0s);
}

.hub__pulse--in   { stroke: #ff5a2a; }
.hub__pulse--out  { stroke: #0a6cff; }
.hub__pulse--soft { stroke: #00c2a8; stroke-width: 2; opacity: 0.7; animation-duration: 4.8s; }

@keyframes hub-pulse {
  0%        { stroke-dashoffset: 22; }
  45%, 100% { stroke-dashoffset: -100; }
}

.hub__joint {
  fill: #fff;
  stroke: #cbd5e4;
  stroke-width: 1.6;
}

.hub__pins rect {
  fill: #cbd5e4;
}

/* Central lab chip */
.hub__chip {
  position: absolute;
  width: 11.67%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 24%;
  padding: 3px;
  isolation: isolate;
}

.hub__chip::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 53, 0.35), rgba(10, 108, 255, 0.18) 60%, transparent);
  animation: chip-glow 3.2s ease-in-out infinite;
}

/* rotating gradient border */
.hub__chip-ring {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
}

.hub__chip-ring::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, #ff6b35, #ffb347, #0a6cff, #00c2a8, #ff6b35);
  animation: spin 4s linear infinite;
}

.hub__chip-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  border-radius: 22%;
  background: linear-gradient(160deg, #ffffff, #f2f6fc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 18px 40px -12px rgba(10, 60, 140, 0.35);
}

.hub__chip-inner svg {
  width: 34%;
  height: 34%;
  color: var(--primary);
}

.hub__chip-inner strong {
  font-family: var(--font-head);
  font-size: clamp(0.85rem, 0.5rem + 0.8vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
}

.hub__chip-inner small {
  font-size: clamp(0.6rem, 0.45rem + 0.3vw, 0.75rem);
  font-weight: 600;
  color: var(--muted);
}

/* Heartbeat waves spreading out from the LAB chip */
.hub__chip::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 26%;
  border: 2px solid rgba(10, 108, 255, 0.35);
  animation: chip-wave 3.2s ease-out infinite;
  pointer-events: none;
}

@keyframes chip-wave {
  0%       { transform: scale(1); opacity: 0.8; }
  60%, 100% { transform: scale(1.9); opacity: 0; }
}

@keyframes chip-glow {
  0%, 30%   { opacity: 0.55; transform: scale(0.92); }
  45%       { opacity: 1; transform: scale(1.08); }
  70%, 100% { opacity: 0.55; transform: scale(0.92); }
}

/* Floating step tiles */
.hub__node {
  position: absolute;
  width: 6.2%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.hub__tile {
  position: relative;
  width: 100%;
  height: 100%;
}

.hub__icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 28%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  color: var(--text);
  backdrop-filter: blur(8px);
  animation: float 6s var(--ease-in-out) infinite;
  animation-delay: calc(var(--d) * -2);
}

.hub__icon svg {
  width: 44%;
  height: 44%;
}

.hub__node--in .hub__icon::after,
.hub__node--out .hub__icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  animation: 3.2s linear infinite;
  animation-delay: var(--d);
}

.hub__node--in .hub__icon::after  { animation-name: tile-send; }
.hub__node--out .hub__icon::after { animation-name: tile-receive; }

@keyframes tile-send {
  0%   { box-shadow: 0 0 0 2px rgba(255, 90, 42, 0.9), 0 0 22px 4px rgba(255, 90, 42, 0.45); }
  18%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 42, 0), 0 0 0 0 rgba(255, 90, 42, 0); }
}

@keyframes tile-receive {
  0%, 38%   { box-shadow: 0 0 0 0 rgba(10, 108, 255, 0), 0 0 0 0 rgba(10, 108, 255, 0); }
  46%       { box-shadow: 0 0 0 2px rgba(10, 108, 255, 0.9), 0 0 22px 4px rgba(10, 108, 255, 0.4); }
  70%, 100% { box-shadow: 0 0 0 0 rgba(10, 108, 255, 0), 0 0 0 0 rgba(10, 108, 255, 0); }
}

.hub__node--in .hub__icon  { color: #e8481c; }
.hub__node--out .hub__icon { color: var(--primary); }

.hub__label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(0.7rem, 0.55rem + 0.3vw, 0.85rem);
  font-weight: 700;
  color: var(--text-2);
}

/* Small screens: lines hidden, chip on top, tiles in a neat grid */
@media (max-width: 820px) {
  .hub {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 12px;
    padding-top: 150px;
  }

  .hub__svg {
    display: none;
  }

  .hub__chip {
    top: 0 !important;
    width: 116px;
    transform: translate(-50%, 0);
  }

  .hub__node {
    position: static;
    width: 64px;
    margin-inline: auto;
    transform: none;
  }

  .hub__label {
    top: calc(100% + 6px);
    font-size: 0.75rem;
  }
}

/* Search card under the diagram */
.hero-search-card {
  max-width: 860px;
  margin: clamp(3rem, 2rem + 2vw, 4rem) auto 0;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-search-card .hero-search {
  margin: 0;
  max-width: none;
  box-shadow: none;
}

.hero-search-card .hero-quick {
  margin-top: 12px;
  padding-inline: 8px;
  gap: 8px;
}

.hero-search-card .chip {
  padding: 6px 12px;
}

.hub__icon {
  position: relative;
}

.hero-quick__label {
  align-self: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
}

.chip--accent {
  background: var(--cta-50);
  border-color: transparent;
  color: var(--cta-600);
}

/* Search with city selector */
.hero-search {
  margin-top: var(--sp-6);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  max-width: 620px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--border);
  transition: box-shadow var(--dur), border-color var(--dur);
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--sh-lg), 0 0 0 5px var(--primary-100);
}

.hero-city {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 14px;
  border-right: 1px solid var(--border);
  color: var(--primary);
}

.hero-city svg {
  width: 18px;
  height: 18px;
}

.hero-city select {
  max-width: 130px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
}

.hero-city select:focus {
  outline: none;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding-left: 8px;
  border: 0;
  background: transparent;
  font-size: var(--fs-md);
}

.hero-search input:focus {
  outline: none;
}

@media (max-width: 560px) {
  .hero-city { display: none; }
  .hero-search { padding-left: 14px; }
  .hero-search .btn span { display: none; }
  .hero-search .btn { padding-inline: 14px; }
}

.hero-quick {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-trust {
  margin-top: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.hero-trust small {
  color: var(--muted);
  font-weight: 600;
}

.hero-trust__avatars {
  display: flex;
}

.hero-trust__avatars span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -10px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  background: var(--c);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.hero-trust__avatars span:first-child {
  margin-left: 0;
}

/* =====================================================================
   TRUST MARQUEE
   ===================================================================== */
.trust-strip {
  padding-block: 18px;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.trust-strip .marquee__track {
  gap: var(--sp-7);
  animation-duration: 40s;
}

.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--text-2);
}

.trust-strip__item svg {
  width: 22px;
  height: 22px;
  color: var(--accent-600);
}

/* =====================================================================
   OFFERS
   ===================================================================== */
.offers-swiper {
  padding-bottom: 36px;
}

.offers-swiper .swiper-pagination {
  bottom: 0;
}

.offer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 210px;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}

.offer:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.offer--blue   { background: linear-gradient(135deg, #0a6cff, #3d8bff 60%, #00c2a8); }
.offer--orange { background: linear-gradient(135deg, #ff6b35, #ff8f5a 60%, #ffb347); }
.offer--teal   { background: linear-gradient(135deg, #00a58f, #00c2a8 60%, #4fd1c5); }
.offer--purple { background: linear-gradient(135deg, #6c5ce7, #8e7cf3 60%, #a29bfe); }

.offer__text {
  position: relative;
  z-index: 1;
  max-width: 70%;
}

.offer h3 {
  color: #fff;
  font-size: var(--fs-xl);
  margin: 10px 0 6px;
}

.offer p {
  opacity: 0.92;
  margin-bottom: var(--sp-4);
}

.offer__badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.offer__art {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.offer__art > svg {
  position: relative;
  width: 56px;
  height: 56px;
  stroke-width: 1.6;
  animation: float 5s var(--ease-in-out) infinite;
}

.offer__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  animation: ping 3s var(--ease-out) infinite;
}

.offer__ring--2 {
  inset: 18px;
  background: rgba(255, 255, 255, 0.25);
  animation-delay: 1.2s;
}

@media (max-width: 560px) {
  .offer__art { display: none; }
  .offer__text { max-width: 100%; }
}

/* =====================================================================
   QUICK ACTIONS
   ===================================================================== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 1023px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

.quick-card {
  display: block;
  padding: var(--sp-5) var(--sp-4);
}

.quick-card:hover {
  transform: translateY(-6px);
}

.quick-card h3 {
  font-size: var(--fs-base);
  margin-bottom: 4px;
}

.quick-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.quick-card .card-icon {
  width: 48px;
  height: 48px;
}

.quick-card__arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--muted);
  transition: transform var(--dur) var(--ease-out), color var(--dur);
}

.quick-card:hover .quick-card__arrow {
  transform: translate(3px, -3px);
  color: var(--primary);
}

/* =====================================================================
   POPULAR TESTS
   ===================================================================== */
.tests-swiper {
  overflow: visible;
  padding-block: 8px;
}

.tests-swiper .swiper-slide {
  height: auto;
}

#popular-tests {
  overflow: hidden;
}

/* =====================================================================
   PACKAGES
   ===================================================================== */
/* Flex instead of grid so an unfinished last row sits centred, not left-aligned */
.pkg-grid {
  --cols: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-5);
}

.pkg-grid > .pkg-card {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--sp-5)) / var(--cols));
  min-width: 0;
}

@media (max-width: 1199px) { .pkg-grid { --cols: 3; } }
@media (max-width: 899px)  { .pkg-grid { --cols: 2; } }
@media (max-width: 559px)  { .pkg-grid { --cols: 1; } }

.pkg-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  overflow: hidden;
}

.pkg-card.is-hidden {
  display: none;
}

.pkg-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pkg-card__ribbon {
  position: absolute;
  top: 26px;
  right: -40px;
  z-index: 2;
  width: 180px;
  padding: 5px 0;
  transform: rotate(45deg);
  background: var(--grad-cta);
  box-shadow: 0 6px 14px -6px rgba(255, 106, 61, 0.6);
  color: #fff;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pkg-card__ribbon + .pkg-card__head .badge {
  margin-right: 34px;
}

.pkg-card__tagline {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.pkg-card__facts {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pkg-card__facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
}

.pkg-card__facts svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.pkg-card .test-card__foot {
  margin-top: auto;
}

/* =====================================================================
   HEALTH CONCERNS
   ===================================================================== */
.concern-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 1023px) {
  .concern-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .concern-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
}

.concern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--sp-5) var(--sp-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: scale 0.4s var(--ease-out), translate 0.4s var(--ease-out), box-shadow 0.4s, border-color var(--dur);
}

.concern:hover {
  box-shadow: var(--sh-lg);
  border-color: var(--primary-100);
}

.concern__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--primary);
  transition: transform 0.5s var(--ease-spring), background 0.3s, color 0.3s;
}

.concern__icon svg {
  width: 30px;
  height: 30px;
}

.concern:hover .concern__icon {
  transform: scale(1.1);
  background: var(--grad-brand);
  color: #fff;
}

.concern:hover .concern__icon svg {
  animation: heartbeat 0.9s ease-in-out infinite;
}

.concern__name {
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.3;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.18); }
  40% { transform: scale(0.96); }
  60% { transform: scale(1.1); }
}

/* =====================================================================
   STATEMENT — words light up while scrolling
   ===================================================================== */
.statement {
  padding-block: clamp(4rem, 3rem + 5vw, 8rem);
}

.statement__text {
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--text);
}

.has-motion [data-scroll-text] .st-word {
  opacity: 0.14;
}

/* =====================================================================
   STATS BAND
   ===================================================================== */
.stats-band {
  padding-block: var(--sp-7);
  background: var(--grad-brand);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: #fff;
}

.stat span {
  font-weight: 600;
  font-size: var(--fs-sm);
  opacity: 0.88;
}

/* =====================================================================
   HOW IT WORKS (horizontal pinned scroll on desktop)
   ===================================================================== */
.how {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.how__pin {
  padding-block: var(--section-y);
}

.how__head {
  margin-bottom: var(--sp-6);
}

.how__head h2 {
  max-width: 640px;
}

.how__progress {
  margin-top: var(--sp-5);
  height: 4px;
  max-width: 420px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}

.how__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
}

.how__track {
  display: flex;
  gap: var(--sp-5);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  will-change: transform;
}

.how-step {
  position: relative;
  flex: 0 0 min(400px, 80vw);
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
}

.how-step h3 {
  margin: var(--sp-5) 0 var(--sp-3);
  font-size: var(--fs-lg);
}

.how-step p {
  color: var(--text-2);
  margin-bottom: var(--sp-4);
}

.how-step__num {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-50);
  -webkit-text-stroke: 1.5px var(--primary-100);
}

.how-step__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
}

.how-step__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--primary-100);
  animation: spin 18s linear infinite;
}

.how-step__ring--2 {
  inset: 14px;
  border: 0;
  background: var(--grad-soft);
  animation: none;
}

.how-step__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-glow);
}

.how-step__icon svg {
  width: 28px;
  height: 28px;
}

/* Tablet / mobile: simple vertical list, no pinning */
@media (max-width: 1023px) {
  .how__track {
    flex-direction: column;
    padding-inline: var(--gutter);
  }

  .how-step {
    flex-basis: auto;
  }

  .how__progress {
    display: none;
  }
}

/* =====================================================================
   TEAM
   ===================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 1023px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  text-align: center;
}

.team-card__avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(from 180deg, var(--primary), var(--accent), var(--primary));
}

.team-card__avatar > span:first-child,
.team-card__avatar img {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: hsl(var(--hue) 85% 93%);
  color: hsl(var(--hue) 70% 36%);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  object-fit: cover;
}

.team-card__verified {
  position: absolute;
  right: 4px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--sh-sm);
}

.team-card__verified svg {
  width: 20px;
  height: 20px;
}

.team-card h3 {
  font-size: var(--fs-md);
}

.team-card__role {
  margin-top: 4px;
  color: var(--primary);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.team-card__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* =====================================================================
   REVIEWS
   ===================================================================== */
.rating-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}

.rating-summary > strong {
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1;
}

.rating-summary small {
  color: var(--muted);
  font-weight: 600;
}

/* Two rows of reviews gliding in opposite directions */
.review-wall {
  display: grid;
  gap: var(--sp-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.review-row {
  overflow: hidden;
  padding-block: 6px;
}

.review-row__track {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  padding-right: var(--sp-4); /* keeps the loop seamless */
  animation: marquee 70s linear infinite;
}

.review-row--reverse .review-row__track {
  animation-direction: reverse;
  animation-duration: 80s;
}

.review-wall:hover .review-row__track {
  animation-play-state: paused;
}

.review {
  display: flex;
  flex: 0 0 min(360px, 82vw);
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0;
}

.review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review__quote {
  width: 32px;
  height: 32px;
  color: var(--primary-100);
}

.review blockquote {
  flex: 1;
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border);
}

.review figcaption small {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* =====================================================================
   WHATSAPP SECTION
   ===================================================================== */
.section--wa {
  background: linear-gradient(160deg, #f2f8ff 0%, #ffffff 45%, #e8f8f3 100%);
  color: var(--text-2);
  overflow: hidden;
}

.section--wa .check-list svg {
  color: #25d366;
}

.wa-section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .wa-section { grid-template-columns: 1fr; }
  .phone { margin-inline: auto; }
}

.wa-section__copy p {
  margin-top: var(--sp-4);
  max-width: 540px;
}

.wa-section .btn svg {
  width: 22px;
  height: 22px;
}

.phone {
  position: relative;
  width: 300px;
  height: 600px;
  padding: 12px;
  border-radius: 46px;
  background: #0b1221;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #2a3550;
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 90px;
  height: 24px;
  border-radius: 14px;
  background: #0b1221;
  transform: translateX(-50%);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #efe7dd;
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 46px 14px 12px;
  background: #075e54;
  color: #fff;
}

.phone__bar .logo__mark {
  width: 34px;
  height: 34px;
}

.phone__bar strong {
  display: block;
  font-size: 14px;
}

.phone__bar small {
  font-size: 11px;
  opacity: 0.8;
}

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  overflow: hidden;
}

.msg {
  position: relative;
  max-width: 84%;
  padding: 8px 10px 18px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #111b21;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.msg--in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 2px;
}

.msg--out {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 2px;
}

.msg time {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 10px;
  color: #667781;
}

.msg--file span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
}

.msg--file svg {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  color: #e5484d;
}

.msg--file small {
  color: #16a34a;
  font-weight: 600;
}

.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa5ad;
  animation: typing-dot 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.has-motion .chat .msg {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}

/* The intro stays in view while the questions scroll past */
.faq-wrap__intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap__intro { position: static; }
}

.faq-help {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.faq-help__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--sp-4);
}

.faq-help__head strong {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-md);
}

.faq-help__head small {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.faq-help__avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-glow);
}

.faq-help__avatar svg {
  width: 24px;
  height: 24px;
}

/* green "online" dot with a soft pulse */
.faq-help__live {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #22c55e;
}

.faq-help__live::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: ping 2s var(--ease-out) infinite;
}

.faq-help__list {
  display: grid;
  gap: 10px;
  margin-bottom: var(--sp-5);
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.faq-help__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-help__list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--primary);
}

.faq-help__list a {
  color: inherit;
}

.faq-help .btn svg {
  width: 20px;
  height: 20px;
}

.faq {
  display: grid;
  gap: var(--sp-3);
}

.faq__item {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: box-shadow var(--dur), border-color var(--dur);
}

.faq__item:has([aria-expanded="true"]) {
  border-color: var(--primary-100);
  box-shadow: var(--sh-md);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--text);
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-50);
  transition: background-color var(--dur), transform var(--dur) var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__q[aria-expanded="true"] .faq__icon {
  background: var(--primary);
  transform: rotate(180deg);
}

.faq__q[aria-expanded="true"] .faq__icon::before,
.faq__q[aria-expanded="true"] .faq__icon::after {
  background: #fff;
}

.faq__q[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 20px 20px;
  color: var(--text-2);
}

.faq__q[aria-expanded="true"] + .faq__a {
  grid-template-rows: 1fr;
}

/* =====================================================================
   BLOG
   ===================================================================== */
.post-card {
  padding: 0;
  overflow: hidden;
}

.post-card__cover {
  display: grid;
  place-items: center;
  height: 170px;
  color: #fff;
  overflow: hidden;
}

.post-card__cover svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.4;
  transition: transform 0.6s var(--ease-out);
}

.post-card:hover .post-card__cover svg {
  transform: scale(1.2) rotate(-8deg);
}

.post-card__cover--0 { background: linear-gradient(135deg, #e5484d, #ff8a65); }
.post-card__cover--1 { background: linear-gradient(135deg, #0a6cff, #00c2a8); }
.post-card__cover--2 { background: linear-gradient(135deg, #f5b301, #ff6b35); }

.post-card__body {
  display: grid;
  gap: 10px;
  padding: var(--sp-5);
}

.post-card__body .badge {
  justify-self: start;
}

.post-card__body h3 {
  font-size: var(--fs-md);
  line-height: 1.35;
}

.post-card__body p {
  color: var(--text-2);
  font-size: var(--fs-sm);
}

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta-band h2 {
  max-width: 620px;
  color: #fff;
  font-size: var(--fs-xl);
}

.cta-band p {
  margin-top: 8px;
  opacity: 0.9;
}

.cta-band__call {
  --btn-bg: transparent;
  --btn-color: #fff;
  --btn-border: rgba(255, 255, 255, 0.6);
}

.cta-band__call:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
}

.cta-band > div {
  position: relative;
  z-index: 1;
}

/* Faint grid + a heartbeat line that keeps tracing across the band */
.cta-band__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 90% at 85% 50%, #000 20%, transparent 75%);
}

.cta-band__ecg {
  position: absolute;
  top: 22%;
  right: 0;
  z-index: -1;
  width: 55%;
  height: 56%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
          mask-image: linear-gradient(90deg, transparent, #000 30%);
}

@media (max-width: 900px) {
  .cta-band__ecg { display: none; }
}

.cta-band__ecg path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 22 78;
  animation: ecg-trace 4.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

@keyframes ecg-trace {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* =====================================================================
   OFFER BANNERS — dot texture, glass icon tile and a light sweep on hover
   ===================================================================== */
.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 85%);
          mask-image: linear-gradient(110deg, transparent 35%, #000 85%);
}

.offer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
  transform: translateX(-120%);
  pointer-events: none;
}

.offer:hover::after {
  transform: translateX(120%);
  transition: transform 0.9s var(--ease-out);
}

.offer__art::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 30px -12px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transform: rotate(-8deg);
  animation: float 6s var(--ease-in-out) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .offer__art::before,
  .cta-band__ecg path {
    animation: none;
  }
}
