/* =============================================
   StartFood.com — Shared Stylesheet v2
   Mobile-first, bold visuals, zero dependencies
   ============================================= */

/* Fonts loaded via <link> in HTML head — no render-blocking @import */

:root {
  --primary:       #e8622a;
  --primary-dark:  #c44d18;
  --primary-light: #fde8dc;
  --secondary:     #2d6a4f;
  --secondary-light: #e8f5ee;
  --accent:        #f5a623;
  --bg:            #faf8f5;
  --bg-card:       #ffffff;
  --text:          #1a1a1a;
  --text-muted:    #6b6b6b;
  --border:        #e5e0d8;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:     0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.14);
  --max-width:     1140px;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'Playfair Display', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4rem; }
h1,h2,h3,h4 { line-height: 1.2; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 0; }
.section--alt { background: #f0ede8; }
.section--dark {
  background: #1a1a1a;
  color: #fff;
}

/* ── Navigation ── */
.nav {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(232,98,42,0.10);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-shadow: 0 1px 0 rgba(232,98,42,0.15);
}
.nav__logo span { color: var(--secondary); }
.nav__links { display: flex; gap: 0.25rem; list-style: none; padding: 0; }
.nav__links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0; transition: 0.2s;
}

@media (max-width: 680px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 2px solid var(--border);
    padding: 0.5rem;
  }
  .nav__links.open { display: flex; }
  .nav__links li a { display: block; padding: 0.7rem 1rem; border-radius: 8px; }
}

/* ── Hero — full-bleed CSS background, left-aligned editorial ── */
.hero {
  background:
    linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.25) 100%),
    url('https://images.unsplash.com/photo-1473093295043-cdd812d0e601?w=1600&q=85') center/cover no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.hero__content {
  max-width: 620px;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #e8622a, #f5a623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232,98,42,0.45);
}
.hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,98,42,0.55);
  text-decoration: none;
  color: #fff;
}
.hero__btn--ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.9);
  box-shadow: none;
}
.hero__btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.75);
  color: #fff;
  box-shadow: none;
}
@media (max-width: 680px) {
  .hero { min-height: 420px; padding: 3rem 0; }
  .hero__title { font-size: clamp(2.25rem, 9vw, 3rem); }
}

/* ── Section Headings ── */
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading__label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.section-title--light { color: #fff; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}
.section-subtitle--light { color: rgba(255,255,255,0.6); }

/* ── Cards Grid ── */
.cards { display: grid; gap: 1.75rem; }
.cards--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Colored accent stripe at top of card */
.card--recipe { border-top: 4px solid var(--primary); }
.card--tip    { border-top: 4px solid var(--secondary); }

.card__img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light), #fde8dc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.card--tip .card__img-wrap {
  background: linear-gradient(135deg, #e8f5ee, #c8e6d5);
}
.card__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0,0,0,0.06));
}

.card__body { padding: 1.5rem; }
.card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.card--tip .card__tag { color: var(--secondary); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
  line-height: 1.3;
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--primary); text-decoration: none; }
.card__desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.card__meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}
.card__link:hover { background: var(--primary); color: #fff; text-decoration: none; }
.card--tip .card__link { color: var(--secondary); background: var(--secondary-light); }
.card--tip .card__link:hover { background: var(--secondary); color: #fff; }

/* ── Ad Slots ── */
.ad-slot {
  width: 100%;
  background: #f0ede8;
  border: 1.5px dashed #ccc;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #aaa;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.ad-slot--leaderboard { height: 90px; max-width: 728px; }
.ad-slot--rectangle  { height: 250px; max-width: 336px; }
.ad-placeholder { pointer-events: none; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 1px; }

/* ── Amazon Affiliate Boxes ── */
.affiliate-box {
  background: linear-gradient(135deg, #fffbf7, #fff5eb);
  border: 1.5px solid #fcd9b0;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  transition: box-shadow 0.2s;
}
.affiliate-box:hover { box-shadow: 0 4px 20px rgba(245,166,35,0.15); }
.affiliate-box__icon { font-size: 2.25rem; flex-shrink: 0; }
.affiliate-box__info { flex: 1; }
.affiliate-box__name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.affiliate-box__desc { font-size: 0.82rem; color: var(--text-muted); }
.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #f5a623, #f0901a);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}
.affiliate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
  text-decoration: none;
  color: #fff;
}

/* ── Page Header (Article/Recipe pages) ── */
.page-header {
  background: linear-gradient(145deg, #1a1a1a 0%, #2d1a0f 100%);
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(232,98,42,0.20) 0%, transparent 70%);
  pointer-events: none;
}
.page-header__inner { position: relative; z-index: 1; }
.page-header__tag {
  display: inline-block;
  background: rgba(232,98,42,0.2);
  border: 1px solid rgba(232,98,42,0.4);
  color: #ff9f72;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  max-width: 700px;
  margin: 0 auto 1rem;
  color: #fff;
  line-height: 1.15;
}
.page-header__meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Article content layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (min-width: 900px) { .article-layout { grid-template-columns: 1fr 320px; } }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--secondary); }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.35rem; }

