:root {
  --primary: #1B8A3C;
  --primary-light: #2DBD4E;
  --primary-muted: #E6F7EC;
  --text: #0F1F14;
  --text-secondary: #4A6352;
  --text-tertiary: #8AA895;
  --bg: #F8FAF8;
  --surface: #FFFFFF;
  --border: #E0EBE3;
  --radius: 16px;
  --radius-sm: 10px;
  --gold: #C9963A;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ── Nav ────────────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(248, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}

.nav-logo-img { width: 34px; height: 34px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
}

.nav-links a:hover { color: var(--primary); }

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px !important;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #E6F7EC 0%, #F8FAF8 50%, #fff 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--primary-muted);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-secondary:hover { opacity: 0.85; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s;
  width: 100%;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-large { font-size: 18px; padding: 16px 40px; border-radius: 16px; }

.store-icon { width: 20px; height: 20px; object-fit: contain; filter: brightness(10); }

/* ── Phone mockup ────────────────────────────────────────────────────────────── */

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

.phone-mockup {
  width: 280px;
  background: #111;
  border-radius: 44px;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1);
}

.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  padding: 24px 16px;
}

.mockup-header {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  margin: -24px -16px 16px;
  padding: 24px 16px 20px;
}

.mockup-greeting { font-size: 12px; color: rgba(255,255,255,0.75); }
.mockup-name { font-size: 22px; font-weight: 700; color: white; }

.mockup-stats {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding: 0 0 4px;
  overflow-x: auto;
}

.stat-chip {
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.mockup-card {
  background: white;
  border-radius: 14px;
  padding: 14px;
  margin-top: 4px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mockup-label { font-size: 10px; font-weight: 700; color: var(--text-tertiary); margin-bottom: 8px; }

.mockup-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.mockup-item:last-child { border-bottom: none; }

.urgent { color: #E63946; font-size: 11px; font-weight: 600; }
.soon { color: #F4A261; font-size: 11px; font-weight: 600; }

.mockup-recipe {
  background: linear-gradient(135deg, #1A5276, #0D2B3E);
  border-radius: 14px;
  padding: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.mockup-recipe strong { color: white; font-size: 14px; }

/* ── Features ────────────────────────────────────────────────────────────────── */

.features {
  padding: 80px 0;
  background: white;
}

.features h2, .pricing h2 {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27,138,60,0.1);
}

.feature-card--premium {
  background: linear-gradient(135deg, #FDF3E0, #FEF8F0);
  border-color: #E8C97A;
}

.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Pricing ─────────────────────────────────────────────────────────────────── */

.pricing { padding: 80px 0; background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 20px 40px rgba(27,138,60,0.12);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-price span { font-size: 18px; font-weight: 500; color: var(--text-secondary); }

.pricing-per { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 20px; }

.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-card li {
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-card li:last-child { border-bottom: none; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */

.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p { font-size: 14px; margin-top: 12px; opacity: 0.6; }

.footer-logo { width: 36px; height: 36px; object-fit: contain; }

.footer-name {
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { color: white; font-size: 14px; margin-bottom: 4px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* ── Join page ────────────────────────────────────────────────────────────────── */

.join-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E6F7EC 0%, #F8FAF8 100%);
}

.join-container {
  background: white;
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.join-logo { width: 70px; height: 70px; object-fit: contain; margin-bottom: 20px; }

.join-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; }

.join-sub { color: var(--text-secondary); margin-bottom: 28px; }

.join-card {
  background: var(--primary-muted);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.join-code-label { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; margin-bottom: 8px; }

.join-code {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 6px;
}

.join-download { font-size: 14px; color: var(--text-tertiary); margin-top: 16px; margin-bottom: 28px; }
.join-download a { color: var(--primary); text-decoration: none; font-weight: 600; }

.join-manual {
  text-align: left;
  background: var(--bg);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.join-manual strong { color: var(--text); display: block; margin-bottom: 8px; }
.join-manual ol { padding-left: 18px; }
.join-manual li { margin-bottom: 4px; }

/* ── Content pages (support, faq, terms, privacy) ─────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  padding: 60px 0 40px;
  text-align: center;
}

.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: 0.85; font-size: 17px; }

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 36px 0 12px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p, .page-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

.page-content ul { padding-left: 20px; margin-bottom: 16px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Support ─────────────────────────────────────────────────────────────────── */

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.support-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.support-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.support-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; }

.support-form input, .support-form textarea, .support-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  background: white;
  margin-bottom: 12px;
  font-family: inherit;
}

.support-form textarea { min-height: 120px; resize: vertical; }

.support-form input:focus, .support-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 38px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
