/* ---------- Tokens ---------- */
:root {
  --font: 'Nunito', system-ui, -apple-system, sans-serif;
  --bg: #F1F3F7;
  --card: #FFFFFF;
  --fg: #1D2433;
  --fg-secondary: #8B95A7;
  --fg-muted: #B4BDCB;
  --divider: #EDF0F5;
  --brand: #4F46E5;
  --brand-light: #818CF8;

  --fridge: #E8850C;
  --fridge-tint: #FDF3E3;
  --planner: #4F46E5;
  --planner-tint: #EEEDFD;
  --shopping: #0D9488;
  --shopping-tint: #E3F5F2;
  --menu: #E11D48;
  --menu-tint: #FDE7EC;
  --status: #7C3AED;
  --status-tint: #F1ECFE;

  --shadow: 0 8px 24px rgba(29, 36, 51, 0.08);
  --radius-card: 18px;
  --radius-frame: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151E;
    --card: #1A202C;
    --fg: #EEF1F6;
    --fg-secondary: #8B95A7;
    --fg-muted: #5A6577;
    --divider: #232B3A;

    --fridge: #F0A742;
    --fridge-tint: #2A2114;
    --planner: #818CF8;
    --planner-tint: #1E1B4B;
    --shopping: #2DD4BF;
    --shopping-tint: #0B2E2B;
    --menu: #FB7185;
    --menu-tint: #3B0A18;
    --status: #A78BFA;
    --status-tint: #2A1B48;

    --shadow: none;
  }
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--fg-secondary); font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}
.brand img { border-radius: 9px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--fg);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 14px;
}
.lang-switch {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--planner-tint);
  color: var(--planner);
  font-weight: 800;
}

