:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #0071e3;
  --border: #d2d2d7;
  --placeholder-bg: #fafafa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1d1f;
    --bg-alt: #161617;
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent: #2997ff;
    --border: #424245;
    --placeholder-bg: #232326;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.home-link {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 15px;
  color: var(--text-muted);
}
.home-link:hover { color: var(--accent); text-decoration: none; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: 96px 24px 72px;
}

.app-icon {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;   /* tighter display tracking, shared with the homepage name */
}

.hero .tagline {
  font-size: 24px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 12px auto 32px;
  line-height: 1.4;
}

.store-badge {
  display: inline-block;
  height: 44px;   /* Apple badge lockup is 156×40; scale keeps the ratio */
  width: auto;
}

.store-badge:hover { opacity: 0.85; }

.store-badge-soon { display: inline-block; opacity: 0.5; }

.hero .meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Features */
.feature {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 64px 0;
}

.feature:nth-child(even) { flex-direction: row-reverse; }

.feature-text { flex: 1; }

.feature-text h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.feature-text p { color: var(--text-muted); font-size: 17px; }
.feature-text p + p { margin-top: 12px; }

.screenshot {
  flex: 1.2;
  min-width: 0;          /* let the image shrink inside the flex row */
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .screenshot { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 40px; }
  .hero .tagline { font-size: 20px; }
  .feature, .feature:nth-child(even) { flex-direction: column; gap: 24px; padding: 40px 0; }
  .screenshot { width: 100%; }
}

/* Privacy strip */
.privacy-strip {
  background: var(--bg-alt);
  text-align: center;
  padding: 64px 24px;
}

.privacy-strip h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }

.privacy-strip p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
}

.privacy-strip .link { display: inline-block; margin-top: 16px; font-size: 17px; }

/* Support */
.support {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 0;
  text-align: center;
}

.support h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.support p { color: var(--text-muted); font-size: 17px; }
.support .requirements { margin-top: 16px; font-size: 15px; }

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 14px;
  color: var(--text-muted);
}

footer .links { margin-top: 8px; }
footer .links a { margin: 0 8px; }

/* Privacy policy page */
.policy {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}

.policy h1 { font-size: 40px; margin-bottom: 8px; letter-spacing: -0.02em; }
.policy .updated { color: var(--text-muted); margin-bottom: 32px; }
.policy h2 { font-size: 24px; margin: 32px 0 8px; }
.policy p, .policy li { color: var(--text-muted); font-size: 17px; }
.policy ul { padding-left: 24px; margin: 8px 0; }
.policy .back { display: inline-block; margin-bottom: 32px; font-size: 15px; }
