.pepron-tile-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.pepron-tile-bg.is-visible {
  opacity: 1;
}

.pepron-tile-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 520ms ease, background 520ms ease;
}

.pepron-tile-bg[data-active="tree"]::before {
  opacity: 1;
  background:
    radial-gradient(circle at 28% 34%, rgba(255,255,255,0.2), transparent 30%),
    linear-gradient(135deg, #46b854 0%, #2f8f4c 46%, #174635 100%);
}

.pepron-tile-bg[data-active="flow"]::before {
  opacity: 1;
  background:
    radial-gradient(circle at 72% 40%, rgba(255,255,255,0.24), transparent 30%),
    linear-gradient(135deg, #e9f8ec 0%, #49b85a 42%, #1e6242 100%);
}

.pepron-tile-bg[data-active="calm"]::before {
  opacity: 1;
  background:
    radial-gradient(circle at 46% 45%, rgba(255,255,255,0.22), transparent 32%),
    linear-gradient(135deg, #f3fbf5 0%, #64c96d 38%, #1a5b3e 100%);
}

.pepron-tile-bg[data-active="footer"]::before {
  opacity: 1;
  background:
    radial-gradient(circle at 40% 42%, rgba(255,255,255,0.08), transparent 34%),
    linear-gradient(135deg, #202327 0%, #15181c 48%, #0e1114 100%);
}

.tile-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 520ms ease;
}

.tile-canvas.is-active {
  opacity: 0.78;
}

.tile-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.animated-tile {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: white;
  background: transparent;
  isolation: isolate;
}

.animated-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      rgba(12, 48, 32, 0.18),
      rgba(12, 48, 32, 0.18)
    );
  pointer-events: none;
}

.animated-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.12), transparent 42%),
    linear-gradient(
      180deg,
      rgba(10, 45, 30, 0.08) 0%,
      rgba(10, 45, 30, 0.16) 100%
    );
  pointer-events: none;
}

.animated-tile-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  padding: 90px 24px;
  pointer-events: none;
}

.animated-tile h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: white;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.18);
}

.animated-tile h2 span {
  color: #111827;
}

.footer-dark-tile h2 span {
  color: #36aa42;
}

.animated-tile p {
  max-width: 760px;
  margin: 26px auto 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.root-tile::before {
  background: linear-gradient(rgba(20, 72, 45, 0.16), rgba(20, 72, 45, 0.2));
}

.flow-tile::before {
  background: linear-gradient(rgba(20, 72, 45, 0.12), rgba(20, 72, 45, 0.2));
}

.calm-tile::before {
  background: linear-gradient(rgba(20, 72, 45, 0.12), rgba(20, 72, 45, 0.18));
}

.footer-dark-tile::before {
  background: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.34));
}

.footer-dark-tile h2 {
  color: white;
}

@media (max-width: 640px) {
  .animated-tile { min-height: 520px; }
  .animated-tile-content { padding: 70px 24px; }
  .animated-tile h2 { font-size: 48px; }
  .animated-tile p { font-size: 21px; }
}

.animated-cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0,0,0,0.04);
}

.card-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.animated-cta-card .card-front {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.spark-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.spark-icon svg {
  width: 20px;
  height: 20px;
}