/*
Theme Name: Ed Theme
Theme URI:
Author:
Author URI:
Description: Custom theme for EdScan.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ed-theme
*/

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Roboto:wght@300;400;500;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-background:           hsl(200, 30%, 97%);
  --color-foreground:           hsl(210, 30%, 15%);

  --color-card:                 hsl(0, 0%, 100%);
  --color-card-foreground:      hsl(210, 30%, 15%);

  --color-primary:              hsl(219, 85%, 59%);
  --color-primary-foreground:   hsl(0, 0%, 100%);

  --color-secondary:            hsl(170, 40%, 92%);
  --color-secondary-foreground: hsl(175, 50%, 30%);

  --color-muted:                hsl(200, 20%, 93%);
  --color-muted-foreground:     hsl(210, 15%, 50%);

  --color-accent:               hsl(155, 55%, 45%);
  --color-accent-foreground:    hsl(0, 0%, 100%);

  --color-destructive:          hsl(0, 72%, 51%);
  --color-destructive-bg:       hsl(0, 72%, 97%);
  --color-warning:              hsl(38, 92%, 50%);
  --color-success:              hsl(152, 60%, 38%);

  --color-border:               hsl(200, 20%, 90%);

  --radius:                     0.75rem;

  --gradient-hero-overlay:      linear-gradient(135deg, rgba(30, 60, 140, 0.85), rgba(40, 120, 90, 0.82));
  --gradient-warm:              linear-gradient(180deg, hsl(200, 30%, 97%), hsl(200, 25%, 95%));
  --gradient-cta:               linear-gradient(90deg, #3E7BF0, #67D3A4);

  --shadow-editorial:           0 4px 24px -4px hsl(210 20% 50% / 0.08);
  --shadow-card-hover:          0 8px 32px -8px hsl(175 60% 40% / 0.15);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: 'Roboto', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: 'Lora', ui-serif, Georgia, serif;
  line-height: 1.2;
  color: var(--color-foreground);
}
.text-center { text-align: center; }
.text-center svg{
  display: inline-block;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container--narrow { max-width: 768px; }

#page-content { min-height: 60vh; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, opacity 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn--sm  { height: 2.25rem; padding: 0 0.875rem; font-size: 0.8125rem; }
.btn--md  { height: 2.5rem;  padding: 0 1rem; }
.btn--lg  { height: 3rem;    padding: 0 2.5rem; font-size: 1rem; }
.btn--xl  { height: 3.5rem;  padding: 0 2.5rem; font-size: 1rem; }

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.btn--primary:hover { background-color: hsl(219, 85%, 52%); }

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
  font-weight: 600;
}
.btn--accent:hover { background-color: hsl(155, 55%, 38%); }

.btn--outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-foreground);
}
.btn--outline:hover { background-color: var(--color-muted); }

.btn--ghost-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-primary-foreground);
}
.btn--ghost-light:hover { background-color: rgba(255, 255, 255, 0.1); }

.btn--card {
  background-color: var(--color-card);
  color: var(--color-foreground);
  font-weight: 600;
}
.btn--card:hover { background-color: hsl(0, 0%, 96%); }

/* Pulse animation for hero CTA */
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 hsl(155 55% 45% / 0.5); }
  50%       { box-shadow: 0 0 0 8px hsl(155 55% 45% / 0); }
}
.btn--pulse { animation: pulse-cta 2.5s ease-in-out infinite; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.badge--secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
}

.badge--accent {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
}

.badge--ed-list {
  background-color: var(--color-destructive-bg);
  color: var(--color-destructive);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-editorial);
  padding: 1.5rem;
}

.card--link {
  display: block;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
}
.card--link:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(219 85% 59% / 0.3);
}

/* ============================================================
   RISK LABELS & ICONS
   ============================================================ */
.risk-icon { display: inline-flex; align-items: center; }

.risk-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
}
.risk-label--destructive { color: var(--color-destructive); }
.risk-label--warning     { color: var(--color-warning); }
.risk-label--success     { color: var(--color-success); }
.risk-label--muted       { color: var(--color-muted-foreground); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background-color: hsl(200 30% 97% / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-header__logo {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.5rem;
  object-fit: contain;
}

.site-header__name {
  font-family: 'Lora', ui-serif, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-foreground);
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-header__nav { display: flex; }
}

.site-header__nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  transition: color 0.15s;
  text-decoration: none;
}
.site-header__nav-link:hover { color: var(--color-foreground); }

.site-header__hamburger {
  display: none; /* visible only on mobile via media query below */
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  padding: 0.25rem;
}

@media (max-width: 767px) {
  .site-header__hamburger { display: flex; }
}

