/* Spotops brand stylesheet — mirrors the app's theme (spotbook/src/theme.ts).
   Light = "Misty Morning", Dark = "Dark Forest". The page follows the system
   color scheme automatically via prefers-color-scheme. */

:root {
  color-scheme: light dark;

  /* Misty Morning (light) — default */
  --bg:          #E8EAE6;
  --surface:     #F0F1EE;
  --surface-alt: #E0E3DF;
  --ink:         #1E2420;
  --ink-soft:    rgba(30, 36, 32, 0.62);
  --ink-dim:     rgba(30, 36, 32, 0.32);
  --line:        rgba(30, 36, 32, 0.10);
  --line-strong: rgba(30, 36, 32, 0.18);
  --accent:      #6B8C7A;
  --accent-ink:  #F0F1EE;
  --accent-wash: rgba(107, 140, 122, 0.12);
  --shadow:      0 8px 20px rgba(30, 36, 32, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Forest (dark) */
    --bg:          #1C2018;
    --surface:     #262B22;
    --surface-alt: #2E342A;
    --ink:         #E8E4DC;
    --ink-soft:    rgba(232, 228, 220, 0.65);
    --ink-dim:     rgba(232, 228, 220, 0.35);
    --line:        rgba(232, 228, 220, 0.10);
    --line-strong: rgba(232, 228, 220, 0.18);
    --accent:      #8BAF6E;
    --accent-ink:  #1C2018;
    --accent-wash: rgba(139, 175, 110, 0.14);
    --shadow:      0 9px 20px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI",
    Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* The app's three type voices ---------------------------------------------- */

/* Label voice — monospace, uppercase, wide tracking (app section headers). */
.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--ink-dim);
  margin: 0;
}

/* Editorial voice — serif italic (app captions / subtitles). */
.tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}

.muted {
  color: var(--ink-dim);
  font-size: 13px;
}

/* Landing card ------------------------------------------------------------- */

.wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.card { max-width: 380px; width: 100%; }

.logo {
  width: 132px;
  height: auto;
  margin: 0 auto 28px;
  display: block;
}

.card h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0 0 10px;
}

.card p.lead {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 28px;
}

/* Slogan — the value prop, in the page's system font (same as everything else). */
.card .slogan {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn:active { transform: scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footnote {
  margin-top: 28px;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.5;
}

/* Legal / long-form pages (privacy, terms) --------------------------------- */

main.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.doc .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  color: var(--ink);
}
.doc .brand img { width: auto; height: 30px; display: block; }
.doc .brand span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.doc h1 { font-size: 26px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.3px; }
.doc h2 { font-size: 18px; font-weight: 600; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc strong { color: var(--ink); font-weight: 600; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}
.doc th, .doc td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc th { color: var(--ink-dim); font-weight: 600; }

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}

.callout {
  border: 1px solid var(--line-strong);
  background: var(--accent-wash);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0;
}

ol.sections { padding-left: 1.2em; }
ol.sections > li { margin: 0; }
