/* ─── RESET ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── DARK MODE — Midnight Forest (matches app exactly) ─────────────── */
:root {
  /* Backgrounds */
  --bg:             #040E08;
  --surface:        #091A10;
  --card:           #0C2016;
  --border:         #183828;
  /* Greens */
  --green:          #50C88C;
  --greenSoftBg:    #0E2818;
  --greenBorder:    #224E34;
  --greenLight:     #C8F5E1;
  --greenPale:      #D7E9DF;
  /* Pill / chips */
  --pillCatBg:      #102A1C;
  --pillCatBorder:  #224E34;
  --pillCatText:    #D7E9DF;
  /* Warning */
  --warnBg:         #200E08;
  --warnBorder:     #582814;
  --warnTitle:      #FF9A74;
  --warnText:       #F1C9BA;
  /* Text */
  --textPrimary:    #F3F5EF;
  --textSecondary:  #B7C7BE;
  --textMuted:      #7D988B;
  /* Button */
  --btnText:        #040E08;
  /* Aliases for shared CSS */
  --text:           #F3F5EF;
  --textS:          #B7C7BE;
  --textM:          #7D988B;
  --greenP:         #D7E9DF;
  --nav-bg:         rgba(4,14,8,0.92);
  /* Radius */
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-pill: 100px;
}

/* ─── LIGHT MODE — Linen & Jade ──────────────────────────────────────── */
[data-theme="light"] {
  --bg:             #F2F5F0;
  --surface:        #E8EDE4;
  --card:           #F4F8F4;
  --border:         #CBD4C6;
  --green:          #2E8050;
  --greenSoftBg:    #CBE8D4;
  --greenBorder:    #A8CEB0;
  --greenLight:     #1A5430;
  --greenPale:      #1E5434;
  --pillCatBg:      #DFF0E4;
  --pillCatBorder:  #A8CEB0;
  --pillCatText:    #1E5434;
  --warnBg:         #FEF3EA;
  --warnBorder:     #F0CCAA;
  --warnTitle:      #8A4010;
  --warnText:       #5E3018;
  --textPrimary:    #162018;
  --textSecondary:  #4E6854;
  --textMuted:      #82988A;
  --btnText:        #FAFCF8;
  --text:           #162018;
  --textS:          #4E6854;
  --textM:          #82988A;
  --greenP:         #1E5434;
  --nav-bg:         rgba(242,245,240,0.92);
}

/* ─── AUTO — follow system ───────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:             #F2F5F0;
    --surface:        #E8EDE4;
    --card:           #F4F8F4;
    --border:         #CBD4C6;
    --green:          #2E8050;
    --greenSoftBg:    #CBE8D4;
    --greenBorder:    #A8CEB0;
    --greenLight:     #1A5430;
    --greenPale:      #1E5434;
    --pillCatBg:      #DFF0E4;
    --pillCatBorder:  #A8CEB0;
    --pillCatText:    #1E5434;
    --warnBg:         #FEF3EA;
    --warnBorder:     #F0CCAA;
    --warnTitle:      #8A4010;
    --warnText:       #5E3018;
    --textPrimary:    #162018;
    --textSecondary:  #4E6854;
    --textMuted:      #82988A;
    --btnText:        #FAFCF8;
    --text:           #162018;
    --textS:          #4E6854;
    --textM:          #82988A;
    --greenP:         #1E5434;
    --nav-bg:         rgba(242,245,240,0.92);
  }
}

/* ─── TRADITION ACCENT COLOURS ───────────────────────────────────────── */
:root {
  --trad-ayurvedic:        #5C8A5A;
  --trad-caribbean:        #8A6A3A;
  --trad-chinese:          #8A3A3A;
  --trad-african:          #7A6A3A;
  --trad-latin:            #5A6A8A;
  --trad-european:         #6A5A8A;
  --trad-mediterranean:    #3A6A8A;
  --trad-japanese:         #8A5A6A;
  --trad-middle-eastern:   #7A5A3A;
  --trad-western:          #3A7A6A;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-weight: 400; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── TYPOGRAPHY ──────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 800; letter-spacing: -0.5px; line-height: 1.08;
}

/* ─── THEME TOGGLE ────────────────────────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; transition: all 0.2s;
  flex-shrink: 0; user-select: none; line-height: 1;
}
.theme-toggle:hover { border-color: var(--green); background: var(--greenSoftBg); }

/* ─── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 68px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.nav-logo {
  display: flex; align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 800;
  color: var(--greenP); letter-spacing: 0.2px; gap: 10px;
}
.nav-logo img { height: 28px; width: auto; display: block; }
/* Dark bg logo — gold on dark */
[data-theme="light"] .nav-logo-dark { display: none; }
[data-theme="light"] .nav-logo-light { display: block; }
.nav-logo-light { display: none; }
.nav-logo-dark { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .nav-logo-dark { display: none; }
  :root:not([data-theme="dark"]) .nav-logo-light { display: block; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--textS); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--green); color: var(--btnText) !important;
  font-weight: 700 !important; font-size: 13px !important;
  padding: 10px 22px; border-radius: var(--r-pill);
  transition: background .2s, transform .15s !important;
  box-shadow: 0 4px 20px rgba(80,200,140,0.25);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600;
  transition: all .2s; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--green); color: var(--btnText);
  box-shadow: 0 6px 28px rgba(80,200,140,0.2);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--textS); border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--green); color: var(--text); transform: translateY(-1px); }