/* ---------- Badges (store) ---------- */
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--divider);
  opacity: 0.55;
  cursor: not-allowed;
}
.badge-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.badge-store { font-size: 15px; font-weight: 800; color: var(--fg); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { font-size: 42px; }
.hero-copy p { font-size: 17px; max-width: 46ch; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-logo {
  width: 240px;
  height: 240px;
  border-radius: 48px;
  filter: drop-shadow(0 0 48px rgba(79, 70, 229, 0.35));
  animation: logo-pulse 3s ease-in-out infinite alternate;
}
@keyframes logo-pulse {
  from { filter: drop-shadow(0 0 48px rgba(79, 70, 229, 0.35)); transform: scale(1); }
  to   { filter: drop-shadow(0 0 64px rgba(79, 70, 229, 0.5)); transform: scale(1.04); }
}

/* ---------- Phone mockup (shared by hero + features) ---------- */
.phone-frame {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}
.phone-glow {
  position: absolute;
  border-radius: 999px;
  z-index: 0;
}
.phone-glow--a { width: 150px; height: 150px; top: -20px; right: -14px; }
.phone-glow--b { width: 110px; height: 110px; bottom: -18px; left: -16px; opacity: 0.6; }
.phone-screen {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: var(--radius-frame);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-header { padding: 16px 16px 18px; border-radius: 0 0 var(--radius-frame) var(--radius-frame); }
.mock-header-row { display: flex; align-items: center; gap: 10px; }
.mock-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.mock-header-text { flex: 1; min-width: 0; }
.mock-header-text strong { display: block; font-size: 16px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-header-text small { display: block; font-size: 11px; font-weight: 700; margin-top: 2px; }
.mock-avatar {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px;
}
.mock-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 14px; }

.mock-stat-row { display: flex; gap: 8px; }
.mock-stat {
  flex: 1; background: var(--card); border-radius: var(--radius-card);
  box-shadow: var(--shadow); padding: 10px 12px; font-size: 11px;
}
.mock-stat span { display: block; font-weight: 700; color: var(--fg-muted); margin-bottom: 4px; }
.mock-stat strong { font-size: 13px; color: var(--fg); }

.mock-section-row { display: flex; align-items: center; justify-content: space-between; }
.mock-section-title { font-weight: 800; font-size: 14px; }
.mock-pill { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

.mock-notes { display: flex; gap: 8px; }
.mock-note {
  flex: 1; background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow);
  border-left: 4px solid; padding: 10px 10px 8px 12px; font-size: 11px;
}
.mock-note p { color: var(--fg); font-weight: 700; margin: 0 0 8px; }
.mock-note span { color: var(--fg-secondary); font-weight: 800; font-size: 10px; }

.mock-day-strip { display: flex; justify-content: space-between; margin-top: 12px; }
.mock-day { text-align: center; font-size: 10px; font-weight: 700; color: var(--fg-secondary); }
.mock-day span {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 10px; margin-top: 4px;
  background: var(--card); color: var(--fg); font-weight: 800; font-size: 12px;
}
.mock-day--active span { color: #fff; }

.mock-events { display: flex; flex-direction: column; gap: 8px; }
.mock-event {
  display: flex; gap: 10px; align-items: flex-start; background: var(--card);
  border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 10px 12px;
}
.mock-checkbox {
  width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0; margin-top: 2px;
  border: 2px solid var(--fg-muted);
}
.mock-checkbox--checked { border: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
.mock-event-body { flex: 1; min-width: 0; }
.mock-event-title { display: block; font-size: 13px; font-weight: 800; color: var(--fg); }
.mock-event-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.mock-event-meta span:first-child { font-size: 10px; font-weight: 700; color: var(--fg-secondary); }
.mock-cat { font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 999px; color: #fff; }

.mock-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mock-progress-bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.35); overflow: hidden; }
.mock-progress-bar span { display: block; height: 100%; border-radius: 999px; }
.mock-progress strong { font-size: 11px; font-weight: 800; }

.mock-chips { display: flex; gap: 6px; padding: 12px 0 0; overflow: hidden; }
.mock-chip { font-size: 10px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--fg-secondary); white-space: nowrap; }
.mock-chip--active { color: #fff; box-shadow: none; }

.mock-list { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 4px 12px; }
.mock-list-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 12px; }
.mock-list-item:last-child { border-bottom: none; }
.mock-list-item-body { flex: 1; min-width: 0; }
.mock-list-item-title { display: block; font-weight: 700; color: var(--fg); }
.mock-list-item-meta { display: block; font-size: 10px; color: var(--fg-secondary); margin-top: 2px; }

.mock-meal-row { display: flex; gap: 10px; align-items: flex-start; }
.mock-meal-row + .mock-meal-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--divider); }
.mock-meal-icon { font-size: 18px; }
.mock-meal-label { display: block; font-size: 11px; font-weight: 700; color: var(--fg-secondary); }
.mock-meal-value { display: block; font-size: 13px; font-weight: 700; color: var(--fg); margin-top: 2px; }

.mock-privacy {
  display: flex; gap: 8px; background: var(--divider); border-radius: 14px; padding: 10px 12px;
  font-size: 10px; font-weight: 600; color: var(--fg-secondary); margin-bottom: 10px;
}
.mock-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.mock-preset { font-size: 10px; font-weight: 700; padding: 7px 11px; border-radius: 999px; background: var(--divider); color: var(--fg-secondary); }
.mock-preset--active { color: #fff; }
.mock-input { background: var(--bg); border-radius: 12px; padding: 10px; font-size: 11px; color: var(--fg-secondary); font-weight: 600; }
.mock-publish-btn { align-self: flex-end; margin-top: 10px; font-size: 12px; font-weight: 800; color: #fff; padding: 8px 16px; border-radius: 999px; }

/* ---------- Feature sections ---------- */
.features { padding: 40px 0; display: flex; flex-direction: column; gap: 88px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature--reverse .feature-copy { order: 2; }
.feature--reverse .feature-visual { order: 1; }
.feature-copy h2 { font-size: 28px; }
.feature-copy p { font-size: 16px; max-width: 42ch; }

/* ---------- Steps ---------- */
.steps-section { padding: 56px 0; background: var(--card); }
.steps-section h2 { text-align: center; font-size: 28px; margin-bottom: 32px; }
.steps { list-style: none; margin: 0; padding: 0; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--brand);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.steps p { margin: 0; padding-top: 4px; color: var(--fg); font-weight: 700; }

/* ---------- Notify banner ---------- */
.notify { padding: 40px 0; }
.notify-banner {
  display: flex; align-items: center; gap: 16px; background: var(--planner-tint);
  border-radius: var(--radius-card); padding: 20px 24px;
}
.notify-icon { font-size: 26px; }
.notify-banner p { margin: 0; color: var(--fg); font-weight: 700; }

/* ---------- CTA ---------- */
.cta { padding: 64px 0; }
.cta-inner { text-align: center; }
.cta h2 { font-size: 30px; }
.cta p { max-width: 52ch; margin: 0 auto 24px; }
.cta .badges { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 24px 0; border-top: 1px solid var(--divider); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--fg-secondary); }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links a:not(.lang-switch) { color: var(--fg-secondary); }
.footer-links a:not(.lang-switch):hover { color: var(--fg); }

/* ---------- Legal page prose ---------- */
.legal { padding: 48px 0 80px; }
.legal .back-link { display: inline-block; margin-bottom: 24px; font-weight: 800; color: var(--brand); }
.legal h1 { font-size: 30px; margin-bottom: 6px; }
.legal .updated { color: var(--fg-muted); font-weight: 700; font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 19px; margin-top: 36px; color: var(--fg); }
.legal h3 { font-size: 15px; margin-top: 20px; color: var(--fg); }
.legal p, .legal li { color: var(--fg); font-weight: 600; font-size: 15px; }
.legal ul { padding-left: 20px; margin: 0 0 1em; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--brand); font-weight: 800; text-decoration: underline; }
.legal .container { max-width: 760px; }
.legal .table-wrap { overflow-x: auto; margin: 0 0 1em; border-radius: var(--radius-card); border: 1px solid var(--divider); }
.legal table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal th, .legal td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.legal th { background: var(--card); font-weight: 800; color: var(--fg); white-space: nowrap; }
.legal td { color: var(--fg-secondary); font-weight: 600; }
.legal tr:last-child td { border-bottom: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature, .hero-grid { grid-template-columns: 1fr; }
  .feature--reverse .feature-copy { order: 1; }
  .feature--reverse .feature-visual { order: 2; }
  .hero-copy h1 { font-size: 32px; }
  .hero-visual { order: -1; }
  .features { gap: 72px; }
  .feature { gap: 28px; }
  .feature-copy h2 { margin-top: 8px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--divider); flex-direction: column; align-items: flex-start;
    padding: 16px 20px; gap: 16px; display: none;
  }
  .nav-links.open { display: flex; }
}
