/* Nini — the app's own tokens, verbatim from src/theme/palette.ts. Light by
   day, dark after sunset, the way the app follows the sun. */
:root {
  --bg: #F0E4D3; --surface: #FAF3E8; --surface-end: #FFFBF4; --raised: #FFFFFF;
  --sky-top: #F5EBDA; --sky-bottom: #F0E4D3; --well: #E8D9C3;
  --text: #3B3450; --text-2: #5C5470; --text-3: #6B6280; --border: rgba(59,52,80,0.12);
  --lavender: #7B74D9; --coral: #E8927C; --gold: #D9A852; --mint: #5FAE94; --rose: #C75C8A; --teal: #2F8F9A;
  --lavender-text: #5B51BE; --coral-text: #A54B33; --gold-text: #7E5A14; --mint-text: #2F6B57;
  --cta-end: #E39CB1; --on-accent: #40211B; --highlight: rgba(255,255,255,0.75); --shadow: rgba(59,52,80,0.14);
  --star-a: #F5CB84; --star-b: #F0BF6B; --star-face: #3A2E5E;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141428; --surface: #1E1E38; --surface-end: #25254A; --raised: #232342;
    --sky-top: #101022; --sky-bottom: #1B1730; --well: #0C0C1F;
    --text: #F7F5F2; --text-2: #B4B2CC; --text-3: #918DB8; --border: rgba(255,255,255,0.10);
    --lavender: #A9A4F8; --coral: #FFB4A2; --gold: #F2C879; --mint: #9DD9C5; --rose: #F4A6C4; --teal: #8ED6DE;
    --lavender-text: #A9A4F8; --coral-text: #FFB4A2; --gold-text: #F2C879; --mint-text: #9DD9C5;
    --cta-end: #F7A2BA; --highlight: rgba(255,255,255,0.10); --shadow: rgba(0,0,0,0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 500;
  color: var(--text); background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)) fixed;
  line-height: 1.5; font-size: 17px;
}
a { color: var(--lavender-text); text-decoration: none; }
a:hover { text-decoration: underline; }

/* The sky: a few small stars, seeded by hand like the app's Backdrop. */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.sky i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .35; }
.sky i:nth-child(2n) { width: 3px; height: 3px; background: var(--lavender); opacity: .3; }
.sky i:nth-child(3n) { width: 5px; height: 5px; opacity: .22; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: .2px; }
.brand svg { width: 34px; height: 34px; }
nav.links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
nav.links a { color: var(--text-2); }

.display { font-size: clamp(38px, 7vw, 64px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.display .light { font-weight: 400; color: var(--text-2); }
h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 8px; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 8px; }
h3 { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.lead { font-size: 20px; color: var(--text-2); font-weight: 500; max-width: 34em; margin: 14px 0 0; }
.muted { color: var(--text-2); }
.tiny { color: var(--text-3); font-size: 14px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); margin: 0 0 8px; }

/* Cards: surface into surface-plus-three-percent, a 1px light on the top edge,
   a soft coloured shadow — the app's Card. */
.card {
  position: relative; border-radius: 28px; padding: 26px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-end));
  box-shadow: 0 12px 28px var(--shadow);
}
.card::before { content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; background: var(--highlight); border-radius: 1px; }
.card.accent { border-color: color-mix(in srgb, var(--accent) 33%, transparent); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 22%, transparent); }
.card.accent::after { content: ''; position: absolute; inset: 0; border-radius: 27px; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), color-mix(in srgb, var(--accent) 24%, transparent)); }
.card > * { position: relative; z-index: 1; }
.tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.tile svg { width: 26px; height: 26px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px;
  font-weight: 700; font-size: 17px; color: var(--on-accent); background: linear-gradient(90deg, var(--coral), var(--cta-end));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--coral) 35%, transparent); border: 0; }
.btn:hover { text-decoration: none; filter: brightness(1.03); }
.btn.ghost { background: transparent; color: var(--lavender-text); box-shadow: none; border: 1px solid var(--border); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text-2); }

/* Landing */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.hero .art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero .art .glow { position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 45%, transparent) 0%, transparent 65%); }
.hero .art .moon { position: absolute; width: 300px; height: 300px; border-radius: 50%; transform: translate(40px, 70px);
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--lavender) 55%, transparent), transparent 60%); }
.hero .art svg.star { width: 260px; height: 260px; position: relative; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@media (prefers-reduced-motion: reduce) { .hero .art svg.star { animation: none; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; align-items: center; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 56px; }
.features .card p { margin: 6px 0 0; color: var(--text-2); }
.wide { grid-column: span 2; }

.band { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 28px 0 56px; }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .check { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: var(--gold-text); background: color-mix(in srgb, var(--gold) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); }

footer.bottom { border-top: 1px solid var(--border); padding: 28px 0 44px; margin-top: 30px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }
footer.bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.bottom a { color: var(--text-2); }

/* Documents */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 0 60px; }
.doc h1 { margin-bottom: 4px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc h3 { margin-top: 20px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc .note { border-left: 3px solid var(--gold); padding: 10px 16px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.toc a { font-size: 14px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero .art { order: -1; min-height: 300px; }
  .hero .art svg.star { width: 200px; height: 200px; }
  .features { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .band { grid-template-columns: 1fr; }
  nav.links { gap: 14px; }
}
