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

:root {
  --color-bg: #f9f9f7;
  --color-surface: #ffffff;
  --color-accent: #4a6cf7;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --radius: 16px;
  --max-width: 640px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem;
}

main {
  width: 100%;
  max-width: var(--max-width);
  flex: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.app-icon-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--color-accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 8px 32px rgba(74, 108, 247, 0.3);
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.badge-link {
  display: inline-block;
}

.badge-link img {
  height: 48px;
}

/* Description card */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

ul.feature-list li::before {
  content: "✓ ";
  color: var(--color-accent);
  font-weight: 700;
}

ol.feature-list {
  list-style: none;
  counter-reset: steps;
}

ol.feature-list li {
  counter-increment: steps;
}

ol.feature-list li::before {
  content: counter(steps) ". ";
  color: var(--color-accent);
  font-weight: 700;
}

/* Support */
.support-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.support-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  padding: 2rem 0 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

footer a {
  color: var(--color-muted);
  text-decoration: none;
}

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

/* Privacy page */
.privacy-header {
  padding: 2.5rem 0 1rem;
}

.privacy-header h1 {
  font-size: 1.75rem;
}

.privacy-header .updated {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.privacy-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.privacy-body h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: normal;
}

.privacy-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #374151;
}

.privacy-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.privacy-body ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
}

.privacy-body ol li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #374151;
}

.privacy-body .definition + .definition {
  margin-top: 0.85rem;
}

.privacy-body .definition strong {
  display: block;
  margin-bottom: 0.2rem;
}

.privacy-body .notice {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

.privacy-body a.support-link {
  word-break: break-word;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-surface: #1c1c1e;
    --color-text: #f5f5f7;
    --color-muted: #98989f;
  }

  .privacy-body p,
  .privacy-body ol li {
    color: #d1d5db;
  }
}