.site-header__mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-background);
}
.site-header__mobile-nav.is-open { display: flex; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: hsl(170 40% 92% / 0.5);
  padding: 3rem 0;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.site-footer__logo {
  height: 2rem;
  width: 2rem;
  border-radius: 0.5rem;
}

.site-footer__brand-name {
  font-family: 'Lora', ui-serif, Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
}

.site-footer__desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

.site-footer__col-title {
  font-family: 'Lora', ui-serif, Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.site-footer__links { display: flex; flex-direction: column; gap: 0.5rem; }

.site-footer__link {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.15s;
  text-decoration: none;
}
.site-footer__link:hover { color: var(--color-foreground); }

.site-footer__play-badge { height: 2.5rem; margin-top: 1rem; }

.site-footer__bottom {
  margin-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

/* ============================================================
   MOBILE APP BAR
   ============================================================ */
.mobile-app-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--gradient-cta);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 -4px 24px hsl(219 85% 59% / 0.2);
}
@media (min-width: 768px) { .mobile-app-bar { display: none; } }

.mobile-app-bar__dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  display: flex;
  flex-shrink: 0;
  transition: color 0.15s;
}
.mobile-app-bar__dismiss:hover { color: #fff; }

.mobile-app-bar__label {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: hsl(210, 30%, 20%);
  background-size: cover;
  background-position: center;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
}

.hero-section__inner {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}
@media (min-width: 768px) { .hero-section__inner { padding: 8rem 0; } }

.hero-section__content { max-width: 40rem; }

.hero-section__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
}

.hero-section__title {
  font-family: 'Lora', ui-serif, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.hero-section__subtitle {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-section__trust {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   SECTION: What are endocrine disruptors (warm bg + feature cards)
   ============================================================ */
.section-warm {
  background: var(--gradient-warm);
  padding: 5rem 0;
}

.section-intro { margin: 0 auto; max-width: 48rem; text-align: center; }

.section-intro__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.section-intro__text {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  border-radius: var(--radius);
  background-color: var(--color-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-editorial);
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-card-hover); }

.feature-card--accent {
  position: relative;
  border: 2px solid var(--color-accent);
  background-color: hsl(155 55% 45% / 0.05);
}

.feature-card__badge {
  position: absolute;
  top: -0.75rem;
  right: 1rem;
}

.feature-card__icon { color: var(--color-primary); margin-bottom: 0.75rem; }
.feature-card--accent .feature-card__icon { color: var(--color-accent); }

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted-foreground);
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: text-decoration 0.15s;
}
.feature-card--accent .feature-card__link { color: var(--color-accent); }
.feature-card__link:hover { text-decoration: underline; }

/* ============================================================
   SECTION: Ingredient & Guide preview cards (home page)
   ============================================================ */
.section-default { padding: 5rem 0; }

.section-header__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
.section-header__subtitle {
  margin-top: 0.75rem;
  color: var(--color-muted-foreground);
}

.preview-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .preview-grid { grid-template-columns: repeat(3, 1fr); } }

.preview-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card);
  padding: 1.5rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.preview-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(219 85% 59% / 0.3);
}

.preview-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-card-foreground);
  transition: color 0.15s;
}
.preview-card:hover .preview-card__title { color: var(--color-primary); }

.preview-card__tagline {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.preview-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s;
}
.preview-card:hover .preview-card__cta { opacity: 1; }

.section-center-action { margin-top: 2rem; text-align: center; }

/* ============================================================
   APP PROMO BANNER
   ============================================================ */
.app-promo {
  padding: 3rem 0;
  background: var(--gradient-cta);
}

.app-promo__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .app-promo__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.app-promo__icon-wrap {
  display: none;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
}
@media (min-width: 768px) { .app-promo__icon-wrap { display: flex; } }

.app-promo__text { display: flex; align-items: center; gap: 1rem; }

.app-promo__title {
  font-family: 'Lora', ui-serif, Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #fff;
}

.app-promo__subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   GUIDE LIST (home page + guides archive)
   ============================================================ */
.section-secondary { padding: 5rem 0; background-color: hsl(170 40% 92% / 0.4); }

.guide-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }

.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card);
  padding: 1.25rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.guide-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(219 85% 59% / 0.3);
}

.guide-card__icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.guide-card__body { flex: 1; }

.guide-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-card-foreground);
  transition: color 0.15s;
}
.guide-card:hover .guide-card__title { color: var(--color-primary); }

.guide-card__desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.guide-card__read-time {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.guide-card__arrow {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--color-muted-foreground);
  opacity: 0;
  transition: opacity 0.2s;
}
.guide-card:hover .guide-card__arrow { opacity: 1; }

/* ============================================================
   APP CTA SECTION
   ============================================================ */
.app-cta {
  padding: 5rem 0;
  background: var(--gradient-hero-overlay);
  text-align: center;
}