/* ─── LOGO — transparent PNG works on any bg ────────────────────────────────
   Dark mode: gold logo shows naturally on dark background
   Light mode: CSS filter darkens gold to readable dark green             */
.site-logo {
  height: 30px; width: auto; display: block;
  /* Gold logo naturally visible on dark bg */
  filter: none;
  transition: filter 0.25s;
}
/* In light mode — darken the gold so it reads on light background */
[data-theme="light"] .site-logo {
  filter: brightness(0.3) sepia(1) hue-rotate(70deg) saturate(3);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .site-logo {
    filter: brightness(0.3) sepia(1) hue-rotate(70deg) saturate(3);
  }
}
.nav-logo-img { height: 28px; }
.footer-logo  { height: 36px; margin-bottom: 16px; }


/* ─── PHONE MOCKUP — always dark (matches real app) ──────────────────── */
.phone {
  width: 265px; height: 572px; border-radius: 46px;
  border: 1.5px solid #183828;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 0 6px #040E08,
    0 0 0 7px #183828,
    0 40px 120px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative; overflow: hidden; flex-shrink: 0;
  background: #091A10;
}
.phone::before {
  content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: #040E08; border-radius: 100px; z-index: 10;
  box-shadow: 0 0 0 1px #183828;
}
.phone-screen {
  padding: 52px 14px 0; height: 100%;
  display: flex; flex-direction: column; gap: 7px; overflow: hidden;
}
/* Phone logo — uses actual logo image */
.phone-logo {
  display: flex; align-items: center; gap: 6px; padding: 0 2px;
}
.phone-logo img { height: 16px; width: auto; }
/* Fallback text if logo not loaded */
.phone-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 11px; font-weight: 800; color: #C4952A; letter-spacing: 0.5px;
}
.phone-search-bar {
  background: #0C2016; border: 1px solid #183828;
  border-radius: 10px; padding: 9px 12px;
  font-size: 10px; color: #7D988B; font-family: 'DM Sans', sans-serif;
}
.phone-card {
  background: #0C2016; border: 1px solid #183828;
  border-radius: 16px; padding: 12px 13px; flex-shrink: 0;
}
.phone-card-trad {
  font-size: 8px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: #50C88C; margin-bottom: 4px;
}
.phone-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 12px; font-weight: 800; color: #F3F5EF; margin-bottom: 3px;
}
.phone-card-desc { font-size: 8px; color: #7D988B; line-height: 1.5; }
.phone-badge {
  display: inline-block; margin-top: 4px;
  background: rgba(80,200,140,0.12); color: #50C88C;
  font-size: 8px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
  border: 1px solid rgba(80,200,140,0.2);
}
/* Nav bar — pixel-perfect match to app */
.phone-nav {
  margin-top: auto;
  display: flex; justify-content: space-around;
  padding: 8px 4px 10px;
  background: #040E08;
  border-top: 1px solid #183828;
  margin-left: -14px; margin-right: -14px;
}
.phone-nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  font-size: 6px;
  line-height: 1.15;
  color: #7D988B;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.phone-nav-item.active { color: #50C88C; }
/* Lucide-style SVG icons in phone nav */
.phone-nav-icon {
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}
.phone-nav-icon svg { width: 16px; height: 16px; stroke-width: 1.8; }
.phone-nav-item.active .phone-nav-icon svg { stroke-width: 2.4; }

/* ─── COMPARE PHONE — same iPhone shell as the other mockups ─────────── */
.phone-compare {
  width: 265px; height: 572px; border-radius: 46px;
  border: 1.5px solid #183828;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 0 6px #040E08,
    0 0 0 7px #183828,
    0 40px 120px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative; overflow: hidden; flex-shrink: 0;
  background: #091A10;
}
.phone-compare::before {
  content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: #040E08; border-radius: 100px; z-index: 10;
  box-shadow: 0 0 0 1px #183828;
}
.phone-compare-screen {
  padding: 52px 14px 0; height: 100%;
  display: flex; flex-direction: column; gap: 7px; overflow: hidden;
}
.phone-compare-title {
  font-family: 'Playfair Display', serif;
  font-size: 12px; font-weight: 800; color: #F3F5EF;
}
.phone-compare-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 3px; align-items: center;
}
.phone-compare-pill {
  border-radius: 10px; padding: 7px 8px; text-align: center;
  font-size: 8px; font-weight: 700; color: #F3F5EF;
}
.phone-compare-vs {
  font-size: 7px; font-weight: 800; color: #7D988B; text-align: center;
}
.phone-compare-label {
  font-size: 7px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: #50C88C; margin: 4px 0 2px;
}
.phone-compare-cells {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.phone-compare-cell {
  background: #0C2016; border: 1px solid #183828;
  border-radius: 8px; padding: 8px;
  font-size: 7px; color: #B7C7BE; line-height: 1.45;
}
.phone-compare-verdict {
  background: rgba(80,200,140,0.07); border: 1px solid rgba(80,200,140,0.2);
  border-radius: 10px; padding: 10px 12px; margin-top: 4px;
}
.phone-compare-verdict-title {
  font-size: 8px; font-weight: 800; color: #F3F5EF; margin-bottom: 4px;
}
.phone-compare-verdict-text {
  font-size: 7px; color: #B7C7BE; line-height: 1.5;
}

/* ─── NEWSLETTER ──────────────────────────────────────────────────────── */
.newsletter-section {
  padding: 96px 80px;
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter-section h2 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 14px; }
.newsletter-section p { font-size: 16px; color: var(--textS); font-weight: 300; line-height: 1.75; margin-bottom: 32px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter-input {
  flex: 1; min-width: 220px; padding: 14px 20px; border-radius: var(--r-pill);
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: var(--textM); }
.newsletter-input:focus { border-color: var(--green); }
.newsletter-submit {
  padding: 14px 28px; border-radius: var(--r-pill);
  background: var(--green); color: var(--btnText);
  font-size: 15px; font-weight: 700; border: none;
  cursor: pointer; transition: all 0.2s; white-space: nowrap; font-family: 'DM Sans', sans-serif;
}
.newsletter-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.newsletter-note { font-size: 12px; color: var(--textM); margin-top: 14px; line-height: 1.6; }
.newsletter-success {
  display: none; padding: 16px 24px; border-radius: var(--r-md);
  background: var(--greenSoftBg); border: 1px solid var(--greenBorder);
  color: var(--greenLight); font-size: 15px; font-weight: 500; margin-top: 16px;
}

/* ─── FOOTER ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 56px 0; }
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--border);
}
.footer-logo { height: 32px; width: auto; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 14px; color: var(--textM); line-height: 1.75; max-width: 270px; font-weight: 300; margin-bottom: 24px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--border);
  color: var(--textM); font-size: 13px; font-weight: 700; transition: all .2s;
}
.social-btn:hover { border-color: var(--green); color: var(--green); background: var(--greenSoftBg); }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--textM); margin-bottom: 22px;
}
.footer-col a { display: block; font-size: 14px; color: var(--textS); font-weight: 400; margin-bottom: 13px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: 13px; color: var(--textM); flex-wrap: wrap; gap: 16px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--textM); font-size: 13px; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--textS); }
.disclaimer-bar {
  background: rgba(80,200,140,0.04); border-top: 1px solid rgba(80,200,140,0.08);
  padding: 16px 56px; font-size: 12px; color: var(--textM); line-height: 1.6; text-align: center;
}

/* ─── LEGAL PAGES ─────────────────────────────────────────────────────── */
.legal-hero { padding: 120px 56px 56px; max-width: 820px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.legal-title { font-size: clamp(36px, 5vw, 60px); color: var(--text); margin-bottom: 12px; }
.legal-date { font-size: 14px; color: var(--textM); }
.legal-notice {
  margin-top: 28px; padding: 20px 24px;
  background: var(--greenSoftBg); border: 1px solid var(--greenBorder); border-radius: 14px;
  font-size: 14px; color: var(--textS); line-height: 1.7;
}
.legal-notice strong { color: var(--greenLight); }
.legal-body { max-width: 820px; margin: 0 auto; padding: 56px 56px 96px; }
.legal-body h2 { font-size: 26px; color: var(--text); margin: 52px 0 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.legal-body h3 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; color: var(--greenLight); margin: 28px 0 10px; }
.legal-body p { font-size: 15px; color: var(--textS); font-weight: 300; margin-bottom: 16px; line-height: 1.75; }
.legal-body ul { margin: 0 0 20px 20px; }
.legal-body li { font-size: 15px; color: var(--textS); font-weight: 300; margin-bottom: 10px; line-height: 1.65; }
.legal-body a { color: var(--green); transition: opacity .2s; }
.legal-body a:hover { opacity: 0.8; text-decoration: underline; }

/* ─── REMEDY STATIC PAGE ──────────────────────────────────────────────── */
.remedy-hero { padding: 120px 56px 64px; max-width: 1000px; margin: 0 auto; }
.remedy-trad-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--pillCatBg); border: 1px solid var(--pillCatBorder);
  color: var(--pillCatText); margin-bottom: 20px;
}
.remedy-title { font-size: clamp(40px, 5vw, 72px); margin-bottom: 12px; color: var(--text); }
.remedy-aka { font-size: 16px; color: var(--textM); font-style: italic; margin-bottom: 24px; }
.remedy-what { font-size: 19px; color: var(--textS); font-weight: 300; line-height: 1.75; max-width: 680px; margin-bottom: 40px; }
.remedy-meta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.remedy-meta-chip {
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--card); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--textS);
}
.remedy-meta-chip span { color: var(--textM); margin-right: 4px; }
.remedy-body { max-width: 1000px; margin: 0 auto; padding: 0 56px 96px; display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
.remedy-section { margin-bottom: 48px; }
.remedy-section-label { font-size: 10px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.remedy-section p { font-size: 16px; color: var(--textS); font-weight: 300; line-height: 1.8; }
.remedy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.remedy-chip {
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--pillCatBg); border: 1px solid var(--pillCatBorder);
  font-size: 13px; color: var(--pillCatText); font-weight: 500;
}
.remedy-sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px;
  position: sticky; top: 88px;
}
.remedy-sidebar-label { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--textM); margin-bottom: 16px; }
.remedy-cta-btn {
  display: block; width: 100%; padding: 14px 20px;
  background: var(--green); color: var(--btnText);
  text-align: center; font-size: 15px; font-weight: 700;
  border-radius: var(--r-pill); margin-bottom: 12px; transition: all 0.2s;
}
.remedy-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.remedy-cta-sub { font-size: 12px; color: var(--textM); text-align: center; line-height: 1.6; }
.remedy-caution {
  background: var(--warnBg); border: 1px solid var(--warnBorder);
  border-radius: var(--r-md); padding: 20px;
}
.remedy-caution-label { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--warnTitle); margin-bottom: 10px; }
.remedy-caution p { font-size: 13px; color: var(--warnText); font-weight: 300; line-height: 1.7; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav { padding: 0 24px; }
  .nav-links .hide-mobile { display: none; }
  .site-footer { padding: 56px 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .disclaimer-bar, .newsletter-section { padding-left: 24px; padding-right: 24px; }
  .legal-hero, .legal-body { padding-left: 24px; padding-right: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .remedy-hero { padding: 120px 24px 48px; }
  .remedy-body { grid-template-columns: 1fr; padding: 0 24px 72px; }
  .remedy-sidebar-card { position: static; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* Embedded legal document mode */
html.legal-embedded .nav,
html.legal-embedded .site-footer,
html.legal-embedded .disclaimer-bar { display:none !important; }
html.legal-embedded body { padding:0; }
html.legal-embedded .legal-hero { padding-top:34px; }
html.legal-embedded .legal-body { padding-bottom:40px; }


/* ─── PHONE MOCKUPS — THEME-RESPONSIVE OVERRIDES ───────────────────── */
:root {
  --phone-shell: #091A10;
  --phone-shell-border: #183828;
  --phone-shell-edge: #040E08;
  --phone-notch: #040E08;
  --phone-screen-bg: #040E08;
  --phone-surface: #091A10;
  --phone-card-bg: #0C2016;
  --phone-card-border: #183828;
  --phone-search-bg: #0C2016;
  --phone-search-border: #183828;
  --phone-text: #F3F5EF;
  --phone-secondary: #B7C7BE;
  --phone-muted: #7D988B;
  --phone-active: #50C88C;
  --phone-nav-bg: #091A10;
  --phone-soft: #0E2818;
  --phone-soft-border: #224E34;
  --phone-pill-text: #D7E9DF;
  --phone-warn-bg: #200E08;
  --phone-warn-border: #582814;
  --phone-warn-title: #FF9A74;
  --phone-warn-text: #F1C9BA;
}

[data-theme="light"] {
  --phone-shell: #E8EDE4;
  --phone-shell-border: #CBD4C6;
  --phone-shell-edge: #F2F5F0;
  --phone-notch: #E8EDE4;
  --phone-screen-bg: #F2F5F0;
  --phone-surface: #E8EDE4;
  --phone-card-bg: #FAFCF8;
  --phone-card-border: #CBD4C6;
  --phone-search-bg: #FAFCF8;
  --phone-search-border: #CBD4C6;
  --phone-text: #162018;
  --phone-secondary: #4E6854;
  --phone-muted: #82988A;
  --phone-active: #2E8050;
  --phone-nav-bg: #E8EDE4;
  --phone-soft: #CBE8D4;
  --phone-soft-border: #A8CEB0;
  --phone-pill-text: #1E5434;
  --phone-warn-bg: #FEF3EA;
  --phone-warn-border: #F0CCAA;
  --phone-warn-title: #8A4010;
  --phone-warn-text: #5E3018;
}

.phone {
  border-color: var(--phone-shell-border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 0 6px var(--phone-shell-edge),
    0 0 0 7px var(--phone-shell-border),
    0 40px 120px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.05);
  background: var(--phone-shell);
}
.phone::before {
  background: var(--phone-notch);
  box-shadow: 0 0 0 1px var(--phone-shell-border);
}
.phone-screen { background: var(--phone-screen-bg); }
.phone-search-bar {
  background: var(--phone-search-bg);
  border-color: var(--phone-search-border);
  color: var(--phone-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-card {
  background: var(--phone-card-bg);
  border-color: var(--phone-card-border);
}
.phone-card-trad { color: var(--phone-active); }
.phone-card-name { color: var(--phone-text); }
.phone-card-desc { color: var(--phone-muted); }
.phone-badge {
  background: var(--phone-soft);
  border-color: var(--phone-soft-border);
  color: var(--phone-active);
}
.phone-nav {
  background: var(--phone-nav-bg);
  border-top-color: var(--phone-shell-border);
  min-height: 64px;
  padding: 8px 6px 12px;
  gap: 0;
}
.phone-nav-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 6px;
  line-height: 1.12;
  justify-content: center;
}
.phone-nav-icon { width: 17px; height: 17px; }
.phone-nav-icon svg { width: 15px; height: 15px; }
.phone-nav-item { color: var(--phone-muted); }
.phone-nav-item.active { color: var(--phone-active); }
.phone-compare {
  border-color: var(--phone-shell-border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 0 6px var(--phone-shell-edge),
    0 0 0 7px var(--phone-shell-border),
    0 40px 120px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.05);
  background: var(--phone-shell);
}
.phone-compare::before {
  background: var(--phone-notch);
  box-shadow: 0 0 0 1px var(--phone-shell-border);
}
.phone-compare-screen {
  background: var(--phone-screen-bg);
  padding: 52px 14px 0;
  gap: 7px;
}
.phone-compare-title { color: var(--phone-text); }
.phone-compare-vs { color: var(--phone-muted); }
.phone-compare-label { color: var(--phone-active); }
.phone-compare-cell {
  background: var(--phone-card-bg);
  border-color: var(--phone-card-border);
  color: var(--phone-muted);
}
.phone-compare-verdict {
  background: var(--phone-soft);
  border-color: var(--phone-soft-border);
}
.phone-compare-verdict-title { color: var(--phone-text); }
.phone-compare-verdict-text { color: var(--phone-muted); }

.phone-screen,
.phone-compare-screen {
  justify-content: flex-start;
}

.phone-screen > :not(.phone-nav),
.phone-compare-screen > :not(.phone-nav) {
  flex-shrink: 0;
}

.phone .phone-nav,
.phone-compare .phone-nav {
  margin-top: auto;
}

.phone-card,
.phone-pairing,
.phone-note-card,
.phone-compare-cell,
.phone-compare-verdict {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.phone-inline-icon,
.phone-bookmark,
.phone-mini-icon,
.phone-nav-icon svg,
.phone-icon-btn svg,
.phone-top-icon svg,
.phone-status-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-inline-icon { width: 14px; height: 14px; flex-shrink: 0; }
.phone-bookmark { width: 16px; height: 16px; color: var(--phone-muted); }
.phone-mini-icon { width: 12px; height: 12px; }
.phone-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.25px;
  color: var(--phone-muted);
  text-transform: uppercase;
  padding: 0 2px;
}
.phone-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.phone-chip-row { display: flex; gap: 5px; flex-wrap: wrap; }
.phone-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 7px;
  font-weight: 700;
  border: 1px solid transparent;
}
.phone-card-link {
  font-size: 8px;
  color: var(--phone-active);
  font-weight: 600;
}
.phone-pairing,
.phone-note-card {
  background: var(--phone-card-bg);
  border: 1px solid var(--phone-card-border);
  border-radius: 16px;
  padding: 14px 13px;
  flex-shrink: 0;
}
.phone-pairing-title,
.phone-note-title {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--phone-active);
  margin-bottom: 8px;
}
.phone-pairing-text,
.phone-note-text {
  font-size: 9px;
  line-height: 1.45;
  color: var(--phone-text);
  margin-bottom: 8px;
}
.phone-pairing-text strong,
.phone-note-text strong { font-weight: 800; }
.phone-pairing-sub,
.phone-note-sub {
  font-size: 8px;
  line-height: 1.55;
  color: var(--phone-muted);
}
.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 2px;
  color: var(--phone-text);
  font-size: 9px;
  font-weight: 700;
}
.phone-status-right {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--phone-text);
}

.phone-warning-text { color: var(--phone-warn-text); }

.phone-status-icon svg { width: 12px; height: 12px; }
.phone-battery {
  width: 18px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1px;
}
.phone-battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}
.phone-battery-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
}
.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}
.phone-topbar img { height: 18px; width: auto; }
.phone-pro-pill {
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 8px;
  font-weight: 700;
  color: var(--phone-active);
  border: 1px solid var(--phone-soft-border);
  background: var(--phone-soft);
}
.hero-phone.phone {
  width: 320px;
  height: 690px;
}
.hero-phone.phone .phone-screen {
  position: relative;
  padding: 50px 14px calc(var(--phone-nav-fixed-height) + 8px);
  gap: 10px;
}
[data-theme="light"] .hero-phone.phone img,
[data-theme="light"] .phone-logo img,
[data-theme="light"] .phone-topbar img {
  filter: none;
}
@media (max-width: 1024px) {
  .hero-phone.phone {
    width: 290px;
    height: 628px;
  }
}


