/* Cards */
.card {
  background: var(--color-surface);
  background: radial-gradient(circle at top left, var(--color-surface) 0%, var(--color-surface-elevated) 100%);
  background-position: top left;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  min-height: 50vh;
  margin-bottom: var(--space-lg);
}

.card:hover {
  border-color: var(--color-border-light);
}

/* Feature Cards - Full Width Split Sections */
.card--feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  align-items: stretch;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.card--feature:hover {
  border-color: transparent;
}

/* Solid Cards Variant */
.solid-cards .card--feature {
  background: var(--color-surface);
  background: radial-gradient(circle at top left, var(--color-surface) 0%, var(--color-surface-elevated) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  margin-bottom: 0;
}

.solid-cards .card--feature:hover {
  border-color: var(--color-border-light);
}

.feature-image-fade-grayscale {
  width: calc(100% + var(--space-xl)*2);
  margin-left: calc(-1* var(--space-xl));
  margin-top: calc(-1* var(--space-xl));
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  opacity: .8;
  mix-blend-mode: color-dodge;
  mask-image: var(--small-mask-bottom-to-top);
  background-position: center bottom;
}

.card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-3xl) var(--space-4xl) var(--space-3xl) var(--space-xl);
  justify-content: center;

}

.card__header {
  margin-bottom: var(--space-sm);
}

.card__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.3;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.card__description {
  color: var(--color-text-secondary);
  line-height: 1.7;
}



/* .card__body .btn--secondary::after {
  content: " ⟶";
  margin-left: 0.5em;
  transition: transform var(--transition-base);
  display: inline-block;
} */

/* 
.card__body .btn--secondary:hover::after {
  transform: translateX(4px);
} */


.card--feature .card__image {
  background: var(--color-surface-elevated);
  border-radius: 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
}

/* Remove background when images are present */
.card--feature .card__image:has([class*="card__image-wrapper--"]) {
  background: transparent;
}

.card--feature .card__image img {
  border-radius: 0;
}

.card--feature .card__image-placeholder {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  text-align: center;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

/* CUSTOM IMAGES ON CARDS */
section *:not(.card__label) .card__image .font-black {
  width: 30%;
  margin-left: 10%;
  display: block;
  line-height: 0.8;
  filter:
    drop-shadow(-8px 0 16px rgba(255, 0, 212, 0.4)) drop-shadow(-16px 0 32px rgba(255, 0, 212, 0.2)) drop-shadow(8px 0 16px rgba(0, 224, 255, 0.4)) drop-shadow(16px 0 32px rgba(0, 224, 255, 0.2));
  text-shadow: 0 4px 8px rgba(0, 0, 0, .5);
  font-size: var(--text-6xl);
  overflow: visible;
  z-index: 2;
  color: #fff !important;
}

section.theme-light *:not(.card__label) .card__image .font-black {
  width: 30%;
  margin-left: 10%;
  display: block;
  line-height: 0.8;
  filter:
    drop-shadow(-8px 0 16px rgba(255, 0, 212, 0.2)) drop-shadow(-16px 0 32px rgba(255, 0, 212, 0.1)) drop-shadow(8px 0 16px rgba(0, 224, 255, 0.2)) drop-shadow(16px 0 32px rgba(0, 224, 255, 0.1));
  font-size: var(--text-6xl);
  overflow: visible;
  z-index: 2;
  color: var(--color-text) !important;
}




.card__image-wrapper.sportsbook {

  background: url("../images/features/sports-background.avif");

}

.card__image-wrapper.sportsbook .foreground {

  background: url("../images/features/sports-foreground.avif");

}

/* Image left variant */
.card--feature.card--image-left .card__image {
  border-radius: 0;
}

.card--feature.card--image-left .card__image img {
  border-radius: 0;
}

/* Card Image Wrapper - for positioning decorators */
.card__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.1);
  z-index: -1;
  /* mask-image: radial-gradient(circle at center right, black 0%, transparent 150%); */
}



.card__image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card__image-wrapper .card__image-placeholder {
  position: relative;
  z-index: 1;
}

/* Card Background and Foreground - Simplified Structure */
.card__background,
.card__foreground,
.card__foreground__secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.1s ease-out;
  will-change: transform;
  /* mask-image: radial-gradient(circle at center right, black 0%, transparent 150%); */
}



.card__background {
  z-index: 0;
}

.card__foreground {
  z-index: 1;
}

/* Sportsbook Card Images */
.card__image-wrapper--sportsbook .card__background {
  background-image: url('../images/features/sports-background.avif');
}

.card__image-wrapper--sportsbook .card__foreground {
  background-image: url('../images/features/sports-foreground.avif');
}

/* Casino games Card Images */
.card__image-wrapper--casinogames .card__background {
  background-image: url('../images/features/casino-background.avif');
}

.card__image-wrapper--casinogames .card__foreground {
  background-image: url('../images/features/casino-foreground.avif');
}

