/* Mind Palace website: landing, legal and account pages. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #18181b;
  --text-dim: #52525b;
  --text-faint: #a1a1aa;
  --border: #e4e4e7;
  --accent: #18181b;
  --accent-text: #ffffff;
  --warning-bg: #fef3c7;
  --warning-border: #f59e0b;
  --warning-text: #78350f;
  --radius: 14px;
  --max-width: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0b0b;
    --surface: #181717;
    --text: #fafafa;
    --text-dim: #a1a1aa;
    --text-faint: #71717a;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #fafafa;
    --accent-text: #0c0b0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.5);
    --warning-text: #fcd34d;
  }
}

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

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.brand img {
  width: 32px;
  height: 32px;
}

.header-note {
  font-size: 14px;
  color: var(--text-faint);
}

main {
  flex: 1;
}

/* Landing */

.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 32px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.store-button:hover {
  opacity: 0.9;
}

/* Documents */

.doc-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.doc-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}

.section {
  margin-bottom: 28px;
}

.section h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.section p,
.section li {
  color: var(--text-dim);
}

.section ol,
.section ul {
  padding-left: 22px;
}

.section li + li {
  margin-top: 4px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text-dim);
}

.draft-notice {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .store-button {
    width: 100%;
  }
}