.search-showcase { overflow: visible; }
.search-float-chip { display: none !important; }
.search-float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--textS);
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.32);
  animation: chipFloat 6s ease-in-out infinite;
}
.search-float-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 6px;
}
.search-chip-1 { top: 10%; right: -8%; animation-delay: 0s; }
.search-chip-2 { bottom: 19%; right: -12%; animation-delay: 1.5s; }
.search-chip-3 { top: 39%; left: -14%; animation-delay: 3s; }
.phone-top-meta {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phone-muted);
  padding: 4px 0;
}
.slim-topbar img { height: 16px; }
.planner-topbar img { height: 16px; }
.phone-compare-sub {
  font-size: 7px;
  color: var(--phone-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: -2px 0 5px;
}
@media (max-width: 1024px) {
  .search-float-chip { display: none; }
}


@media (max-width: 1024px) {
  .phone-compare {
    width: 245px;
    height: 530px;
  }
  .phone-compare-screen {
    padding-top: 50px;
  }
}


/* ─── UNIFIED IPHONE SHELL PATCH ─────────────────────────────────── */

/* Keep every showcase device on the same iPhone shell system as the hero phone */
.phone.phone-compare {
  width: 265px !important;
  height: 572px !important;
  border-radius: 46px !important;
  border: 1.5px solid var(--phone-shell-border) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 0 6px var(--phone-shell-edge),
    0 0 0 7px var(--phone-shell-border),
    0 40px 120px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  background: var(--phone-shell) !important;
  overflow: hidden !important;
}
.phone.phone-compare::before {
  content: '';
  position: absolute;
  top: 13px !important;
  left: 50%;
  transform: translateX(-50%);
  width: 80px !important;
  height: 24px !important;
  border-radius: 100px;
  background: var(--phone-notch) !important;
  box-shadow: 0 0 0 1px var(--phone-shell-border) !important;
  z-index: 10;
}
.phone-screen.phone-compare-screen {
  padding: 52px 14px 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px !important;
  overflow: hidden;
  background: var(--phone-screen-bg);
}
.phone.phone-compare .phone-nav {
  margin-top: auto;
}
.phone.phone-compare .phone-compare-title {
  font-size: 12px;
}
.phone.phone-compare .phone-compare-sub,
.phone.phone-compare .phone-compare-vs,
.phone.phone-compare .phone-compare-label,
.phone.phone-compare .phone-compare-cell,
.phone.phone-compare .phone-compare-verdict-text {
  letter-spacing: normal;
}



/* ─── FIX: LOCK PHONE NAV BARS TO THE SAME HEIGHT AND BOTTOM POSITION ── */
:root {
  --phone-nav-fixed-height: 64px;
  --phone-nav-fixed-height-feature: 60px;
}

.phone-screen,
.phone-compare-screen {
  position: relative;
  padding-bottom: calc(var(--phone-nav-fixed-height) + 6px);
}

.phone .phone-nav,
.phone-compare .phone-nav {
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: 0;
  margin-top: 0;
  min-height: var(--phone-nav-fixed-height);
  height: var(--phone-nav-fixed-height);
  box-sizing: border-box;
}

.phone-nav-item {
  white-space: nowrap;
}

.hero-phone.phone .phone-screen {
  padding-bottom: calc(var(--phone-nav-fixed-height) + 8px);
}

/* ─── SHOWCASE PHONE SCALE CONSISTENCY PATCH ───────────────────────── */
:root {
  --phone-feature-width: 265px;
  --phone-feature-height: 572px;
  --phone-feature-screen-pad-top: 52px;
  --phone-feature-screen-pad-x: 14px;
  --phone-feature-screen-gap: 6px;
  --phone-feature-nav-height: 60px;
  --phone-feature-topbar-logo-h: 16px;
  --phone-feature-search-min-h: 36px;
  --phone-feature-card-min-h: 88px;
}

.feature-phone .phone,
.feature-phone .phone.phone-compare {
  width: var(--phone-feature-width) !important;
  height: var(--phone-feature-height) !important;
  border-radius: 46px !important;
}

.feature-phone .phone::before,
.feature-phone .phone.phone-compare::before {
  top: 13px !important;
  width: 80px !important;
  height: 24px !important;
}

.feature-phone .phone-screen,
.feature-phone .phone-screen.phone-compare-screen {
  position: relative;
  padding: var(--phone-feature-screen-pad-top) var(--phone-feature-screen-pad-x) calc(var(--phone-feature-nav-height) + 8px) !important;
  gap: var(--phone-feature-screen-gap) !important;
}

.feature-phone .phone-topbar,
.feature-phone .slim-topbar,
.feature-phone .planner-topbar {
  min-height: 18px;
}

.feature-phone .phone-topbar img,
.feature-phone .slim-topbar img,
.feature-phone .planner-topbar img {
  height: var(--phone-feature-topbar-logo-h) !important;
}

.feature-phone .phone-search-bar {
  min-height: var(--phone-feature-search-min-h);
  padding: 9px 12px;
  font-size: 10px;
}

.feature-phone .phone-card {
  min-height: var(--phone-feature-card-min-h);
  padding: 10px 12px;
  border-radius: 16px;
}

.feature-phone .phone-card-trad {
  font-size: 7px;
  margin-bottom: 3px;
}

.feature-phone .phone-card-name {
  font-size: 11px;
  line-height: 1.22;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.feature-phone .phone-card-desc {
  font-size: 7.5px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.feature-phone .phone-badge {
  margin-top: 4px;
  font-size: 7px;
  padding: 2px 7px;
}

.feature-phone .phone-nav {
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: 0;
  margin-top: 0;
  min-height: var(--phone-feature-nav-height);
  height: var(--phone-feature-nav-height);
  flex: 0 0 var(--phone-feature-nav-height);
  padding: 7px 6px 11px;
  box-sizing: border-box;
}

.feature-phone .phone-nav-item {
  gap: 3px;
  font-size: 5.75px;
  line-height: 1.1;
}

.feature-phone .phone-nav-icon {
  width: 16px;
  height: 16px;
}

.feature-phone .phone-nav-icon svg {
  width: 14px;
  height: 14px;
}

.feature-phone .phone-top-meta {
  font-size: 7px;
}

.search-showcase .phone-card {
  min-height: var(--phone-feature-card-min-h);
}

.feature-phone .phone.phone-compare .phone-compare-title {
  font-size: 12px;
  line-height: 1.2;
}

.feature-phone .phone.phone-compare .phone-compare-sub {
  margin: -2px 0 5px;
}

.feature-phone .phone.phone-compare .phone-compare-pill {
  font-size: 9px;
  padding: 8px 10px;
}

.feature-phone .phone.phone-compare .phone-compare-cell {
  min-height: 46px;
  display: flex;
  align-items: center;
}

.feature-phone .phone.phone-compare .phone-compare-verdict {
  min-height: 82px;
}


/* ─── RESPONSIVE ADAPTIVE PATCH ───────────────────────────────────── */
body { padding-bottom: env(safe-area-inset-bottom); }
.disclaimer-bar { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.phone, .phone-compare { max-width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; white-space: nowrap;
}

@media (max-width: 860px) {
  .nav {
    height: auto;
    min-height: 68px;
    padding: calc(env(safe-area-inset-top) + 10px) 18px 10px;
    gap: 12px;
  }
  .nav-logo { flex: 1; min-width: 0; }
  .nav-logo img, .nav-logo-img { height: 24px; }
  .nav-links { gap: 10px; flex-shrink: 0; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .theme-toggle { width: 40px; height: 40px; }
  .nav-cta {
    min-width: 96px;
    min-height: 40px;
    padding: 0 14px;
  }
  .site-footer { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 720px) {
  .feature-phone .phone,
  .feature-phone .phone-compare {
    margin-inline: auto;
  }
}


/* ─── PHONE POLISH: SAFER NAV SPACING + RICHER SHOWCASE CARDS ───────── */
.phone-screen,
.phone-compare-screen {
  padding-bottom: calc(var(--phone-nav-fixed-height) + 12px);
}

.phone .phone-nav,
.phone-compare .phone-nav {
  left: 0;
  right: 0;
  bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 7px 10px 12px;
  justify-content: space-between;
  border-radius: 0 0 28px 28px;
}

.phone-nav-item {
  flex: 0 0 20%;
  max-width: 20%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.feature-phone .phone-screen,
.feature-phone .phone-screen.phone-compare-screen {
  padding: var(--phone-feature-screen-pad-top) var(--phone-feature-screen-pad-x) calc(var(--phone-feature-nav-height) + 12px) !important;
}

.feature-phone .phone-nav {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 7px 10px 11px;
  border-radius: 0 0 28px 28px;
}

.feature-phone .phone-nav-item {
  flex: 0 0 20%;
  max-width: 20%;
  gap: 2px;
  font-size: 5.2px;
  line-height: 1.08;
}

.feature-phone .phone-nav-icon {
  width: 15px;
  height: 15px;
}

.feature-phone .phone-nav-icon svg {
  width: 13px;
  height: 13px;
}

.phone-kicker {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--phone-active);
  padding: 0 2px;
}

.phone-muted-line {
  font-size: 7px;
  color: var(--phone-muted);
  padding: 0 2px;
}

.phone-filter-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.phone-filter-chip {
  font-size: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--phone-card-border);
  background: var(--phone-card-bg);
  color: var(--phone-muted);
  font-weight: 600;
}

.phone-filter-chip.active {
  background: var(--phone-soft);
  border-color: var(--phone-soft-border);
  color: var(--phone-active);
}

.phone-detail-sheet {
  background: var(--phone-surface);
  border: 1px solid var(--phone-card-border);
  border-radius: 22px;
  padding: 12px 12px 13px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.phone-sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: var(--phone-soft-border);
  margin: 0 auto 10px;
}

.phone-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1.02;
  color: var(--phone-text);
  margin: 0 0 8px;
}

.phone-detail-sub {
  font-size: 8px;
  line-height: 1.35;
  color: var(--phone-muted);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--phone-card-border);
  background: var(--phone-card-bg);
  margin-bottom: 10px;
}

.phone-info-block,
.phone-warning-block {
  border-radius: 14px;
  padding: 10px 11px;
  margin-bottom: 8px;
}

.phone-info-block {
  background: var(--phone-card-bg);
  border: 1px solid var(--phone-card-border);
}

.phone-warning-block {
  background: var(--phone-warn-bg);
  border: 1px solid var(--phone-warn-border);
}

.phone-info-label,
.phone-warning-label {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.phone-info-label { color: var(--phone-active); }
.phone-warning-label { color: var(--phone-warn-title); }

.phone-info-text,
.phone-warning-text {
  font-size: 8px;
  line-height: 1.45;
  color: var(--phone-text);
}

.phone-warning-text { color: var(--phone-warn-text); }


.phone-cta-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid var(--phone-soft-border);
  background: var(--phone-soft);
  color: var(--phone-active);
  font-size: 10px;
  font-weight: 800;
  padding: 11px 12px;
}

.phone-link-center {
  text-align: center;
  font-size: 7px;
  color: var(--phone-muted);
  margin-top: 8px;
}

.phone-day-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 0 0 2px;
}

.phone-day-item {
  text-align: center;
  font-size: 7px;
  color: var(--phone-muted);
  font-weight: 700;
}

.phone-day-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--phone-card-border);
  margin: 4px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--phone-card-bg);
}