/* Recipe stats bar */
.recipe-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: linear-gradient(135deg, #1a1a1a, #2d1a0f);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.recipe-stat {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.recipe-stat:last-child { border-right: none; }
.recipe-stat__label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.45); margin-bottom: 0.3rem; }
.recipe-stat__value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e8622a, #f5a623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ingredients list */
.ingredients {
  background: #fff;
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.ingredients h2 { border-bottom: none; margin-top: 0; padding-bottom: 0.75rem; border-bottom: 2px solid var(--primary-light); }
.ingredients li { padding: 0.4rem 0; border-bottom: 1px solid #f5f2ee; }
.ingredients li:last-child { border-bottom: none; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.steps li:hover { box-shadow: var(--shadow-md); }
.steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(232,98,42,0.3);
}

/* Tip box */
.tip-box {
  background: linear-gradient(135deg, #e8f5ee, #d4edde);
  border-left: 5px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
}
.tip-box strong { color: var(--secondary); }
.tip-box--warning {
  background: linear-gradient(135deg, #fff8e1, #ffecc8);
  border-color: var(--accent);
}
.tip-box--warning strong { color: #c07a00; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary-light);
  color: var(--text);
}
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { border-bottom: 1px solid #f5f2ee; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.15s, padding-left 0.15s;
}
.sidebar-links a:hover { color: var(--primary); text-decoration: none; padding-left: 0.4rem; }

/* ── Why Cook Section ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: background 0.2s, transform 0.2s;
}
.feature-item:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.feature-item__icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-item__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; color: #fff; }
.feature-item__desc { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── Amazon Picks Section ── */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

/* ── Footer ── */
.footer {
  background: #111;
  color: #ccc;
  padding: 4rem 1.25rem 2rem;
  position: relative;
}
.footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  position: absolute;
  top: 0; left: 0; right: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.6rem;
  display: block;
}
.footer__brand span { color: #fff; }
.footer__tagline { font-size: 0.85rem; color: #666; line-height: 1.6; }
.footer__heading { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 1rem; }
.footer__links { list-style: none; padding: 0; }
.footer__links li { margin-bottom: 0.4rem; }
.footer__links a { color: #777; font-size: 0.88rem; transition: color 0.15s; }
.footer__links a:hover { color: var(--primary); text-decoration: none; }
.footer__bottom {
  border-top: 1px solid #222;
  padding-top: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #555;
}
.footer__disclaimer { font-size: 0.72rem; color: #444; margin-top: 1rem; max-width: var(--max-width); margin-left: auto; margin-right: auto; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ── 404 page ── */
.not-found { text-align: center; padding: 6rem 1rem; }
.not-found h1 { font-family: var(--font-display); font-size: 7rem; font-weight: 900; color: var(--primary); line-height: 1; }
.not-found h2 { font-size: 1.75rem; margin: 0.5rem 0 1rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f0ede8;
  color: var(--text-muted);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s, color 0.15s;
}
.tag:hover { background: var(--primary-light); color: var(--primary); }

/* ── Divider wave ── */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg { display: block; }

/* =============================================
   Generator Feature Section (Homepage)
   ============================================= */
.section--generator {
  background: linear-gradient(145deg, #1a1a1a 0%, #2d1a0f 100%);
  position: relative;
  overflow: hidden;
}
.section--generator::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(232,98,42,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(45,106,79,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.gen-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 860px) {
  .gen-feature { grid-template-columns: 1fr 1fr; }
}
.gen-feature__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #fff;
  margin: 0.5rem 0 1rem;
  line-height: 1.1;
}
.gen-feature__sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.gen-feature__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.gen-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  cursor: default;
  transition: all 0.2s;
}
.gen-preview-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(232,98,42,0.35);
}
.gen-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem 2.25rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(232,98,42,0.45);
  text-decoration: none;
}
.gen-feature__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,98,42,0.55);
  text-decoration: none;
  color: #fff;
}

/* Mock recipe card in feature section */
.gen-feature__card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.gen-feature__card-header {
  background: rgba(232,98,42,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.gen-feature__card-emoji { font-size: 2.25rem; }
.gen-feature__card-name { font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 0.15rem; }
.gen-feature__card-sub { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.gen-feature__card-stats {
  display: flex;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.gen-feature__card-steps {
  list-style: none;
  padding: 1.1rem 1.5rem;
  margin: 0;
}
.gen-feature__card-steps li {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  padding-left: 1.1rem;
}
.gen-feature__card-steps li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.gen-feature__card-steps li:last-child { border-bottom: none; }
.gen-feature__card-badge {
  margin: 0.75rem 1.5rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* =============================================
   Card Images
   ============================================= */
.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card__img-wrap img { transform: scale(1.04); }
.card__img-wrap { overflow: hidden; }

/* =============================================
   Recipe Generator Page
   ============================================= */
.gen-page { background: var(--bg); min-height: 100vh; }

.gen-header {
  background: linear-gradient(145deg, #1a1a1a 0%, #2d1a0f 100%);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gen-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(232,98,42,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.gen-header__inner { position: relative; z-index: 1; }
.gen-header__tag {
  display: inline-flex; gap: 0.4rem; align-items: center;
  background: rgba(232,98,42,0.2); border: 1px solid rgba(232,98,42,0.4);
  color: #ff9f72; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 20px; margin-bottom: 1rem;
}
.gen-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900; color: #fff;
  margin-bottom: 0.75rem; line-height: 1.1;
}
.gen-header__title em {
  background: linear-gradient(135deg, #e8622a, #f5a623);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-style: normal;
}
.gen-header__sub { color: rgba(255,255,255,0.6); font-size: 1.05rem; }

/* Layout */
.gen-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
@media (min-width: 860px) {
  .gen-layout { grid-template-columns: 420px 1fr; align-items: start; }
}

/* Config panel */
.gen-config {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}
.gen-config__section { margin-bottom: 1.75rem; }
.gen-config__section:last-child { margin-bottom: 0; }

.gen-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Ingredient chips */
.ingredient-category { margin-bottom: 0.75rem; }
.ingredient-category-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232,98,42,0.25);
}
.chip--diet { border-color: var(--border); }
.chip--diet.active { background: var(--secondary); border-color: var(--secondary); }
.chip--diet.active:hover { background: var(--secondary); }
.chip--custom {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.chip--custom .chip-remove {
  cursor: pointer;
  opacity: 0.7;
  font-size: 0.9rem;
  line-height: 1;
  margin-left: 0.1rem;
}
.chip--custom .chip-remove:hover { opacity: 1; }

/* Custom ingredient input */
.custom-input-wrap { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.custom-input {
  flex: 1;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.custom-input:focus { border-color: var(--primary); }
.custom-input::placeholder { color: #bbb; }
.custom-add-btn {
  padding: 0.55rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.custom-add-btn:hover { background: var(--primary-dark); }
.custom-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; min-height: 0; }

/* People stepper */
.people-stepper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stepper-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  color: var(--text-muted);
}
.stepper-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper-display {
  text-align: center;
  min-width: 80px;
}
.stepper-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  display: block;
}
.stepper-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* API Key section */
.api-section {
  border-top: 1.5px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0;
}
.api-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  padding: 0; transition: color 0.15s;
}
.api-toggle:hover { color: var(--primary); }
.api-toggle__arrow { transition: transform 0.2s; }
.api-toggle__arrow.open { transform: rotate(180deg); }
.api-body { display: none; margin-top: 0.9rem; }
.api-body.open { display: block; }
.api-body p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.5; }
.api-body a { color: var(--primary); }
.api-input-wrap { position: relative; }
.api-input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: monospace;
  outline: none;
  transition: border-color 0.15s;
}
.api-input:focus { border-color: var(--primary); }
.api-saved {
  display: none;
  font-size: 0.75rem;
  color: var(--secondary);
  margin-top: 0.35rem;
  font-weight: 600;
}
.api-saved.show { display: block; }
.api-security {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem !important;
  line-height: 1.4 !important;
}

/* Generate button */
.gen-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 20px rgba(232,98,42,0.35);
  letter-spacing: 0.3px;
  margin-top: 1.75rem;
}
.gen-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,98,42,0.45);
}
.gen-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.gen-btn--loading {
  position: relative;
  pointer-events: none;
}
.gen-btn--loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Output panel */
.gen-output { min-height: 400px; }

/* Empty state */
.gen-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
}
.gen-empty__icon { font-size: 4rem; margin-bottom: 1rem; }
.gen-empty__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.gen-empty__sub { color: var(--text-muted); font-size: 0.95rem; }

/* Loading state */
.gen-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.gen-loading.show { display: flex; }
.gen-loading__spinner {
  width: 60px; height: 60px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}
.gen-loading__text { font-weight: 600; color: var(--text-muted); font-size: 0.95rem; }
.gen-loading__subtext { font-size: 0.82rem; color: #bbb; margin-top: 0.35rem; }

/* Recipe card result */
.recipe-result {
  display: none;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.4s ease;
}
.recipe-result.show { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.recipe-result__header {
  background: linear-gradient(145deg, #1a1a1a, #2d1a0f);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.recipe-result__header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 20% 50%, rgba(232,98,42,0.2) 0%, transparent 70%);
}
.recipe-result__emoji {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  display: block;
  position: relative;
}
.recipe-result__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
  position: relative;
}
.recipe-result__desc { color: rgba(255,255,255,0.6); font-size: 0.92rem; position: relative; }

.recipe-result__stats {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  background: #faf8f5;
}
.recipe-result__stat {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  border-right: 1px solid var(--border);
}
.recipe-result__stat:last-child { border-right: none; }
.recipe-result__stat-val {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  display: block;
}
.recipe-result__stat-lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

.recipe-result__body { padding: 2rem; }
.recipe-result__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.9rem;
  color: var(--text);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-light);
}
.recipe-result__body h3:first-child { margin-top: 0; }

.result-ingredients { list-style: none; padding: 0; }
.result-ingredients li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f5f2ee;
  font-size: 0.92rem;
}
.result-ingredients li:last-child { border-bottom: none; }
.result-ingredients li::before {
  content: '•';
  color: var(--primary);
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.result-steps { list-style: none; padding: 0; counter-reset: result-steps; }
.result-steps li {
  counter-increment: result-steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
}
.result-steps li::before {
  content: counter(result-steps);
  display: flex; align-items: center; justify-content: center;
  min-width: 2rem; height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(232,98,42,0.25);
}

.result-tips { list-style: none; padding: 0; background: var(--secondary-light); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.result-tips li {
  font-size: 0.88rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(45,106,79,0.12);
  display: flex;
  gap: 0.5rem;
}
.result-tips li:last-child { border-bottom: none; }
.result-tips li::before { content: '💡'; flex-shrink: 0; }

.recipe-result__actions {
  padding: 1.25rem 2rem;
  border-top: 1.5px solid var(--border);
  background: #faf8f5;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.result-action-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.result-action-btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.result-action-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; color: #fff; }
.result-action-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.result-action-btn--ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* Error state */
.gen-error {
  display: none;
  background: #fff5f5;
  border: 1.5px solid #fcc;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  color: #c00;
  font-size: 0.88rem;
}
.gen-error.show { display: block; }

/* No-key prompt */
.gen-nokey {
  display: none;
  background: linear-gradient(135deg, var(--primary-light), #fff5eb);
  border: 1.5px solid #fcd9b0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.gen-nokey.show { display: block; }
.gen-nokey__icon { font-size: 3rem; margin-bottom: 0.75rem; }
.gen-nokey__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.gen-nokey__sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.6; }
.gen-nokey__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.gen-nokey__btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }

/* Selected summary pill */
.selected-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-left: auto;
}


/* =============================================
   New Components (v3 — layout optimisation)
   ============================================= */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,98,42,0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,98,42,0.5);
  text-decoration: none;
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.9);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Nav highlight link ── */
.nav__link--highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: #fff !important;
  padding: 0.45rem 1rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}
.nav__link--highlight:hover {
  opacity: 0.9;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
  text-decoration: none !important;
}

/* ── Section header (title + "view all" link row) ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 500px;
  margin-top: 0.35rem;
}
.section-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.section-link:hover { text-decoration: underline; }

/* ── Tinted section background ── */
.section--tinted { background: #f0ede8; }

/* ── Card grid ── */
.card-grid {
  display: grid;
  gap: 1.75rem;
}
.card-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Card image link wrapper ── */
.card__img-link {
  display: block;
  text-decoration: none;
}
.card__img-link:hover { text-decoration: none; }

/* ── AI Generator Showcase (homepage) ── */
.gen-showcase-section {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gen-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .gen-showcase { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.gen-showcase__left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.gen-showcase__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  width: fit-content;
}
.gen-showcase__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin: 0;
}
.gen-showcase__sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}
.gen-showcase__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gen-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #f0ede8;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: default;
}
.gen-chip--on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232,98,42,0.3);
}
.gen-showcase__right {
  display: flex;
  justify-content: center;
}
.gen-showcase__card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  border-top: 4px solid var(--primary);
}
.gen-showcase__card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #faf8f5;
  border-bottom: 1px solid var(--border);
}
.gen-showcase__card-emoji { font-size: 2.25rem; flex-shrink: 0; }
.gen-showcase__card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.gen-showcase__card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.gen-showcase__steps {
  list-style: none;
  padding: 1.1rem 1.5rem;
  margin: 0;
  counter-reset: sc-steps;
}
.gen-showcase__steps li {
  counter-increment: sc-steps;
  display: flex;
  gap: 0.85rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f5f2ee;
}
.gen-showcase__steps li:last-child { border-bottom: none; }
.gen-showcase__steps li::before {
  content: counter(sc-steps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.gen-showcase__badge {
  margin: 0.75rem 1.5rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

/* ── Pick Cards (Amazon) ── */
.pick-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.pick-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pick-card__icon {
  font-size: 2.25rem;
  flex-shrink: 0;
  line-height: 1;
}
.pick-card__info { flex: 1; min-width: 0; }
.pick-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.pick-card__author {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.pick-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pick-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #f5a623, #f0901a);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(245,166,35,0.3);
  text-decoration: none;
}
.pick-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
  text-decoration: none;
  color: #fff;
}
.affiliate-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  text-align: center;
}

/* ── Benefits Strip ── */
.benefits-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.benefits-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.benefit {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.benefit:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.benefit__icon { font-size: 2.25rem; margin-bottom: 0.75rem; display: block; }
.benefit__title { font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; color: var(--text); }
.benefit__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Ad Strip ── */
.ad-strip {
  background: #f5f3ef;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  text-align: center;
}
.ad-strip .ad-slot { margin: 0 auto; }

/* ── Magazine Grid ── */
.mag-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1rem;
  align-items: stretch; /* both columns match height */
}
.mag-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 100%; /* fill the grid column so 1fr rows work */
}

