/* YasnoCore advertising landing motion layer */
:root {
  --yc-motion-green: #0f936d;
  --yc-motion-blue: #2e74b5;
  --yc-motion-ink: #071426;
}

@keyframes ycHeroImageFloat {
  0%, 100% { transform: translate3d(-1.2%, 0, 0) scale(1.045) rotate(.15deg); }
  35% { transform: translate3d(1.2%, -1.1%, 0) scale(1.075) rotate(-.2deg); }
  70% { transform: translate3d(.2%, .8%, 0) scale(1.055) rotate(.12deg); }
}

@keyframes ycSoftBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -11px; }
}

@keyframes ycSoftBobAlt {
  0%, 100% { translate: 0 0; }
  50% { translate: 7px -7px; }
}

@keyframes ycGlowPulse {
  0%, 100% { box-shadow: 0 22px 58px rgba(15, 23, 42, .13); }
  50% { box-shadow: 0 30px 82px rgba(15, 147, 109, .24); }
}

@keyframes ycArrowPulse {
  0%, 100% { opacity: .38; translate: 0 0; }
  50% { opacity: 1; translate: 5px 0; }
}

@keyframes ycShimmer {
  0% { transform: translateX(-170%) skewX(-18deg); }
  55%, 100% { transform: translateX(260%) skewX(-18deg); }
}

@keyframes ycBorderBreath {
  0%, 100% { border-color: rgba(148, 163, 184, .35); }
  50% { border-color: rgba(15, 147, 109, .62); }
}

/* Hero imagery: deeper, slower movement than the old flat pan. */
.offer-product-page .visual-img,
.forecast-page .forecast-hero-image img,
.diagnostic-page:not(.forecast-page):not(.offer-product-page) .diagnostic-dashboard-card img {
  will-change: transform;
  animation: ycHeroImageFloat 10s cubic-bezier(.45, 0, .22, 1) infinite !important;
  transform-origin: center;
}

.offer-product-page .visual,
.forecast-page .forecast-hero-media,
.diagnostic-page:not(.forecast-page):not(.offer-product-page) .diagnostic-dashboard-card {
  --yc-rx: 0deg;
  --yc-ry: 0deg;
  transform: perspective(1250px) rotateX(var(--yc-rx)) rotateY(var(--yc-ry));
  transform-style: preserve-3d;
  transition: transform .22s ease-out, box-shadow .45s ease;
  will-change: transform;
}

.offer-product-page .visual,
.forecast-page .forecast-hero-image,
.diagnostic-page .diagnostic-dashboard-card {
  animation: ycGlowPulse 7s ease-in-out infinite;
}

.offer-product-page .floating-chip,
.forecast-page .forecast-float,
.diagnostic-page .subhero-card,
.diagnostic-page .diagnostic-chart-card {
  animation: ycSoftBob 5.8s ease-in-out infinite;
  will-change: translate;
}

.offer-product-page .floating-chip:nth-of-type(even),
.forecast-page .forecast-float-confidence,
.forecast-page .forecast-float-risk,
.diagnostic-page .diagnostic-chart-card {
  animation-name: ycSoftBobAlt;
}

.offer-product-page .chip-b,
.forecast-page .forecast-float-confidence { animation-delay: -1.7s; }
.offer-product-page .chip-c,
.forecast-page .forecast-float-risk { animation-delay: -3.1s; }

/* High-contrast labels over light hero artwork. */
.offer-product-page .floating-chip,
.forecast-page .forecast-float {
  color: #071426 !important;
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(15, 147, 109, .48) !important;
  box-shadow: 0 14px 34px rgba(7, 20, 38, .18), inset 0 0 0 1px rgba(255, 255, 255, .85) !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

.offer-product-page .floating-chip {
  font-weight: 900 !important;
  letter-spacing: .01em;
}

.forecast-page .forecast-float strong,
.forecast-page .forecast-float span {
  text-shadow: none !important;
}

.forecast-page .forecast-float span {
  color: #526173 !important;
}

/* A moving light pass makes CTAs feel active without flashing. */
.diagnostic-page .button,
.offer-product-page .button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.diagnostic-page .button::after,
.offer-product-page .button::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35% auto -35% -35%;
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent);
  animation: ycShimmer 5.4s ease-in-out infinite;
  pointer-events: none;
}

