*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:root {
  --green-dark: #2d6a4f; --green-mid: #40916c; --green-light: #d8f3dc; --green-bright: #52b788;
  --orange: #d97706; --orange-light: #fef3c7;
  --cream: #fffdf7; --sand: #e8e0d0; --text: #2d3a2e; --muted: #9ca38f;
  --blue: #1565C0; --blue-light: #E3F2FD; --red: #D32F2F;
  --dark: #1a2e1f;
}
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); min-height: 100vh; }
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(26,46,31,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(82,183,136,0.15); }
.landing-nav-inner { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; position: relative; min-height: 48px; }
.nav-left { display: flex; align-items: center; }
.logo-link { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; text-decoration: none; gap: 2px; }
.landing-nav-tagline { display: none; }
.landing-nav-links { display: none; }
.landing-nav-saved { display: none; }
.nav-right { display: flex; align-items: center; gap: 8px; justify-self: end; flex-shrink: 0; }
.nav-signin { padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 700; text-decoration: none; color: #c8d6cb; transition: all 0.2s; white-space: nowrap; }
.nav-signin:hover { color: white; }
.hamburger { display: flex; background: none; border: none; color: #c8d6cb; font-size: 28px; cursor: pointer; padding: 4px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; line-height: 1; }
.hamburger:hover { color: white; }
.nav-profile-icon { display: none; }
.nav-dropdown { position: fixed; top: 0; left: 0; right: 0; background: rgba(26,46,31,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(82,183,136,0.2); overflow: hidden; max-height: 0; transition: max-height 0.3s ease; z-index: 200; }
.nav-dropdown.open { max-height: 500px; }
.nav-dropdown a { display: flex; align-items: center; gap: 8px; padding: 0 24px; color: #c8d6cb; text-decoration: none; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); min-height: 48px; }
.nav-dropdown a:hover { background: rgba(255,255,255,0.05); color: white; }
.nav-dropdown a:last-child { border-bottom: none; }
.nav-cart-badge { cursor: pointer; padding: 4px 10px; border-radius: 12px; background: var(--orange); color: white; font-size: 11px; font-weight: 700; font-family: 'DM Sans', sans-serif; }
.has-tooltip { position: relative; cursor: pointer; }
.has-tooltip .tooltip { visibility: hidden; opacity: 0; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: var(--dark); color: white; padding: 10px 14px; border-radius: 8px; font-size: 12px; line-height: 1.5; max-width: 250px; width: max-content; box-shadow: 0 4px 16px rgba(0,0,0,0.25); z-index: 50; transition: opacity 0.15s ease, visibility 0.15s ease; pointer-events: none; font-weight: 400; font-style: normal; text-align: left; }
.has-tooltip .tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--dark); }
.has-tooltip:hover .tooltip, .has-tooltip.tap-active .tooltip { visibility: visible; opacity: 1; }
.landing-hero { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; background: url('/images/og-hero.jpg') center/cover no-repeat; padding: 120px 24px 80px; }
.landing-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,46,31,0.85) 0%, rgba(26,46,31,0.7) 50%, rgba(26,46,31,0.9) 100%); }
.landing-hero-content { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.landing-badge { display: inline-block; padding: 8px 20px; border-radius: 24px; background: rgba(217,119,6,0.2); border: 1px solid rgba(217,119,6,0.4); color: var(--orange-light); font-size: 14px; font-weight: 700; margin-bottom: 24px; }
.landing-headline { font-family: 'Outfit', sans-serif; font-size: 56px; font-weight: 800; color: white; line-height: 1.1; margin-bottom: 20px; }
.landing-headline .highlight { color: var(--orange); }
.landing-subtitle { font-size: 18px; color: #b8c9bb; line-height: 1.6; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.landing-search { display: flex; align-items: center; background: white; border-radius: 60px; padding: 6px 6px 6px 24px; max-width: 480px; margin: 0 auto 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.25); }
.landing-search input { flex: 1; border: none; outline: none; font-size: 18px; font-family: 'DM Sans', sans-serif; background: transparent; color: var(--text); min-width: 0; }
.landing-search input::placeholder { color: #b0a890; }
.landing-search button { padding: 14px 28px; border: none; border-radius: 50px; background: var(--orange); color: white; font-size: 16px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.landing-search button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.landing-search button:disabled { background: #C5C5C5; cursor: not-allowed; transform: none; }
.landing-distance { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 16px; }
.landing-distance label { font-size: 13px; color: #8a9b8d; font-weight: 600; }
.landing-distance select { padding: 6px 10px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; font-size: 13px; font-family: 'DM Sans', sans-serif; background: rgba(255,255,255,0.1); color: #c8d6cb; cursor: pointer; }
.landing-hint { font-size: 13px; color: #7a8b7d; }
.pwa-install-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 400; background: var(--dark); border-top: 2px solid var(--green-bright); padding: 14px 16px; animation: slideUp 0.3s ease; }
.pwa-install-inner { max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.pwa-install-text { flex: 1; font-size: 14px; color: #c8d6cb; }
.pwa-install-text strong { color: white; }
.pwa-install-btn { padding: 10px 22px; border: none; border-radius: 50px; background: var(--orange); color: white; font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; }
.pwa-install-btn:hover { filter: brightness(1.1); }
.pwa-install-close { background: none; border: none; color: #7a8b7d; font-size: 18px; cursor: pointer; padding: 4px 8px; }
.kroger-hero { padding: 72px 24px; background: var(--green-light); }
.kroger-hero-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.kroger-hero-badge { display: inline-block; padding: 5px 14px; border-radius: 20px; background: var(--green-dark); color: white; font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.kroger-hero-heading { font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 800; color: var(--green-dark); line-height: 1.15; margin-bottom: 16px; }
.kroger-hero-desc { font-size: 16px; color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.kroger-hero-sub { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.kroger-hero-cta { padding: 14px 32px; border: none; border-radius: 50px; background: var(--orange); color: white; font-size: 16px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; }
.kroger-hero-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.kroger-hero-graphic { display: flex; justify-content: center; }
.kroger-phone-mock { background: white; border-radius: 24px; padding: 0; width: 260px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); overflow: hidden; border: 3px solid var(--sand); }
.kroger-phone-header { background: var(--green-dark); color: white; padding: 16px 20px; font-size: 16px; font-weight: 700; }
.kroger-phone-item { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid #f0ede6; display: flex; align-items: center; gap: 10px; }
.kroger-phone-item.added span { color: var(--green-mid); font-weight: 800; }
.kroger-phone-item.adding { color: var(--muted); }
.kroger-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--sand); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; }
.kroger-phone-item.pending { color: #ccc; }
.kroger-phone-item.pending span { font-size: 12px; }
.recipe-preview-section { padding: 72px 24px; background: var(--cream); }
.recipe-preview-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.recipe-preview-heading { font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 800; color: var(--green-dark); margin-bottom: 40px; }
.recipe-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.recipe-preview-card { background: white; border: 2px solid var(--sand); border-radius: 18px; overflow: hidden; text-align: left; transition: all 0.2s; }
.recipe-preview-card:hover { border-color: var(--green-mid); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.rp-img-ph { height: 140px; background: linear-gradient(135deg, var(--green-light), #f5f0e8); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.rp-body { padding: 16px; }
.rp-title { font-family: 'Trebuchet MS', sans-serif; font-size: 16px; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; line-height: 1.3; }
.rp-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rp-chip { font-size: 12px; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.rp-time { background: #f5f0e8; color: #5a4a30; }
.rp-servings { background: #f0fdf4; color: var(--green-dark); }
.rp-sale-tag { font-size: 12px; font-weight: 700; color: var(--green-mid); background: var(--green-light); display: inline-block; padding: 4px 10px; border-radius: 8px; }
.recipe-preview-note { font-size: 14px; color: var(--muted); font-style: italic; }
.email-capture-section { padding: 64px 24px; background: #f5f0e8; }
.email-capture-inner { max-width: 500px; margin: 0 auto; text-align: center; }
.email-capture-heading { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; }
.email-capture-sub { font-size: 16px; color: var(--text); margin-bottom: 24px; line-height: 1.6; }
.email-capture-form { margin-bottom: 12px; }
.email-capture-fields { display: flex; gap: 10px; margin-bottom: 12px; }
.email-capture-fields input { flex: 1; padding: 14px 18px; border: 2px solid var(--sand); border-radius: 14px; font-size: 15px; font-family: 'DM Sans', sans-serif; background: white; color: var(--text); outline: none; transition: border-color 0.2s; }
.email-capture-fields input:focus { border-color: var(--green-mid); }
.email-capture-fields input[type="text"] { max-width: 120px; }
.email-capture-btn { width: 100%; padding: 14px; border: none; border-radius: 14px; background: var(--green-dark); color: white; font-size: 16px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; }
.email-capture-btn:hover { background: var(--green-mid); }
.email-capture-btn:disabled { background: #C5C5C5; cursor: not-allowed; }
.email-capture-success { font-size: 15px; font-weight: 700; color: var(--green-dark); margin-top: 12px; }
.email-capture-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.founding-banner { text-align: center; padding: 14px 20px; background: linear-gradient(135deg, #78350f, #92400e); border-bottom: 1px solid rgba(251,191,36,0.3); }
.founding-banner-inner { max-width: 600px; margin: 0 auto; font-size: 14px; font-weight: 600; color: #fef3c7; }
.founding-banner a { color: #fbbf24; text-decoration: underline; font-weight: 700; }
.trust-bar { background: var(--dark); border-top: 1px solid rgba(82,183,136,0.15); border-bottom: 1px solid rgba(82,183,136,0.15); padding: 20px 24px; }
.trust-bar-inner { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; }
.trust-stat { text-align: center; }
.trust-stat .num { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: var(--green-bright); }
.trust-stat .lbl { font-size: 12px; color: #8a9b8d; font-weight: 600; margin-top: 2px; }
.how-section { padding: 72px 24px; background: var(--cream); }
.how-section-inner { max-width: 960px; margin: 0 auto; }
.how-title { font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 800; color: var(--green-dark); text-align: center; margin-bottom: 48px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-card { text-align: center; }
.how-num { width: 44px; height: 44px; border-radius: 50%; background: var(--green-dark); color: white; font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.how-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.how-card h3 { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.how-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.features-section { padding: 72px 24px; background: var(--green-dark); }
.features-inner { max-width: 960px; margin: 0 auto; }
.features-title { font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 800; color: white; text-align: center; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 24px 16px; text-align: center; transition: all 0.2s; }
.feature-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.feature-card .fc-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card .fc-title { font-size: 14px; font-weight: 700; color: white; }
.stores-section { padding: 60px 24px; background: var(--cream); text-align: center; }
.stores-title { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 800; color: var(--green-dark); margin-bottom: 28px; }
.stores-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 800px; margin: 0 auto 20px; }
.stores-logos span { padding: 10px 20px; background: white; border: 2px solid var(--sand); border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; }
.stores-more { font-size: 14px; color: var(--muted); font-style: italic; }
.bottom-cta { padding: 72px 24px; background: linear-gradient(180deg, var(--cream), var(--green-light)); text-align: center; }
.bottom-cta h2 { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; color: var(--green-dark); margin-bottom: 20px; }
.bottom-cta .cta-btn { display: inline-block; padding: 16px 40px; border-radius: 50px; background: var(--orange); color: white; font-size: 18px; font-weight: 700; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.bottom-cta .cta-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.landing-footer { background: var(--dark); padding: 32px 24px; text-align: center; }
.landing-footer p { font-size: 14px; color: #7a8b7d; line-height: 1.8; }
.landing-footer a { color: #9ca38f; text-decoration: none; transition: color 0.2s; }
.landing-footer a:hover { color: white; }
header { background: var(--dark); padding: 8px 16px; display: none; grid-template-columns: auto 1fr auto; align-items: center; position: sticky; top: 0; z-index: 100; position: relative; min-height: 48px; }
header .logo-link { position: absolute; left: 50%; transform: translateX(-50%); }
.logo-text { display: none; }
.header-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.profile-btn { padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; text-decoration: none; border: none; background: none; color: #c8d6cb; }
.profile-btn:hover { color: white; }
.profile-btn.logged-in { color: white; }
.profile-avatar { display: none; }
.saved-recipes-btn { display: none; }
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 100px; }
.screen { display: none; }
.screen.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.back { font-size: 13px; color: #999; cursor: pointer; margin-bottom: 14px; display: inline-block; }
.back:hover { color: var(--green-dark); }
.screen-title { font-family: 'Trebuchet MS', sans-serif; font-size: 26px; color: var(--green-dark); margin-bottom: 4px; }
.screen-sub   { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

.btn { width: 100%; padding: 15px; border: none; border-radius: 14px; font-size: 16px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.15s ease; }
.btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { background: #C5C5C5 !important; cursor: not-allowed; transform: none !important; }
.btn-primary  { background: var(--orange); color: white; }
.btn-gradient { background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); color: white; }
.btn-outline  { background: transparent; color: var(--green-dark); border: 2px solid var(--green-dark); }
.btn-blue     { background: var(--blue); color: white; }
.btn-green    { background: var(--green-dark); color: white; }

.card { background: white; border: 2px solid var(--sand); border-radius: 18px; padding: 20px; margin-bottom: 12px; transition: all 0.2s; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { border-color: var(--green-mid); transform: translateY(-1px); }
.card.selected  { border-color: var(--green-mid); background: var(--green-light); }
.store-row { display: flex; align-items: center; gap: 14px; }
.store-name { font-weight: 700; font-size: 17px; }
.store-addr { font-size: 13px; color: #888; margin-top: 2px; }
.store-check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: #E0D8C8; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; flex-shrink: 0; transition: background 0.2s; }
.card.selected .store-check { background: var(--green-mid); }
.section-title { font-family: 'Trebuchet MS', sans-serif; font-size: 18px; color: var(--green-dark); margin-bottom: 12px; margin-top: 24px; }
.meal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 8px; }
.meal-card { background: white; border: 2px solid var(--sand); border-radius: 14px; padding: 16px 8px; text-align: center; cursor: pointer; transition: all 0.2s; }
.meal-card:hover { border-color: var(--green-mid); }
.meal-card.selected { background: var(--green-dark); border-color: var(--green-dark); color: white; }
.meal-icon  { font-size: 28px; margin-bottom: 6px; }
.meal-label { font-size: 14px; font-weight: 700; }

.filter-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-chip { padding: 7px 14px; border-radius: 20px; border: 2px solid var(--sand); background: white; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-chip:hover { border-color: var(--green-mid); }
.filter-chip.selected { background: var(--green-mid); border-color: var(--green-mid); color: white; }
.deals-picker { background: white; border: 2px solid var(--sand); border-radius: 16px; margin-bottom: 20px; overflow: hidden; }
.deals-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; user-select: none; }
.deals-picker-header:hover { background: var(--green-light); }
.deals-picker-toggle { font-size: 12px; color: var(--green-dark); font-weight: 700; }
.deals-picker-body { max-height: 350px; overflow-y: auto; border-top: 1px solid var(--sand); }
.deals-picker-body.collapsed { display: none; }
.deals-store-group { border-bottom: 1px solid #F0EDE6; }
.deals-store-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #FAFAF5; font-size: 13px; font-weight: 700; color: var(--green-dark); position: sticky; top: 0; z-index: 1; }
.deals-store-toggle { font-size: 11px; color: var(--blue); cursor: pointer; font-weight: 600; }
.deals-store-toggle:hover { text-decoration: underline; }
.deal-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; border-bottom: 1px solid #F5F2EB; }
.deal-item:last-child { border-bottom: none; }
.deal-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-mid); flex-shrink: 0; cursor: pointer; }
.deal-item-name { flex: 1; }
.deal-item-price { font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.deal-item-was { font-size: 11px; color: #AAA; text-decoration: line-through; margin-left: 4px; }
.deal-item-pct { font-size: 11px; font-weight: 700; color: var(--orange); margin-left: 6px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.results-count { font-size: 14px; color: var(--muted); font-style: italic; }
.sort-row { display: flex; gap: 8px; }
.sort-btn { padding: 6px 12px; border: 2px solid var(--sand); border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; background: white; font-family: 'DM Sans', sans-serif; transition: all 0.2s; }
.sort-btn.active { background: var(--green-dark); color: white; border-color: var(--green-dark); }

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.recipe-card-tile { background: white; border: 2px solid var(--sand); border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.2s; }
.recipe-card-tile:hover { border-color: var(--green-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.recipe-card-img { width: 100%; height: 140px; object-fit: cover; background: #F5F0E8; display: block; }
.recipe-card-img-placeholder { width: 100%; height: 140px; background: linear-gradient(135deg, var(--green-light), var(--cream)); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.recipe-card-body { padding: 12px; }
.recipe-card-title { font-family: 'Trebuchet MS', sans-serif; font-size: 14px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; line-height: 1.3; }
.recipe-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chip { font-size: 11px; padding: 3px 7px; border-radius: 6px; font-weight: 600; }
.meta-time     { background: #F5F0E8; color: #5A4A30; }
.meta-savings  { background: var(--orange-light); color: var(--orange); }
.meta-cost     { background: var(--green-light); color: var(--green-dark); }
.meta-coupon   { background: var(--blue-light); color: var(--blue); }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal { background: white; border-radius: 24px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform:translateY(20px); opacity:0; } to { transform:translateY(0); opacity:1; } }
.modal-img { width: 100%; height: 220px; object-fit: cover; border-radius: 22px 22px 0 0; }
.modal-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--green-light), var(--cream)); display: flex; align-items: center; justify-content: center; font-size: 64px; border-radius: 22px 22px 0 0; }
.modal-body { padding: 24px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-title { font-family: 'Trebuchet MS', sans-serif; font-size: 22px; color: var(--green-dark); line-height: 1.3; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--sand); background: white; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.modal-close:hover { background: #F5F0E8; }
.modal-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-pill { padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.stat-time    { background: #F5F0E8; color: #5A4A30; }
.stat-savings { background: var(--orange-light); color: var(--orange); }
.stat-cost    { background: var(--green-light); color: var(--green-dark); }
.stat-servings { background: #f0fdf4; color: var(--green-dark); }

.modal-section { margin-bottom: 20px; }
.modal-section-title { font-size: 12px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.ing-list { display: flex; flex-direction: column; gap: 6px; }
.ing-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.ing-row.on-sale { background: var(--green-light); border: 1px solid #A5D6A7; }
.ing-row.pantry  { background: #FAFAFA; border: 1px solid #F0E8D0; color: #666; }
.ing-sale-price { font-weight: 800; color: var(--orange); }
.ing-reg-price  { font-size: 11px; color: #CCC; text-decoration: line-through; margin-left: 4px; }

.coupon-list { display: flex; flex-direction: column; gap: 6px; }
.coupon-row { background: var(--blue-light); border: 1px solid #90CAF9; border-radius: 10px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.coupon-row.clipped { background: var(--green-light); border-color: #A5D6A7; }
.coupon-save { font-weight: 800; color: var(--blue); white-space: nowrap; }
.coupon-row.clipped .coupon-save { color: var(--green-dark); }

.steps-list { display: flex; flex-direction: column; gap: 10px; }
.step-row { display: flex; gap: 12px; align-items: flex-start; }
.step-num { min-width: 26px; height: 26px; border-radius: 50%; background: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; flex-shrink: 0; }
.step-text { font-size: 14px; color: #444; line-height: 1.6; padding-top: 3px; }

.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 2px solid #F5EFE0; }
.modal-btn { flex: 1; min-width: 140px; padding: 12px; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; }
.modal-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.modal-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.modal-btn-save  { background: var(--orange-light); color: var(--orange); border: 2px solid #FFB74D; }
.modal-btn-save.saved { background: var(--orange); color: white; }
.modal-btn-list  { background: var(--green-light); color: var(--green-dark); border: 2px solid #A5D6A7; }
.modal-btn-cart  { background: var(--blue); color: white; }
.cart-success-msg { background: var(--green-light); border: 2px solid #A5D6A7; border-radius: 10px; padding: 10px; text-align: center; font-weight: 700; color: var(--green-dark); font-size: 13px; margin-top: 8px; display: none; }
.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); z-index: 200; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.loading-overlay.show { display: flex; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 4px solid #E0E0E0; border-top-color: var(--green-dark); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-emoji { font-size: 72px; animation: emojiBounce 0.6s ease-in-out infinite alternate; }
@keyframes emojiBounce { 0% { transform: translateY(0) rotate(-5deg); } 100% { transform: translateY(-14px) rotate(5deg); } }
.loading-text { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; color: var(--green-dark); }
.loading-sub { font-size: 14px; color: var(--muted); }
.loading-tip { font-size: 16px; color: #6b7b6e; font-style: italic; text-align: center; max-width: 400px; line-height: 1.5; margin-top: 16px; padding: 0 20px; transition: opacity 0.4s ease; }
.toast { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 400; box-shadow: 0 4px 20px rgba(0,0,0,0.2); white-space: nowrap; }
.toast.show { display: block; animation: fadeUp 0.3s ease; }
.extract-spinner { display:inline-block; width:18px; height:18px; border:3px solid var(--sand); border-top-color:var(--orange); border-radius:50%; animation:spin 0.8s linear infinite; flex-shrink:0; }
.toast.error   { background: var(--red); color: white; }
.toast.success { background: var(--green-dark); color: white; }
.sale-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sale-card { background: white; border: 2px solid var(--sand); border-radius: 14px; overflow: hidden; cursor: pointer; transition: all 0.2s; position: relative; }
.sale-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.sale-card.include { border-color: var(--green-mid); background: var(--green-light); }
.sale-card.exclude { border-color: var(--red); background: #FFF0F0; opacity: 0.6; }
.sale-card-badge { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; z-index: 2; }
.sale-card.include .sale-card-badge { background: var(--green-mid); color: white; }
.sale-card.exclude .sale-card-badge { background: var(--red); color: white; }
.sale-card-img { width: 100%; height: 110px; object-fit: contain; background: #FAFAF5; display: block; padding: 6px; }
.sale-card-img-ph { width: 100%; height: 110px; background: #FAFAF5; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.sale-card-body { padding: 10px; }
.sale-card-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.sale-card-price { display: flex; align-items: baseline; gap: 6px; }
.sale-card-sale { font-size: 16px; font-weight: 800; color: var(--orange); }
.sale-card-reg { font-size: 11px; color: #BBB; text-decoration: line-through; }
.sale-card-store { font-size: 10px; color: var(--muted); margin-top: 4px; }
.sale-card-pct { position: absolute; top: 8px; left: 8px; background: var(--orange); color: white; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.sale-card-coupon { position: absolute; bottom: 8px; right: 8px; background: var(--orange-light); color: var(--orange); font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--orange); }
.kroger-connect-banner { display: none; align-items: center; gap: 12px; background: var(--orange-light); border: 2px solid var(--orange); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; }
.kroger-connect-banner p { flex: 1; font-size: 14px; font-weight: 600; color: #5A4A30; }
.kroger-connect-banner a { padding: 8px 18px; border-radius: 20px; background: var(--orange); color: white; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all 0.2s; }
.kroger-connect-banner a:hover { filter: brightness(1.1); }
.kroger-connect-banner .dismiss { background: none; border: none; font-size: 18px; cursor: pointer; color: #999; padding: 4px; }
.coupon-card { background: white; border: 2px dashed var(--orange); border-radius: 12px; padding: 12px 14px; }
.sale-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sale-filter-btn { padding: 6px 14px; border-radius: 20px; border: 2px solid var(--sand); background: white; font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; }
.sale-filter-btn.active { background: var(--green-dark); color: white; border-color: var(--green-dark); }
.sale-summary { display: flex; gap: 12px; margin-bottom: 16px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.sale-summary span { padding: 6px 12px; border-radius: 10px; }
.slideout-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 350; }
.slideout-overlay.open { display: block; }
.slideout-panel { position: fixed; top: 0; right: -400px; width: 380px; height: 100vh; background: white; z-index: 360; display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,0.15); transition: right 0.3s ease; }
.slideout-panel.open { right: 0; }
.slideout-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 2px solid var(--sand); flex-shrink: 0; }
.slideout-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.slideout-footer { padding: 12px 16px; border-top: 2px solid var(--sand); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; background: var(--cream); }
@media (max-width: 480px) {
  .logo-tagline { display: none; }
  .landing-nav-inner { display: flex; padding: 10px 12px; }
  .nav-left { flex-shrink: 0; width: 40px; }
  .logo-link { position: static; transform: none; flex: 1; justify-content: center; min-width: 0; }
  .nav-right { flex-shrink: 0; gap: 6px; }
  .nav-cart-badge { font-size: 10px; padding: 3px 8px; }
  .nav-signin { padding: 6px 10px; font-size: 11px; }
  .hamburger { font-size: 24px; min-width: 40px; min-height: 40px; padding: 2px; }
  .landing-nav { overflow: hidden; }
  
  header { padding: 10px 12px; }
  header .logo-link { position: static; transform: none; flex: 1; justify-content: center; min-width: 0; }
  .header-right { gap: 6px; }
}
@media (max-width: 360px) {
  .logo-link .logo-text-inline { font-size: 18px; }
  .logo-link svg { width: 24px; height: 24px; }
  .nav-signin { padding: 4px 8px; font-size: 0; }
  .nav-signin::before { content: '\1F464'; font-size: 16px; }
  .nav-right { gap: 4px; }
  header .logo-link .logo-text-inline { font-size: 18px; }
  header .logo-link svg { width: 24px; height: 24px; }
}
.nudge-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:500; padding:20px; }
.nudge-card { background:white; border-radius:20px; padding:32px; max-width:400px; width:100%; text-align:center; }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .kroger-hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .recipe-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .screen-title { font-size: 22px; }
}

@media (max-width: 500px) {
  .slideout-panel { width: 100%; right: -100%; }
  .landing-hero { min-height: auto; padding: 80px 16px 40px; }
  .landing-headline { font-size: 32px; }
  .landing-subtitle { font-size: 15px; }
  .landing-search { flex-direction: column; border-radius: 20px; padding: 12px; }
  .landing-search input { text-align: center; padding: 12px; font-size: 20px; letter-spacing: 3px; }
  .landing-search button { width: 100%; margin-top: 8px; }
  .trust-bar-inner { gap: 12px; }
  .trust-stat .num { font-size: 18px; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature-card { padding: 16px 10px; }
  .stores-logos span { padding: 8px 14px; font-size: 11px; }
  .modal-overlay { padding: 0; }
  .modal { max-height: 100vh; height: 100vh; border-radius: 0; }
  .modal-img { height: 160px; border-radius: 0; }
  .modal-img-placeholder { height: 140px; border-radius: 0; }
  .modal-body { padding: 16px; overflow-y: auto; max-height: calc(100vh - 160px); -webkit-overflow-scrolling: touch; }
  .modal-title { font-size: 18px; }
  .modal-stats { gap: 6px; }
  .stat-pill { padding: 6px 10px; font-size: 12px; }
  .modal-actions { flex-direction: column; }
  .modal-btn { min-width: unset; }
  .filter-grid { gap: 6px; }
  .filter-chip { padding: 6px 10px; font-size: 12px; }
  .sale-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .sale-filters { gap: 6px; }
  .sale-filter-btn { padding: 5px 10px; font-size: 11px; }
  main { padding: 20px 12px 80px; }
  .meal-grid { grid-template-columns: repeat(2, 1fr); }
  header svg { width: 120px; height: 30px; }
  .kroger-hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .kroger-hero-heading { font-size: 28px; }
  .kroger-phone-mock { width: 240px; }
  .recipe-preview-grid { grid-template-columns: 1fr; gap: 16px; }
  .recipe-preview-heading { font-size: 28px; }
  .email-capture-fields { flex-direction: column; }
  .email-capture-fields input[type="text"] { max-width: none; }
  .email-capture-heading { font-size: 26px; }
}
