/* premium-polish.css — homepage v2 polish pass
   Scoped to .hp-* classes added by the new app.js render functions
   plus a few additions to existing pricing/hero/nav patterns.
   Safe to remove if rolling back: drop the link in index.html and
   delete the new render-function call sites in app.js. */

/* ── Trust Signals strip (between hero and cuisine discover) ── */
.hp-trust-signals {
  max-width: 1100px;
  margin: 1.25rem auto 0;
  padding: 0 1rem;
}
.hp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.hp-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  white-space: nowrap;
}
.hp-trust-pill-ico { font-size: 1rem; line-height: 1; }

/* ── Premium Preview panel ─────────────────────────────────── */
.hp-premium-preview {
  max-width: 1100px;
  margin: 2.5rem auto 1.5rem;
  padding: 0 1rem;
}
.hp-premium-preview-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.hp-premium-preview-eyebrow {
  display: inline-block;
  color: #b5891b;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hp-premium-preview-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0.4rem 0 0.6rem;
  font-weight: 800;
  color: #1a1a1a;
}
.hp-premium-preview-sub {
  color: #555;
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.5;
}
.hp-premium-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: stretch;
}
@media (max-width: 800px) {
  .hp-premium-preview-grid { grid-template-columns: 1fr; }
}
.hp-preview-card {
  position: relative;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 1.25rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Flex column so the mock chip pins to the card bottom regardless of how
     many lines the description wraps to — keeps the 3 mocks visually aligned
     even when content lengths differ across locales. Pairs with the grid's
     align-items: stretch above. */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hp-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}
.hp-preview-card-icon {
  font-size: 1.7rem;
  line-height: 1;
}
.hp-preview-card-title {
  font-weight: 700;
  margin: 0.5rem 0 0.3rem;
  font-size: 1.05rem;
  color: #1a1a1a;
}
.hp-preview-card-desc {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 0.85rem;
}
.hp-preview-card-mock {
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 0.85rem;
  background: linear-gradient(180deg, #faf6e7, #fffefa);
  border: 1px dashed rgba(181, 137, 27, 0.35);
  border-radius: 12px;
  font-size: 0.84rem;
  color: #5a4a1f;
  line-height: 1.45;
  min-height: 4rem;
  /* Pins the chip to the card's bottom edge — see flex comment on
     .hp-preview-card. Without this, longer desc lines push the chip down
     so the 3 chips end up at different heights across cards. */
  margin-top: auto;
}
.hp-preview-card-mock-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0.55;
  font-size: 0.95rem;
}
.hp-preview-cta {
  text-align: center;
  margin-top: 1.5rem;
}
.hp-preview-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(135deg, #d4a017, #f5c243);
  color: white !important;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.3);
  transition: transform 0.15s ease;
}
.hp-preview-cta-btn:hover { transform: translateY(-2px); }

