/* ==========================================================================
   Doctor 24By7 — Components
   Buttons, cards, forms, navigation, modules, badges, modals
   ========================================================================== */

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-16);
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              filter var(--t-base) var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}

/* Light sweep across filled buttons on hover */
.btn--primary::after,
.btn--crimson::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.30) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}
.btn--primary:hover::after,
.btn--crimson:hover::after { transform: translateX(130%); }

.btn--primary {
  background: linear-gradient(135deg, #8A1128 0%, #C8102E 55%, #E04458 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(122, 15, 34, 0.28),
              0 12px 28px rgba(200, 16, 46, 0.30),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  color: #fff;
  box-shadow: 0 4px 10px rgba(122, 15, 34, 0.30),
              0 20px 44px rgba(200, 16, 46, 0.38),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--crimson {
  background: linear-gradient(135deg, #E5335A 0%, #D2143C 45%, #9E1440 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(139, 26, 69, 0.26),
              0 12px 28px rgba(210, 20, 60, 0.30),
              inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn--crimson:hover {
  transform: translateY(-3px);
  filter: brightness(1.07);
  color: #fff;
  box-shadow: 0 4px 10px rgba(139, 26, 69, 0.30),
              0 20px 44px rgba(210, 20, 60, 0.40),
              inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.btn--ghost {
  background: var(--c-surface);
  color: var(--c-primary-purple);
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-xs);
}
.btn--ghost:hover {
  background: var(--c-surface-tint);
  border-color: var(--c-primary-purple);
  color: var(--c-deep-purple);
  transform: translateY(-3px);
  box-shadow: var(--sh-sm);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--ghost-light:hover {
  background: #fff;
  color: var(--c-primary-purple);
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.btn--sm { padding: 10px 20px; font-size: var(--fs-14); }
.btn--lg { padding: 17px 34px; font-size: var(--fs-18); }
.btn--block { width: 100%; }

.btn .btn-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform var(--t-base) var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Cards ---------- */

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-32);
  position: relative;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--g-card-glow);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-border-strong);
}
.card:hover::before { opacity: 1; }

.card > * { position: relative; }

.card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--g-purple-soft);
  color: #fff;
  margin-bottom: var(--s-20);
  font-size: var(--fs-24);
  box-shadow: 0 10px 24px rgba(224, 68, 88, 0.32);
}

.card__icon--crimson {
  background: var(--g-crimson);
  box-shadow: 0 10px 24px rgba(210, 20, 60, 0.28);
}

.card__title {
  font-size: var(--fs-20);
  margin-bottom: var(--s-8);
}

.card__desc {
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  margin: 0;
}

/* Module cards (the 20 modules grid) — styled to match .card */

.module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: var(--s-32);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-text);
  text-decoration: none;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--g-card-glow);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
  pointer-events: none;
}

.module-card > * { position: relative; z-index: 1; }

.module-card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--g-purple-soft);
  color: #fff;
  box-shadow: 0 10px 24px rgba(224, 68, 88, 0.32);
  margin-bottom: var(--s-20);
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease-out);
}
.module-card__icon svg { width: 24px; height: 24px; }

.module-card__title {
  font-size: var(--fs-20);
  font-family: var(--f-heading);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 var(--s-8);
}
.module-card__desc {
  font-size: var(--fs-14);
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-border-strong);
  color: var(--c-text);
}
.module-card:hover::before { opacity: 1; }
.module-card:hover .module-card__icon {
  transform: scale(1.05);
}

/* Feature cards (AI capabilities, Why Us) */

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-24) var(--s-24);
  display: flex;
  gap: var(--s-16);
  align-items: flex-start;
  transition: all var(--t-base) var(--ease-out);
}
.feature-card:hover {
  border-color: var(--c-soft-purple);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.feature-card__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--g-purple-soft);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

/* Stat cards */

.stat {
  text-align: center;
  padding: var(--s-24);
}
.stat__num {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(var(--fs-32), 4vw, var(--fs-56));
  background: var(--g-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  font-weight: 500;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-12);
  font-weight: 600;
  background: var(--c-surface-tint);
  color: var(--c-primary-purple);
  border: 1px solid var(--c-border);
}

.badge--crimson {
  background: rgba(210, 20, 60, 0.08);
  color: var(--c-crimson);
  border-color: rgba(210, 20, 60, 0.18);
}

.badge--dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ---------- Forms ---------- */

.form-group {
  margin-bottom: var(--s-20);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--f-heading);
  font-weight: 500;
  font-size: var(--fs-14);
  color: var(--c-text);
}

.form-control {
  font-family: var(--f-body);
  font-size: var(--fs-16);
  padding: 12px 16px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-primary-purple);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.14);
}

.form-control::placeholder { color: var(--c-text-soft); }

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236A48BC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.form-help {
  font-size: var(--fs-12);
  color: var(--c-text-soft);
}

/* File input — styled wrapper */

.file-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px dashed var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-surface-alt);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}
.file-input:hover {
  border-color: var(--c-primary-purple);
  background: var(--c-surface-tint);
}
.file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.file-input__icn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--g-purple-soft);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-input__t {
  font-family: var(--f-heading);
  font-weight: 500;
  font-size: var(--fs-14);
  color: var(--c-text);
}
.file-input__d {
  font-size: var(--fs-12);
  color: var(--c-text-muted);
}
.file-preview {
  margin-top: 12px;
  width: 110px;
  height: 110px;
  border-radius: var(--r-md);
  object-fit: contain;
  border: 1px solid var(--c-border);
  background: #fff;
  padding: 8px;
}

