/* Tokens mirror ios/Passant/UI/Tokens/DSColors.swift + DSFonts.swift. */
@font-face {
  font-family: "Tiempos Text";
  src: url("/fonts/TiemposText-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Tiempos Text";
  src: url("/fonts/TiemposText-Semibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Tiempos Text";
  src: url("/fonts/TiemposText-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #F7F1E3;          /* paper */
  --surface: #EFE8D8;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-tertiary: #A2A09B;
  --border: #E4E2DD;
  --accent: #EA4743;
  --accent-pressed: #D33C38;
  --serif: "Tiempos Text", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1B18;
    --surface: #262420;
    --text: #F7F1E3;
    --text-secondary: #D9D3C9;
    --text-tertiary: #8F8A80;
    --border: #423E37;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; }
img { display: block; }

/* ---------- Landing ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 28px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 0 0 12px;
}
.tagline {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 0 0 36px;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 999px;
  transition: background 120ms ease, transform 120ms ease;
}
.cta:hover { background: var(--accent-pressed); }
.cta:active { transform: scale(0.98); }
.cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.note {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 20px 0 0;
}

/* ---------- Footer (shared) ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal-header {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.home img { border-radius: 7px; }
.prose {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h1 { font-size: 36px; margin: 0 0 8px; }
.prose h1 + p { color: var(--text-secondary); font-size: 15px; margin-bottom: 28px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose code {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 15px;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 600; background: var(--surface); }

@media (max-width: 480px) {
  .wordmark { font-size: 48px; }
  .tagline { font-size: 18px; }
  .prose h1 { font-size: 30px; }
}