.phone-day-item.active,
.phone-day-item.active .phone-day-dot {
  color: var(--phone-active);
  border-color: var(--phone-active);
}

.phone-day-item.active .phone-day-dot {
  background: var(--phone-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--phone-active) 12%, transparent);
}

.phone-meal-card {
  background: var(--phone-card-bg);
  border: 1px solid var(--phone-card-border);
  border-radius: 16px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.phone-meal-accent {
  width: 4px;
  height: 42px;
  border-radius: 999px;
}

.phone-meal-meta {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--phone-secondary);
  margin-bottom: 6px;
}

.phone-meal-name {
  font-size: 11px;
  line-height: 1.2;
  color: var(--phone-text);
  font-weight: 800;
  margin-bottom: 4px;
}

.phone-meal-sub {
  font-size: 8px;
  line-height: 1.35;
  color: var(--phone-muted);
}

.phone-close-icon {
  width: 14px;
  height: 14px;
  color: var(--phone-muted);
}

.phone-grocery-preview {
  background: var(--phone-soft);
  border: 1px solid var(--phone-soft-border);
  border-radius: 14px;
  padding: 10px 11px;
  flex-shrink: 0;
}

.phone-grocery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.phone-grocery-title {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--phone-active);
}

.phone-grocery-count {
  font-size: 7px;
  color: var(--phone-muted);
}