/* ── FAQ accordion ─────────────────────────────────────────── */
.hp-faq {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.hp-faq-head {
  text-align: center;
  margin-bottom: 1.25rem;
}
.hp-faq-eyebrow {
  display: inline-block;
  color: #2d8f47;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hp-faq-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0.4rem 0 0.4rem;
  font-weight: 800;
  color: #1a1a1a;
}
.hp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hp-faq-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
.hp-faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #1a1a1a;
}
.hp-faq-summary::-webkit-details-marker { display: none; }
.hp-faq-summary::after {
  content: '+';
  color: #2d8f47;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.hp-faq-item[open] .hp-faq-summary::after { content: '−'; }
.hp-faq-body {
  padding: 0 1.25rem 1.1rem;
  color: #444;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* ── Pricing trust strip (under Free/Premium cards) ─────────── */
.pricing-trust-strip {
  margin: 1.25rem auto 0;
  text-align: center;
  color: #666;
  font-size: 0.86rem;
  max-width: 520px;
}
.pricing-trust-strip-item { margin: 0 0.5rem; white-space: nowrap; }

/* ── Sticky upgrade pill ───────────────────────────────────── */
.hp-sticky-upgrade {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  background: linear-gradient(135deg, #d4a017, #f5c243);
  color: white !important;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(212, 160, 23, 0.4), 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.hp-sticky-upgrade--show { display: inline-flex; }
.hp-sticky-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 160, 23, 0.5), 0 2px 6px rgba(0, 0, 0, 0.08);
}
@media (max-width: 600px) {
  .hp-sticky-upgrade {
    bottom: 1rem;
    right: 1rem;
    padding: 0.65rem 1rem;
    font-size: 0.86rem;
  }
}

/* ── Hero secondary Premium CTA ────────────────────────────── */
.hero-premium-cta { flex-wrap: wrap; }
.hero-premium-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #b5891b;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
}
.hero-premium-link:hover { color: #8e6c12; }

/* ── Premium nav badge (when user has active premium) ──────── */
.nav-link--active-premium {
  background: linear-gradient(135deg, #d4a017, #f5c243);
  color: white !important;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ── Scroll fade-in (light touch) ──────────────────────────── */
.hp-fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.hp-fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Phase 6: Atmosphere ──────────────────────────────────── */
/* Smooth in-page scrolling for anchor jumps (sticky pill, hero CTAs). */
html { scroll-behavior: smooth; }

/* Drifting aurora gradient. Behind everything via z-index:-2.
   Animation is slow enough to feel ambient, not distracting. */
body { position: relative; }
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(40rem 40rem at 18% 24%, rgba(212, 160, 23, 0.10), transparent 65%),
    radial-gradient(36rem 36rem at 82% 18%, rgba(45, 143, 71, 0.08),  transparent 65%),
    radial-gradient(42rem 42rem at 50% 86%, rgba(245, 194, 67, 0.07), transparent 65%),
    radial-gradient(34rem 34rem at 12% 78%, rgba(255, 224, 130, 0.06), transparent 65%);
  animation: hp-aurora-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hp-aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2.5%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(1.5%, -2%, 0) scale(1.02); }
}

/* Soft cursor glow that follows the mouse — adds a warm focus halo
   wherever the user is looking. JS sets --mouse-x / --mouse-y. */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  transform: translate3d(calc(var(--mouse-x, 50vw) - 160px), calc(var(--mouse-y, 50vh) - 160px), 0);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.10), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: multiply;
  filter: blur(8px);
  will-change: transform, opacity;
}
body.hp-cursor-active::after { opacity: 1; }

@media (hover: none) {
  body::after { display: none; }
}

/* ── Phase 7: Hero choreography ────────────────────────────── */
/* Gentle floating animation on the phone mockup. Bobs up by ~10px
   with a 1deg rocking tilt over 7s. perspective() lives on the
   parent so the mouse-parallax JS can stack rotateX/rotateY without
   wiping this transform. */
