/* Salad.Now vs Big Recipe page-specific styles */

.compare-hero--big-recipe {
  padding-bottom: var(--space-7);
  position: relative;
}

.compare-hero--big-recipe::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.compare-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: var(--space-7);
}

.compare-hero__content {
  text-align: left;
}

.compare-hero__content .compare-hero__subtitle {
  margin-inline: 0;
}

.compare-hero__actions {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.compare-hero__support {
  margin: var(--space-3) 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-monitor {
  display: grid;
  justify-items: center;
}

.hero-monitor__frame {
  width: min(100%, 460px);
  border-radius: 16px;
  background: #15271c;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.38);
  padding: 12px;
}

.hero-monitor__chrome {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-monitor__chrome span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-monitor__chrome span:nth-child(1) {
  background: #ff5f56;
}

.hero-monitor__chrome span:nth-child(2) {
  background: #ffbd2e;
}

.hero-monitor__chrome span:nth-child(3) {
  background: #27c93f;
}

.hero-monitor__screen {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #f8f6f0;
  color: #1f241f;
  height: 300px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-monitor__feed {
  padding: 18px;
  display: grid;
  gap: 12px;
  animation: monitor-scroll 10s ease-in-out infinite;
}

.hero-monitor__feed p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-monitor__feed p:first-child,
.hero-monitor__feed p:nth-child(9) {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-monitor__ad {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  z-index: 10;
}

.ad-popup {
  background: #ffffff;
  border-radius: 12px;
  width: 85%;
  max-width: 320px;
  padding: 24px 20px 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  color: #1c1b17;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: #f1f1f1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #999;
}

.ad-popup__title {
  font-size: 1.25rem;
  color: #d93838;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.ad-popup__text {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.45;
  color: #666;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: none;
  font-weight: 400;
}

.ad-popup__btn {
  background: #d93838;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(217, 56, 56, 0.25);
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.ad-popup__tiny {
  font-size: 0.7rem;
  color: #aaa;
  text-decoration: underline;
  margin-top: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}

.ad-popup--video {
  padding: 8px;
  gap: 8px;
}

.ad-popup__video-ui {
  background: #000;
  color: #fff;
  height: 120px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}

.hero-monitor__ad--one {
  animation: ad-hit 10s ease-in-out infinite;
}

.hero-monitor__ad--two {
  animation: ad-hit 10s ease-in-out infinite 2.7s;
}

.hero-monitor__ad--three {
  animation: ad-hit 10s ease-in-out infinite 5.4s;
}

.hero-monitor__stand {
  width: 210px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  margin-top: 10px;
}

@keyframes monitor-scroll {
  0% {
    transform: translateY(0);
  }

  14% {
    transform: translateY(-80px);
  }

  28% {
    transform: translateY(-80px);
  }

  44% {
    transform: translateY(-176px);
  }

  58% {
    transform: translateY(-176px);
  }

  74% {
    transform: translateY(-276px);
  }

  88% {
    transform: translateY(-276px);
  }

  100% {
    transform: translateY(-362px);
  }
}

@keyframes ad-hit {

  0%,
  20%,
  100% {
    opacity: 0;
    pointer-events: none;
  }

  23%,
  33% {
    opacity: 1;
    pointer-events: auto;
  }

  36%,
  99% {
    opacity: 0;
    pointer-events: none;
  }
}

.big-recipe-win-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.big-recipe-win-card {
  border: none;
  border-radius: var(--radius);
  padding: var(--space-6);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.big-recipe-win-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.06rem;
}

.big-recipe-win-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.big-recipe-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.big-recipe-quote-card {
  margin: 0;
  border: none;
  border-radius: var(--radius);
  background: #ffffff;
  padding: var(--space-5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.big-recipe-quote-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.big-recipe-quote-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.big-recipe-sources {
  margin: 0 0 var(--space-3);
  padding-left: 18px;
  display: grid;
  gap: var(--space-2);
}

.big-recipe-sources li {
  color: var(--muted);
  font-size: 0.88rem;
}

.big-recipe-sources a {
  color: inherit;
}

@media (max-width: 980px) {
  .compare-hero__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-hero__content {
    text-align: center;
  }

  .compare-hero__content .compare-hero__subtitle {
    margin-inline: auto;
  }

  .compare-hero__actions {
    justify-content: center;
  }
}

@media (max-width: 820px) {

  .big-recipe-win-grid,
  .big-recipe-quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-monitor__feed,
  .hero-monitor__ad {
    animation: none;
  }
}