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

:root {
  --navy:  #2C3E50;
  --sage:  #7A9E8A;
  --blush: #E8A09A;
  --cream: #FAF5EE;
  --gold:  #C9973A;
  --ink:   #1A2530;
  --mid:   #6B7B8D;
  --border: #E8E0D4;
  --white: #FFFFFF;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ───────────────────────────────────────────────────── */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* ── Homepage hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 48px;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.hero-logo-img {
  max-width: 440px;
  width: 100%;
  height: auto;
}

.hero-logo-text {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0;
}

.hero-sub {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  max-width: 420px;
  margin: 0 auto 28px;
}

.app-store-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  letter-spacing: 0.2px;
  transition: opacity 0.15s;
}
.app-store-badge:hover { opacity: 0.85; text-decoration: none; color: var(--white); }

/* ── Section cards ────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.07);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 32px;
  margin-bottom: 24px;
}

.card h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* ── Legal doc links ──────────────────────────────────────────── */
.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.15s;
}

.doc-list li:last-child a { border-bottom: none; }

.doc-list li a:hover { color: var(--white); text-decoration: none; }

.doc-list li a::after {
  content: '→';
  color: rgba(255,255,255,0.25);
  font-size: 1rem;
}

.doc-list li a:hover::after { color: var(--gold); }

/* ── Contact section ──────────────────────────────────────────── */
.contact-line {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
}

.contact-line a { color: var(--gold); }

/* ── Legal doc page ───────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--white); text-decoration: none; }
.back-link::before { content: '←'; }

.doc-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(255,255,255,0.12);
}

.doc-header h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.doc-header .doc-meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* ── Markdown-rendered content ────────────────────────────────── */
.doc-body { font-size: 0.9375rem; line-height: 1.75; }

.doc-body h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 36px;
  margin-bottom: 12px;
}

.doc-body h3 {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-top: 24px;
  margin-bottom: 8px;
}

.doc-body p { margin-bottom: 14px; }

.doc-body ul {
  margin: 0 0 14px 20px;
}

.doc-body ul li { margin-bottom: 4px; }

.doc-body ol {
  margin: 0 0 14px 20px;
}

.doc-body ol li { margin-bottom: 6px; }

.doc-body strong { font-weight: 600; color: var(--white); }

.doc-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 28px 0;
}

.doc-body a { color: var(--gold); }

/* ── Other docs nav ───────────────────────────────────────────── */
.other-docs {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.other-docs h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.other-docs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.other-docs-grid a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 6px 12px;
  transition: all 0.15s;
}

.other-docs-grid a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  text-decoration: none;
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.site-footer a { color: rgba(255,255,255,0.4); }
.site-footer a:hover { color: var(--white); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-logo-text, .hero-sub { font-size: 2rem; }
  .hero-logo-img { max-width: 320px; }
  .container { padding: 32px 16px 64px; }
  .card { padding: 24px; }
  .site-header .tagline { display: none; }
}
