/* ==========================================================================
   LoopCorner /recipes — event prototype
   Tokens and shared components mirror the homepage (index.html) so the two
   feel like one product. Mobile-first; the homepage itself is not touched.
   ========================================================================== */

/* ========================================
   BRAND TOKENS (same as homepage)
   ======================================== */
:root {
  --loop-green: #0F5A43;
  --dark-forest: #16352B;
  --warm-cream: #F6F3EC;
  --soft-mist: #DDE6DF;
  --acid-lime: #B7F05A;
  --tomato-pop: #F15A3C;
  --white: #FFFFFF;
  --text: #16352B;
  --text-light: #4a6358;
  --banana: #F2C94C;
  --nav-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1; }
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.05;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.ph { vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--acid-lime); outline-offset: 3px; border-radius: 6px; }
h1:focus, h2:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--acid-lime); color: var(--dark-forest);
  padding: 0.6rem 1rem; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 0.6rem; }

/* ========================================
   NAV — solid variant of the homepage nav
   ======================================== */
.rx-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(22, 53, 43, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(183, 240, 90, 0.08);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-mark {
  width: 26px; height: 26px;
  border: 2.5px solid var(--acid-lime);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.nav-mark::after {
  content: ''; position: absolute; top: -5px; right: -5px;
  width: 10px; height: 10px;
  background: var(--tomato-pop); border-radius: 50%;
}
.nav-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--white);
}
.nav-wordmark em { font-style: normal; color: var(--acid-lime); }
.rx-nav-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  transition: all 0.25s;
}
.rx-nav-pill[aria-current="page"] {
  background: var(--acid-lime); color: var(--dark-forest); border-color: var(--acid-lime);
}

/* ========================================
   SHARED SECTION STYLES (from homepage)
   ======================================== */
.section { padding: 2.5rem 1rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 800;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.label-green { background: var(--soft-mist); color: var(--loop-green); }
.label-lime { background: rgba(183, 240, 90, 0.14); color: var(--acid-lime); }
.label-tomato { background: rgba(241, 90, 60, 0.1); color: var(--tomato-pop); }

.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary { background: var(--acid-lime); color: var(--dark-forest); border: 2px solid var(--acid-lime); }
.btn-primary .ph, .btn-outline .ph { font-size: 1.15rem; transition: transform 0.25s; }
.btn-outline { background: transparent; color: var(--dark-forest); border: 2px solid var(--dark-forest); }
.btn-ghost { background: transparent; color: var(--loop-green); border: 2px solid transparent; min-height: 44px; padding: 0.5rem 0.8rem; }
.btn-block { width: 100%; }

/* ========================================
   SEARCH HERO
   ======================================== */
.rx-hero {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 1rem 2.8rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 90%, rgba(15, 90, 67, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(183, 240, 90, 0.05) 0%, transparent 50%),
    var(--dark-forest);
  color: var(--white);
}
.hero-bg-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(183, 240, 90, 0.07);
  pointer-events: none;
}
.hero-bg-ring:nth-child(1) { width: 560px; height: 560px; top: -260px; right: -260px; }
.hero-bg-ring:nth-child(2) { width: 420px; height: 420px; bottom: -240px; left: -200px; }
.rx-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.rx-hero-title {
  font-size: clamp(3.1rem, 15vw, 5.6rem);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 0.92;
  color: var(--white);
}
.rx-hero-title em { font-style: normal; color: var(--acid-lime); }
.rx-hero-copy {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: rgba(221, 230, 223, 0.8);
  max-width: 30ch;
}

/* Search field — pill with the lime CTA inside */
.rx-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 1.6rem;
  background: var(--white);
  border-radius: 50px;
  padding: 6px 6px 6px 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.rx-search:focus-within { border-color: var(--acid-lime); }
