/* ============================================================
   Munchr: moonshard.co/munchr
   The app's own palette: cream + charcoal, silver mark.
   Monochrome editorial. Built by Moon Shard.
   ============================================================ */

:root {
    /* Cream / off-white, matches the app surface */
    --cream:      #FAF7F2;
    --cream-2:    #F4EEE4;
    --sand:       #ECE6DA;
    --sand-deep:  #E2DBCC;
    --ink:        #1A1613;   /* near-black, app text */
    --ink-soft:   #54514A;
    --ink-mute:   #8C887F;
    --line:       rgba(26, 22, 19, 0.10);
    --line-soft:  rgba(26, 22, 19, 0.06);

    /* Emphasis is monochrome: ink on light, silver-cream on dark */
    --accent:     #1A1613;   /* ink (light sections) */
    --accent-2:   #D9D3C6;   /* warm silver (dark sections, echoes the mark) */
    --accent-soft: rgba(26, 22, 19, 0.06);

    /* Charcoal dark band: the icon's world */
    --dark:       #141210;
    --dark-2:     #1E1B17;
    --dark-line:  rgba(245, 242, 235, 0.12);
    --cream-on-dark: #F3ECDF;
    --mute-on-dark:  rgba(243, 236, 223, 0.60);
    --silver:     #C9C5BD;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

    --ease:       cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo:  cubic-bezier(0.19, 1, 0.22, 1);

    --maxw: 1180px;
    --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* Subtle film grain over everything for cinematic texture */
body::after {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.74rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: ""; width: 22px; height: 1px; background: var(--accent); opacity: 0.5;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

.display {
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: var(--ink-soft); line-height: 1.55; max-width: 34ch;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.95rem 1.6rem; border-radius: 100px;
    font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
    letter-spacing: -0.01em; cursor: pointer;
    transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
    border: 1px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(26,22,19,0.28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* App Store badge (inline SVG sizing) */
.appstore-badge { display: inline-block; transition: transform 0.4s var(--ease), filter 0.4s; }
.appstore-badge svg, .appstore-badge img { height: 56px; width: auto; display: block; }
.appstore-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 12px 24px rgba(26,22,19,0.25)); }

.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.3rem var(--pad);
    transition: padding 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s, backdrop-filter 0.5s;
    border-bottom: 1px solid transparent;
}
.nav--scrolled {
    padding: 0.85rem var(--pad);
    background: rgba(250, 247, 242, 0.82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: var(--line-soft);
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); transition: color 0.3s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
    padding: 0.6rem 1.15rem; border-radius: 100px;
    background: var(--ink); color: var(--cream) !important;
    font-weight: 600; transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,22,19,0.25); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--ink); transition: all 0.35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { bottom: 4px; }
.nav-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { bottom: 10px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    background: var(--cream);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-serif); font-size: 2rem; color: var(--ink); }
.mobile-menu a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    padding-top: 6rem; padding-bottom: 4rem;
    overflow: hidden;
}
.hero-glow {
    position: absolute; z-index: 0;
    width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
    right: -12%; top: 50%; transform: translateY(-50%);
    background: radial-gradient(circle at center, rgba(224,216,201,0.55), rgba(224,216,201,0.18) 45%, transparent 72%);
    filter: blur(24px); pointer-events: none;
}
.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center;
    width: 100%;
}
.hero-copy { max-width: 560px; }
.hero-copy h1 { margin: 1.4rem 0 1.5rem; }
.hero-copy .lead { margin-bottom: 2.2rem; max-width: 40ch; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.hero-trust {
    margin-top: 2.4rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
    color: var(--ink-mute); font-size: 0.86rem;
}
.hero-trust .stars { color: var(--accent-2); letter-spacing: 2px; font-size: 0.95rem; }
.hero-trust .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-mute); opacity: 0.5; }
.hero-trust strong { color: var(--ink); font-weight: 600; }

.hero-device { display: flex; justify-content: center; }