/* Checkbox — modern */

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: var(--fs-14);
  color: var(--c-text);
}
.check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.check__box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--c-border-strong);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) var(--ease-out);
}
.check__box::after {
  content: "";
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-out);
}
.check input:checked + .check__box,
.consent-block__check input:checked + .check__box {
  background: var(--g-purple);
  border-color: var(--c-primary-purple);
}
.check input:checked + .check__box::after,
.consent-block__check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box,
.consent-block__check input:focus-visible + .check__box {
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.18);
}

/* Captcha block */

.captcha {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.captcha__img-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha__img {
  border-radius: 8px;
  border: 1px solid var(--c-border-strong);
  background: #fff;
}
.captcha__refresh {
  background: transparent;
  border: 0;
  color: var(--c-primary-purple);
  font-family: var(--f-heading);
  font-size: var(--fs-12);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.captcha__refresh:hover { background: var(--c-surface-tint); }

/* Input with suffix (e.g. domain.pwens.com) */

.input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface);
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.input-group:focus-within {
  border-color: var(--c-primary-purple);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.14);
}
.input-group .form-control {
  border: 0;
  border-radius: 0;
  flex: 1;
}
.input-group .form-control:focus {
  box-shadow: none;
}
.input-group__suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--c-surface-alt);
  font-family: var(--f-heading);
  font-weight: 500;
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  border-left: 1px solid var(--c-border);
}

/* Required-marker */

.req {
  color: var(--c-crimson);
  font-weight: 700;
  margin-left: 2px;
}

/* Loading spinner */

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   Cookie consent banner (DPDP Act 2023 + GDPR)
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 980px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px rgba(40, 10, 14, 0.22);
  padding: var(--s-20) var(--s-24);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: var(--s-20);
  flex-wrap: wrap;
  animation: cookieBannerIn 320ms var(--ease-out);
}

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

.cookie-banner__body {
  flex: 1 1 320px;
  min-width: 280px;
}

.cookie-banner__title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: var(--fs-16);
  margin: 0 0 4px;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__title::before {
  content: "🍪";
  font-size: 18px;
}

.cookie-banner__text {
  font-size: var(--fs-13, 0.8125rem);
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--c-primary-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-14);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  white-space: nowrap;
}

.cookie-banner__btn--accept {
  background: var(--g-purple);
  color: #fff;
  box-shadow: var(--sh-glow);
}
.cookie-banner__btn--accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(122, 15, 34, 0.32);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--c-text-muted);
  border-color: var(--c-border-strong);
}
.cookie-banner__btn--reject:hover {
  background: var(--c-surface-tint);
  color: var(--c-text);
}

@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-16);
  }
  .cookie-banner__actions {
    flex-direction: column;
  }
  .cookie-banner__btn { width: 100%; }
}

/* ==========================================================================
   App store badges (Google Play, App Store) + Get-the-app section
   ========================================================================== */

.app-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  border: 1px solid rgba(255,255,255,0.10);
  min-width: 160px;
}

.app-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  color: #fff;
}

.app-badge__icn {
  flex-shrink: 0;
}

.app-badge__small {
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0.85;
}

.app-badge__big {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-14);
  line-height: 1.1;
  margin-top: 2px;
}

/* ==========================================================================
   Consent block (for forms — required for DPDP Act 2023)
   ========================================================================== */

.consent-block {
  margin-top: var(--s-16);
  padding: var(--s-16);
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-primary-purple);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.consent-block__icn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--g-purple-soft);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.consent-block__body {
  flex: 1;
}

.consent-block__title {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-13, 0.8125rem);
  color: var(--c-text);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.consent-block__text {
  font-size: var(--fs-12);
  color: var(--c-text-muted);
  line-height: 1.55;
  margin: 0 0 10px;
}

.consent-block__text a {
  color: var(--c-primary-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-block__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: var(--fs-13, 0.8125rem);
  color: var(--c-text);
  user-select: none;
  font-family: var(--f-body);
  font-weight: 500;
  line-height: 1.4;
}

.consent-block__check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.consent-block__check .check__box {
  margin-top: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   Compliance / grievance footer notice
   ========================================================================== */

.footer__compliance {
  margin-top: var(--s-16);
  padding-top: var(--s-16);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-24);
  font-size: var(--fs-12);
  color: var(--c-text-on-dark-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.footer__compliance h5 {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFB1C4;
  margin: 0 0 6px;
}

.footer__compliance p { margin: 0 0 6px; }
.footer__compliance a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer__compliance a:hover { color: #FFB1C4; }

.footer__compliance-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.footer__compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-pill);
  font-family: var(--f-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.footer__compliance-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
}

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

/* ---------- Filter chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--s-32);
}

.chip {
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  color: var(--c-text-muted);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-family: var(--f-heading);
  font-weight: 500;
  font-size: var(--fs-14);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover { color: var(--c-text); border-color: var(--c-soft-purple); }
.chip.is-active,
.chip:has(input:checked) {
  background: var(--g-purple);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-glow);
}
.chip__count {
  font-size: var(--fs-12);
  opacity: 0.7;
  font-weight: 600;
}

/* ---------- Comparison table ---------- */

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-14);
  vertical-align: middle;
}
.compare tbody tr:last-child td { border-bottom: 0; }

.compare thead th {
  background: var(--c-surface-alt);
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}

.compare thead th.is-featured {
  background: var(--g-purple);
  color: #fff;
  position: relative;
}
.compare thead th.is-featured::before {
  content: "POPULAR";
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #FFB1C4;
  margin-bottom: 4px;
}

.compare td:not(:first-child),
.compare th:not(:first-child) {
  text-align: center;
}

.compare tbody td:first-child {
  font-family: var(--f-heading);
  font-weight: 500;
  color: var(--c-text);
}

.compare tbody td.is-featured {
  background: var(--c-surface-tint);
  font-weight: 600;
  color: var(--c-primary-purple);
}

.compare-yes {
  display: inline-flex;
  width: 22px; height: 22px;
  background: var(--g-purple-soft);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.compare-no {
  color: var(--c-text-soft);
  font-size: var(--fs-18);
}

@media (max-width: 720px) {
  .compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare { min-width: 600px; }
}

/* ---------- Map embed ---------- */

.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Process step list ---------- */

.process {
  display: flex;
  flex-direction: column;
  gap: var(--s-20);
}

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50px;
  bottom: -22px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-soft-purple), transparent);
}

