@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  color-scheme: light dark;
  --parchment: #f7f1e6;
  --parchment-alt: #fdfbf5;
  --indigo: #2c2a4a;
  --indigo-soft: #423f6b;
  --gold: #c9a24b;
  --gold-soft: #e4c581;
  --dark-base: #141322;
  --dark-surface: #1e1c33;
  --off-white: #f5f3ee;
  --ink: #2c2a3a;
  --muted: #746f60;

  --bg: var(--parchment-alt);
  --surface: #ffffff;
  --surface-border: rgba(44, 42, 74, 0.10);
  --text: var(--ink);
  --text-muted: var(--muted);
  --accent: var(--gold);
  --accent-ink: #8a6a1f;
  --header-from: var(--indigo);
  --header-to: var(--indigo-soft);
  --pill-bg: rgba(44, 42, 74, 0.06);
  --pill-active-bg: var(--indigo);
  --pill-active-text: var(--off-white);
  --shadow: 0 12px 32px rgba(44, 42, 74, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--dark-base);
    --surface: var(--dark-surface);
    --surface-border: rgba(245, 243, 238, 0.08);
    --text: var(--off-white);
    --text-muted: #a9a5b8;
    --accent: var(--gold-soft);
    --accent-ink: var(--gold-soft);
    --header-from: #0f0e1a;
    --header-to: var(--indigo);
    --pill-bg: rgba(245, 243, 238, 0.08);
    --pill-active-bg: var(--gold-soft);
    --pill-active-text: var(--dark-base);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */

header.hero {
  background: linear-gradient(155deg, var(--header-from), var(--header-to));
  padding: 48px 20px 84px;
  text-align: center;
  position: relative;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  display: block;
  margin: 0 auto 18px;
}

header.hero .app-name {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--off-white);
  opacity: 0.85;
  margin: 0 0 6px;
}

header.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
}

/* ---------- Tab nav ---------- */

nav.tabs {
  max-width: 620px;
  margin: -36px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

nav.tabs .tabs-inner {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex;
  padding: 6px;
  gap: 4px;
}

nav.tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

nav.tabs a:hover { background: var(--pill-bg); text-decoration: none; }

nav.tabs a.active {
  background: var(--pill-active-bg);
  color: var(--pill-active-text);
}

/* ---------- Content ---------- */

main {
  max-width: 680px;
  margin: 28px auto 0;
  padding: 0 20px 90px;
}

.updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 0 0 28px;
}

.lede {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 24px;
  font-size: 1.02rem;
}

section.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 4px 22px 6px;
  margin-bottom: 20px;
}

h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--accent-ink);
  margin: 22px 0 8px;
}

section.card > h2:first-child { margin-top: 20px; }

ul { padding-left: 22px; }
li { margin-bottom: 8px; }

table { border-collapse: collapse; width: 100%; margin: 14px 0 20px; font-size: 0.94rem; }
th, td { text-align: left; padding: 9px 10px; border: 1px solid var(--surface-border); }
th { color: var(--text-muted); font-weight: 600; }

.note {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0 20px;
}

/* ---------- FAQ accordion ---------- */

details.faq {
  border-bottom: 1px solid var(--surface-border);
  padding: 14px 0;
}
details.faq:last-child { border-bottom: none; }

details.faq summary {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-ink);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

details.faq[open] summary::after { transform: rotate(45deg); }

details.faq p {
  margin: 10px 0 2px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}

footer .foot-links { margin-bottom: 10px; }
footer .foot-links a { margin: 0 8px; }

@media (max-width: 480px) {
  header.hero h1 { font-size: 1.6rem; }
  nav.tabs a { font-size: 0.8rem; padding: 9px 6px; }
}