.rx-search-icon {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--text-light);
}
.rx-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px; /* ≥16px stops iOS zooming on focus */
  color: var(--dark-forest);
}
.rx-search input::placeholder { color: #7d8f86; }
.rx-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rx-search-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 48px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 50px;
  background: var(--acid-lime);
  color: var(--dark-forest);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.95rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.rx-search-btn:active { transform: scale(0.97); }
.rx-search-btn .ph { font-size: 1.15rem; }
.rx-form-hint {
  min-height: 0;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--acid-lime);
}
.rx-form-hint:empty { margin-top: 0; }
.rx-results-head .rx-form-hint { color: var(--tomato-pop); }

/* Quick-pick chips */
.rx-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.rx-chips-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.rx-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rx-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 1.1rem 0.45rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.rx-chip:active { transform: scale(0.97); }
.rx-chip-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--acid-lime); }
.rx-chip[data-key="tomato"] .rx-chip-dot { background: var(--tomato-pop); }
.rx-chip[data-key="banana"] .rx-chip-dot { background: var(--banana); }
.rx-chip[data-key="courgette"] .rx-chip-dot { background: #4caf6e; }
/* Chips on light backgrounds (empty state) */
.rx-chip.on-light { border-color: var(--soft-mist); background: var(--white); color: var(--dark-forest); }

/* How it works strip */
.rx-how { padding-top: 2rem; padding-bottom: 2.5rem; }
.rx-steps { list-style: none; display: grid; gap: 0.8rem; }
.rx-step {
  display: flex; align-items: flex-start; gap: 0.9rem;
  background: var(--white);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
}
.rx-step-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(15, 90, 67, 0.08);
  color: var(--loop-green);
  font-size: 1.4rem;
}
.rx-step strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--dark-forest);
}
.rx-step span { font-size: 0.88rem; color: var(--text-light); }
.rx-step b { font-weight: 700; color: var(--dark-forest); }

/* ========================================
   RESULTS
   ======================================== */
.rx-results-head {
  background: var(--dark-forest);
  color: var(--white);
  padding: 1rem 1rem 1.8rem;
}
.rx-search-compact { margin-top: 0; margin-bottom: 1.4rem; box-shadow: none; }
.rx-search-compact .rx-search-btn { width: 48px; padding: 0; justify-content: center; }
.rx-results-title {
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
}
.rx-results-title em { font-style: normal; color: var(--acid-lime); }
.rx-results-sub { margin-top: 0.5rem; color: rgba(221, 230, 223, 0.75); font-size: 0.95rem; }
.rx-results-sub strong { color: var(--white); }
.rx-results-body { padding-top: 1.4rem; }

.rx-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.rx-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s;
  animation: cardIn 0.45s ease both;
}
.rx-card:active { transform: scale(0.99); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rx-media {
  position: relative;
  aspect-ratio: 2 / 1;
  background: var(--soft-mist);
  overflow: hidden;
}
.rx-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
/* Branded placeholder when a photo can't load */
.rx-media.is-fallback { background: radial-gradient(circle at 30% 70%, rgba(15, 90, 67, 0.6), transparent 60%), var(--dark-forest); }
.rx-media.is-fallback::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; transform: translate(-50%, -50%);
  border: 3px solid var(--acid-lime); border-radius: 50%;
}
.rx-media.is-fallback::after {
  content: ''; position: absolute; left: calc(50% + 17px); top: calc(50% - 33px);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--tomato-pop); border: 3px solid var(--dark-forest);
}
.rx-media.is-fallback img { display: none; }
.rx-media-tag {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  background: rgba(22, 53, 43, 0.82);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.7rem;
  letter-spacing: 1.5px; text-transform: uppercase;
}

.rx-card-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1rem 1.15rem 1.15rem; flex: 1; }
.rx-source {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-light);
}
.rx-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.08;
  color: var(--dark-forest);
}
.rx-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.85rem; color: var(--text-light); }
.rx-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.rx-meta .ph { font-size: 1rem; color: var(--loop-green); }
.rx-match {
  display: flex; align-items: flex-start; gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--loop-green);
  background: rgba(183, 240, 90, 0.18);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
}
.rx-match .ph { margin-top: 0.15rem; }
.rx-match.is-processed { background: var(--warm-cream); color: var(--text-light); }
.rx-card-cta {
  margin-top: auto;
  padding-top: 0.3rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.95rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--tomato-pop);
}
.rx-card-cta .ph { transition: transform 0.25s; }