.hero-phone-wrap {
  animation: hp-phone-float 7s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hp-phone-float {
  0%   { transform: translate3d(0, 0, 0) rotate(-1deg); }
  100% { transform: translate3d(0, -10px, 0) rotate(1deg); }
}

/* Mouse parallax wrapper — JS sets the 3D rotation on this element
   so it doesn't conflict with the bob animation on .hero-phone-wrap. */
.hero-phone-frame {
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* Hero stats — count-up animation needs the number to land on the
   exact pixel each frame; give it a tabular-num for stable width. */
.hero-stat-num {
  font-variant-numeric: tabular-nums;
}

/* Badge pulse — soften the existing dot and add a slow halo. */
.hero-badge .badge-pulse {
  position: relative;
}
.hero-badge .badge-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(45, 143, 71, 0.35);
  animation: hp-badge-halo 2.4s ease-out infinite;
}
@keyframes hp-badge-halo {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone-wrap,
  .hero-phone-frame,
  .hero-badge .badge-pulse::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ── Phase 8: Card choreography ───────────────────────────── */
/* 3D tilt-on-hover. Cards keep their layout transform stack
   intact; only translateZ + rotateX/Y change. transition lets
   the card ease back to rest when the cursor leaves. */
.hp-preview-card,
.hp-cuisine-card,
.discovery-card,
.step-item {
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s ease;
  will-change: transform;
}
.hp-preview-card:hover,
.hp-cuisine-card:hover,
.discovery-card:hover,
.step-item:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Stagger reveal — children of a .hp-fade-in container appear one
   after another when the parent becomes visible. JS writes a
   --stagger-index custom property on each child. */
.hp-fade-in.is-visible .hp-trust-pill,
.hp-fade-in.is-visible .hp-preview-card,
.hp-fade-in.is-visible .hp-faq-item,
.hp-fade-in.is-visible .hp-cuisine-card,
.hp-fade-in.is-visible .discovery-card,
.hp-fade-in.is-visible .step-item {
  animation: hp-stagger-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--stagger-index, 0) * 65ms);
}
@keyframes hp-stagger-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* Make the surrounding section containers fade-in-eligible. The
   .hp-fade-in class is already on .hp-trust-signals / .hp-premium-preview
   / .hp-faq. Add it to existing v2 sections via JS in Phase 8. */

