/* ── Design Tokens ── */
:root {
  --accent:              #5856D6;
  --accent-glow:         rgba(88, 86, 214, 0.4);
  --accent-tint:         rgba(88, 86, 214, 0.08);
  --success:             #4DA68D;
  --surface:             #FFFFFF;
  --surface-secondary:   #F2F2F7;
  --surface-tertiary:    #E5E5EA;
  --text-primary:        #1C1C1E;
  --text-secondary:      #6C6C70;
  --text-on-fill:        #FFFFFF;
  --separator:           rgba(60, 60, 67, 0.12);
  --shadow-card:         0 1px 2px rgba(0,0,0,0.06);
  --shadow-elevated:     0 2px 8px rgba(0,0,0,0.12);
  --shadow-accent-glow:  0 4px 20px rgba(88, 86, 214, 0.4);
  --radius-card:         18px;
  --radius-btn:          14px;
  --radius-phone:        44px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface:           #1C1C1E;
    --surface-secondary: #2C2C2E;
    --surface-tertiary:  #3A3A3C;
    --text-primary:      #FFFFFF;
    --text-secondary:    #AEAEB2;
    --separator:         rgba(255,255,255,0.10);
    --accent-tint:       rgba(88, 86, 214, 0.15);
    --shadow-card:       0 1px 2px rgba(0,0,0,0.3);
    --shadow-elevated:   0 2px 12px rgba(0,0,0,0.4);
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── App Store badge ── */
a.badge-appstore { display: inline-block; transition: transform 0.15s ease, opacity 0.15s ease; }
a.badge-appstore:hover { transform: translateY(-1px); opacity: 0.85; }
a.badge-appstore:active { transform: translateY(0); }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-elevated);
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

/* ── Footer ── */
footer {
  background: var(--surface-secondary);
  border-top: 1px solid var(--separator);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand-name {
  font-size: 15px;
  font-weight: 600;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.1s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Page content (privacy, support) ── */
.page-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.page-content h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 32px;
}
.page-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.page-content p strong { color: var(--text-primary); }
.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 40px 0 12px;
  color: var(--text-primary);
}
.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.page-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.page-content li strong { color: var(--text-primary); }
.page-content a { color: var(--accent); text-decoration: underline; }
.page-content hr {
  border: none;
  border-top: 1px solid var(--separator);
  margin: 40px 0;
}