/* Live Casino games Card Images */
.card__image-wrapper--livecasinogames .card__background {
  background-image: url('../images/features/live-casino-background.avif');
}

.card__image-wrapper--livecasinogames .card__foreground {
  background-image: url('../images/features/live-casino-foreground.avif');
}

/* Lotto Card Images */
.card__image-wrapper--lotto .card__background {
  background-image: url('../images/features/lotto-background.avif');
}

.card__image-wrapper--lotto .card__foreground {
  background-image: url('../images/features/lotto-foreground.avif');
}

/* Originals Card Images */
.card__image-wrapper--originals .card__background {
  background-image: url('../images/features/originals-background.avif');
}

.card__image-wrapper--originals .card__foreground {
  background-image: url('../images/features/originals-foreground.avif');
}


/* Owner Studio Card Images */
.card__image-wrapper--owner-studio .card__background {
  background-image: url('../images/owner-studio-background-narrow.webp');

  mask: none !important;
  margin-left: 10%;
}


.card__image-wrapper--owner-studio .card__foreground {
  background-image: url('../images/owner-studio-foreground-narrow.webp');

  margin-left: 10%;
  mask: none !important;


  z-index: 1;
}

.card__image-wrapper--owner-studio .card__foreground__secondary {
  background-image: url('../images/owner-studio-foreground-narrow-2.webp');

  margin-left: 10%;
  mask: none !important;
  z-index: 2;
}

/* Customization Card Images */
.card__image-wrapper--customization .card__background {
  background-image: url('../images/customization.webp');
  filter: blur(2px);
  opacity: 0.75;
}

.card__image-wrapper--customization .card__foreground {
  background-image: url('../images/nocode-foreground.webp');
  width: 80%;
  margin-left: 10%;
}

/* Launch Card Images */
.card__image-wrapper--launch .card__background {
  background-image: url('../images/wildfans-price-background-card-background-7.webp');
  mask: none;

}

.card__image-wrapper--launch .card__foreground {
  background-image: none;
  mask: none;

}

.card__image-wrapper--customization {

  flex-direction: column;
}

.card__image-wrapper--customization p.price {

  margin-left: 350px;

}

.card__image-wrapper--customization span {
  width: 100%;
  clear: both;
  display: block;
}

.price-highlight {
  /* filter: drop-shadow(-8px 0 32px rgba(255, 0, 212, 0.4)) drop-shadow(-16px 0 64px rgba(255, 0, 212, 0.2)) drop-shadow(8px 0 32px rgba(0, 224, 255, 0.4)) drop-shadow(16px 0 64px rgba(0, 224, 255, 0.2)); */
  color: var(--color-text);
}

.new-price {
  margin: 0;
  font-size: 10rem !important;
}

.new-price-currency {
  font-size: 4rem;
  margin-top: -5rem;
}

.old-price-currency {
  font-size: 4rem;
  margin-top: -4rem;
  vertical-align: bottom;
  padding-bottom: 1.5rem;
}

.old-price {
  position: relative;
  display: inline-block;
  color: var(--color-text) !important;
  font-size: 2.5rem;
  font-weight: 900;
  margin-right: 1.5rem;
  vertical-align: top;
  margin-top: 1.2rem;
  opacity: 1;
  margin-left: var(--space-md);
}

span.price-disclaimer {
  font-size: 1.5rem;
  text-wrap: balance;
  font-weight: 900;
  margin-left: 0.5rem;
  text-wrap-style: pretty;
}