.phone-grocery-list {
  font-size: 8px;
  line-height: 1.5;
  color: var(--phone-text);
}

.phone-warning-text { color: var(--phone-warn-text); }



/* ─── MOBILE HERO + MENU FIX ───────────────────────────────────── */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-toggle span {
  display: block;
  width: 16px;
  height: 1.8px;
  border-radius: 999px;
  background: var(--textS);
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }
.mobile-menu {
  display: none;
}

@media (max-width: 860px) {
  .mobile-menu-toggle { display: inline-flex; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-links { gap: 8px; }
  .nav-cta {
    min-width: 0;
    padding: 0 16px;
    font-size: 12px !important;
  }
  .mobile-menu {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 70px);
    left: 16px;
    right: 16px;
    z-index: 190;
    background: rgba(9,26,16,0.98);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px) saturate(1.2);
  }
  .mobile-menu.open {
    display: grid;
    gap: 8px;
  }
  .mobile-menu a {
    display: block;
    padding: 13px 14px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
  }
  .mobile-menu-download {
    background: var(--green) !important;
    color: var(--btnText) !important;
    border-color: transparent !important;
    text-align: center;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-content {
    order: 1;
  }
  .hero-visual {
    order: 2 !important;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 112px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-visual {
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  .nav {
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }
  .nav-logo img, .nav-logo-img {
    height: 22px;
  }
  .theme-toggle,
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
  }
  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px !important;
  }
  .hero-phone.phone {
    width: min(88vw, 300px);
  }
}