/* Card base — uses aspect-ratio for hero, height:100% for sm */
.mag-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  display: block;
  height: 100%; /* sm cards fill their 1fr row */
}
.mag-card--hero {
  aspect-ratio: 16 / 10;
  min-height: 320px;
  height: auto; /* let aspect-ratio control size for hero */
}

/* Wrap fills card via absolute positioning — reliable regardless of img height:auto */
.mag-card__wrap {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
}
.mag-card img {
  width: 100%;
  height: 100% !important; /* override global img { height: auto } */
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  opacity: 0.88;
}
.mag-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}
.mag-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  padding: 2.25rem 1.75rem 1.6rem;
  color: #fff;
}
.mag-card--sm .mag-card__overlay {
  padding: 1.5rem 1.25rem 1.1rem;
}
.mag-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.mag-card--hero .mag-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.6rem;
}
.mag-card--sm .mag-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}
.mag-card__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.mag-card--sm .mag-card__desc { display: none; }
.mag-card__cta {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}
.mag-card:hover .mag-card__cta {
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 680px) {
  .mag-grid { grid-template-columns: 1fr; }
  .mag-stack { grid-template-rows: auto; grid-template-columns: 1fr 1fr; height: auto; }
  .mag-card--hero { min-height: 280px; }
  .mag-card--sm   { aspect-ratio: 4/3; height: auto; }
}
@media (max-width: 440px) {
  .mag-stack { grid-template-columns: 1fr; }
}

