/* ============================================================================
   todayXP — minimalist static site
   Dark mode by default. Green accent matching the app.
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg: #0a0a0c;
  --bg-elev: #131316;
  --text: #ffffff;
  --text-secondary: #a0a0a8;
  --text-tertiary: #6e6e76;
  --accent: #2ec85a;
  --accent-dark: #1aa847;
  --border: #232328;
  --max-width: 720px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-elev: #f6f6f8;
    --text: #000000;
    --text-secondary: #4a4a52;
    --text-tertiary: #8e8e94;
    --accent: #1aa847;
    --accent-dark: #128a3a;
    --border: #e4e4e8;
  }
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

/* ===== HERO ===== */
.hero {
  padding: 64px 0 56px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 18px 40px rgba(46, 200, 90, 0.15);
}

.hero h1 {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  line-height: 1;
}

.tagline {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.sub-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: flex;
  justify-content: center;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.appstore-badge:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}
.appstore-badge .small {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.appstore-badge .label {
  font-size: 18px;
  font-weight: 700;
}

/* ===== SECTIONS ===== */
section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

section:first-child {
  border-top: none;
}

h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  line-height: 1.15;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

p.lead {
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
}

/* ===== HOW IT WORKS GRID ===== */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 8px;
}

@media (min-width: 600px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); }
}

.how-item {
  padding: 24px;
  background: var(--bg-elev);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.how-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 16px;
}

.how-icon.minus {
  background: #e53935;
}

.how-item p {
  font-size: 15px;
  margin: 0;
}

/* ===== NOT-LIST ===== */
ul.not-list {
  list-style: none;
  margin: 16px 0 24px;
}
ul.not-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}
ul.not-list li::before {
  content: "—";
  color: var(--text-tertiary);
  font-weight: 700;
}

.emphasis {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-top: 24px;
  font-style: italic;
}

/* ===== FOOTER ===== */
footer {
  margin-top: auto;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

footer nav a:hover { color: var(--accent); }

footer p {
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 0;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.muted { color: var(--text-tertiary); }
.spacer-lg { margin-top: 32px; }

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

/* ===== CONTENT PAGES (privacy, support, manifest) ===== */
.page {
  padding: 48px 0;
}
.page h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.page h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
  border: none;
}
.page p, .page li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.page ul {
  padding-left: 22px;
  margin-bottom: 16px;
}
.page .lang-divider {
  margin: 64px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.page .small-print {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 48px;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}
.back-link::before {
  content: "← ";
}