.process-step__num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--g-purple);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-heading);
  font-weight: 700;
  box-shadow: var(--sh-glow);
}

.process-step__body h4 {
  font-size: var(--fs-16);
  margin: 6px 0 4px;
}
.process-step__body p {
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  margin: 0;
}

/* ---------- Article cards ---------- */

.article-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
  position: relative;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.article-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--g-purple-soft);
  position: relative;
  overflow: hidden;
}
.article-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.18), transparent 60%);
}
.article-card__cover-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  opacity: 0.6;
}

.article-card__body {
  padding: var(--s-24);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-12);
  color: var(--c-text-soft);
  font-family: var(--f-heading);
}

.article-card__title {
  font-size: var(--fs-18);
  margin: 0;
  font-weight: 600;
  color: var(--c-text);
}

.article-card__excerpt {
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  margin: 0;
  flex: 1;
}

.article-card .badge {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}

/* ---------- Pricing cards ---------- */

.pricing-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-32);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-border-strong);
}

.pricing-card--featured {
  background: var(--g-purple);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-glow);
  transform: translateY(-6px);
}
.pricing-card--featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(122, 15, 34, 0.42);
  border-color: transparent;
}

.pricing-card--featured .pricing-card__tag,
.pricing-card--featured .pricing-card__price,
.pricing-card--featured .pricing-card__period,
.pricing-card--featured .pricing-card__feat {
  color: #fff;
}

.pricing-card__badge {
  position: absolute;
  top: -1px; right: var(--s-24);
  background: var(--g-crimson);
  color: #fff;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-12);
  padding: 6px 14px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-card__tag {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary-purple);
  margin-bottom: var(--s-8);
}

.pricing-card__name {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: var(--fs-24);
  margin-bottom: var(--s-8);
  color: inherit;
}

.pricing-card__desc {
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  margin-bottom: var(--s-20);
  min-height: 44px;
}
.pricing-card--featured .pricing-card__desc { color: rgba(255,255,255,0.86); }

.pricing-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--s-24);
}
.pricing-card__price {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: var(--fs-40);
  line-height: 1;
  color: var(--c-deep-purple);
}
.pricing-card__period {
  font-size: var(--fs-14);
  color: var(--c-text-muted);
}

.pricing-card__feats {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-card__feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-14);
  color: var(--c-text-muted);
}
.pricing-card__feat svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-primary-purple);
}
.pricing-card--featured .pricing-card__feat svg { color: #FFB1C4; }

.pricing-card .btn { margin-top: auto; }

/* ---------- Compliance shields ---------- */

.compliance-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-24);
}
@media (max-width: 960px) { .compliance-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .compliance-strip { grid-template-columns: repeat(2, 1fr); } }

.compliance-shield {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: var(--s-20) var(--s-16);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: all var(--t-base) var(--ease-out);
}
.compliance-shield:hover {
  border-color: var(--c-soft-purple);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.compliance-shield__icn {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--c-surface-tint);
  color: var(--c-primary-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base) var(--ease-out);
}
.compliance-shield:hover .compliance-shield__icn {
  background: var(--g-purple);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.compliance-shield__t {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-14);
  color: var(--c-text);
  margin: 0;
}
.compliance-shield__d {
  font-size: var(--fs-12);
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Tabs (pill-style) — used by affiliate.php for language switcher */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-20);
}
.tabs__btn {
  background: transparent;
  border: 0;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-family: var(--f-heading);
  font-weight: 500;
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  flex: 1 1 auto;
  text-align: center;
}
.tabs__btn:hover { color: var(--c-text); background: rgba(255,255,255,0.6); }
.tabs__btn.is-active {
  background: var(--g-purple);
  color: #fff;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.28);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-in var(--t-slow) var(--ease-out); }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* OTP input row */

.otp-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.otp-row .form-control { max-width: 200px; letter-spacing: 0.4em; font-weight: 600; }

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-heading);
  font-size: var(--fs-12);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface-tint);
  color: var(--c-primary-purple);
}

/* Alert message */

.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: var(--fs-14);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--s-16);
}
.alert--info {
  background: var(--c-surface-tint);
  color: var(--c-deep-purple);
  border: 1px solid var(--c-border);
}
.alert--success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.alert--danger {
  background: rgba(210, 20, 60, 0.08);
  color: var(--c-crimson);
  border: 1px solid rgba(210, 20, 60, 0.18);
}