.old-price::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -15%;
  width: 130%;
  height: 24px;
  background: var(--color-primary);
  transform: translateY(-50%) rotate(-25deg);
  -webkit-mask-image: url("../images/strikethrough.svg");
  mask-image: url("../images/strikethrough.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}


/* No Code Card Images */
.card__image-wrapper--nocode .card__background {
  background-image: url('../images/nocode.webp');
  filter: blur(2px);
  background-position: center left;
  opacity: 0.75;
}

.card__image-wrapper--nocode .card__foreground {
  background-image: url('../images/customization-foreground.webp');
}


/* Gamification Card Images */
.card__image-wrapper--gamification .card__background {
  background-color: rgba(255, 255, 255, .05);
  background: radial-gradient(circle at top right, #FF00D4 -200%, transparent 70%),
    radial-gradient(circle at bottom left, #00E0FF -200%, transparent 70%);
  border-radius: var(--radius-lg);
}

.card__image-wrapper--gamification .card__foreground {
  background-image: url('../images/gamification.avif');
  width: 80%;
  margin-left: 10%;
}

/* Lumio Card Images */
.card__image-wrapper--lumio .card__background {
  background-image: url('../images/lumio.webp');
}

.card__image-wrapper--lumio .card__foreground {
  background-image: url('../images/lumio-foreground.webp');
  mask: none !important;
}

/* Lottie Animation Wrapper */
.card__image-wrapper--lottie {
  display: block;
  background: transparent;
  padding-left: var(--space-xl);
  padding-top: var(--space-lg);
}

/* Parallax data attribute for JS */
[data-parallax] {
  transition: transform 0.1s ease-out;
}

/* Responsive Adjustments */

/* Alternating Layout - Image on Right (default/odd) */
.card--feature .card__content {
  order: 1;
}

.card--feature .card__image {
  order: 2;
}

/* Acquisition Cards */
.card__image-wrapper--channels .card__background {
  background-image: url('../images/customization.webp');
  filter: blur(2px);
  opacity: 0.6;
}

.card__image-wrapper--channels .card__foreground {
  background-image: url('../images/acquisition/influencers.svg');
  background-size: 60%;
}

.card__image-wrapper--migration .card__background {
  background-image: url('../images/nocode.webp');
  filter: blur(2px);
  opacity: 0.6;
}

.card__image-wrapper--migration .card__foreground {
  background-image: url('../images/acquisition/jumpstart.svg');
  background-size: 60%;
}

.card__image-wrapper--campaigns .card__background {
  background-image: url('../images/customization.webp');
  filter: blur(2px);
  opacity: 0.6;
}

.card__image-wrapper--campaigns .card__foreground {
  background-image: url('../images/acquisition/short-videos.svg');
  background-size: 60%;
}

.card__image-wrapper--insights .card__background {
  background-image: url('../images/nocode.webp');
  filter: blur(2px);
  opacity: 0.6;
}

.card__image-wrapper--insights .card__foreground {
  background-image: url('../images/acquisition/analytics.svg');
  background-size: 60%;
}

/* Alternating Layout - Image on Left (even cards) */
.card--feature.card--image-left .card__content {
  order: 2;
}

.card--feature.card--image-left .card__image {
  order: 1;
}

/* Feature Cards Responsive */

/* Centered Cards (for single feature highlights) */
.card--centered {
  max-width: 900px;
  margin: 0 auto;
}

.card--centered.card--feature {
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-list li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Features Grid - Now single column for large cards */
.features__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.features__grid--two-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.features__grid--three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.features__grid--three-col .card--feature {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.features__grid--three-col .card--feature .card__content {
  flex: 1;
  padding: var(--space-xl);
}

.features__grid--three-col .card--feature .card__image {
  position: relative;
  height: 160px;
  min-height: 160px;
  order: -1;
  max-width: 150px;
}

.features__grid--three-col .card--feature .card__image .card__image-wrapper {
  height: 100%;
}

.features__grid--three-col .card--feature .card__title {
  font-size: var(--text-xl);
  min-height: 2.6em;
  /* Ensure 2 lines of text align properly */
  display: flex;
  align-items: flex-end;
  /* Bottom align title text */
}

.features__grid--three-col .card--feature .card__description {
  font-size: var(--text-sm);
  flex: 1;
  /* Stretch description to push buttons to bottom if present */
}

.features__grid--three-col .card--feature .card__body {
  flex: 1;
  justify-content: space-between;
}

.features__grid--three-col .card--feature .card__body .btn {
  margin-top: auto;
}


.features__grid--four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.features__grid--four-col .card--feature {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.features__grid--four-col .card--feature .card__content {
  flex: 1;
  padding: var(--space-xl);
}

.features__grid--four-col .card--feature .card__image {
  position: relative;
  height: 120px;
  min-height: 120px;
  order: -1;
}

.features__grid--four-col .card--feature .card__image .card__image-wrapper {
  height: 100%;
}

.features__grid--four-col .card--feature .card__title {
  font-size: var(--text-xl);
}

.features__grid--four-col .card--feature .card__description {
  font-size: var(--text-sm);
}

.features__grid--four-col .card--feature .card__body {
  flex: 1;
  justify-content: space-between;
}

.features__grid--four-col .card--feature .card__body .btn {
  margin-top: auto;
}
/* wildfans: pricing story-arc carries the casino visual comp as its section
   background (cover, anchored top-left), replacing the theme-dark gradient.
   loaded after layout.css so it overrides .story-arc.theme-dark's background-image. */
.story-arc.pricing-hero {
  background-image: url('../images/wildfans-price-background-clean.webp');
  background-size: cover;
  background-position: top left;
  background-repeat: no-repeat;
}

/* wildfans: pricing CTAs must pop against the purple section bg */
.pricing-hero .btn--primary {
  background: #FF2E9A;
  border-color: #FF2E9A;
  color: #14040e;
  box-shadow: 0 8px 30px rgba(255, 46, 154, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.pricing-hero .btn--primary:hover {
  background: #FF57B0;
  border-color: #FF57B0;
  color: #14040e;
}
.pricing-hero .btn--outline {
  background: rgba(255, 255, 255, 0.10);
  border-color: #ffffff;
  color: #ffffff;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.pricing-hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
}