/* ─── REMEDY SOURCES + MOBILE ORDER PATCH ───────────────────────────── */
.remedy-sources-list { margin: 0 0 0 20px; }
.remedy-sources-list li { font-size: 14px; color: var(--textS); font-weight: 300; line-height: 1.7; margin-bottom: 10px; }
@media (max-width: 960px) {
  .remedy-body { display: flex; flex-direction: column; }
  .remedy-sidebar { display: flex; flex-direction: column; order: 1; }
  .remedy-main { order: 2; }
  .remedy-quickfacts-card { order: 1; }
  .remedy-explore-card { order: 2; }
  .remedy-browse-card { order: 3; }
}


/* Theme-accurate phone mockups */
.phone-top-meta { color: var(--phone-muted); }
.phone-detail-sub {
  color: var(--phone-muted);
  border-color: var(--phone-card-border);
  background: var(--phone-card-bg);
}
.phone-info-text { color: var(--phone-text); }
.phone-grocery-title { color: var(--phone-active); }
.phone-grocery-list { color: var(--phone-secondary); }
.phone-meal-sub { color: var(--phone-secondary); }
.phone-card-desc, .phone-pairing-sub, .phone-note-sub, .phone-link-center { color: var(--phone-secondary); }
.phone-pairing, .phone-note-card { background: var(--phone-card-bg); border-color: var(--phone-card-border); }
.phone-note-title { color: var(--phone-warn-title) !important; }
.phone-note-text { color: var(--phone-text); }
[data-theme="light"] .phone,
[data-theme="light"] .phone.phone-compare {
  box-shadow:
    0 0 0 1px rgba(22,32,24,0.03),
    0 0 0 6px var(--phone-shell-edge),
    0 0 0 7px var(--phone-shell-border),
    0 28px 80px rgba(22,32,24,0.14),
    inset 0 1px 0 rgba(255,255,255,0.7);
}
