/* CostcoDiet Shared Styles — matches landing page design tokens */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
    --ink: #1a1612;
    --cream: #faf7f2;
    --warm: #e8dfd4;
    --rust: #c4612a;
    --rust-light: #d4793f;
    --forest: #2d5016;
    --sage: #7a8c6e;
    --gold: #d4a029;
    --white: #ffffff;
    --border: rgba(26,22,18,0.08);
    --shadow-sm: 0 1px 3px rgba(26,22,18,0.06);
    --shadow-md: 0 4px 12px rgba(26,22,18,0.08);
    --shadow-lg: 0 8px 24px rgba(26,22,18,0.12);
    --radius: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.15;
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-light); }

/* === NAV === */
.app-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 3rem;
    background: rgba(250,247,242,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.app-nav .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 1.35rem;
    color: var(--ink);
    letter-spacing: -0.5px;
    text-decoration: none;
}
.app-nav .logo span { color: var(--rust); }
.nav-links {
    display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
    font-size: 0.9rem; font-weight: 500;
    color: var(--ink); text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--rust); }
.nav-links a.active { color: var(--rust); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--rust); color: white;
}
.btn-primary:hover { background: var(--rust-light); color: white; }
.btn-secondary {
    background: var(--white); color: var(--ink);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-forest {
    background: var(--forest); color: white;
}
.btn-forest:hover { background: #3a6a1e; color: white; }
.btn-lg {
    padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px;
}
.btn-sm {
    padding: 0.4rem 0.85rem; font-size: 0.8rem;
}

/* === PAGE LAYOUT === */
.page {
    padding: 6.5rem 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}
.page-header {
    margin-bottom: 2.5rem;
}
.page-header .section-label {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--sage); margin-bottom: 0.75rem;
}
.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; letter-spacing: -1px;
    margin-bottom: 0.75rem;
}
.page-header h1 em { font-style: normal; color: var(--rust); }
.page-header p {
    font-size: 1.1rem; color: #5a534c;
    max-width: 600px; line-height: 1.7;
}