/* ── AI Generator Spotlight ── */
.gen-spotlight {
  position: relative;
  background: linear-gradient(145deg, #111111 0%, #2a1508 40%, #111111 100%);
  overflow: hidden;
  padding: 5rem 0;
}
.gen-spotlight__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 10% 50%, rgba(232,98,42,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 90% 20%, rgba(245,166,35,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.gen-spotlight__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.gen-spotlight__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.gen-spotlight__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  width: fit-content;
}
.gen-spotlight__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin: 0;
}
.gen-spotlight__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  max-width: 420px;
  margin: 0;
}
.gen-spotlight__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* btn-glow: pulsing orange CTA */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), #f5a623);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 2.1rem;
  border-radius: 50px;
  text-decoration: none;
  width: fit-content;
  animation: pulse-glow 2.8s ease-in-out infinite;
  transition: transform 0.2s;
}
.btn-glow:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 24px rgba(232,98,42,0.45); }
  50%       { box-shadow: 0 4px 44px rgba(232,98,42,0.75), 0 0 0 8px rgba(232,98,42,0.12); }
}

/* Mock recipe card in spotlight */
.gen-spotlight__card {
  display: flex;
  justify-content: center;
}
.gen-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  width: 100%;
  max-width: 380px;
  border-top: 4px solid var(--primary);
  animation: float-card 4s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.gen-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #faf8f5;
  border-bottom: 1px solid var(--border);
}
.gen-card__emoji { font-size: 2.25rem; flex-shrink: 0; line-height: 1; }
.gen-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.gen-card__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}
.gen-card__ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid #f0ede8;
}
.gen-card__ing {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}
.gen-card__steps {
  list-style: none;
  padding: 1rem 1.5rem;
  margin: 0;
  counter-reset: gc;
}
.gen-card__steps li {
  counter-increment: gc;
  display: flex;
  gap: 0.85rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f5f2ee;
}
.gen-card__steps li:last-child { border-bottom: none; }
.gen-card__steps li::before {
  content: counter(gc);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.gen-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #faf8f5;
  border-top: 1px solid var(--border);
}
.gen-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  padding: 0.28rem 0.65rem;
  border-radius: 20px;
}
.gen-card__try {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 860px) {
  .gen-spotlight__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .gen-spotlight__card { display: none; }
  .gen-spotlight { padding: 3.5rem 0; }
  .gen-spotlight__title { font-size: clamp(2rem, 8vw, 2.75rem); }
}

