:root {
  --bg: #F9F9F7;
  --header-bg: rgba(249, 249, 247, 0.88);
  --surface: #FFFFFF;
  --text: #1A1A18;
  --muted: #787876;
  --subtle: #AEAEAD;
  --border: rgba(0, 0, 0, 0.07);
  --icon-bg: #1A1A18;
  --max-w: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F0E;
    --header-bg: rgba(15, 15, 14, 0.88);
    --surface: #1C1C1A;
    --text: #E8E8E6;
    --muted: #8A8A88;
    --subtle: #585856;
    --border: rgba(255, 255, 255, 0.07);
    --icon-bg: #2A2A28;
  }
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 7.5px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 19px;
  height: 19px;
  filter: invert(1);
  opacity: 0.9;
}

.nav-wordmark {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Main ────────────────────────────────────── */

main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ── Hero ────────────────────────────────────── */

.hero {
  padding: 6.5rem 0 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.25rem;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.10),
    0 8px 32px rgba(0, 0, 0, 0.10);
}

.hero-icon img {
  width: 72px;
  height: 72px;
  filter: invert(1);
  opacity: 0.92;
}

.app-icon-frame {
  overflow: hidden;
  background: transparent;
}

.app-icon-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
}

.app-icon-frame--nav {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.10);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 0.875rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  letter-spacing: -0.01em;
  font-weight: 400;
}

/* ── Sections ────────────────────────────────── */

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1.75rem;
}

.section-heading {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

/* ── Prose ───────────────────────────────────── */

.prose p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.2s;
}

.prose a:hover {
  text-decoration-color: var(--muted);
}

/* ── Pillars list ────────────────────────────── */

.pillars {
  list-style: none;
  margin: 1.75rem 0;
  border-top: 1px solid var(--border);
}

.pillars li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.pillars li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--subtle);
  flex-shrink: 0;
}

/* ── Support CTA ─────────────────────────────── */

.support-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  padding: 0.875rem 1.375rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color 0.2s;
}

.support-cta:hover {
  border-color: var(--muted);
}

/* ── Page header (privacy page) ──────────────── */

.page-header {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-header .updated {
  font-size: 0.875rem;
  color: var(--subtle);
  letter-spacing: -0.01em;
}

.prose-page {
  padding-bottom: 5rem;
}

/* ── Footer ──────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--subtle);
  letter-spacing: -0.01em;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: var(--subtle);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

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

/* ── Responsive ──────────────────────────────── */

@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .hero-icon img {
    width: 60px;
    height: 60px;
  }

  .hero-icon.app-icon-frame img {
    width: 100%;
    height: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-heading {
    font-size: 1.375rem;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }
}