/* ---------- Navigation ---------- */

.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              backdrop-filter var(--t-base) var(--ease-out);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}

.nav-wrap.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--sh-sm);
  border-bottom-color: var(--c-border);
}

/* Pull the right edge of the nav (Get Demo button) to the viewport edge */
.nav-wrap > .container {
  padding-right: 0;
  max-width: none;
}

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

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: var(--fs-20);
  letter-spacing: -0.02em;
  color: var(--c-deep-purple);
}
.nav__brand:hover { color: var(--c-primary-purple); }
.nav__brand > img { height: 38px; width: auto; }

.nav__brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--g-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(122, 15, 34, 0.28);
}

.nav__brand-mark img { width: 22px; height: 22px; }

.nav__brand-pipe {
  color: var(--c-crimson);
  margin: 0 2px;
  font-weight: 700;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.nav__indicator { display: none; }

.nav__menu > li {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav__menu > li + li::before {
  content: "";
  display: block;
  width: 1px;
  height: 14px;
  background: var(--c-border-strong);
  margin: 0 4px;
}

.nav__link {
  font-family: var(--f-heading);
  font-weight: 500;
  font-size: var(--fs-14);
  color: #000;
  padding: 10px 14px 10px 22px;
  position: relative;
  background: transparent;
  border-radius: 0;
  letter-spacing: 0.01em;
  transition: color var(--t-fast) var(--ease-out);
}

.nav__link::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-crimson);
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--c-crimson);
}
.nav__link:hover::before,
.nav__link.is-active::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.nav__link.is-active {
  color: var(--c-crimson);
  font-weight: 600;
}

/* Nav now always has a white frosted background, so dark-hero overrides
   are no longer needed. The .is-over-dark class set by JS becomes harmless. */

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  padding-left: 8px;
}
/* No separator line before the CTA button */
.nav__menu > li.nav__cta::before { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  color: var(--c-text);
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 0;
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-base) var(--ease-out);
}

.nav-wrap.is-open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-wrap.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav-wrap.is-open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }

  /* The CTA-flush-to-edge trick above only makes sense on desktop;
     once the hamburger replaces it, give it normal right margin. */
  .nav-wrap > .container { padding-right: 16px; }

  /* Dimmed, blurred backdrop behind the open menu panel (visual only —
     pointer-events off so page scroll/taps behave as before). */
  /* Note: .nav-wrap's backdrop-filter makes it the containing block for
     fixed descendants, so use an explicit 100vh height instead of bottom:0. */
  .nav-wrap::after {
    content: "";
    position: fixed;
    left: 0; right: 0;
    top: var(--nav-h);
    height: 100vh;
    background: rgba(48, 4, 14, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
    transition: opacity var(--t-slow) var(--ease-out),
                visibility 0s linear var(--t-slow);
  }
  .nav-wrap.is-open::after {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--t-slow) var(--ease-out),
                visibility 0s linear 0s;
  }

  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF2F5 100%);
    padding: 10px 16px 20px;
    border-bottom: 0;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 30px 60px rgba(90, 8, 23, 0.30);
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height var(--t-slow) var(--ease-out),
                opacity var(--t-base) var(--ease-out),
                visibility 0s linear var(--t-slow);
  }
  .nav-wrap.is-open .nav__menu {
    max-height: calc(100vh - var(--nav-h));
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: max-height var(--t-slow) var(--ease-out),
                opacity var(--t-base) var(--ease-out),
                visibility 0s linear 0s;
  }

  .nav__menu > li { width: 100%; }
  .nav__indicator { display: none; }
  .nav__menu > li + li::before { display: none; }
  .nav__link::before { display: none; }

  /* Hairline dividers between rows (skipped before the CTA block,
     which draws its own separator). */
  .nav__menu > li + li:not(.nav__cta) { border-top: 1px solid rgba(122, 15, 34, 0.07); }

  /* Staggered slide-in of menu rows when the panel opens */
  .nav__menu > li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
  }
  .nav-wrap.is-open .nav__menu > li { opacity: 1; transform: none; }
  .nav-wrap.is-open .nav__menu > li:nth-child(2) { transition-delay: 0.04s; }
  .nav-wrap.is-open .nav__menu > li:nth-child(3) { transition-delay: 0.08s; }
  .nav-wrap.is-open .nav__menu > li:nth-child(4) { transition-delay: 0.12s; }
  .nav-wrap.is-open .nav__menu > li:nth-child(5) { transition-delay: 0.16s; }
  .nav-wrap.is-open .nav__menu > li:nth-child(6) { transition-delay: 0.20s; }
  .nav-wrap.is-open .nav__menu > li:nth-child(7) { transition-delay: 0.24s; }
  .nav-wrap.is-open .nav__menu > li:nth-child(8) { transition-delay: 0.28s; }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 14px;
    border-radius: 12px;
    font-size: var(--fs-16);
    font-weight: 500;
    border: 0;
    color: var(--c-text);
    letter-spacing: 0;
    position: relative;
    transition: background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                padding var(--t-fast) var(--ease-out);
  }

  /* Right-side chevron on every row */
  .nav__link::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.30;
    flex-shrink: 0;
    margin-left: 12px;
    transition: opacity var(--t-fast) var(--ease-out);
  }

  .nav__link:hover,
  .nav__link.is-active {
    background: linear-gradient(90deg, rgba(200, 16, 46, 0.07), rgba(224, 68, 88, 0.13));
    color: var(--c-crimson);
    box-shadow: inset 3px 0 0 var(--c-crimson);
    padding-left: 18px;
  }
  .nav__link:hover::after,
  .nav__link.is-active::after { opacity: 0.75; }
  .nav__link.is-active { font-weight: 600; }

  .nav__cta {
    margin-left: 0;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(122, 15, 34, 0.12);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav__cta .btn {
    width: 100%;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* ---------- Table-of-contents list (terms / privacy pages) ---------- */

.toc-list {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
  color: var(--c-text-muted);
}
.toc-list li {
  list-style: disc;
  padding-left: 4px;
  margin-bottom: 4px;
  line-height: 1.5;
}
.toc-list li::marker {
  color: var(--c-primary-purple);
  font-weight: 600;
}
.toc-list a {
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.toc-list a:hover {
  color: var(--c-primary-purple);
  border-bottom-color: var(--c-primary-purple);
}

/* ---------- Scroll-to-top button ---------- */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(40, 10, 14, 0.28);
  background: var(--g-crimson);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--sh-glow-crimson);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition: opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  z-index: 90;
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.scroll-top:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 22px 50px rgba(210, 20, 60, 0.32);
  border-color: rgba(40, 10, 14, 0.45);
}
.scroll-top:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}
.scroll-top::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(20, 4, 24, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out, ease-out),
              transform 0.18s var(--ease-out, ease-out);
}
.scroll-top::after {
  content: "";
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  border: 5px solid transparent;
  border-left-color: rgba(20, 4, 24, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out, ease-out),
              transform 0.18s var(--ease-out, ease-out);
}
.scroll-top:hover::before,
.scroll-top:focus-visible::before,
.scroll-top:hover::after,
.scroll-top:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 600px) {
  .scroll-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

/* ---------- Modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 19, 64, 0.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}

.modal-backdrop.is-open {
  display: flex;
  opacity: 1;
}

.modal {
  background: #fff;
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  padding: var(--s-32);
  box-shadow: var(--sh-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--t-base) var(--ease-out);
}

.modal-backdrop.is-open .modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-surface-alt);
  border: 0;
  color: var(--c-text-muted);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { background: var(--c-surface-tint); color: var(--c-text); }

/* ---------- Deployment cards (Cloud / Private / Hybrid / On-Prem) ---------- */

.deploy-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-32) var(--s-24);
  text-align: center;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.deploy-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--g-purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.deploy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: var(--c-soft-purple);
}
.deploy-card:hover::after { transform: scaleX(1); }

