/* Groj landing — "Meadow" palette, mirroring groj/constants/theme.ts.
   Light is the default (cool off-white canvas, white surfaces, brand green);
   dark mode follows the system and uses the app's dark tokens. The brand
   green #1F9D6B fills buttons in BOTH themes; green *text* uses the deeper
   #14794F on light and the brighter #58D29C on dark, like the app. */
:root {
  --bg: #f0f5f1; /* screen */
  --surface: #ffffff;
  --text: #1b2620; /* ink */
  --body: #46524a; /* labelMuted — paragraphs */
  --muted: #6e7e74;
  --line: #e0eae3;
  --primary: #1f9d6b;
  --primary-press: #14794f;
  --accent: #14794f; /* green as text */
  --tint: #ddf1e6; /* green chip / icon-badge bg */
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --glow: 0 6px 14px rgba(31, 157, 107, 0.33);
  --radius-card: 16px; /* app Radius.card */
  --radius-input: 14px; /* app Radius.input */
  --radius-chip: 12px; /* app Radius.chip */
  --maxw: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #1f1f1f;
    --text: #ececec;
    --body: #cfcfcf;
    --muted: #9a9a9a;
    --line: #303030;
    --primary: #1f9d6b; /* fills keep the brand green */
    --primary-press: #24af78;
    --accent: #58d29c; /* brighter green text on dark */
    --tint: #173a2b;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --glow: 0 6px 14px rgba(31, 157, 107, 0.25);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon {
  border-radius: 9px;
  display: block;
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.nav-cta {
  color: #ffffff;
  background: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--glow);
}
.nav-cta:hover {
  background: var(--primary-press);
}

/* ── Hero ── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 48px;
}
.hero-inner {
  max-width: 720px;
}
.hero-chip {
  display: inline-block;
  background: var(--tint);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-chip);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.lede {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--body);
  margin: 0 0 32px;
}

/* ── CTAs ── */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 22px;
  border-radius: var(--radius-input);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: not-allowed;
  opacity: 0.85;
}
.store-badge-top {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.store-badge-bottom {
  font-size: 18px;
  font-weight: 800;
}
.cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ── Features ── */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 24px;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-chip);
  background: var(--tint);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}
.feature p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
}

/* ── Closer ── */
.closer {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 56px 24px;
  text-align: center;
}
.closer h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.closer p {
  color: var(--body);
  margin: 0 0 28px;
}
.closer .cta-group {
  justify-content: center;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 520px) {
  .store-badge {
    flex: 1;
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }
}
