/* ============================================
   RECIPE FUNNEL — Progressive Unlock System
   Blog: Receitinha da Chef
   
   O conteúdo da receita é revelado em etapas.
   Cada step = novo pageview = mais ad impressions.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  --rf-primary: #E8590C;
  --rf-primary-light: #FF6B2B;
  --rf-primary-dark: #C64A09;
  --rf-secondary: #F59F00;
  --rf-accent: #FFD43B;
  --rf-bg: #FFFAF5;
  --rf-card-bg: #FFFFFF;
  --rf-card-border: rgba(0, 0, 0, 0.06);
  --rf-text: #1A1A1A;
  --rf-text-mid: #555555;
  --rf-text-light: #888888;
  --rf-success: #16A34A;
  --rf-success-bg: #F0FDF4;
  --rf-locked-bg: #F8F8F8;
  --rf-locked-text: #BBBBBB;
  --rf-gradient: linear-gradient(135deg, #E8590C, #F59F00);
  --rf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --rf-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --rf-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --rf-shadow-glow: 0 4px 20px rgba(232, 89, 12, 0.2);
  --rf-radius: 16px;
  --rf-radius-sm: 10px;
  --rf-radius-pill: 50px;
  --rf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.funnel-page {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--rf-bg);
  color: var(--rf-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- layout --- */
.funnel-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ===========================================
   TOP BAR — Stepper / Progress
   =========================================== */
.funnel-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rf-card-border);
  padding: 12px 0;
}

.funnel-topbar__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.funnel-brand {
  text-align: center;
  font-size: 0.78rem;
  color: var(--rf-text-light);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.funnel-brand a {
  color: var(--rf-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Stepper */
.funnel-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.funnel-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.funnel-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #E0E0E0;
  background: #FFF;
  color: var(--rf-text-light);
  transition: var(--rf-transition);
  position: relative;
}

.funnel-step-item.completed .funnel-step-dot {
  background: var(--rf-success);
  border-color: var(--rf-success);
  color: #FFF;
}

.funnel-step-item.active .funnel-step-dot {
  background: var(--rf-primary);
  border-color: var(--rf-primary);
  color: #FFF;
  box-shadow: 0 0 0 4px rgba(232, 89, 12, 0.15);
}

.funnel-step-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--rf-text-light);
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.funnel-step-item.active .funnel-step-label {
  color: var(--rf-primary);
  font-weight: 700;
}

.funnel-step-item.completed .funnel-step-label {
  color: var(--rf-success);
}

/* Connector lines */
.funnel-step-connector {
  flex: 1;
  height: 2px;
  background: #E0E0E0;
  z-index: 1;
  margin: 0 -4px;
  position: relative;
  top: -10px;
}

.funnel-step-connector.done {
  background: var(--rf-success);
}

/* ===========================================
   HERO SECTION (Step 1 — Intro)
   =========================================== */
.funnel-hero {
  padding: 28px 0 0;
  text-align: center;
}

.funnel-hero__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--rf-radius);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--rf-shadow-md);
}

.funnel-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.funnel-hero__img-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #FFF;
  padding: 6px 14px;
  border-radius: var(--rf-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.funnel-hero__title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.funnel-hero__title span {
  color: var(--rf-primary);
}

.funnel-hero__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rf-text-mid);
  margin-bottom: 20px;
}

/* Recipe meta info */
.funnel-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.funnel-meta__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-card-border);
  border-radius: var(--rf-radius-sm);
  padding: 12px 18px;
  min-width: 90px;
  box-shadow: var(--rf-shadow-sm);
}

.funnel-meta__icon {
  font-size: 1.3rem;
}

.funnel-meta__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rf-text);
}

.funnel-meta__label {
  font-size: 0.7rem;
  color: var(--rf-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===========================================
   LOCKED PREVIEW — shows what's coming
   =========================================== */
.funnel-locked-preview {
  margin-top: 16px;
}

.funnel-locked-preview__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rf-text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.funnel-locked-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-card-border);
  border-radius: var(--rf-radius-sm);
  margin-bottom: 8px;
  transition: var(--rf-transition);
}

.funnel-locked-item.unlocked {
  border-left: 3px solid var(--rf-success);
}

.funnel-locked-item.current {
  border-left: 3px solid var(--rf-primary);
  background: #FFF5EE;
}

.funnel-locked-item.locked {
  opacity: 0.55;
}

.funnel-locked-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.funnel-locked-item__text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--rf-text);
}

.funnel-locked-item.locked .funnel-locked-item__text {
  color: var(--rf-locked-text);
}

.funnel-locked-item__status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--rf-radius-pill);
}

.funnel-locked-item.unlocked .funnel-locked-item__status {
  background: var(--rf-success-bg);
  color: var(--rf-success);
}

.funnel-locked-item.current .funnel-locked-item__status {
  background: #FFF0E6;
  color: var(--rf-primary);
}

.funnel-locked-item.locked .funnel-locked-item__status {
  background: #F5F5F5;
  color: #CCC;
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */
.funnel-section {
  margin-top: 28px;
}

.funnel-section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.funnel-section__emoji {
  font-size: 1.4rem;
}

.funnel-section__title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Ingredients */
.funnel-ingredients-group {
  margin-bottom: 18px;
}

.funnel-ingredients-group__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rf-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(232, 89, 12, 0.12);
}

.funnel-ingredient {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--rf-radius-sm);
  transition: background 0.2s;
}

.funnel-ingredient:nth-child(even) {
  background: rgba(0, 0, 0, 0.018);
}

.funnel-ingredient__check {
  width: 22px;
  height: 22px;
  border: 2px solid #DDD;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--rf-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
}