/* ── Footer inner layout (v3 alias) ── */
.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
}
.footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ── Button System ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,98,42,0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,98,42,0.5);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* ── Nav Highlight ── */
.nav__link--highlight {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  font-weight: 700;
}
.nav__link--highlight:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ── Generator Banner Strip ── */
.gen-banner {
  display: block;
  background: linear-gradient(135deg, var(--primary), #c44d18);
  color: #fff;
  text-decoration: none;
  transition: filter 0.2s;
}
.gen-banner:hover { filter: brightness(1.08); text-decoration: none; }
.gen-banner__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  flex-wrap: wrap;
}
.gen-banner__icon { font-size: 1.5rem; flex-shrink: 0; }
.gen-banner__text {
  flex: 1;
  min-width: 0;
}
.gen-banner__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.gen-banner__text span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}
.gen-banner__cta {
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff;
}

/* ── Section Tinted ── */
.section--tinted { background: #f0ede8; }

/* ── Section Header (label + title + link inline) ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin-top: 0.35rem;
  line-height: 1.6;
}
.section-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  padding-bottom: 0.25rem;
  border-bottom: 1.5px solid var(--primary-light);
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.section-link:hover { color: var(--primary-dark); border-color: var(--primary); text-decoration: none; }

/* ── Card Grid ── */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card__img-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card__img-link:hover img { transform: scale(1.04); }

/* ── Benefits Strip ── */
.benefits-strip { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.benefits-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.benefit {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.benefit:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.benefit__icon { font-size: 2.25rem; display: block; margin-bottom: 0.75rem; }
.benefit__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.benefit__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Amazon Pick Cards ── */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.pick-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pick-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pick-card__icon { font-size: 2.25rem; flex-shrink: 0; }
.pick-card__info { flex: 1; min-width: 0; }
.pick-card__name { font-weight: 700; font-size: 0.92rem; color: var(--text); margin-bottom: 0.15rem; }
.pick-card__author { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.pick-card__desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.pick-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #f5a623, #f0901a);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(245,166,35,0.3);
  text-decoration: none;
}
.pick-card__btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,166,35,0.4); text-decoration: none; color: #fff; }

/* ── Affiliate Notice ── */
.affiliate-notice {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  text-align: center;
}

/* ── Footer Inner (v3) ── */
.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}
.footer__brand-col { display: flex; flex-direction: column; gap: 0.5rem; }

/* =============================================
   Responsive tweaks (v3)
   ============================================= */
@media (max-width: 600px) {
  .gen-banner__text span { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .pick-card { flex-direction: column; align-items: flex-start; }
  .pick-card__btn { width: 100%; justify-content: center; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 1.5rem; }
}

/* =============================================
   AI Generator Showcase (v3 — homepage)
   ============================================= */
.gen-showcase-section { padding-top: 0; padding-bottom: 3rem; }

.gen-showcase {
  background: linear-gradient(145deg, #1a1a1a 0%, #2d1a0f 100%);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.gen-showcase::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 5% 50%, rgba(232,98,42,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 95% 20%, rgba(45,106,79,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.gen-showcase__left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.gen-showcase__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(232,98,42,0.2);
  border: 1px solid rgba(232,98,42,0.45);
  color: #ff9f72;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  width: fit-content;
}
.gen-showcase__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.gen-showcase__sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0;
  max-width: 400px;
}
.gen-showcase__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gen-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.5);
}
.gen-chip--on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(232,98,42,0.35);
}