/* ---------- Device mockup (ported from void.photos PhoneMockup) ---------- */
.device {
    position: relative; display: inline-block;
    width: clamp(230px, 26vw, 320px);
    aspect-ratio: 900 / 1840;
    filter: drop-shadow(0 40px 70px rgba(26,22,19,0.32));
}
.device-screen {
    position: absolute; z-index: 0; overflow: hidden;
    background: linear-gradient(165deg, var(--cream-2), var(--sand-deep));
    top: 2.5%; bottom: 2.5%; left: 4%; right: 4%;
    border-radius: 12% / 6%;
}
/* Branded placeholder mark shown until the screenshot decodes (or if it fails) */
.device-screen::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: url("images/munchr-icon.png") center / 52px no-repeat;
    opacity: 0.10;
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
/* Fade screenshots in once decoded (JS-gated so they stay visible without JS) */
html.js .device-screen img { opacity: 0; transition: opacity 0.5s var(--ease); }
html.js .device-screen img.loaded { opacity: 1; }
.device-screen img.img-failed { display: none; }
/* Any image that fails to load fades out so its branded backdrop shows instead */
img.img-failed { opacity: 0; }
.device-frame { position: absolute; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; object-fit: contain; }
.device--float { animation: float 7s ease-in-out infinite; }
.device--tilt { transform: rotate(-3deg); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
.device--tilt.device--float { animation: floatTilt 7s ease-in-out infinite; }
@keyframes floatTilt {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-16px) rotate(-3deg); }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
    background: var(--cream-2);
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.2rem 1rem; text-align: center; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; line-height: 1; }
.stat-label { margin-top: 0.5rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .h2 { margin-top: 1.1rem; }
.section-head .lead { margin-top: 1.3rem; max-width: 52ch; }
.section--center .section-head { margin-inline: auto; text-align: center; }

/* Pitch */
.pitch { background: var(--cream-2); }
.pitch-statement {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.18; letter-spacing: -0.01em;
    max-width: 20ch;
}
.pitch-statement em { color: var(--accent); }
.pitch-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.pitch-body p { color: var(--ink-soft); font-size: 1.05rem; }
.pitch-body p + p { margin-top: 1.1rem; }

/* ---------- Showcase rows ---------- */
.showcase {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.showcase + .showcase { margin-top: clamp(4rem, 9vw, 7rem); }
.showcase--reverse .showcase-media { order: 2; }
.showcase-media { display: flex; justify-content: center; position: relative; }
.showcase-copy h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 1.1rem; }
.showcase-copy p { color: var(--ink-soft); font-size: 1.05rem; max-width: 44ch; }
.showcase-copy p + p { margin-top: 1rem; }
.showcase-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.tag {
    padding: 0.45rem 0.9rem; border-radius: 100px; border: 1px solid var(--line);
    font-size: 0.82rem; font-weight: 500; color: var(--ink-soft);
}

/* ---------- Cinematic dark band ---------- */
.band-dark {
    background: var(--dark);
    color: var(--cream-on-dark);
    position: relative; overflow: hidden;
}
.band-dark .eyebrow { color: var(--accent-2); }
.band-dark .eyebrow::before { background: var(--accent-2); }
.band-dark h2, .band-dark h3 { color: var(--cream-on-dark); }
.band-dark h2 em, .band-dark h3 em { color: var(--accent-2); }
.band-dark p { color: var(--mute-on-dark); }
.band-dark .tag { border-color: var(--dark-line); color: var(--mute-on-dark); }
.band-glow {
    position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
    background: radial-gradient(circle, rgba(220,214,201,0.12), transparent 65%);
    filter: blur(30px); top: -20%; left: -10%; pointer-events: none; z-index: 0;
}
.band-dark .container { position: relative; z-index: 1; }

/* Dual device layout (cook + lock screen) */
.duo { display: flex; align-items: flex-end; justify-content: center; gap: clamp(0.5rem, 2vw, 1.5rem); }
.duo .device:nth-child(2) { width: clamp(190px, 21vw, 260px); margin-bottom: 5%; }

/* Two-up phone grid (plan + shopping) */
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; justify-items: center; }