.funnel-ingredient__check.checked {
  background: var(--rf-success);
  border-color: var(--rf-success);
}

.funnel-ingredient__check.checked::after {
  content: '✓';
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 800;
}

.funnel-ingredient__text {
  font-size: 0.95rem;
  color: var(--rf-text);
  line-height: 1.4;
}

.funnel-ingredient.checked-row .funnel-ingredient__text {
  text-decoration: line-through;
  opacity: 0.5;
}

/* Modo de Preparo */
.funnel-steps-list {
  counter-reset: recipe-step;
}

.funnel-recipe-step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rf-card-border);
  position: relative;
}

.funnel-recipe-step:last-child {
  border-bottom: none;
}

.funnel-recipe-step__number {
  width: 36px;
  height: 36px;
  background: var(--rf-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.funnel-recipe-step__content {
  flex: 1;
}

.funnel-recipe-step__text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--rf-text);
}

.funnel-recipe-step__tip {
  margin-top: 8px;
  padding: 10px 14px;
  background: #FFF8ED;
  border-left: 3px solid var(--rf-secondary);
  border-radius: 0 var(--rf-radius-sm) var(--rf-radius-sm) 0;
  font-size: 0.85rem;
  color: var(--rf-text-mid);
}

.funnel-recipe-step__tip strong {
  color: var(--rf-primary-dark);
}

/* Dicas */
.funnel-tip-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-card-border);
  border-radius: var(--rf-radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--rf-shadow-sm);
}

.funnel-tip-card__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.funnel-tip-card__text {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--rf-text-mid);
}

/* Utensílios / Afiliados */
.funnel-product-card {
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-card-border);
  border-radius: var(--rf-radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--rf-shadow-sm);
  transition: var(--rf-transition);
}

.funnel-product-card:hover {
  box-shadow: var(--rf-shadow-md);
  transform: translateY(-2px);
}

.funnel-product-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.funnel-product-card__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--rf-text-mid);
  margin-bottom: 12px;
}

.funnel-product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rf-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--rf-transition);
}

.funnel-product-card__link:hover {
  color: var(--rf-primary-dark);
  gap: 10px;
}

/* ===========================================
   CTA — NEXT STEP BUTTON
   =========================================== */
.funnel-cta-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rf-card-border);
  text-align: center;
}

.funnel-cta-section__label {
  font-size: 0.82rem;
  color: var(--rf-text-light);
  margin-bottom: 12px;
  font-weight: 500;
}

.funnel-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  background: var(--rf-gradient);
  color: #FFF;
  border: none;
  padding: 24px 20px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--rf-radius-pill);
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--rf-transition);
  box-shadow: var(--rf-shadow-glow);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.funnel-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: left 0.5s ease;
}

.funnel-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(232, 89, 12, 0.3);
}

.funnel-cta:hover::before {
  left: 100%;
}

.funnel-cta:active {
  transform: translateY(-1px);
}

.funnel-cta__arrow {
  transition: transform 0.3s ease;
  font-size: 1.15rem;
}

.funnel-cta:hover .funnel-cta__arrow {
  transform: translateX(4px);
}

.funnel-cta--success {
  background: linear-gradient(135deg, var(--rf-success), #1EC658);
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.22);
}

.funnel-cta--success:hover {
  box-shadow: 0 6px 28px rgba(22, 163, 74, 0.32);
}

/* Back button */
.funnel-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--rf-card-border);
  color: var(--rf-text-mid);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--rf-radius-pill);
  cursor: pointer;
  transition: var(--rf-transition);
  margin-top: 20px;
}

.funnel-back-btn:hover {
  background: var(--rf-card-bg);
  border-color: var(--rf-primary);
  color: var(--rf-primary);
}

/* Next step teaser */
.funnel-next-teaser {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--rf-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ===========================================
   AD SLOTS
   =========================================== */
.funnel-ad-slot {
  width: 100%;
  margin: 24px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rf-radius-sm);
  overflow: hidden;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}

.fade-in-delay-4 {
  animation-delay: 0.4s;
  opacity: 0;
}

/* pulse on CTA */
.funnel-cta-pulse {
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: var(--rf-shadow-glow);
  }

  50% {
    box-shadow: 0 4px 30px rgba(232, 89, 12, 0.35);
  }
}

/* ===========================================
   FOOTER
   =========================================== */
.funnel-footer {
  text-align: center;
  padding: 32px 0 20px;
  font-size: 0.75rem;
  color: var(--rf-text-light);
}

.funnel-footer a {
  color: var(--rf-primary);
  text-decoration: none;
  font-weight: 600;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 480px) {
  .funnel-hero__title {
    font-size: 1.4rem;
  }

  .funnel-meta {
    gap: 10px;
  }

  .funnel-meta__item {
    padding: 10px 14px;
    min-width: 80px;
  }

  .funnel-cta {
    width: 100%;
    padding: 22px 16px;
    font-size: 1.15rem;
  }

  .funnel-step-label {
    font-size: 0.58rem;
    max-width: 60px;
  }

  .funnel-step-dot {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .funnel-section__title {
    font-size: 1.12rem;
  }
}

@media (min-width: 768px) {
  .funnel-wrap {
    padding: 0 24px 60px;
  }

  .funnel-hero__title {
    font-size: 1.9rem;
  }

  .funnel-recipe-step__text {
    font-size: 1.02rem;
  }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.funnel-cta:focus-visible,
.funnel-ingredient__check:focus-visible {
  outline: 3px solid var(--rf-primary);
  outline-offset: 3px;
}