/* GroceryOS marketing site — mirrors the app's palette:
   white surfaces, green accent (cart icon green), SF rounded type. */

:root {
  --green-deep: #1a6b40;
  --green: #26a05b;
  --green-soft: #e9f6ef;
  --ink: #1c1c1e;
  --ink-secondary: #6e6e73;
  --surface: #ffffff;
  --surface-alt: #f5f7f6;
  --radius: 16px;
  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }

.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 0.95rem; }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--surface) 100%);
  border-radius: 0 0 32px 32px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero p.lede {
  font-size: 1.2rem;
  color: var(--ink-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1.05rem;
  transition: background 0.15s ease;
}
.cta:hover { background: var(--green-deep); text-decoration: none; }

.cta-note {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

/* Feature grid */
.features {
  padding: 72px 0;
}

.features h2, .pricing h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 0.92rem; color: var(--ink-secondary); }

/* Pricing */
.pricing { padding: 24px 0 80px; }

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.tier {
  border: 1.5px solid #e3e6e4;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.tier.pro { border-color: var(--green); background: var(--green-soft); position: relative; }

.tier .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
}

.tier h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.tier .price { font-size: 2rem; font-weight: 800; margin: 10px 0 2px; }
.tier .per { color: var(--ink-secondary); font-size: 0.9rem; margin-bottom: 18px; }
.tier ul { list-style: none; text-align: left; font-size: 0.92rem; }
.tier li { padding: 6px 0; padding-left: 26px; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--ink-secondary); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { color: #3a3a3c; font-size: 1rem; margin-bottom: 12px; }
.legal ul { padding-left: 24px; margin-bottom: 12px; }
.legal strong { color: var(--ink); }

/* Footer */
footer {
  border-top: 1px solid #e9ebea;
  padding: 32px 0 48px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}
footer .links { margin-bottom: 10px; display: flex; gap: 24px; justify-content: center; }

@media (max-width: 600px) {
  .nav-links { gap: 16px; font-size: 0.88rem; }
  .hero { padding: 48px 0 44px; }
}