.deploy-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s-16);
  border-radius: var(--r-md);
  background: var(--c-surface-tint);
  color: var(--c-primary-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all var(--t-base) var(--ease-out);
}
.deploy-card:hover .deploy-card__icon {
  background: var(--g-purple);
  color: #fff;
  transform: scale(1.06);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.faq:hover { border-color: var(--c-border-strong); }
.faq[open] {
  border-color: var(--c-soft-purple);
  box-shadow: var(--sh-sm);
}

.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-16);
  color: var(--c-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-size: 24px;
  color: var(--c-primary-purple);
  transition: transform var(--t-base) var(--ease-out);
  line-height: 1;
}
.faq[open] .faq__q::after { transform: rotate(45deg); }

.faq__a {
  padding: 0 24px 20px;
  color: var(--c-text-muted);
  font-size: var(--fs-14);
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.footer {
  background: linear-gradient(180deg, #5A0817 0%, #8A1830 100%);
  color: var(--c-text-on-dark);
  padding: var(--s-80) 0 var(--s-32);
  position: relative;
  overflow: hidden;
}

/* Gradient accent hairline across the very top of the footer */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7A0F22 0%, #E04458 30%, #FF7A99 50%, #E04458 70%, #7A0F22 100%);
}

/* ---------- Footer stats strip ---------- */
.footer__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  margin: 0 0 var(--s-64);
  padding: var(--s-24) var(--s-32);
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.footer__stat {
  text-align: center;
  position: relative;
  padding: var(--s-8) var(--s-12);
}
.footer__stat + .footer__stat::before {
  content: '';
  position: absolute;
  top: 18%;
  left: 0;
  width: 1px;
  height: 64%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.22), transparent);
}
.footer__stat-num {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: var(--fs-32);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFB1C4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.footer__stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 8px;
  display: block;
  font-weight: 500;
}

@media (max-width: 900px) {
  .footer__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-12);
    padding: var(--s-20);
  }
  .footer__stat + .footer__stat::before { display: none; }
  .footer__stat {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: var(--s-16);
  }
  .footer__stat-num { font-size: var(--fs-28); }
}
@media (max-width: 540px) {
  .footer__stats { grid-template-columns: 1fr; }
}

.footer__top {
  display: grid;
  /* 4 children: Brand | Platform | Company | Contact. */
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: var(--s-40);
  position: relative;
  z-index: 1;
  align-items: start;
}

/* Contact rows — icon + text */
.footer__cx {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--c-text-on-dark-muted);
  font-size: var(--fs-14);
  transition: color var(--t-fast) var(--ease-out);
}
a.footer__cx:hover { color: #fff; }
.footer__cx svg { flex-shrink: 0; margin-top: 2px; opacity: 0.75; }

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: var(--fs-24);
  margin-bottom: var(--s-16);
}
.footer__brand > img { height: 32px; width: auto; }

