/*
 * DriveCash Landing — Icon Override
 * 0. Section-header icon-above-heading (injected by inline script)
 * 1. Removes duplicate icons inside flex headings
 * 2. Styles all icon containers in a clean Namecheap-inspired look
 *    while keeping DriveCash's teal / navy palette
 *
 * Brand colours (from compiled Tailwind):
 *   teal  (#57B3A9) — drivecash-primary / drivecash-green
 *   navy  (#1A355C) — drivecash-accent
 *   light (#F7F9FB) — drivecash-light
 */

/* ═══════════════════════════════════════════════════════════════
   -1. CARD SHOWCASE SECTION  (injected by inline script)
   ═══════════════════════════════════════════════════════════════ */

#dc-card-showcase {
  background: linear-gradient(160deg, #0E1E35 0%, #122847 55%, #1A355C 100%);
  padding: 90px 20px 100px;
  overflow: hidden;
  position: relative;
}

/* Subtle ambient glow blobs */
#dc-card-showcase::before,
#dc-card-showcase::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#dc-card-showcase::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(87,179,169,0.15) 0%, transparent 70%);
  top: -120px; left: -100px;
}
#dc-card-showcase::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,205,196,0.12) 0%, transparent 70%);
  bottom: -80px; right: -60px;
}

.dc-showcase-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Badge / eyebrow */
.dc-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(87,179,169,0.18);
  border: 1px solid rgba(87,179,169,0.45);
  color: #7CCDC4;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.dc-showcase-badge span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #57B3A9;
}

/* Headline */
.dc-showcase-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.15;
  margin: 0 0 12px;
}
.dc-showcase-headline em {
  font-style: normal;
  color: #7CCDC4;
}

/* Sub-copy */
.dc-showcase-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 52px;
}

/* Images row */
.dc-showcase-images {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 980px;
}

.dc-showcase-img-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2);
}

.dc-showcase-img-wrap:first-child {
  max-width: 420px;
  transform: rotate(-4deg) translateY(-12px);
}
.dc-showcase-img-wrap:last-child {
  max-width: 520px;
  transform: rotate(3deg) translateY(12px);
}

.dc-showcase-img-wrap:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03) !important;
  z-index: 2;
}

.dc-showcase-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  background: #122847;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.5),
    0 10px 30px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.06);
  animation: dc-img-fadein 0.4s ease-out both;
}

@keyframes dc-img-fadein {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes dc-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

/* Glow ring behind each image */
.dc-showcase-img-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(87,179,169,0.2) 0%, transparent 65%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.dc-showcase-img-wrap:hover::before {
  opacity: 1;
}

/* Caption chips under each image */
.dc-showcase-caption {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,40,71,0.92);
  border: 1px solid rgba(87,179,169,0.4);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
}

/* CTA row */
.dc-showcase-cta {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.dc-showcase-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.dc-showcase-cta a.primary {
  background: #57B3A9;
  color: #fff;
  border: 2px solid #57B3A9;
  box-shadow: 0 6px 24px rgba(87,179,169,0.35);
}
.dc-showcase-cta a.primary:hover {
  background: #7CCDC4;
  border-color: #7CCDC4;
  box-shadow: 0 8px 32px rgba(87,179,169,0.5);
  transform: translateY(-2px);
}
.dc-showcase-cta a.secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.3);
}
.dc-showcase-cta a.secondary:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 700px) {
  .dc-showcase-images {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .dc-showcase-img-wrap:first-child,
  .dc-showcase-img-wrap:last-child {
    max-width: 90vw;
    transform: none;
  }
  .dc-showcase-img-wrap:hover {
    transform: translateY(-6px) scale(1.02) !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   -0.5. VIDEO SHOWCASE SECTION  (injected by inline script)
   ═══════════════════════════════════════════════════════════════ */

#dc-video-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;       /* wide cinematic ratio */
  min-height: 420px;
  overflow: hidden;
}

/* Full-bleed background video */
.dc-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Dark gradient overlay — heavier on the right to make text legible */
.dc-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(10,22,40,0.15) 0%,
      rgba(10,22,40,0.45) 40%,
      rgba(10,22,40,0.82) 70%,
      rgba(10,22,40,0.92) 100%);
}