/* ---------- The app: tabs ---------- */
.tabs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.tab-card {
    padding: 1.8rem 1.4rem; border-radius: 18px; background: var(--cream);
    border: 1px solid var(--line-soft);
    transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.band-dark .tab-card { background: var(--dark-2); border-color: var(--dark-line); }
.tab-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(26,22,19,0.12); border-color: var(--line); }
.band-dark .tab-card:hover { box-shadow: 0 22px 44px rgba(0,0,0,0.4); border-color: rgba(217,212,200,0.45); }
.tab-icon { width: 30px; height: 30px; margin-bottom: 1.1rem; color: var(--accent-2); }
.tab-card h4 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.tab-card p { font-size: 0.9rem; line-height: 1.5; }

/* ---------- Gallery rail ---------- */
.gallery-rail {
    display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.5rem var(--pad) 2rem;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-rail .device { flex: 0 0 auto; scroll-snap-align: center; width: clamp(200px, 24vw, 260px); }

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding: 1.6rem 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--cream); }
.marquee { display: flex; gap: 1.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--ink-mute); white-space: nowrap; }
.marquee .sep { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   CTA
   ============================================================ */
.cta {
    text-align: center; background: var(--dark); color: var(--cream-on-dark);
    position: relative; overflow: hidden;
}
.cta .container { position: relative; z-index: 1; }
.cta-icon { width: 78px; height: 78px; border-radius: 20px; margin: 0 auto 1.8rem; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.cta h2 { color: var(--cream-on-dark); margin-bottom: 1.2rem; }
.cta h2 em { color: var(--accent-2); }
.cta p { color: var(--mute-on-dark); max-width: 46ch; margin: 0 auto 2.2rem; }
.cta-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at center 130%, rgba(220,214,201,0.16), transparent 60%);
    z-index: 0;
}
.cta-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.16; z-index: 0;
    filter: saturate(1.05);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 35%, transparent 85%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 35%, transparent 85%);
    pointer-events: none;
}

/* ============================================================
   EDITORIAL LIFESTYLE BAND  (full-bleed, real kitchen photo)
   ============================================================ */
.editorial {
    position: relative; overflow: hidden;
    background: var(--dark);   /* fallback band colour if the photo fails to load */
    min-height: clamp(440px, 64vh, 660px);
    display: flex; align-items: center;
}
.editorial-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 60%;
    transform: scale(1.06); will-change: transform;
}
.editorial-scrim {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(13,9,6,0.82) 0%, rgba(13,9,6,0.55) 38%, rgba(13,9,6,0.12) 70%, rgba(13,9,6,0.05) 100%),
        linear-gradient(0deg, rgba(13,9,6,0.45), rgba(13,9,6,0) 45%);
}
.editorial-copy {
    position: relative; z-index: 1;
    width: min(100% - 3rem, var(--maxw, 1180px));
    margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem);
}
.editorial-copy .eyebrow--light { color: var(--accent-2); }
.editorial-copy .eyebrow--light::before { background: var(--accent-2); }
.editorial-quote {
    font-family: var(--font-serif); color: var(--cream);
    font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02;
    letter-spacing: -0.02em; margin: 0.8rem 0 1.1rem;
    max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.editorial-quote em { color: var(--accent-2); font-style: italic; }
.editorial-sub {
    color: rgba(250,247,242,0.86); max-width: 40ch;
    font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark-2); color: var(--mute-on-dark); padding: 3.5rem 0 2.5rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-serif); font-size: 1.2rem; color: var(--cream-on-dark); }