@media (prefers-reduced-motion: reduce) {
  .hp-preview-card,
  .hp-cuisine-card,
  .discovery-card,
  .step-item {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ── Phase 9: Premium showcase ─────────────────────────────── */
/* Register --angle so the conic-gradient border can be animated.
   Falls back gracefully in browsers without @property — the border
   just shows the gradient statically. */
@property --hp-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Rotating conic-gradient halo around the Premium pricing card.
   The actual card sits on top of the halo via a solid white inner
   layer drawn by the existing .pricing-card--premium background. */
.pricing-card--premium {
  position: relative;
  isolation: isolate;
}
.pricing-card--premium::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(
    from var(--hp-angle, 0deg),
    #d4a017, #f5c243, #fff5d6, #d4a017, #b5891b, #d4a017
  );
  animation: hp-rotate-angle 8s linear infinite;
  filter: blur(0.5px);
  opacity: 0.9;
}
@keyframes hp-rotate-angle {
  to { --hp-angle: 360deg; }
}

/* CTA glow — the Premium upgrade button gets a soft ambient halo
   on hover so it visually anchors the section. */
#pricing-upgrade-btn,
.hp-preview-cta-btn,
.btn-hero-cta {
  position: relative;
  z-index: 1;
}
#pricing-upgrade-btn::after,
.hp-preview-cta-btn::after,
.btn-hero-cta::after {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.45), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
#pricing-upgrade-btn:hover::after,
.hp-preview-cta-btn:hover::after,
.btn-hero-cta:hover::after {
  opacity: 1;
}

/* Sticky pill breathing — once visible, the pill softly pulses to
   draw the eye without screaming for it. */
.hp-sticky-upgrade--show {
  animation: hp-pill-breathe 3.6s ease-in-out infinite;
}
@keyframes hp-pill-breathe {
  0%, 100% {
    box-shadow: 0 10px 28px rgba(212, 160, 23, 0.40),
                0 0 0 0 rgba(212, 160, 23, 0.5);
  }
  50% {
    box-shadow: 0 14px 36px rgba(212, 160, 23, 0.55),
                0 0 0 14px rgba(212, 160, 23, 0);
  }
}

/* Magnetic CTA transform — JS pushes the button toward the cursor.
   The transition gives the snap-back a natural feel. */
#pricing-upgrade-btn,
.hp-preview-cta-btn,
.btn-hero-cta,
.btn-upgrade {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card--premium::before {
    animation: none !important;
  }
  .hp-sticky-upgrade--show { animation: none !important; }
  #pricing-upgrade-btn,
  .hp-preview-cta-btn,
  .btn-hero-cta,
  .btn-upgrade {
    transition: none !important;
    transform: none !important;
  }
}

/* ── Phase 10: Final polish ─────────────────────────────────── */
/* Warm, premium-feeling scrollbar. WebKit-only (the spec-standard
   scrollbar-color is set below for Firefox). */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4a017, #b5891b);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f5c243, #d4a017);
}
html { scrollbar-color: #d4a017 rgba(255, 255, 255, 0.5); }

/* Selection color in the warm palette */
::selection {
  background: rgba(212, 160, 23, 0.28);
  color: #2d2d2d;
}

/* Subtle gradient sweep on the hero title — single, slow pass that
   plays once on load. Keeps the title legible and adds a premium
   "shimmer" without ever feeling distracting. */
.hero-premium-title {
  background: linear-gradient(
    100deg,
    #1a1a1a 0%, #1a1a1a 30%,
    #b5891b 48%, #d4a017 52%,
    #1a1a1a 70%, #1a1a1a 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hp-title-sweep 3.5s ease-out 0.4s 1 both;
}
@keyframes hp-title-sweep {
  to { background-position: -50% 0; }
}

/* Nav brand a touch livelier — the emoji + brand text get a tiny
   bounce on first paint to anchor the user. */
.nav-brand .nav-icon {
  display: inline-block;
  transform-origin: 50% 80%;
  animation: hp-brand-bob 4s ease-in-out 1s infinite;
}
@keyframes hp-brand-bob {
  0%, 100%   { transform: translateY(0)   rotate(0deg); }
  20%        { transform: translateY(-2px) rotate(-4deg); }
  40%        { transform: translateY(0)   rotate(0deg); }
  60%        { transform: translateY(-1px) rotate(3deg); }
  80%        { transform: translateY(0)   rotate(0deg); }
}

/* Subtle press feedback for any button — feels responsive. */
.btn-upgrade:active,
.btn-hero-cta:active,
.hp-preview-cta-btn:active,
.hp-sticky-upgrade:active,
.btn-verify:active,
.btn-generate:active {
  transform: scale(0.96) !important;
  transition: transform 0.08s ease-out;
}

/* Focus rings — keyboard accessibility deserves to look as polished
   as the rest. */
.btn-upgrade:focus-visible,
.btn-hero-cta:focus-visible,
.hp-preview-cta-btn:focus-visible,
.hp-sticky-upgrade:focus-visible,
.hp-faq-summary:focus-visible {
  outline: 3px solid rgba(212, 160, 23, 0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-premium-title {
    animation: none !important;
    -webkit-text-fill-color: initial;
    background: none;
  }
  .nav-brand .nav-icon { animation: none !important; }
}

/* ───────────────────────────────────────────────────────────── */
/*  Phase 11 — EDITORIAL RESTART                                 */
/*                                                                */
/*  Drops the "premium SaaS template" feel in favor of a warm,    */
/*  editorial food-magazine aesthetic. Big serif typography,      */
/*  real hero photography, restrained motion, deeper palette.    */
/*                                                                */
/*  This block also turns OFF several Phase 6-10 motions that     */
/*  worked against the new direction (emoji bob in nav,           */
/*  title shimmer, etc).                                          */
/* ───────────────────────────────────────────────────────────── */

/* Editorial color tokens. Used by hero + headings + accents. */
:root {
  --hp-cream:        #faf5ea;
  --hp-cream-deep:   #f1e7d1;
  --hp-ink:          #1d1812;
  --hp-ink-soft:     #3a342b;
  --hp-warm:         #d4a017;
  --hp-warm-deep:    #a87a0c;
  --hp-terracotta:   #c1392c;
  --hp-sage:         #4a6b4a;
  --hp-aubergine:    #3a2438;
  --hp-butter:       #e8b85b;
  --hp-muted:        #8a7e6a;
}

/* Typography hierarchy. Fraunces for display, Inter for body. */
.hp-editorial-title,
.hp-faq-title,
.hp-premium-preview-title,
.hp-cuisine-title,
.preview-section-heading,
.discovery-title,
.pricing-title,
.hero-premium-title {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-feature-settings: 'ss01', 'ss02', 'ss03';
}
.hp-editorial-eyebrow,
.hp-premium-preview-eyebrow,
.hp-faq-eyebrow,
.hp-cuisine-eyebrow,
.preview-section-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

/* ─── Hero: dark editorial cover with full-bleed photo ─────── */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--hp-ink);
  color: var(--hp-cream);
  overflow: hidden;
  isolation: isolate;
}
.hero[data-premium] { padding: 6vh 0 8vh; }

/* Background photograph — atmospheric kitchen scene, dimmed
   warm-dark overlay so the headline reads clean over any area. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(29,24,18,0.92) 0%, rgba(29,24,18,0.74) 50%, rgba(29,24,18,0.92) 100%),
    url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&w=2400&q=70') center / cover no-repeat;
  filter: saturate(0.85);
}
/* Sub-glow that hints at depth without spilling into the body. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 60rem at 70% 30%, rgba(232,184,91,0.18), transparent 55%),
    radial-gradient(40rem 40rem at 18% 78%, rgba(193,57,44,0.10),  transparent 60%);
  pointer-events: none;
}

.hero-premium-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-premium-inner { grid-template-columns: 1.2fr 1fr; gap: 5rem; }
}
.hero-text-col { padding: 4vh 0; }

/* Editorial badge — small caps, italic Fraunces, with a hairline. */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border: none;
  background: none;
  color: var(--hp-butter);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: rgba(232, 184, 91, 0.6);
}
.hero-badge .badge-pulse,
.hero-badge .badge-pulse::after { display: none; }