.footer__desc {
  color: var(--c-text-on-dark-muted);
  font-size: var(--fs-14);
  margin-bottom: var(--s-24);
  max-width: 340px;
}

.footer__heading {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-14);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: var(--s-16);
}
.footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #FF7A99, #E04458);
}
@media (max-width: 980px) and (min-width: 541px) {
  /* 2-col footer grid: keep accents tidy */
  .footer__heading::after { width: 24px; }
}

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

.footer__link {
  color: var(--c-text-on-dark-muted);
  font-size: var(--fs-14);
  transition: color var(--t-fast) var(--ease-out), padding var(--t-fast) var(--ease-out);
  display: inline-block;
}
.footer__link:hover {
  color: #fff;
  padding-left: 4px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: var(--s-16);
  flex-wrap: wrap;
}

.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              filter var(--t-fast) var(--ease-out);
}
.footer__social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  filter: brightness(1.08);
}

/* Always-on brand colours so each platform is instantly recognisable. */
.footer__social a[aria-label="Facebook"]     { background: #1877F2; }
.footer__social a[aria-label="LinkedIn"]     { background: #0A66C2; }
.footer__social a[aria-label="Twitter / X"]  { background: #000000; }
.footer__social a[aria-label="Instagram"]    {
  background:
    radial-gradient(circle at 30% 107%,
      #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-radius: 10px;
}
.footer__social a[aria-label="YouTube"]      { background: #FF0000; }

.footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: var(--fs-12);
}
.footer__legal a { color: var(--c-text-on-dark-muted); transition: color var(--t-fast) var(--ease-out); }
.footer__legal a:hover { color: #fff; }
@media (max-width: 720px) {
  .footer__legal { justify-content: center; }
}

.footer__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-20);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-12) var(--s-16);
  color: var(--c-text-on-dark-muted);
  font-size: var(--fs-12);
  position: relative;
  z-index: 1;
}

.footer__bottom a {
  color: #fff;
  font-weight: 500;
}
.footer__bottom a:hover { color: #FFB1C4; }
@media (max-width: 720px) {
  .footer__bottom { justify-content: center; text-align: center; }
}

.footer__blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 68, 88, 0.30), transparent 65%);
  filter: blur(40px);
  top: -200px; right: -200px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-32);
  }
  .footer__bottom { justify-content: center; text-align: center; }
}
@media (max-width: 540px) {
  /* Keep Company and Platform side by side so the footer stays short;
     the brand block and Contact (wider content) span the full width. */
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s-24) var(--s-16); }
  .footer__top > div:first-child,
  .footer__top > div:last-child { grid-column: 1 / -1; }
}

/* Footer app-store bar — full-width glass strip between the link columns
   and the compliance row. Label + tagline on the left, four uniform
   store badges on the right; stacks and centres on smaller screens. */
.footer__apps--bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-16) var(--s-32);
  margin: var(--s-48) 0 var(--s-24);
  padding: var(--s-20) var(--s-24);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  position: relative;
  z-index: 1;
}
.footer__apps-intro { min-width: 220px; }
.footer__apps-label {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-16);
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
}
.footer__apps-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.footer__apps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 1020px) {
  .footer__apps--bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--s-16);
  }
  .footer__apps-row { justify-content: center; }
}
@media (max-width: 560px) {
  .footer__apps-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  /* Grid columns can be narrower than the badge's desktop min-width —
     let each badge shrink to fill its own cell so they never overlap. */
  .footer__apps-row .play-badge {
    min-width: 0;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
  }
}
.play-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 14px;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  text-decoration: none;
  min-width: 158px;
  min-height: 48px;
  flex: 0 0 auto;
  transition: background var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.play-badge:hover {
  background: #fff;
  border-color: #fff;
  color: #12030f;
  box-shadow: 0 12px 28px rgba(255,255,255,0.22);
  transform: translateY(-2px);
}
.play-badge:hover .play-badge__sub  { color: rgba(18,3,15,0.62); }
.play-badge:hover .play-badge__name { color: #12030f; }
.play-badge__icon { width: 22px; height: 24px; flex: 0 0 auto; display: block; }
.play-badge__text { display: flex; flex-direction: column; line-height: 1; }
.play-badge__sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
  line-height: 1.1;
}
.play-badge__name {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: var(--fs-14);
  line-height: 1.2;
  margin-top: 2px;
}

/* =====================================================================
   D247 MODAL — used by form submit success / error feedback
===================================================================== */
.d247-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 5, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.d247-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.d247-modal__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(122, 15, 34, 0.28), 0 4px 18px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 26px;
  text-align: center;
  transform: translateY(14px) scale(.96);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.1);
}
.d247-modal.is-open .d247-modal__card { transform: translateY(0) scale(1); }
.d247-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.d247-modal--success .d247-modal__icon {
  background: linear-gradient(135deg, #1da750 0%, #25d366 100%);
  box-shadow: 0 8px 20px rgba(29,167,80,.35);
}
.d247-modal--error .d247-modal__icon {
  background: linear-gradient(135deg, #8a1830 0%, #c8102e 100%);
  box-shadow: 0 8px 20px rgba(200,16,46,.35);
}
.d247-modal--info .d247-modal__icon {
  background: linear-gradient(135deg, #5A0817 0%, #C8102E 100%);
  box-shadow: 0 8px 20px rgba(122,15,34,.35);
}
.d247-modal__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.d247-modal__body {
  font-size: 14.5px;
  line-height: 1.55;
  color: #444;
  margin: 0 0 22px;
}
.d247-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, #5A0817 0%, #C8102E 100%);
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.d247-modal__close:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(200,16,46,.35); }
.d247-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Bento mosaic ----------
   Used by features.html for the 24-card catalogue and the 16 outstanding
   features tiles. Cells of varied sizes for visual hierarchy.
   grid-auto-flow: dense lets the layout repack when the chip filter hides cells. */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-20);
  grid-auto-flow: dense;
}

