:root {
  --primary: #3FDEAE;
  --primary-dark: #2bb88e;
  --error: #F95454;
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #1f2033;
  --text-muted: #61697d;
  --border: #e6e7ee;
  --card-shadow: 0 2px 16px rgba(31, 32, 51, 0.06);
  --radius: 14px;
  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f2033;
    --surface: #282a40;
    --text: #f3f4f8;
    --text-muted: #b3b4c3;
    --border: #353653;
    --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand span {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.site-header nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #1f2033;
  transition: background 0.15s ease;
}

.site-header nav a:hover {
  background: var(--primary-dark);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 900;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 36ch;
}

.hero-icon {
  display: flex;
  justify-content: center;
}

.hero-icon img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(63, 222, 174, 0.25);
}

/* ---------- Store badges ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badges a {
  display: inline-block;
  line-height: 0;
}

.badge-apple {
  height: 48px;
  width: auto;
}

.badge-google {
  height: 70px;
  width: auto;
  margin: -11px 0; /* Crop Google's internal padding so it visually matches Apple */
}

.store-badges.large .badge-apple {
  height: 60px;
}

.store-badges.large .badge-google {
  height: 88px;
  margin: -14px 0;
}

/* ---------- Features ---------- */
.features {
  padding: 64px 0;
  background: var(--surface);
}

.features h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.features .section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 48px;
  max-width: 52ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.feature-card h3::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--primary);
  margin-right: 10px;
  vertical-align: middle;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- CTA strip ---------- */
.cta {
  padding: 72px 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.cta p {
  color: var(--text-muted);
  margin: 0 0 32px;
}

.cta .store-badges {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
}

.site-footer a:hover {
  color: var(--primary);
}

/* ---------- Download page ---------- */
.download-hero {
  padding: 80px 0 96px;
  text-align: center;
}

.download-hero img.app-icon-lg {
  width: 144px;
  height: 144px;
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(63, 222, 174, 0.25);
  margin-bottom: 32px;
}

.download-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.download-hero p.lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin: 0 0 40px;
}

.download-hero .store-badges {
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.back-home {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 24px;
  font-weight: 600;
}

.back-home:hover {
  color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 24px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-icon {
    order: -1;
  }

  .hero-icon img {
    max-width: 180px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .features,
  .cta {
    padding: 48px 0;
  }

  .download-hero {
    padding: 56px 0 72px;
  }

  .download-hero img.app-icon-lg {
    width: 112px;
    height: 112px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .site-footer a {
    margin: 0 10px;
  }
}