/* The headline. Big, serif, editorial. */
.hero-premium-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 1.5rem 0 1.5rem;
  color: var(--hp-cream);
  background: none;
  -webkit-text-fill-color: initial;
  animation: none;
}
.hero-premium-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--hp-butter);
}

.hero-premium-sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: rgba(250, 245, 234, 0.78);
  max-width: 32rem;
  margin: 0 0 2rem;
}

/* Stats — refined, magazine-data-row feel. */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.25rem;
  align-items: baseline;
  border-top: 1px solid rgba(250, 245, 234, 0.18);
  border-bottom: 1px solid rgba(250, 245, 234, 0.18);
  padding: 1.25rem 0;
  margin: 0 0 2.25rem;
}
.hero-stat-sep { display: none; }
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}
.hero-stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--hp-cream);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 245, 234, 0.55);
}
.hero-stat--link {
  transition: color 0.2s ease;
}
.hero-stat--link:hover .hero-stat-num { color: var(--hp-butter); }
.hero-stat--link:hover .hero-stat-label { color: rgba(232, 184, 91, 0.85); }

/* CTAs in the hero — primary button uses butter on ink. */
.hero-premium-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}
.btn-hero-cta {
  background: var(--hp-cream);
  color: var(--hp-ink) !important;
  border: none;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.btn-hero-cta:hover {
  background: var(--hp-butter);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(232, 184, 91, 0.28);
}
.hero-ghost-link {
  color: rgba(250, 245, 234, 0.7);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 245, 234, 0.3);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-ghost-link:hover {
  color: var(--hp-cream);
  border-color: var(--hp-butter);
}
.hero-premium-link {
  color: var(--hp-butter);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  text-decoration: none;
}
.hero-premium-link:hover { color: var(--hp-cream); }

/* The phone visual column — gone. We replace it with a magazine
   "still life" — a stack of cards visually quoted from a recipe
   book in the secondary column. Keep the existing hero-visual-col
   markup but restyle. */
.hero-visual-col { display: none; }
@media (min-width: 980px) {
  .hero-visual-col {
    display: block;
    position: relative;
    height: 60vh;
    pointer-events: none;
  }
}
.hero-phone-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  animation: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-phone-frame {
  width: 92%;
  max-width: 360px;
  aspect-ratio: 9 / 14;
  background:
    linear-gradient(180deg, rgba(250, 245, 234, 0.97), rgba(250, 245, 234, 0.92));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  padding: 1.75rem 1.5rem 1.25rem;
  color: var(--hp-ink);
  font-family: 'Fraunces', serif;
  overflow: hidden;
  transform: rotate(-1.5deg);
  animation: hp-card-float 9s ease-in-out infinite alternate;
}
.hero-phone-notch { display: none; }
.hero-phone-screen {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}
.phone-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hp-muted);
  border-bottom: 1px solid rgba(29, 24, 18, 0.1);
  padding-bottom: 0.55rem;
}
.phone-app-pdf-btn {
  color: var(--hp-warm-deep);
  font-weight: 600;
}
.phone-meal-header { display: none; }
.phone-meal-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(29, 24, 18, 0.06);
  align-items: baseline;
}
.phone-meal-day {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-muted);
}
.phone-meal-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--hp-ink);
  line-height: 1.25;
}
.phone-meal-row .phone-meal-name + .phone-meal-name {
  grid-column: 2;
  font-size: 0.82rem;
  color: var(--hp-ink-soft);
}
.phone-shopping {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(29, 24, 18, 0.1);
}
.phone-shopping-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-muted);
  margin-bottom: 0.4rem;
}
.phone-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.phone-chip {
  background: rgba(212, 160, 23, 0.12);
  color: var(--hp-warm-deep);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
}
.hero-food-accent { display: none; }

