/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-900: #1b5e20;
  --green-800: #2e7d32;
  --green-50: #e8f5e9;
  --grey-900: #1a1a1a;
  --grey-700: #4a4a4a;
  --grey-200: #e5e5e5;
  --white: #ffffff;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────────── */
header {
  background: var(--green-900);
  color: var(--white);
  padding: 16px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

header .logo:hover {
  text-decoration: none;
}

header nav a {
  color: var(--green-50);
  margin-left: 24px;
  font-size: 0.875rem;
  font-weight: 500;
}

header nav a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ── Hero (home page) ────────────────────────────────────── */
.hero {
  background: var(--green-900);
  color: var(--white);
  text-align: center;
  padding: 80px 24px 88px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 32px;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .cta-row a {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.hero .cta-primary {
  background: var(--white);
  color: var(--green-900);
}

.hero .cta-primary:hover {
  background: var(--green-50);
  text-decoration: none;
}

.hero .cta-secondary {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.hero .cta-secondary:hover {
  border-color: var(--white);
  text-decoration: none;
}

/* ── Features section ────────────────────────────────────── */
.features {
  padding: 64px 24px;
}

.features h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  text-align: center;
}

.feature-card .emoji {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--grey-700);
  line-height: 1.5;
}

/* ── Page content (privacy, support) ─────────────────────── */
.page-content {
  padding: 48px 0 80px;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-content .updated {
  font-size: 0.85rem;
  color: var(--grey-700);
  margin-bottom: 32px;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p,
.page-content ul {
  margin-bottom: 16px;
  color: var(--grey-700);
}

.page-content ul {
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content a {
  font-weight: 500;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--grey-200);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey-700);
}

footer a {
  color: var(--grey-700);
  margin: 0 10px;
}

footer a:hover {
  color: var(--green-800);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  header .container {
    flex-direction: column;
    gap: 8px;
  }

  header nav a {
    margin-left: 16px;
  }

  header nav a:first-child {
    margin-left: 0;
  }
}