.bento > *           { height: 100%; }
.bento .card--wide,
.bento .module-card--wide  { grid-column: span 2; }
.bento .card--tall,
.bento .module-card--tall  { grid-row: span 2; }
.bento .card--xl,
.bento .module-card--xl    { grid-column: span 2; grid-row: span 2; }

/* Accent variant — gradient background, used for spotlight cells */
.bento .card--accent,
.bento .module-card--accent {
  background: var(--g-purple);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-glow);
}
.bento .card--accent::before,
.bento .module-card--accent::before { opacity: 0; }
.bento .card--accent .card__title,
.bento .card--accent .card__desc,
.bento .module-card--accent span { color: #fff; }
.bento .card--accent .card__desc { color: rgba(255,255,255,0.88); }
.bento .card--accent .card__icon,
.bento .module-card--accent .module-card__icon {
  background: rgba(255,255,255,0.20);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

/* Bigger title in wide / xl cells so they earn their footprint */
.bento .card--wide .card__title,
.bento .card--xl   .card__title { font-size: var(--fs-20); }
.bento .card--xl   .card__desc  { font-size: var(--fs-16); }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card--wide,
  .bento .card--xl,
  .bento .module-card--wide,
  .bento .module-card--xl { grid-column: span 2; }
  .bento .card--tall,
  .bento .card--xl,
  .bento .module-card--tall,
  .bento .module-card--xl { grid-row: auto; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card--wide,
  .bento .card--xl,
  .bento .module-card--wide,
  .bento .module-card--xl { grid-column: span 1; }
}

/* ---------- Why Doctor 24By7 grid ----------
   Premium Bento layout: one 2x2 featured hero + 8 normal cards
   with numbered badges, gradient borders and lift-on-hover. */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-20);
  grid-auto-flow: dense;
  grid-auto-rows: 1fr;
}

.why-card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--s-32);
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  isolation: isolate;
  transition: transform 320ms var(--ease-out),
              box-shadow 320ms var(--ease-out);
  overflow: hidden;
}

/* Gradient border (pseudo-element with mask trick) */
.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--c-border) 0%, var(--c-border-strong) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
  transition: background 320ms var(--ease-out), opacity 320ms var(--ease-out);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(122, 15, 34, 0.14);
}
.why-card:hover::before {
  background: var(--g-purple);
}

.why-card__num {
  position: absolute;
  top: var(--s-24);
  right: var(--s-24);
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: var(--fs-32);
  color: var(--c-surface-tint);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

.why-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-tint);
  color: var(--c-primary-purple);
  flex: 0 0 auto;
  transition: transform 320ms var(--ease-out);
}
.why-card:hover .why-card__icon { transform: scale(1.06) rotate(-3deg); }

.why-card__title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: var(--fs-18);
  color: var(--c-text);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.why-card__desc {
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Featured 2x2 hero card */
.why-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--g-purple);
  color: #fff;
  padding: var(--s-40);
  justify-content: space-between;
  overflow: hidden;
}
.why-card--featured::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 60%);
  opacity: 1;
}
.why-card--featured:hover { box-shadow: 0 30px 60px rgba(122, 15, 34, 0.36); }
.why-card--featured:hover::before { background: linear-gradient(135deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 60%); }
.why-card--featured .why-card__num {
  font-size: var(--fs-48);
  color: rgba(255,255,255,0.22);
  top: var(--s-32);
  right: var(--s-32);
}
.why-card--featured .why-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.why-card--featured .why-card__title {
  font-size: var(--fs-28);
  color: #fff;
  letter-spacing: -0.02em;
}
.why-card--featured .why-card__desc {
  font-size: var(--fs-16);
  color: rgba(255,255,255,0.92);
  max-width: 36ch;
}

/* Decorative blobs inside the featured card */
.why-card__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
.why-card__blob--a {
  width: 240px; height: 240px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.30), transparent 65%);
}
.why-card__blob--b {
  width: 180px; height: 180px;
  top: -60px; left: -60px;
  background: radial-gradient(circle, rgba(255,177,196,0.40), transparent 65%);
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .why-card--featured { grid-column: span 2; grid-row: span 1; }
  .why-card--featured .why-card__title { font-size: var(--fs-24); }
}
@media (max-width: 540px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card--featured { grid-column: span 1; padding: var(--s-32); }
  .why-card { padding: var(--s-24); }
}