@keyframes hp-card-float {
  0%   { transform: rotate(-1.5deg) translateY(0); }
  100% { transform: rotate(-0.5deg) translateY(-10px); }
}

/* ─── Body background returns to cream after the hero ─────── */
body {
  background: var(--hp-cream);
  color: var(--hp-ink);
}
/* Aurora drift over a cream background — much subtler. Slow it down. */
body::before {
  background:
    radial-gradient(50rem 50rem at 18% 28%, rgba(212, 160, 23, 0.07), transparent 65%),
    radial-gradient(46rem 46rem at 82% 22%, rgba(74, 107, 74, 0.06),  transparent 65%),
    radial-gradient(52rem 52rem at 50% 86%, rgba(193, 57, 44, 0.05),  transparent 65%);
  animation-duration: 60s;
}

/* Body section typography upgrades */
.hp-faq-title,
.hp-premium-preview-title,
.hp-cuisine-title,
.discovery-title,
.preview-section-heading,
.pricing-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--hp-ink);
}
.hp-premium-preview-eyebrow,
.hp-faq-eyebrow,
.hp-cuisine-eyebrow,
.preview-section-eyebrow {
  color: var(--hp-warm-deep);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

/* The faded mockup in Premium Preview cards picks up the serif. */
.hp-preview-card-title { font-family: 'Fraunces', serif; font-weight: 700; }
.hp-preview-card-mock {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--hp-warm-deep);
  background: linear-gradient(180deg, rgba(241, 231, 209, 0.55), rgba(250, 245, 234, 0.85));
  border-color: rgba(212, 160, 23, 0.3);
}

/* Pricing premium card softer, less of the loud conic in this pass. */
.pricing-card--premium::before {
  filter: blur(2px);
  opacity: 0.6;
  animation-duration: 16s;
}

/* ─── Phase 11 — Motion pruning ──────────────────────────── */
/* Off: brand emoji bob (annoying loop), title shimmer (it wasn't
   our DNA), magnetic on most CTAs (kept only on the Premium
   upgrade button), card tilt on cuisine/discovery/steps. We keep
   tilt on .hp-preview-card only — that's the moment the user
   weighs the upgrade. */