.rx-more { display: flex; justify-content: center; margin-top: 1.6rem; }

.rx-skeleton { min-height: 300px; background: linear-gradient(100deg, #fff 30%, #f1efe9 50%, #fff 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.rx-status { padding: 1.5rem 1rem 3rem; }

/* Empty / no-results / error */
.rx-empty {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
}
.rx-empty-icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 20px;
  background: rgba(241, 90, 60, 0.08);
  color: var(--tomato-pop);
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.rx-empty h1, .rx-empty h2 { font-size: 1.8rem; font-weight: 900; color: var(--dark-forest); margin-bottom: 0.6rem; }
.rx-empty p { color: var(--text-light); max-width: 36ch; margin: 0 auto 1.2rem; }
.rx-empty .rx-chip-row { justify-content: center; }

/* ========================================
   RECIPE PREVIEW
   ======================================== */
.rx-detail-media { position: relative; aspect-ratio: 2 / 1; max-height: 52vh; width: 100%; }
.rx-detail-media .rx-media { aspect-ratio: auto; height: 100%; }
.rx-back {
  position: absolute; left: 0.8rem; top: 0.8rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 42px;
  padding: 0.4rem 0.95rem 0.4rem 0.7rem;
  border: 0;
  border-radius: 50px;
  background: rgba(22, 53, 43, 0.85);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  cursor: pointer;
}

.rx-detail-body { max-width: 760px; margin: 0 auto; padding: 1.4rem 1rem 2.5rem; }
.rx-detail-title { font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 900; color: var(--dark-forest); }
.rx-detail-summary { margin-top: 0.8rem; color: var(--text-light); font-size: 1rem; }

.rx-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1.2rem; }
.rx-fact {
  background: var(--white);
  border-radius: 16px;
  padding: 0.75rem 0.6rem;
  text-align: center;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.03);
}
.rx-fact .ph { font-size: 1.3rem; color: var(--loop-green); }
.rx-fact span {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.65rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.2rem;
}
.rx-fact strong { display: block; font-size: 0.92rem; color: var(--dark-forest); line-height: 1.3; }

.rx-actions { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.rx-actions .btn-primary { min-height: 58px; font-size: 1.1rem; }
.rx-save .ph-heart { font-size: 1.3rem; }

.rx-block { margin-top: 2rem; }
.rx-block-title { font-size: 1.35rem; font-weight: 900; color: var(--dark-forest); margin-bottom: 0.3rem; }
.rx-block-note { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.9rem; }
.rx-ingredients {
  list-style: none;
  background: var(--white);
  border-radius: 20px;
  padding: 0.4rem 1.1rem;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.03);
}
.rx-ingredients li {
  display: flex; gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--soft-mist);
  font-size: 0.95rem;
}
.rx-ingredients li:last-child { border-bottom: 0; }
.rx-ingredients .qty { flex: 0 0 5.5rem; color: var(--text-light); font-size: 0.88rem; padding-top: 0.05rem; }
.rx-ingredients .name { flex: 1; }
.rx-ingredients li.is-heading { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; color: var(--loop-green); padding-top: 1rem; }
.rx-ingredients li.is-match {
  margin: 0 -0.6rem;
  padding-left: 0.6rem; padding-right: 0.6rem;
  background: rgba(183, 240, 90, 0.22);
  border-radius: 12px;
  border-bottom-color: transparent;
  font-weight: 600;
}
.rx-ingredients li.is-match .name::after {
  content: 'Your ingredient';
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.55rem;
  border-radius: 50px;
  background: var(--dark-forest);
  color: var(--acid-lime);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem; letter-spacing: 1.2px; text-transform: uppercase;
  vertical-align: 2px;
}

/* ========================================
   SAVE TO MY LOOP — success + impact
   ======================================== */