/* =====================================================================
   Slider CAPTCHA — drag-to-verify widget (replaces Google reCAPTCHA)
===================================================================== */
.d247-slider {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}
.d247-slider__track {
  position: relative;
  height: 46px;
  border-radius: 23px;
  background: rgba(122, 15, 34, 0.06);
  border: 1px solid rgba(122, 15, 34, 0.15);
  overflow: hidden;
  touch-action: none;
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.d247-slider__fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, rgba(122, 15, 34, 0.18), rgba(224, 68, 88, 0.22));
  border-radius: 23px 0 0 23px;
  z-index: 1;
  pointer-events: none;
}
.d247-slider__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 46px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(122, 15, 34, 0.62);
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s;
}
.d247-slider__handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7A0F22, #C8102E);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: grab;
  box-shadow: 0 4px 10px rgba(122, 15, 34, 0.35);
  z-index: 3;
  transition: box-shadow 0.15s ease,
              background 0.2s ease,
              color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.d247-slider__handle:hover  { box-shadow: 0 5px 12px rgba(122, 15, 34, 0.45); }
.d247-slider__handle:active { cursor: grabbing; box-shadow: 0 6px 14px rgba(122, 15, 34, 0.55); }
.d247-slider__handle:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}
.d247-slider.is-verified .d247-slider__track {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: #16a34a;
}
.d247-slider.is-verified .d247-slider__fill {
  background: transparent;
  width: 100% !important;
}
.d247-slider.is-verified .d247-slider__label {
  color: #fff;
}
.d247-slider.is-verified .d247-slider__handle {
  background: #fff;
  color: #16a34a;
  cursor: default;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.4);
}
.d247-slider.is-invalid .d247-slider__track {
  animation: d247-slider-shake 0.4s ease;
}
@keyframes d247-slider-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX( 6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX( 4px); }
}

/* Honeypot input — hidden from users, filled by naive bots. */
.d247-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* =====================================================================
   PNG image CAPTCHA — distorted-text image + input + refresh
   (replaces the slider widget; PNG lives at /captcha-image.php)
===================================================================== */
.d247-imgcaptcha {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.d247-imgcaptcha__img {
  height: 46px;
  width: 140px;
  border-radius: 10px;
  border: 1px solid rgba(122, 15, 34, 0.15);
  background: rgba(122, 15, 34, 0.04);
  display: block;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
}
.d247-imgcaptcha__refresh {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(122, 15, 34, 0.06);
  border: 1px solid rgba(122, 15, 34, 0.15);
  color: var(--c-primary-purple, #7A0F22);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.d247-imgcaptcha__refresh:hover {
  background: rgba(122, 15, 34, 0.12);
}
.d247-imgcaptcha__refresh:active {
  transform: rotate(-45deg);
}
.d247-imgcaptcha__refresh:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}
.d247-imgcaptcha__input {
  flex: 1 1 120px;
  min-width: 120px;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(122, 15, 34, 0.20);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text, #111);
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.d247-imgcaptcha__input:focus {
  outline: none;
  border-color: var(--c-primary-purple, #7A0F22);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}
.d247-imgcaptcha__input::placeholder {
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  color: rgba(122, 15, 34, 0.5);
}

/* =====================================================================
   Custom dropdown — .d247-select-wrap
   Progressive enhancement of native <select data-d247-select>.
   The trigger inherits the .form-control look; the panel is fully
   styled so open-state design is consistent across browsers.
===================================================================== */
.d247-select-wrap {
  position: relative;
  width: 100%;
}
.d247-select__trigger {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 14px;
  background: #fff;
  border: 1px solid rgba(122, 15, 34, 0.20);
  border-radius: 10px;
  color: var(--c-text, #111);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.d247-select__trigger:hover {
  border-color: rgba(122, 15, 34, 0.38);
}
.d247-select-wrap[data-open="true"] .d247-select__trigger,
.d247-select__trigger:focus-visible {
  outline: none;
  border-color: var(--c-primary-purple, #7A0F22);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}
.d247-select__value {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.d247-select__value--placeholder {
  color: rgba(122, 15, 34, 0.48);
  font-weight: 400;
}
.d247-select__caret {
  width: 16px;
  height: 16px;
  color: var(--c-primary-purple, #7A0F22);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.d247-select-wrap[data-open="true"] .d247-select__caret {
  transform: rotate(180deg);
}

/* The popup panel — where the open-state design lives. */
.d247-select__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 200;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(122, 15, 34, 0.14);
  border-radius: 14px;
  box-shadow:
    0 14px 34px rgba(122, 15, 34, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.d247-select-wrap[data-open="true"] .d247-select__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.d247-select__option {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--c-text, #111);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.d247-select__option.is-highlighted {
  background: rgba(122, 15, 34, 0.06);
  color: var(--c-primary-purple, #7A0F22);
}
.d247-select__option.is-selected {
  background: linear-gradient(135deg, rgba(122, 15, 34, 0.10), rgba(224, 68, 88, 0.10));
  color: var(--c-primary-purple, #7A0F22);
  font-weight: 600;
}
.d247-select__option.is-placeholder {
  color: rgba(122, 15, 34, 0.5);
  font-style: italic;
}

/* Custom scrollbar for the panel (webkit + firefox). */
.d247-select__panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 15, 34, 0.25) transparent;
}
.d247-select__panel::-webkit-scrollbar { width: 8px; }
.d247-select__panel::-webkit-scrollbar-track { background: transparent; }
.d247-select__panel::-webkit-scrollbar-thumb {
  background: rgba(122, 15, 34, 0.22);
  border-radius: 4px;
}
.d247-select__panel::-webkit-scrollbar-thumb:hover {
  background: rgba(122, 15, 34, 0.38);
}