.nav-brand .nav-icon {
  animation: none !important;
  transform: none !important;
}
.hero-premium-title {
  animation: none !important;
}
.hp-cuisine-card,
.discovery-card,
.step-item {
  transform: none !important;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}
.hp-cuisine-card:hover,
.discovery-card:hover,
.step-item:hover {
  box-shadow: 0 16px 36px rgba(29, 24, 18, 0.08);
}

/* Magnetic CTA — only on the Premium upgrade button now. */
.btn-hero-cta,
.hp-preview-cta-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Sticky pill — softer, less aggressive breathing. */
.hp-sticky-upgrade--show {
  animation-duration: 5s;
}
.hp-sticky-upgrade {
  background: var(--hp-ink);
  color: var(--hp-butter) !important;
  border: 1px solid rgba(232, 184, 91, 0.45);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.hp-sticky-upgrade:hover {
  background: var(--hp-aubergine);
  color: var(--hp-cream) !important;
}

/* Nav refinements — more editorial, less candy. */
.app-header {
  background: rgba(250, 245, 234, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29, 24, 18, 0.06);
}
.nav-brand .nav-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
}

/* Cuisine cards refined to match editorial cream + butter. */
.hp-cuisine-card {
  background: linear-gradient(180deg, #ffffff, var(--hp-cream));
  border: 1px solid rgba(29, 24, 18, 0.08);
  border-radius: 18px;
}
.hp-cuisine-card-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.hp-cuisine-card-dishes {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--hp-ink-soft);
}

/* FAQ — editorial, on a stronger cream surface. */
.hp-faq-item {
  background: #ffffff;
  border: 1px solid rgba(29, 24, 18, 0.07);
}
.hp-faq-summary {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--hp-ink);
}
.hp-faq-body {
  font-family: 'Inter', sans-serif;
  color: var(--hp-ink-soft);
}

/* ─── Refined respect for reduced motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-phone-frame { animation: none !important; transform: rotate(-1deg) !important; }
}

/* ───────────────────────────────────────────────────────────── */
/*  Phase 12 — SIGNATURE EDITORIAL                               */
/*                                                                */
/*  The featured-recipe section + custom SVG ornaments + word     */
/*  level hero reveal + variable font axis play on scroll.       */
/*  Where the page stops being "editorial enough" and becomes     */
/*  a brand voice.                                                */
/* ───────────────────────────────────────────────────────────── */

/* SVG ornaments — hand-coded fine-line botanicals + tools.
   Used as section dividers and to flank eyebrow text. Sized via
   font-size on the parent to inherit color via currentColor. */
.hp-ornament {
  display: inline-block;
  width: 1em;
  height: 1.6em;
  color: var(--hp-warm-deep);
  flex-shrink: 0;
  opacity: 0.8;
}

/* Decorative section divider — centered ornament with hairlines. */
.hp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 5rem auto;
  max-width: 540px;
  color: var(--hp-warm-deep);
}
.hp-divider::before,
.hp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 122, 12, 0.35), transparent);
}
.hp-divider .hp-ornament {
  width: 1.8em;
  height: 2.6em;
  font-size: 1.2rem;
}

/* ─── Featured recipe section — the editorial signature moment ─ */
.hp-featured-recipe {
  position: relative;
  max-width: 1140px;
  margin: 6rem auto 4rem;
  padding: 0 1.5rem;
}
.hp-featured-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--hp-warm-deep);
  margin-bottom: 1.25rem;
}
.hp-featured-eyebrow-row .hp-ornament {
  font-size: 1rem;
  width: 1.4em;
  height: 2.2em;
}
.hp-featured-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}
.hp-featured-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--hp-ink);
  margin: 0 auto 0.85rem;
  max-width: 14ch;
}
.hp-featured-byline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--hp-warm-deep);
  text-align: center;
  margin-bottom: 2.5rem;
}
.hp-featured-byline-sep {
  display: inline-block;
  margin: 0 0.6rem;
  color: rgba(168, 122, 12, 0.55);
}