.diagnostic-page .button-secondary::after,
.offer-product-page .button-secondary::after {
  background: linear-gradient(90deg, transparent, rgba(15, 147, 109, .16), transparent);
}

/* Flow diagrams stay alive after their entrance. */
.diagnostic-page .diagnostic-flow > i,
.offer-product-page .work > i,
.diagnostic-page .yc-value-cycle > i {
  animation: ycArrowPulse 2.1s ease-in-out infinite;
}

.diagnostic-page .diagnostic-flow > i:nth-of-type(2),
.diagnostic-page .yc-value-cycle > i:nth-of-type(2) { animation-delay: .28s; }
.diagnostic-page .diagnostic-flow > i:nth-of-type(3),
.diagnostic-page .yc-value-cycle > i:nth-of-type(3) { animation-delay: .56s; }
.diagnostic-page .yc-value-cycle > i:nth-of-type(4) { animation-delay: .84s; }

/* Scroll reveal is activated by app.js only; without JS all content stays visible. */
.yc-motion-ready .yc-reveal {
  opacity: 0;
  translate: 0 24px;
  scale: .985;
  transition:
    opacity .72s cubic-bezier(.2, .75, .2, 1),
    translate .72s cubic-bezier(.2, .75, .2, 1),
    scale .72s cubic-bezier(.2, .75, .2, 1);
  transition-delay: var(--yc-delay, 0ms);
}

.yc-motion-ready .yc-reveal.yc-in-view {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Cards receive clearer separation plus a restrained interactive lift. */
.diagnostic-page .artifact,
.diagnostic-page .forecast-value-grid article,
.diagnostic-page .forecast-proof > div,
.diagnostic-page .diagnostic-flow article,
.diagnostic-page .diagnostic-metrics article,
.diagnostic-page .yc-value-cycle article,
.offer-product-page .card,
.offer-product-page .steps li,
.offer-product-page .donut-card,
.offer-product-page .material-row,
.offer-product-page .media-card {
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
  animation: ycBorderBreath 7.5s ease-in-out infinite;
}

.diagnostic-page .diagnostic-price strong,
.offer-product-page .price strong,
.diagnostic-page .forecast-price strong {
  text-shadow: 0 12px 28px rgba(15, 147, 109, .18);
}

.diagnostic-page .diagnostic-donut,
.offer-product-page .donut {
  transition: transform .4s ease, filter .4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .diagnostic-page .artifact:hover,
  .diagnostic-page .forecast-value-grid article:hover,
  .diagnostic-page .forecast-proof > div:hover,
  .diagnostic-page .diagnostic-flow article:hover,
  .diagnostic-page .diagnostic-metrics article:hover,
  .diagnostic-page .yc-value-cycle article:hover,
  .offer-product-page .card:hover,
  .offer-product-page .steps li:hover,
  .offer-product-page .donut-card:hover,
  .offer-product-page .material-row:hover,
  .offer-product-page .media-card:hover {
    transform: translateY(-7px);
    border-color: rgba(15, 147, 109, .72);
    box-shadow: 0 22px 48px rgba(15, 23, 42, .13);
  }

  .diagnostic-page .diagnostic-donut:hover,
  .offer-product-page .donut:hover {
    transform: rotate(8deg) scale(1.055);
    filter: saturate(1.12);
  }
}

@media (max-width: 760px) {
  .offer-product-page .visual-img,
  .forecast-page .forecast-hero-image img,
  .diagnostic-page:not(.forecast-page):not(.offer-product-page) .diagnostic-dashboard-card img {
    animation-duration: 14s !important;
  }

  .offer-product-page .floating-chip,
  .forecast-page .forecast-float,
  .diagnostic-page .subhero-card,
  .diagnostic-page .diagnostic-chart-card {
    animation-duration: 8s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diagnostic-page *,
  .diagnostic-page *::before,
  .diagnostic-page *::after,
  .offer-product-page *,
  .offer-product-page *::before,
  .offer-product-page *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .yc-motion-ready .yc-reveal {
    opacity: 1;
    translate: none;
    scale: 1;
    transition: none;
  }
}