.rx-impact {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 90% 70% at 10% 100%, rgba(15, 90, 67, 0.7) 0%, transparent 60%),
    var(--dark-forest);
  color: var(--white);
  padding: 1.6rem 1.2rem 1.4rem;
  animation: impactIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
@keyframes impactIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.rx-impact-ring {
  position: absolute; right: -90px; top: -90px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 1px solid rgba(183, 240, 90, 0.12);
}
.rx-impact-top { display: flex; align-items: center; gap: 0.9rem; }
.rx-impact-check {
  flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acid-lime);
  color: var(--dark-forest);
  font-size: 1.8rem;
  animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) 0.15s both;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.rx-impact-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.72rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--acid-lime);
}
.rx-impact-points {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 12vw, 3.4rem);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rx-impact-points small { font-size: 0.45em; letter-spacing: 2px; color: rgba(255, 255, 255, 0.75); }
.rx-impact h3 {
  margin-top: 1.4rem;
  font-size: 1rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}
.rx-impact-list { list-style: none; display: grid; gap: 0.55rem; margin-top: 0.7rem; }
.rx-impact-list li {
  display: flex; align-items: center; gap: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  animation: cardIn 0.4s ease both;
}
.rx-impact-list li:nth-child(1) { animation-delay: 0.25s; }
.rx-impact-list li:nth-child(2) { animation-delay: 0.35s; }
.rx-impact-list li:nth-child(3) { animation-delay: 0.45s; }
.rx-impact-list .ph { font-size: 1.4rem; color: var(--acid-lime); }
.rx-impact-list strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.5px; margin-right: 0.25rem; }
.rx-disclaimer {
  display: flex; gap: 0.5rem; align-items: flex-start;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}
.rx-disclaimer .ph { margin-top: 0.1rem; color: var(--banana); }
.rx-impact .rx-actions { margin-top: 1.2rem; }
.rx-impact .rx-actions a { padding-left: 1rem; padding-right: 1rem; font-size: 0.95rem; letter-spacing: 1px; }
.rx-impact .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }

/* ========================================
   APROVEITA MAIS PAGE
   ======================================== */
.am-hero { padding-bottom: 3rem; }
.am-hero .rx-hero-title { font-size: clamp(3rem, 14vw, 5.4rem); }
.am-hierarchy { margin-top: 1rem; display: grid; gap: 0.35rem; }
.am-hierarchy p { font-size: 1.05rem; color: rgba(221, 230, 223, 0.85); }
.am-hierarchy p strong { color: var(--white); }
.am-hierarchy .am-with { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.9rem; color: var(--acid-lime); }
.am-section { padding: 2.5rem 1rem; }
.am-section h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 900; color: var(--dark-forest); margin-bottom: 0.7rem; }
.am-section > .section-inner > p { color: var(--text-light); max-width: 52ch; }
.am-flow { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.3rem; counter-reset: flow; }
.am-flow li {
  counter-increment: flow;
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--white);
  border-radius: 20px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
  font-weight: 600;
}
.am-flow li::before {
  content: counter(flow);
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dark-forest); color: var(--acid-lime);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.1rem;
}
.am-partners { display: grid; gap: 1rem; margin-top: 1.3rem; }
.am-partner { border-radius: 20px; padding: 1.5rem 1.3rem; }
.am-partner h3 { font-size: 1.4rem; font-weight: 900; margin: 0.6rem 0 0.4rem; }
.am-partner p { font-size: 0.95rem; }
.am-partner.is-auchan { background: var(--white); box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04); }
.am-partner.is-auchan p { color: var(--text-light); }
.am-partner.is-loop { background: var(--loop-green); color: var(--white); }
.am-partner.is-loop h3 { color: var(--acid-lime); }
.am-partner.is-loop p { color: rgba(255, 255, 255, 0.75); }
.am-partner .rx-step-icon { background: rgba(15, 90, 67, 0.08); }
.am-partner.is-loop .rx-step-icon { background: rgba(183, 240, 90, 0.14); color: var(--acid-lime); }
.am-cta { text-align: center; padding: 2.5rem 1rem 3.5rem; }
.am-cta h2 { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 900; color: var(--dark-forest); margin-bottom: 1.2rem; }

