/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-secondary: #57534e;
  --color-text-tertiary: #a8a29e;
  --color-border: #e7e5e4;
  --color-accent: #1e3a5f;
  --color-accent-light: #2d5a8e;
  --color-anchor: #2563eb;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", monospace;
  --max-width: 640px;
  --spacing-page: 2rem;
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ──────────────────────────────────────────── */
h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-light);
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ── Layout ──────────────────────────────────────────────── */
.page-wrapper {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--spacing-page) 4rem;
}

/* ── Navigation ──────────────────────────────────────────── */
nav {
  padding: 1.25rem var(--spacing-page);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

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

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

nav .nav-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 450;
}

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

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 3rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  max-width: 480px;
}

.hero .app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.hero .app-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-anchor);
}

/* ── Feature grid ────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.feature .feature-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── App Store badge ─────────────────────────────────────── */
.app-store-link {
  display: inline-block;
  margin-top: 2rem;
}

.app-store-link img {
  height: 44px;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  margin-top: 3rem;
}

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

/* ── Support page specifics ──────────────────────────────── */
.contact-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.contact-card p {
  margin-bottom: 0.5rem;
}

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

.faq-item {
  margin-top: 1.5rem;
}

.faq-item h3 {
  margin-top: 0;
}

.faq-item p {
  margin-bottom: 0;
}

/* ── Privacy / legal ─────────────────────────────────────── */
.legal-content h2 {
  margin-top: 2.5rem;
}

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

.legal-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--color-text-secondary);
}

.legal-content li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.effective-date {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin-bottom: 2rem;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem var(--spacing-page);
  background: var(--color-surface);
}

footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
}

footer .footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

footer .footer-links a {
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
}

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

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --spacing-page: 1.25rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  footer .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