/* Mock recipe card on right */
.gen-showcase__right {
  position: relative;
  z-index: 1;
}
.gen-showcase__card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.gen-showcase__card-top {
  background: rgba(232,98,42,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.gen-showcase__card-emoji { font-size: 2rem; flex-shrink: 0; }
.gen-showcase__card-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  line-height: 1.3;
}
.gen-showcase__card-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}
.gen-showcase__steps {
  list-style: none;
  padding: 1rem 1.4rem;
  margin: 0;
  counter-reset: showcase-steps;
}
.gen-showcase__steps li {
  counter-increment: showcase-steps;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(255,255,255,0.55);
  font-size: 0.83rem;
  line-height: 1.55;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gen-showcase__steps li:last-child { border-bottom: none; }
.gen-showcase__steps li::before {
  content: counter(showcase-steps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  background: rgba(232,98,42,0.3);
  border: 1px solid rgba(232,98,42,0.5);
  color: #ff9f72;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.gen-showcase__badge {
  margin: 0.85rem 1.4rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.25);
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

@media (max-width: 860px) {
  .gen-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .gen-showcase__right { display: none; }
}
@media (max-width: 480px) {
  .gen-showcase { padding: 1.5rem; border-radius: 16px; }
}

/* =============================================
   Homepage Redesign Components (v4)
   ============================================= */

/* ── Stats Bar ── */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat__lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* ── Recipe / Guide Cards (rcard) ── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.rcard {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.rcard:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.rcard--recipe { border-top: 4px solid var(--primary); }
.rcard--guide  { border-top: 4px solid var(--secondary); }

.rcard__img-link {
  display: block;
  overflow: hidden;
  text-decoration: none;
}
/* KEY: aspect-ratio on the img itself — works with global height:auto */
.rcard__img-link img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.rcard:hover .rcard__img-link img { transform: scale(1.05); }

.rcard__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rcard__meta {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.rcard--guide .rcard__meta { color: var(--secondary); }
.rcard__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.rcard__title a { color: inherit; text-decoration: none; }
.rcard__title a:hover { color: var(--primary); }
.rcard--guide .rcard__title a:hover { color: var(--secondary); }
.rcard__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.rcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}
.rcard__cta:hover { background: var(--primary); color: #fff; text-decoration: none; }
.rcard__cta--guide { color: var(--secondary); background: var(--secondary-light); }
.rcard__cta--guide:hover { background: var(--secondary); color: #fff; }

/* ── Generator Section ── */
.gen-section {
  background: linear-gradient(145deg, #111 0%, #2a1508 50%, #111 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.gen-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 90% at 8% 50%, rgba(232,98,42,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 45% 60% at 92% 20%, rgba(245,166,35,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.gen-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.gen-section__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.gen-section__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  width: fit-content;
}
.gen-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin: 0;
}
.gen-section__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  max-width: 420px;
  margin: 0;
}
.gen-section__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gen-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 2.1rem;
  border-radius: 50px;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 4px 24px rgba(232,98,42,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse-btn 3s ease-in-out infinite;
}
.gen-section__cta:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(232,98,42,0.6);
}
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 4px 24px rgba(232,98,42,0.45); }
  50%       { box-shadow: 0 4px 44px rgba(232,98,42,0.75), 0 0 0 8px rgba(232,98,42,0.1); }
}

/* Generator preview card */
.gen-section__right { display: flex; justify-content: center; }
.gen-preview {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 360px;
  border-top: 4px solid var(--primary);
}
.gen-preview__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #faf8f5;
  border-bottom: 1px solid var(--border);
}
.gen-preview__emoji { font-size: 2.25rem; flex-shrink: 0; }
.gen-preview__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.gen-preview__meta { font-size: 0.72rem; color: var(--text-muted); margin: 0; }
.gen-preview__steps {
  list-style: none;
  padding: 1rem 1.5rem;
  margin: 0;
  counter-reset: ps;
}
.gen-preview__steps li {
  counter-increment: ps;
  display: flex;
  gap: 0.85rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f5f2ee;
}
.gen-preview__steps li:last-child { border-bottom: none; }
.gen-preview__steps li::before {
  content: counter(ps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.68rem;
  flex-shrink: 0;
}
.gen-preview__badge {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245,166,35,0.1);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  text-align: center;
}

@media (max-width: 860px) {
  .gen-section__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .gen-section__right { display: none; }
  .gen-section { padding: 3.5rem 0; }
}