/* === RECIPE CARDS === */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}
.recipe-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}
.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
}
.recipe-card-image {
    height: 180px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    position: relative;
}
.recipe-card-image.chicken { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.recipe-card-image.turkey { background: linear-gradient(135deg, #fed7aa, #fdba74); }
.recipe-card-image.beef { background: linear-gradient(135deg, #fecaca, #fca5a5); }
.recipe-card-image.seafood { background: linear-gradient(135deg, #bae6fd, #7dd3fc); }
.recipe-card-image.pork { background: linear-gradient(135deg, #fde68a, #fbbf24); }
.recipe-card-image.breakfast { background: linear-gradient(135deg, #d9f99d, #bef264); }

.recipe-card-badge {
    position: absolute; top: 0.75rem; right: 0.75rem;
    font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}
.recipe-card-badge.free {
    background: var(--forest); color: white;
}
.recipe-card-badge.premium {
    background: var(--gold); color: var(--ink);
}

.recipe-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.recipe-card-body h3 {
    font-size: 1.15rem; font-weight: 600;
    margin-bottom: 0.35rem;
}
.recipe-card-body .tagline {
    font-size: 0.88rem; color: #6b635b;
    margin-bottom: 1rem; line-height: 1.5;
}
.recipe-card-macros {
    display: flex; gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}
.macro-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 500;
    background: var(--cream); color: var(--ink);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
}
.macro-pill.protein { background: rgba(45,80,22,0.1); color: var(--forest); font-weight: 600; }
.macro-pill .label { color: var(--sage); }

/* Lock overlay for premium recipes */
.recipe-card.locked .recipe-card-image::after {
    content: '🔒';
    position: absolute; inset: 0;
    background: rgba(26,22,18,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(2px);
}

/* === RECIPE DETAIL === */
.recipe-detail {
    max-width: 800px;
}
.recipe-hero {
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    display: flex; align-items: center; gap: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.recipe-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
}
.recipe-hero .emoji { font-size: 4rem; position: relative; }
.recipe-hero-info { position: relative; }
.recipe-hero-info h1 { font-size: 2rem; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.recipe-hero-info .tagline { font-size: 1rem; opacity: 0.8; }

.recipe-meta {
    display: flex; gap: 2rem; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.recipe-meta-item {
    text-align: center;
    min-width: 80px;
}
.recipe-meta-item .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--ink);
}
.recipe-meta-item .label {
    font-size: 0.75rem; color: var(--sage);
    text-transform: uppercase; letter-spacing: 1px;
}

.recipe-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.recipe-section h2 {
    font-size: 1.25rem; font-weight: 600;
    margin-bottom: 1.25rem; letter-spacing: -0.3px;
}
.recipe-section h2 .icon { margin-right: 0.5rem; }

.ingredient-list {
    list-style: none;
}
.ingredient-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.ingredient-list li:last-child { border-bottom: none; }
.ingredient-list .qty { color: var(--sage); font-weight: 500; white-space: nowrap; margin-left: 1rem; }
.ingredient-list .costco-tag {
    font-size: 0.72rem; color: var(--rust);
    background: rgba(196,97,42,0.08);
    padding: 0.2rem 0.5rem; border-radius: 4px;
    margin-left: 0.5rem;
}

.instruction-list {
    list-style: none; counter-reset: step;
}
.instruction-list li {
    counter-increment: step;
    padding: 0.85rem 0 0.85rem 3rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem; line-height: 1.6;
    position: relative;
}
.instruction-list li:last-child { border-bottom: none; }
.instruction-list li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0.85rem;
    width: 2rem; height: 2rem;
    background: var(--cream);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 0.85rem;
    color: var(--rust);
}

.nutrition-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.nutrition-item {
    text-align: center;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius);
}
.nutrition-item .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 700;
}
.nutrition-item .value.protein-value { color: var(--forest); }
.nutrition-item .label {
    font-size: 0.75rem; color: var(--sage);
    text-transform: uppercase; letter-spacing: 1px;
    margin-top: 0.2rem;
}

.savings-bar {
    display: flex; gap: 1rem; flex-wrap: wrap;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--forest), #1a3a0a);
    border-radius: var(--radius);
    color: white;
}
.savings-item {
    flex: 1; min-width: 140px; text-align: center;
}
.savings-item .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem; font-weight: 700;
}
.savings-item .label {
    font-size: 0.75rem; opacity: 0.7;
    text-transform: uppercase; letter-spacing: 1px;
}
.savings-item.highlight .value { color: var(--gold); }

.tip-box {
    background: rgba(212,160,41,0.1);
    border-left: 3px solid var(--gold);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
    line-height: 1.6;
}
.tip-box strong { color: var(--gold); }

/* === SHOPPING LIST === */
.shopping-config {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
}
.recipe-selector {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
    margin-bottom: 1.5rem;
}
.recipe-select-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.recipe-select-item:hover { border-color: var(--sage); }
.recipe-select-item.selected { border-color: var(--rust); background: rgba(196,97,42,0.04); }
.recipe-select-item.locked {
    opacity: 0.5; cursor: not-allowed;
}
.recipe-select-item input[type="checkbox"] {
    accent-color: var(--rust);
    width: 18px; height: 18px;
    cursor: pointer;
}
.recipe-select-info { flex: 1; }
.recipe-select-info .name { font-weight: 600; font-size: 0.9rem; }
.recipe-select-info .meta { font-size: 0.78rem; color: var(--sage); }
.recipe-select-servings {
    display: flex; align-items: center; gap: 0.35rem;
}
.recipe-select-servings button {
    width: 26px; height: 26px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--cream);
    cursor: pointer;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.recipe-select-servings button:hover { background: var(--warm); }
.recipe-select-servings .count {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 0.9rem;
    min-width: 28px; text-align: center;
}

.shopping-result {
    display: none;
}
.shopping-result.visible { display: block; }

.shopping-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    overflow: hidden;
}
.shopping-category-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem;
    background: var(--cream);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.shopping-category-header .count {
    font-size: 0.8rem; color: var(--sage); font-weight: 500;
}
.shopping-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.shopping-item:last-child { border-bottom: none; }
.shopping-item .name { flex: 1; }
.shopping-item .quantity { font-weight: 600; color: var(--ink); margin-right: 1rem; white-space: nowrap; }
.shopping-item .costco-product {
    font-size: 0.78rem; color: var(--rust);
    background: rgba(196,97,42,0.08);
    padding: 0.2rem 0.6rem; border-radius: 4px;
}

.shopping-summary {
    background: linear-gradient(135deg, var(--forest), #1a3a0a);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem;
    margin-bottom: 2rem;
}
.summary-stat { text-align: center; }
.summary-stat .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem; font-weight: 700;
}
.summary-stat .value.gold { color: var(--gold); }
.summary-stat .label {
    font-size: 0.75rem; opacity: 0.7;
    text-transform: uppercase; letter-spacing: 1px;
    margin-top: 0.2rem;
}

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
    border-color: var(--rust);
}
.pricing-card .badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--rust); color: white;
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 0.35rem 1rem;
    border-radius: 100px;
}
.pricing-card h3 {
    font-size: 1.25rem; font-weight: 600;
    margin-bottom: 1rem;
}
.pricing-card .price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem; font-weight: 700;
    color: var(--ink); letter-spacing: -2px;
}
.pricing-card .price .currency { font-size: 1.5rem; vertical-align: super; }
.pricing-card .price .period { font-size: 1rem; font-weight: 400; color: var(--sage); }
.pricing-card .effective {
    font-size: 0.85rem; color: var(--forest); font-weight: 600;
    margin-top: 0.25rem; margin-bottom: 1.25rem;
}
.pricing-card .features {
    list-style: none; text-align: left;
    margin-bottom: 2rem;
}
.pricing-card .features li {
    padding: 0.5rem 0;
    font-size: 0.92rem;
    display: flex; align-items: flex-start; gap: 0.5rem;
}
.pricing-card .features li::before {
    content: '✓';
    color: var(--forest); font-weight: 700;
    flex-shrink: 0;
}

.pricing-comparison {
    max-width: 700px; margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.comparison-header {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem 1.5rem;
    background: var(--ink); color: white;
    font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.comparison-row {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    align-items: center;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row .check { color: var(--forest); font-weight: 700; text-align: center; }
.comparison-row .cross { color: #ccc; text-align: center; }

/* === PAYWALL OVERLAY === */
.paywall-overlay {
    background: linear-gradient(180deg, transparent 0%, var(--cream) 40%, var(--cream) 100%);
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-top: -3rem;
    position: relative;
}
.paywall-overlay h3 {
    font-size: 1.5rem; margin-bottom: 0.75rem; letter-spacing: -0.5px;
}
.paywall-overlay p {
    color: #5a534c; margin-bottom: 1.5rem; font-size: 0.95rem;
}

/* === AUTH MODAL === */
.modal-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 200;
    background: rgba(26,22,18,0.5);
    backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.modal-backdrop.visible { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 420px; width: 90%;
    box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 1.35rem; margin-bottom: 0.5rem; text-align: center; }
.modal p { color: #5a534c; text-align: center; margin-bottom: 1.5rem; font-size: 0.92rem; }
.modal input[type="email"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    outline: none;
    transition: border-color 0.2s;
}
.modal input[type="email"]:focus { border-color: var(--rust); }
.modal .btn { width: 100%; }
.modal .error-msg {
    color: #dc2626; font-size: 0.85rem;
    margin-top: 0.5rem; text-align: center;
    display: none;
}
.modal .error-msg.visible { display: block; }
.modal .close-btn {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none;
    font-size: 1.25rem; cursor: pointer; color: var(--sage);
}

/* === TOAST === */
.toast {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 300;
    background: var(--ink); color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem; font-weight: 500;
    transform: translateY(100px);
    opacity: 0; transition: all 0.3s;
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--forest); }
.toast.error { background: #dc2626; }

/* === PWA INSTALL BANNER === */
.pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 150;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(26,22,18,0.12);
    padding: 1rem 1.5rem;
    animation: slideUp 0.4s ease-out;
}
.pwa-install-banner.visible { display: flex; align-items: center; gap: 1rem; }
.pwa-install-banner .pwa-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}
.pwa-install-banner .pwa-text { flex: 1; }
.pwa-install-banner .pwa-text h4 {
    font-size: 0.95rem; font-weight: 600;
    margin-bottom: 0.15rem;
}
.pwa-install-banner .pwa-text p {
    font-size: 0.8rem; color: var(--sage);
    line-height: 1.4;
}
.pwa-install-banner .pwa-actions {
    display: flex; gap: 0.5rem; flex-shrink: 0;
}
.pwa-install-banner .pwa-install-btn {
    background: var(--rust); color: white;
    border: none; border-radius: 8px;
    padding: 0.55rem 1.25rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s;
}
.pwa-install-banner .pwa-install-btn:hover { background: var(--rust-light); }
.pwa-install-banner .pwa-dismiss-btn {
    background: none; border: none;
    color: var(--sage); cursor: pointer;
    font-size: 1.25rem; padding: 0.25rem;
    line-height: 1;
}
.pwa-install-banner .pwa-dismiss-btn:hover { color: var(--ink); }

/* iOS-specific install instructions */
.pwa-ios-instructions {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 150;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(26,22,18,0.12);
    padding: 1.25rem 1.5rem;
    text-align: center;
    animation: slideUp 0.4s ease-out;
}
.pwa-ios-instructions.visible { display: block; }
.pwa-ios-instructions h4 {
    font-size: 0.95rem; font-weight: 600;
    margin-bottom: 0.5rem;
}
.pwa-ios-instructions p {
    font-size: 0.85rem; color: #5a534c;
    line-height: 1.5;
}
.pwa-ios-instructions .share-icon {
    display: inline-block; vertical-align: middle;
    font-size: 1.1rem;
}
.pwa-ios-instructions .pwa-dismiss-btn {
    background: none; border: none;
    color: var(--sage); cursor: pointer;
    font-size: 0.82rem; font-weight: 500;
    margin-top: 0.75rem;
    text-decoration: underline;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .pwa-install-banner { padding: 0.85rem 1rem; }
    .pwa-install-banner .pwa-icon { width: 40px; height: 40px; }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* === BACK LINK === */
.back-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.88rem; color: var(--sage);
    margin-bottom: 1.5rem;
    text-decoration: none;
}
.back-link:hover { color: var(--rust); }

/* === FOOTER === */
.app-footer {
    padding: 2.5rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--sage);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}
.app-footer a { color: var(--sage); text-decoration: none; }
.app-footer a:hover { color: var(--ink); }

/* === MOBILE === */
@media (max-width: 768px) {
    .app-nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.82rem; }
    .page { padding: 5.5rem 1.5rem 3rem; }
    .recipe-grid { grid-template-columns: 1fr; }
    .recipe-selector { grid-template-columns: 1fr; }
    .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .comparison-header, .comparison-row { grid-template-columns: 1.5fr 1fr 1fr; font-size: 0.82rem; }
    .shopping-summary { grid-template-columns: repeat(2, 1fr); }
    .recipe-hero { flex-direction: column; text-align: center; padding: 2rem; }
    .savings-bar { flex-direction: column; }
    .app-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
    .nav-links .hide-mobile { display: none; }
}
