:root {
  --background: #f3f7df;
  --foreground: #1c2b33;
  --primary: #03638f;
  --primary-foreground: #f3f7df;
  --accent: #b1d474;
  --accent-foreground: #1c2b33;
  --secondary: #b6ded3;
  --secondary-foreground: #03638f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d2430;
    --foreground: #f3f7df;
    --primary: #3e93b8;
    --primary-foreground: #0d2430;
    --accent: #b1d474;
    --accent-foreground: #0d2430;
    --secondary: #123f42;
    --secondary-foreground: #b6ded3;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
}

.display {
  font-family: "Luckiest Guy", "Nunito Sans", Arial, sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

nav a.login {
  font-size: 0.9rem;
  text-decoration: underline;
  color: var(--primary);
}

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 24px 0 12px;
}

.hero p.subhead {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--foreground) 65%, transparent);
  max-width: 520px;
  margin: 0 auto 32px;
}

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

.btn {
  display: inline-block;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.features {
  background: var(--secondary);
  padding: 56px 16px;
}

.features-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 40px;
  color: var(--secondary-foreground);
}

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

.feature {
  text-align: center;
}

.feature .icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--background);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.feature .icon-badge svg {
  width: 36px;
  height: 36px;
}

.feature h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--secondary-foreground);
}

.feature p {
  font-size: 0.9rem;
  margin: 0;
  color: color-mix(in srgb, var(--secondary-foreground) 80%, transparent);
}

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  text-align: center;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--foreground) 55%, transparent);
}

footer a {
  text-decoration: underline;
}