/* ========================================
   FOOTER (compact homepage footer)
   ======================================== */
.rx-footer { background: var(--dark-forest); padding: 2.5rem 1rem calc(1.8rem + var(--safe-bottom)); text-align: center; }
.rx-footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.footer-mark { width: 30px; height: 30px; border: 2.5px solid var(--acid-lime); border-radius: 50%; position: relative; }
.footer-mark::after { content: ''; position: absolute; top: -5px; right: -5px; width: 11px; height: 11px; background: var(--tomato-pop); border-radius: 50%; }
.footer-wordmark { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; color: var(--white); }
.footer-wordmark em { font-style: normal; color: var(--acid-lime); }
.footer-slogan { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--tomato-pop); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.4rem; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin-bottom: 1.4rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); padding: 0.4rem 0; transition: color 0.25s; }
.footer-bottom { padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ========================================
   HOVER — real pointers only, so taps on phones
   don't leave buttons stuck in their hover colour
   ======================================== */
@media (hover: hover) {
  .rx-nav-pill:hover { background: var(--acid-lime); color: var(--dark-forest); border-color: var(--acid-lime); }
  .btn-primary:hover { background: var(--dark-forest); color: var(--acid-lime); border-color: var(--dark-forest); }
  .btn-primary:hover .ph-arrow-right, .btn-outline:hover .ph-arrow-right { transform: translateX(3px); }
  .btn-outline:hover .ph-arrow-up-right { transform: translate(2px, -2px); }
  .btn-outline:hover { background: var(--dark-forest); color: var(--white); }
  .btn-ghost:hover { color: var(--dark-forest); }
  .rx-search-btn:hover { background: #a6e544; }
  .rx-chip:hover { background: var(--white); color: var(--dark-forest); }
  .rx-chip.on-light:hover { border-color: var(--dark-forest); }
  .rx-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
  .rx-card:hover .rx-media img { transform: scale(1.04); }
  .rx-card:hover .rx-card-cta .ph { transform: translateX(4px); }
  .rx-back:hover { background: var(--dark-forest); color: var(--acid-lime); }
  .rx-impact .btn-outline:hover { background: var(--white); color: var(--dark-forest); border-color: var(--white); }
  .footer-links a:hover { color: var(--acid-lime); }
}

/* ========================================
   RESPONSIVE (mobile-first, scale up)
   ======================================== */
@media (min-width: 640px) {
  .rx-nav { padding: 0 2rem; }
  .section, .am-section { padding-left: 2rem; padding-right: 2rem; }
  .rx-hero { padding: 4.5rem 2rem 4rem; }
  .rx-results-head { padding: 1.4rem 2rem 2.2rem; }
  .rx-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .rx-steps { grid-template-columns: repeat(3, 1fr); }
  .rx-actions { grid-template-columns: 1fr 1fr; }
  .rx-detail-body { padding: 2rem 2rem 3rem; }
  .am-flow { grid-template-columns: repeat(2, 1fr); }
  .am-partners { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .rx-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .rx-hero { padding: 6rem 2rem 5rem; }
  .am-flow { grid-template-columns: repeat(4, 1fr); }
  .rx-detail-media { max-height: 460px; }
}
@media (max-width: 380px) {
  .rx-nav-pill { white-space: nowrap; padding: 0.4rem 0.8rem; font-size: 0.78rem; }
  .rx-nav-pill .ph { display: none; }
  .nav-wordmark { font-size: 1.05rem; }
  .rx-impact .rx-actions a { font-size: 0.86rem; letter-spacing: 0.6px; }
  .rx-search-btn span { display: none; }
  .rx-search-btn { width: 48px; padding: 0; justify-content: center; }
  .rx-ingredients .qty { flex-basis: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