.hp-featured-figure {
  position: relative;
  margin: 0 auto 3rem;
  max-width: 920px;
}
.hp-featured-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(29, 24, 18, 0.18);
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hp-featured-figcaption {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--hp-muted);
  text-align: center;
  margin-top: 1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Two-column ingredient + method layout — proper cookbook spread. */
.hp-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .hp-featured-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
  }
}
.hp-featured-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--hp-warm-deep);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(29, 24, 18, 0.12);
}

/* Ingredients — quantity right-aligned, leader between (cookbook style). */
.hp-featured-ingredients ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-featured-ingredients li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(29, 24, 18, 0.07);
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  color: var(--hp-ink);
}
.hp-featured-ingredients li:last-child { border-bottom: none; }
.hp-featured-ingredients li .ing-name { font-weight: 400; }
.hp-featured-ingredients li .ing-qty {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--hp-warm-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Method — numbered paragraphs in Fraunces, real cookbook leading. */
.hp-featured-method ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hp-method;
}
.hp-featured-method li {
  counter-increment: hp-method;
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.5rem;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--hp-ink);
}
.hp-featured-method li::before {
  content: counter(hp-method, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--hp-warm-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hp-featured-cta-row {
  margin-top: 3.5rem;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--hp-ink-soft);
}
.hp-featured-cta-row a {
  color: var(--hp-warm-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
  font-style: italic;
}
.hp-featured-cta-row a:hover { color: var(--hp-ink); }

/* ─── Word-level hero reveal ────────────────────────────────── */
.hp-reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(4px);
  /* fill-mode `both` so the final state (opacity:1) is retained
     after the animation finishes. With `backwards` the element
     reverted to the base rule (opacity:0) and the title disappeared. */
  animation: hp-word-reveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--reveal-index, 0) * 110ms + 200ms);
  margin-right: 0.22em;
}
@keyframes hp-word-reveal {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hp-reveal-word em {
  font-style: italic;
  font-weight: 400;
  color: var(--hp-butter);
}

/* ─── Variable font axis play ───────────────────────────────── */
/* JS updates --hero-opsz / --hero-grad as the user scrolls so the
   headline subtly shifts optical size + grade. Premium type-nerd
   detail; invisible to most but signals craft. */
.hero-premium-title {
  font-variation-settings:
    'opsz' var(--hero-opsz, 144),
    'GRAD' var(--hero-grad, 0);
  transition: font-variation-settings 0.4s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .hp-reveal-word {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-premium-title { transition: none !important; }
}

/* ─── Editorial pacing — section breathing ─────────────────── */
.hp-faq,
.hp-premium-preview,
.hp-cuisine-discover {
  margin-top: 5rem;
  margin-bottom: 5rem;
}
.hp-faq-list { gap: 0.75rem; }

/* Headings get a tighter typographic treatment now that Fraunces
   weight settles in. Italic display titles look richer at the
   italic + 500 weight. */
.hp-faq-title,
.hp-premium-preview-title,
.hp-cuisine-title,
.discovery-title {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.018em;
}

.hp-cuisine-eyebrow,
.hp-faq-eyebrow,
.hp-premium-preview-eyebrow,
.preview-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.hp-cuisine-eyebrow::before,
.hp-faq-eyebrow::before,
.hp-premium-preview-eyebrow::before,
.preview-section-eyebrow::before {
  content: '✦';
  font-size: 0.9rem;
  color: var(--hp-warm-deep);
  line-height: 1;
}

/* Refined sticky pill — italic Fraunces, more book-feeling. */
.hp-sticky-upgrade {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  body::after { display: none; }
  .hp-fade-in,
  .hp-preview-card,
  .hp-sticky-upgrade,
  .hp-preview-cta-btn {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