.footer-brand a { color: var(--accent-2); }
.footer-links { display: flex; gap: 1.6rem; list-style: none; }
.footer-links a { font-size: 0.88rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--cream-on-dark); }
.footer-copy { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--dark-line); font-size: 0.8rem; opacity: 0.7; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.16s; }
.reveal-3 { transition-delay: 0.24s; }
.reveal-4 { transition-delay: 0.32s; }
.reveal-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE DOWNLOAD BAR
   ============================================================ */
.dlbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    display: none; align-items: center; gap: 0.85rem;
    padding: 0.7rem 0.9rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(20, 18, 16, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--dark-line);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
    transform: translateY(120%);
    transition: transform 0.5s var(--ease-expo);
}
.dlbar.show { transform: translateY(0); }
.dlbar-icon { width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto; box-shadow: 0 4px 14px rgba(0,0,0,0.5); }
.dlbar-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1 1 auto; }
.dlbar-text strong { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--cream-on-dark); }
.dlbar-text span { font-size: 0.78rem; color: var(--mute-on-dark); }
.dlbar-get {
    flex: 0 0 auto; padding: 0.55rem 1.3rem; border-radius: 100px;
    background: var(--cream-on-dark); color: var(--dark) !important;
    font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em;
}
.dlbar-close {
    flex: 0 0 auto; width: 30px; height: 30px; padding: 6px;
    background: none; border: none; cursor: pointer; color: var(--mute-on-dark);
}
.dlbar-close svg { width: 100%; height: 100%; }
@media (max-width: 780px) {
    .dlbar { display: flex; }
    .footer { padding-bottom: calc(2.5rem + 80px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .hero { min-height: auto; padding-top: 7rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-copy { max-width: 100%; margin-inline: auto; }
    .hero-copy .lead, .hero-copy h1 { margin-inline: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-glow { right: 50%; transform: translate(50%, -50%); top: 40%; }
    .pitch-body { grid-template-columns: 1fr; gap: 1.5rem; }
    .showcase { grid-template-columns: 1fr; gap: 2.5rem; }
    .showcase--reverse .showcase-media, .showcase-media { order: -1; }
    .showcase-copy { text-align: center; }
    .showcase-copy p { margin-inline: auto; }
    .showcase-tags { justify-content: center; }
    .tabs-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(odd) { border-left: none; }
    .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line-soft); }
    /* Editorial: switch to a bottom-anchored scrim so centred text stays legible */
    .editorial { align-items: flex-end; min-height: clamp(420px, 80vh, 560px); padding-bottom: 2.5rem; }
    .editorial-img { object-position: center 42%; }
    .editorial-scrim {
        background: linear-gradient(0deg, rgba(13,9,6,0.92) 2%, rgba(13,9,6,0.6) 34%, rgba(13,9,6,0.18) 64%, rgba(13,9,6,0.08) 100%);
    }
    .editorial-quote { max-width: 100%; }
    .editorial-sub { max-width: 100%; }
}
@media (max-width: 560px) {
    .display { font-size: clamp(2.4rem, 11vw, 3.2rem); }
    .media-pair { grid-template-columns: 1fr; }
    .media-pair .device:last-child { display: none; }
    .duo .device:nth-child(2) { display: none; }
    .tabs-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem 1.4rem; }
    .appstore-badge svg, .appstore-badge img { height: 50px; }
}

/* ============================================================
   SUBPAGES: privacy.html / terms.html / support.html
   Self-contained mn-* namespace. Mirrors the landing page's
   nav and footer so the legal pages read as the same site.
   ============================================================ */

/* ---------- Subpage nav ---------- */
.mn-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.3rem var(--pad);
    transition: padding 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s, backdrop-filter 0.5s;
    border-bottom: 1px solid transparent;
}
.mn-nav--scrolled {
    padding: 0.85rem var(--pad);
    background: rgba(250, 247, 242, 0.82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: var(--line-soft);
}
.mn-nav-brand {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em;
}
.mn-nav-links { display: flex; align-items: center; gap: 2.2rem; }
.mn-nav-links a { font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); transition: color 0.3s; }
.mn-nav-links a:hover { color: var(--ink); }
.mn-nav-cta {
    padding: 0.6rem 1.15rem; border-radius: 100px;
    background: var(--ink); color: var(--cream) !important;
    font-weight: 600; transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.mn-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,22,19,0.25); }

