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

:root {
  --bg: #f9f9fb;
  --surface: #ffffff;
  --border: #e5e5ea;
  --text: #1c1c1e;
  --text-muted: #6e6e73;
  --text-soft: #3a3a3c;
  --accent: #007AFF;
  --accent-2: #5AC8FA;
}

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

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

/* Header / nav */
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
header.site .brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
header.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
header.site nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}
header.site nav a:hover { color: var(--text); text-decoration: none; }
header.site nav a.active { color: var(--text); }

/* Layout */
main { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.hero {
  text-align: center;
  padding: 80px 24px 48px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
}
.section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}
.section p { margin-bottom: 14px; color: var(--text-soft); }
.section ul { margin: 0 0 14px 22px; color: var(--text-soft); }
.section li { margin-bottom: 6px; }

/* Card grid (apps) */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 24px 0 64px;
}
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  width: 300px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  text-decoration: none;
}
.card .icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.icon.blue   { background: linear-gradient(135deg, #007AFF, #5AC8FA); }
.icon.purple { background: linear-gradient(135deg, #5856D6, #AF52DE); }
.icon.green  { background: linear-gradient(135deg, #34C759, #30D158); }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.card p  { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }

.badge {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
}
.badge.muted {
  background: var(--border);
  color: var(--text-muted);
}

.contact-block {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 24px 0;
  border: 1px solid var(--border);
}
.contact-block .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-block .value {
  font-size: 17px;
  margin-bottom: 18px;
  color: var(--text);
}
.contact-block .value:last-child { margin-bottom: 0; }

footer.site {
  text-align: center;
  padding: 36px 24px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: #8e8e93;
}
footer.site .legal { margin-bottom: 6px; color: var(--text-muted); }
footer.site .links a { margin: 0 8px; }

/* Privacy / Terms typography */
.legal-doc h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.legal-doc h2 { font-size: 18px; font-weight: 600; margin-top: 36px; margin-bottom: 8px; }
.legal-doc p  { margin: 0 0 14px; color: var(--text-soft); }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-soft); }
.legal-doc li { margin-bottom: 6px; }
.legal-doc .updated { font-size: 14px; color: #8e8e93; margin-bottom: 32px; }
.legal-doc .block { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --surface: #2c2c2e;
    --border: #38383a;
    --text: #f2f2f7;
    --text-muted: #ebebf599;
    --text-soft: #ebebf5cc;
  }
  .badge.muted { color: #8e8e93; }
}

@media (max-width: 560px) {
  header.site { padding: 14px 18px; }
  header.site nav { gap: 14px; }
  header.site nav a { font-size: 14px; }
  .hero { padding: 56px 20px 36px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
  .section h2 { font-size: 22px; }
}
