:root {
  --green: #2d6a4f;
  --green-dark: #1b4332;
  --green-light: #52b788;
  --accent: #d4a373;
  --bg: #faf8f3;
  --bg-warm: #f4f0e8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --light: #9ca3af;
  --border: #e5e0d5;
  --error: #dc2626;
  --success: #16a34a;
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 2px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --nav-h: 70px;
  --font-d: 'Familjen Grotesk', sans-serif;
  --font-b: 'DM Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); background: rgba(250,248,243,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: var(--font-d); font-size: 22px; font-weight: 900; color: var(--text); display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 7px 12px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: var(--r-sm); transition: .15s; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-warm); text-decoration: none; }
.lang-sw { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 0 8px; }
.lang-sw a { color: var(--muted); }
.lang-sw a.on { color: var(--green); font-weight: 700; }
.lang-sw span { color: var(--border); }
.btn-nav { padding: 8px 18px; background: var(--green); color: #fff !important; border-radius: 100px; font-size: 14px; font-weight: 600; transition: .15s; }
.btn-nav:hover { background: var(--green-dark); text-decoration: none; }
.nav-avatar { width: 32px; height: 32px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 14px 20px 18px; background: var(--bg); border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 14px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--text); }
.mobile-menu a:hover { background: var(--bg-warm); text-decoration: none; }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; background: var(--green); color: #fff; border: none; border-radius: 100px; font-family: var(--font-b); font-size: 15px; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn-primary:hover { background: var(--green-dark); text-decoration: none; color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary.full-width { width: 100%; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: transparent; color: var(--green); border: 2px solid var(--green); border-radius: 100px; font-family: var(--font-b); font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.btn-secondary:hover { background: var(--green); color: #fff; text-decoration: none; }

/* HERO */
.hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(82,183,136,0.12) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 20% 70%, rgba(212,163,115,0.1) 0%, transparent 60%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(45,106,79,0.1); color: var(--green-dark); border: 1px solid rgba(45,106,79,0.2); border-radius: 100px; padding: 6px 16px; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.hero-title { font-family: var(--font-d); font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px; }
.hero-title span { color: var(--green); }
.hero-subtitle { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-lg); max-width: 460px; }
.magic-form .input-row { display: flex; gap: 10px; }
.magic-form input[type="email"] { flex: 1; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 100px; font-family: var(--font-b); font-size: 15px; color: var(--text); background: var(--bg); outline: none; transition: border-color .15s; }
.magic-form input[type="email"]:focus { border-color: var(--green); }
.magic-form input[type="email"]::placeholder { color: var(--light); }
.auth-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.success-icon { font-size: 44px; text-align: center; margin-bottom: 12px; }
#authSuccess h3 { font-family: var(--font-d); font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 10px; }
#authSuccess p { text-align: center; color: var(--muted); font-size: 15px; }
.hero-cta-sub { margin-top: 14px; font-size: 13px; color: var(--light); }
.hero-visual { display: flex; justify-content: center; }
.phone-mockup { background: var(--text); border-radius: 36px; padding: 4px; box-shadow: var(--shadow-lg); width: 270px; transform: rotate(2deg); transition: transform .3s; }
.phone-mockup:hover { transform: rotate(0); }
.phone-screen { background: var(--bg); border-radius: 32px; padding: 22px 18px; min-height: 400px; }
.mock-header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.mock-date { color: var(--muted); font-weight: 400; }
.mock-meal { background: var(--surface); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--border); }
.mock-meal.hl { border-color: var(--green); background: rgba(45,106,79,0.04); }
.meal-type { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.meal-name { font-size: 13px; font-weight: 600; }
.meal-meta { font-size: 11px; color: var(--light); }
.mock-waste { background: rgba(22,163,74,.08); border-radius: 8px; padding: 9px 12px; font-size: 11px; font-weight: 600; color: var(--success); margin-top: 4px; text-align: center; }

/* FEATURES */
.features { padding: 90px 0; background: var(--bg-warm); }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.section-title { font-family: var(--font-d); font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 48px; line-height: 1.15; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { background: var(--surface); border-radius: var(--r); padding: 26px 22px; border: 1px solid var(--border); transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { font-size: 34px; margin-bottom: 14px; }
.feature-card h3 { font-family: var(--font-d); font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* HOW IT WORKS */
.how-it-works { padding: 90px 0; }
.steps { display: flex; align-items: flex-start; margin-top: 16px; }
.step { flex: 1; padding: 28px 22px; }
.step-arrow { padding-top: 38px; font-size: 26px; color: var(--accent); }
.step-num { font-family: var(--font-d); font-size: 44px; font-weight: 900; color: rgba(45,106,79,.12); line-height: 1; margin-bottom: 10px; }
.step h4 { font-family: var(--font-d); font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* SOCIAL PROOF */
.social-proof { padding: 56px 0; background: var(--green); }
.stats-row { display: flex; justify-content: center; gap: 72px; text-align: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-d); font-size: 40px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500; }

/* SHARE */
.share-section { padding: 72px 0; background: var(--bg-warm); text-align: center; }
.share-section h3 { font-family: var(--font-d); font-size: 26px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 6px; }
.share-section p { color: var(--muted); margin-bottom: 24px; }
.share-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 100px; font-family: var(--font-b); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; border: none; transition: transform .15s, box-shadow .15s; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.14); text-decoration: none; }
.share-twitter { background: #000; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; }
.share-whatsapp { background: #25d366; color: #fff; }
.share-copy { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }

/* FOOTER */
.site-footer { background: var(--text); color: rgba(255,255,255,.5); padding: 44px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.site-footer .nav-logo { color: #fff; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 4px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-lang { display: flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; }
.footer-lang a { color: rgba(255,255,255,.4); }
.footer-lang a.on { color: var(--green-light); }
.footer-lang span { color: rgba(255,255,255,.2); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.22); border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

/* AUTH PAGE */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(82,183,136,.1) 0%, transparent 70%), var(--bg); padding: 40px 20px; }
.auth-center-wrap { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.auth-logo { font-family: var(--font-d); font-size: 24px; font-weight: 900; color: var(--text); display: flex; align-items: center; gap: 8px; letter-spacing: -.5px; }
.auth-logo:hover { text-decoration: none; }
.auth-box { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 36px 32px; box-shadow: var(--shadow-lg); }
.consent-box {}
.consent-email-display { background: var(--bg-warm); border-radius: var(--r-sm); padding: 11px 14px; font-size: 13px; font-weight: 600; margin-bottom: 18px; border: 1px solid var(--border); }
.consent-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.consent-item:last-of-type { border-bottom: none; margin-bottom: 8px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; min-width: 20px; border: 2px solid var(--border); border-radius: 5px; cursor: pointer; transition: .15s; position: relative; background: var(--surface); margin-top: 2px; }
.checkbox-label input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.checkbox-label input[type="checkbox"]:checked::after { content: '\2713'; position: absolute; top: -1px; left: 2px; font-size: 13px; color: white; font-weight: 700; }
.checkmark { display: none; }
.consent-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.consent-text a { color: var(--green); font-weight: 600; }
.consent-data-notice { background: rgba(45,106,79,.06); border: 1px solid rgba(45,106,79,.15); border-radius: var(--r-sm); padding: 10px 14px; font-size: 12px; color: var(--green-dark); margin: 14px 0; }
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--error); border-radius: var(--r-sm); padding: 11px 14px; font-size: 13px; }

/* APP */
.app-body { padding-top: var(--nav-h); }
.app-main { padding: 36px 0 72px; min-height: calc(100vh - var(--nav-h)); }
.app-container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.app-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.app-title { font-family: var(--font-d); font-size: 30px; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.app-subtitle { color: var(--muted); font-size: 15px; }
.quick-actions { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.quick-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; display: flex; align-items: center; gap: 14px; text-decoration: none; transition: .2s; color: var(--text); }
.quick-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--green); text-decoration: none; color: var(--text); }
.quick-card.primary { background: var(--green); border-color: var(--green); color: #fff; }
.quick-card.primary:hover { background: var(--green-dark); }
.quick-card.primary h3, .quick-card.primary p { color: #fff; }
.quick-card.primary p { opacity: .8; }
.qc-icon { font-size: 30px; flex-shrink: 0; }
.quick-card h3 { font-family: var(--font-d); font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.quick-card p { font-size: 12px; color: var(--muted); }
.qc-arrow { margin-left: auto; font-size: 18px; color: var(--light); flex-shrink: 0; }
.share-widget { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; text-align: center; }
.share-widget p { color: var(--muted); margin-bottom: 14px; font-size: 14px; }

/* LEGAL */
.legal-wrap { padding: calc(var(--nav-h) + 56px) 0 72px; min-height: 100vh; }
.legal-header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal-header h1 { font-family: var(--font-d); font-size: clamp(28px,5vw,44px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 8px; }
.legal-date { color: var(--muted); font-size: 13px; }
.legal-content { max-width: 720px; font-size: 15px; line-height: 1.8; }
.legal-content h2 { font-family: var(--font-d); font-size: 19px; font-weight: 800; margin: 32px 0 10px; }
.legal-content p { margin-bottom: 12px; color: var(--muted); }
.legal-content ul { padding-left: 18px; margin-bottom: 12px; }
.legal-content ul li { margin-bottom: 5px; color: var(--muted); }
.legal-content a { color: var(--green); }
.legal-content strong { color: var(--text); }

/* FORMS */
.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 9px 13px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-family: var(--font-b); font-size: 14px; color: var(--text); background: var(--bg); outline: none; transition: border-color .15s; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--green); }
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ok-banner { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--r-sm); padding: 11px 14px; color: var(--success); font-weight: 600; font-size: 13px; margin-bottom: 16px; }
.danger-zone { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--r); padding: 20px; margin-top: 16px; }
.danger-zone h3 { color: var(--error); font-family: var(--font-d); font-size: 15px; font-weight: 800; margin-bottom: 6px; }

/* MODAL */
.modal-ov { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; align-items: center; justify-content: center; padding: 16px; }
.modal-ov.open { display: flex; }
.modal { background: var(--surface); border-radius: 18px; padding: 28px; max-width: 500px; width: 100%; max-height: 84vh; overflow-y: auto; position: relative; }
.modal h3 { font-family: var(--font-d); font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.modal-meta { font-size: 12px; margin-bottom: 16px; display: flex; gap: 7px; flex-wrap: wrap; }
.modal-meta span { background: var(--bg-warm); padding: 3px 9px; border-radius: 100px; font-weight: 600; color: var(--muted); }
.modal-sec h4 { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 14px 0 7px; }
.modal-sec ul { padding-left: 15px; display: flex; flex-direction: column; gap: 3px; }
.modal-sec ul li { font-size: 13px; line-height: 1.5; }
.modal-steps { counter-reset: s; list-style: none; padding: 0; }
.modal-steps li { counter-increment: s; display: flex; gap: 9px; margin-bottom: 9px; font-size: 13px; line-height: 1.6; }
.modal-steps li::before { content: counter(s); min-width: 20px; height: 20px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.close-modal { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); }

/* LOADING */
.loading-ov { display: none; position: fixed; inset: 0; background: rgba(250,248,243,.93); z-index: 300; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
.loading-ov.on { display: flex; }
.spin { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--green); border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 240px; transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 36px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; padding: 0; font-size: 22px; }
  .quick-actions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .auth-box { padding: 24px 18px; }
  .magic-form .input-row { flex-direction: column; }
  .share-buttons { gap: 7px; }
  .fg2 { grid-template-columns: 1fr; }
  .app-header { flex-direction: column; gap: 10px; }
}