/* Munchr app mark. Base class sets the shape, --nav sets the nav size. */
.mn-app-icon { border-radius: 8px; object-fit: cover; }
.mn-app-icon--nav { width: 30px; height: 30px; }

.mn-nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; }
.mn-nav-toggle span { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--ink); transition: all 0.35s var(--ease); }
.mn-nav-toggle span:nth-child(1) { top: 4px; }
.mn-nav-toggle span:nth-child(2) { bottom: 4px; }
.mn-nav-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.mn-nav-toggle.active span:nth-child(2) { bottom: 10px; transform: rotate(-45deg); }

.mn-mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    background: var(--cream);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mn-mobile-menu.active { opacity: 1; pointer-events: auto; }
.mn-mobile-menu a { font-family: var(--font-serif); font-size: 2rem; color: var(--ink); }
.mn-mobile-menu a:hover { color: var(--accent); }

/* ---------- Page hero ----------
   No landing equivalent. A short masthead on the cream-2 band the
   landing page uses for its quieter sections. Top padding clears the
   fixed nav; h1 leans on the global serif and its em accent. */
.mn-page-hero {
    background: var(--cream-2);
    border-bottom: 1px solid var(--line-soft);
    padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.mn-page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: -0.02em;
    margin: 1rem 0 0.9rem;
}
.mn-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-mute);
}
.mn-breadcrumb a { color: var(--ink-soft); transition: color 0.3s; }
.mn-breadcrumb a:hover { color: var(--ink); }
.mn-breadcrumb span { opacity: 0.5; }
.mn-date { font-size: 0.88rem; color: var(--ink-mute); }

/* ---------- Body section ----------
   Mirrors .section's rhythm, trimmed at the top since the hero
   already carries the page's opening space. */
.mn-section { padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(4.5rem, 10vw, 8rem); }

/* ---------- Long-form prose ----------
   The part people actually read. Measure held near 70ch, generous
   leading, and h2s that open a clear new beat. Links need an explicit
   treatment because the global `a` rule strips colour and underline. */
.mn-prose {
    max-width: 70ch;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}
.mn-prose h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.2;
    color: var(--ink);
    margin: clamp(2.75rem, 5vw, 3.5rem) 0 1rem;
}
.mn-prose h2:first-child { margin-top: 0; }
.mn-prose h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--ink);
    margin: 2rem 0 0.6rem;
}
.mn-prose p + p { margin-top: 1.1rem; }
.mn-prose strong { color: var(--ink); font-weight: 600; }
.mn-prose a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(26, 22, 19, 0.28);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.3s, color 0.3s;
}
.mn-prose a:hover { text-decoration-color: var(--accent); }

/* ---------- Subpage footer ---------- */
.mn-footer { background: var(--dark-2); color: var(--mute-on-dark); padding: 3.5rem 0 2.5rem; }
.mn-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mn-footer-brand { font-family: var(--font-serif); font-size: 1.2rem; color: var(--cream-on-dark); }
.mn-footer-brand a { color: var(--accent-2); }
.mn-footer-links { display: flex; gap: 1.6rem; list-style: none; }
.mn-footer-links a { font-size: 0.88rem; transition: color 0.3s; }
.mn-footer-links a:hover { color: var(--cream-on-dark); }
.mn-footer-copy { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--dark-line); font-size: 0.8rem; opacity: 0.7; }

/* ---------- Subpage responsive ---------- */
@media (max-width: 980px) {
    .mn-nav-links { display: none; }
    .mn-nav-toggle { display: block; }
}
@media (max-width: 560px) {
    .mn-prose { font-size: 0.98rem; }
    .mn-footer-inner { flex-direction: column; text-align: center; }
    .mn-footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem 1.4rem; }
}
