/* Habit Tracker website – plain CSS, system fonts, light and dark mode. */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1f2523;
  --muted: #5f6763;
  --line: #e5e2db;
  --accent: #357066; /* green for text and buttons (5.7:1 with white) */
  --accent-soft: #e3efec;
  --on-accent: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111614;
    --surface: #1a201e;
    --ink: #e8ecea;
    --muted: #a3aea9;
    --line: #2b3431;
    --accent: #62ac9c;
    --accent-soft: #1e3530;
    --on-accent: #0d1f1a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* Top bar */
.top { padding: 20px 0; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px;
  min-height: 48px;
}
.brand img { width: 36px; height: 36px; }

/* Hero */
.hero { text-align: center; padding: 32px 0 48px; }
.hero .app-icon { width: 128px; height: 128px; filter: drop-shadow(0 8px 20px rgba(68, 121, 106, 0.25)); }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 24px 0 12px; letter-spacing: -0.02em; }
.hero .tagline { color: var(--muted); font-size: clamp(18px, 3vw, 21px); max-width: 560px; margin: 0 auto 32px; }
.play {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 28px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 16px; text-decoration: none; font-weight: 600; font-size: 18px;
}
.play:hover { filter: brightness(1.06); }
.play svg { width: 22px; height: 22px; flex: none; }
.soon { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); }

/* Features */
.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 0 0 56px; margin: 0; list-style: none;
}
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.feature .emoji {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); font-size: 24px;
}
.feature h2 { font-size: 19px; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); }

/* Privacy page */
.policy { padding-top: 8px; padding-bottom: 48px; }
.policy h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 16px 0 8px; letter-spacing: -0.01em; }
.policy .date { color: var(--muted); margin: 0 0 28px; }
.policy p { margin: 0 0 18px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 8px; }
footer nav a { display: inline-flex; align-items: center; min-height: 48px; }
footer p { margin: 0; }