.app-cta__title {
  font-family: 'Lora', ui-serif, Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.app-cta__subtitle {
  margin: 0 auto 1rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.app-cta__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.app-cta__stars-label {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.app-cta__features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.app-cta__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================================
   PAGE: Ingredients archive
   ============================================================ */
.page-header {
  padding: 4rem 0;
  background: var(--gradient-warm);
}

.page-header__title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.page-header__subtitle {
  margin-top: 1rem;
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

.ed-lists-box {
  margin-top: 1.5rem;
  max-width: 40rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}
.ed-lists-box a { color: var(--color-primary); }
.ed-lists-box a:hover { text-decoration: underline; }

.ingredient-grid {
  display: grid;
  gap: 1rem;
  padding: 3rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .ingredient-grid { grid-template-columns: repeat(2, 1fr); } }

.ingredient-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card);
  padding: 1.25rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ingredient-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(219 85% 59% / 0.3);
}

.ingredient-card__icon { margin-top: 0.125rem; flex-shrink: 0; }

.ingredient-card__body { flex: 1; }

.ingredient-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ingredient-card__name {
  font-family: 'Roboto', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-card-foreground);
  transition: color 0.15s;
}
.ingredient-card:hover .ingredient-card__name { color: var(--color-primary); }

.ingredient-card__desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.ingredient-card__risk { margin-top: 0.5rem; }

.ingredient-card__arrow {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--color-muted-foreground);
  opacity: 0;
  transition: opacity 0.2s;
}
.ingredient-card:hover .ingredient-card__arrow { opacity: 1; }

/* ============================================================
   PAGE: Ingredient detail
   ============================================================ */
.ingredient-detail-header {
  padding: 3rem 0;
  background: var(--gradient-warm);
  border-bottom: 1px solid var(--color-border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--color-foreground); }

.ingredient-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ingredient-header__icon { flex-shrink: 0; margin-top: 0.25rem; }

.ingredient-header__title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.ingredient-header__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ingredient-summary {
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

.ingredient-sections {
  padding: 3rem 0;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ingredient-section__title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ingredient-section__text {
  color: hsl(210 30% 15% / 0.8);
  line-height: 1.7;
}

/* Styles for content entered via the WordPress editor */
.ingredient-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ingredient-content h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ingredient-content p {
  color: hsl(210 30% 15% / 0.8);
  line-height: 1.7;
  margin: 0;
}

.ed-status-box {
  border: 1px solid hsl(0 72% 51% / 0.2);
  border-radius: var(--radius);
  background-color: hsl(0 72% 97%);
  padding: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ed-status-box__icon { color: var(--color-destructive); flex-shrink: 0; margin-top: 0.125rem; }

.ed-status-box__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-destructive);
  margin-bottom: 0.5rem;
}

.ed-status-box__desc {
  font-size: 0.875rem;
  color: hsl(210 30% 15% / 0.8);
  line-height: 1.7;
}

.ed-status-box__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}
.ed-status-box__link:hover { text-decoration: underline; }

.inline-cta-box {
  border: 1px solid hsl(219 85% 59% / 0.2);
  border-radius: var(--radius);
  background-color: hsl(219 85% 59% / 0.05);
  padding: 1.5rem;
  text-align: center;
}

.inline-cta-box__icon { color: var(--color-primary); margin: 0 auto 0.75rem; }

.inline-cta-box__title { font-size: 1.125rem; font-weight: 600; }

.inline-cta-box__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* ============================================================
   PAGE: Guides detail
   ============================================================ */
.guide-detail-header {
  padding: 3rem 0;
  background: var(--gradient-warm);
  border-bottom: 1px solid var(--color-border);
}

.guide-read-time {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.guide-article {
  padding: 3rem 0;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-article p {
  color: hsl(210 30% 15% / 0.8);
  line-height: 1.75;
  font-size: 1.05rem;
}

/* ============================================================
   PAGE: App Landing
   ============================================================ */
.app-feature-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .app-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .app-feature-grid { grid-template-columns: repeat(3, 1fr); } }

.app-feature-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-editorial);
}

.app-feature-card__icon { color: var(--color-primary); margin-bottom: 0.75rem; }
.app-feature-card__title { font-size: 1.125rem; font-weight: 600; }
.app-feature-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

.trust-section {
  padding: 5rem 0;
  background-color: hsl(170 40% 92% / 0.4);
}

.trust-section__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.trust-section__text {
  margin-top: 1.25rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

/* ============================================================
   PAGE: 404
   ============================================================ */
.error-404 { padding: 5rem 0; text-align: center; }
.error-404__code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-muted);
  line-height: 1;
}
.error-404__title { font-size: 1.5rem; margin-top: 1rem; }
.error-404__text { margin-top: 0.5rem; color: var(--color-muted-foreground); }
.error-404__link { margin-top: 1.5rem; display: inline-block; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 767px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .hero-section__inner { padding: 4rem 0; }
  body { padding-bottom: 4rem; /* space for mobile app bar */ }
}