/* Text content — mid-right */
.dc-video-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.dc-video-statement {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.55;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.dc-video-statement em {
  font-style: normal;
  color: teal;
  -webkit-text-fill-color: teal;
}

/* Responsive — stack text bottom-center on small screens */
@media (max-width: 640px) {
  #dc-video-showcase {
    aspect-ratio: 16 / 10;
    min-height: 320px;
  }
  .dc-video-overlay {
    background: linear-gradient(to top,
      rgba(10,22,40,0.90) 0%,
      rgba(10,22,40,0.50) 55%,
      rgba(10,22,40,0.10) 100%);
  }
  .dc-video-content {
    top: auto;
    bottom: 24px;
    right: 50%;
    transform: translateX(50%);
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 90%;
  }
}


/* ═══════════════════════════════════════════════════════════════
   0. SECTION-HEADER ICON ABOVE HEADING  (injected by icon-lift.js)
   ═══════════════════════════════════════════════════════════════ */

.dc-section-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;          /* space between icon and heading */
}

.dc-section-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;                   /* 72 px – same as existing rounded-full w-16 circles */
  height: 4.5rem;
  border-radius: 50%;
  background: #eaf6f5;             /* pale teal – matches icon container style */
  border: 1.5px solid rgba(87, 179, 169, 0.55);
  box-shadow:
    0 2px 14px rgba(87, 179, 169, 0.2),
    0 1px 4px  rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dc-section-icon-circle:hover {
  box-shadow:
    0 6px 24px rgba(87, 179, 169, 0.3),
    0 2px 8px  rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.dc-section-icon-img {
  width:  2.25rem !important;
  height: 2.25rem !important;
  object-fit: contain;
  filter: none !important;
}



/* ═══════════════════════════════════════════════════════════════
   1. REMOVE DOUBLE / TRIPLE ICONS IN SECTION HEADERS
   ═══════════════════════════════════════════════════════════════

   Pattern A — sections that already have a circle-icon div above
   the heading (FAQ, How It Works, etc.):
     div.inline-flex.rounded-full   ← circle icon above
     h2.flex > img  img  ← both icons inside h2 are redundant

   Pattern B — headings without a circle above but with two flanking
   icons (one before text, one after):
     h1 / h2 / h3  >  img [text] img
     Keep the first; remove the trailing one.
*/

/* Pattern A: remove ALL inline heading icons when a circle sibling precedes the heading */
.rounded-full.inline-flex ~ h1 img,
.rounded-full.inline-flex ~ h2 img,
.rounded-full.inline-flex ~ h3 img,
.inline-flex.rounded-full ~ h1 img,
.inline-flex.rounded-full ~ h2 img,
.inline-flex.rounded-full ~ h3 img {
  display: none !important;
}

/* Pattern B: remove only the LAST icon (trailing decoration) in flex headings
   :not(:only-child) ensures we never hide a solitary icon */
h1.flex > img:last-child:not(:only-child),
h2.flex > img:last-child:not(:only-child),
h3.flex > img:last-child:not(:only-child) {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   2. NAMECHEAP-INSPIRED ICON CONTAINER STYLING
   Clean, flat circular / pill containers — airy teal-tinted
   background, crisp border, minimal shadow, no heavy glow.
   Icons remain their natural SVG colour (no forced invert).
   ═══════════════════════════════════════════════════════════════ */

/* ── 2a. Section-header circles
        e.g. div.inline-flex.w-16.h-16.rounded-full.bg-drivecash-white.border-2.border-drivecash-accent
   ── */
div.inline-flex.items-center.justify-center.rounded-full {
  background: #eaf6f5 !important;                          /* pale teal tint */
  border: 1.5px solid rgba(87, 179, 169, 0.55) !important; /* soft teal ring */
  box-shadow:
    0 2px 12px rgba(87, 179, 169, 0.18),
    0 1px 3px  rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

div.inline-flex.items-center.justify-center.rounded-full:hover {
  box-shadow:
    0 6px 22px rgba(87, 179, 169, 0.28),
    0 2px 6px  rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px) !important;
}

/* Keep icon strokes/fills natural (not forced white) */
div.inline-flex.items-center.justify-center.rounded-full > img {
  filter: none !important;
}


/* ── 2b. Card / feature gradient circles
        e.g. div.z-10.rounded-full.bg-gradient-to-br.from-drivecash-accent.to-drivecash-green
   ── */
div.rounded-full.bg-gradient-to-br {
  background: linear-gradient(
    145deg,
    #eaf6f5 0%,
    #c8ece9 100%
  ) !important;
  border: 1.5px solid rgba(87, 179, 169, 0.45) !important;
  box-shadow:
    0 4px 16px rgba(87, 179, 169, 0.18),
    0 1px 4px  rgba(0, 0, 0, 0.06) !important;
}

/* Show natural icon colour (undo the JS inline brightness(0) invert(1)) */
div.rounded-full.bg-gradient-to-br > img,
div.rounded-full.bg-gradient-to-br img {
  filter: none !important;
}


/* ── 2c. Benefit / feature rounded-xl containers
        e.g. div.flex-shrink-0.inline-flex.w-20.h-20.rounded-xl.bg-drivecash-light.border-2.border-drivecash-accent
   ── */
div.inline-flex.items-center.justify-center.rounded-xl {
  background: #eaf6f5 !important;
  border: 1.5px solid rgba(87, 179, 169, 0.45) !important;
  border-radius: 14px !important;
  box-shadow:
    0 2px 10px rgba(87, 179, 169, 0.14),
    0 1px 3px  rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

div.inline-flex.items-center.justify-center.rounded-xl:hover {
  box-shadow:
    0 6px 20px rgba(87, 179, 169, 0.24),
    0 2px 6px  rgba(0, 0, 0, 0.07) !important;
  transform: translateY(-2px) !important;
}

div.inline-flex.items-center.justify-center.rounded-xl > img {
  filter: none !important;
}


/* ── 2d. Standalone heading icons (single img, no circle container above)
        Give each a clean inline pill to match Namecheap's subtle icon framing
   ── */
h1.flex > img:first-child:only-child,
h1.flex > img:first-child:not(:only-child),
h2.flex > img:first-child:only-child,
h2.flex > img:first-child:not(:only-child),
h3.flex > img:first-child:only-child,
h3.flex > img:first-child:not(:only-child) {
  background: #eaf6f5;
  border-radius: 50%;
  padding: 7px;
  box-shadow: 0 2px 8px rgba(87, 179, 169, 0.18);
  flex-shrink: 0;
  box-sizing: content-box !important;
}


/* ── 2e. Small inline icons in CTA / sub-heading rows
        (h3.flex > img.h-7.w-7 etc.)  — inherit pill style above, no change needed */


/* ═══════════════════════════════════════════════════════════════
   3. CONSISTENT ICON IMAGE SIZING
   Ensure all icon img elements have crisp, consistent dimensions.
   ═══════════════════════════════════════════════════════════════ */
div.inline-flex.items-center.justify-center.rounded-full  > img,
div.inline-flex.items-center.justify-center.rounded-full    img {
  width:  2rem !important;
  height: 2rem !important;
  object-fit: contain;
}

div.inline-flex.items-center.justify-center.rounded-xl > img,
div.inline-flex.items-center.justify-center.rounded-xl   img {
  width:  2.5rem !important;
  height: 2.5rem !important;
  object-fit: contain;
}
