/* Serious Endeavor — about site
   Uses the app's own "sage" theme tokens (css/style.css [data-theme="sage"]),
   so the marketing page feels like the same product. */

:root {
  color-scheme: light;
  --bg: #f4f2e9;
  --surface: #faf8ef;
  --surface-2: #e9e5d3;
  --surface-raised: #fffdf6;
  --ink: #20241f;
  --ink-strong: #0c0e0b;
  --muted: #66685e;
  --subtle: #8a8c7e;
  --line: #dbd7c4;
  --line-strong: #c8c3ac;
  --accent: #2e6b4e;
  --accent-hover: #245741;
  --accent-soft: #d9e9dd;
  --gold: #b57a1c;
  --gold-soft: #f4e5c4;
  --on-accent: #ffffff;
  --focus-ring: rgba(46,107,78,.22);
  --shadow-soft: 0 6px 18px rgba(32,36,31,.07);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--accent); }

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* The app's actual header mark: the Tabler open-book glyph, accent-colored. */
.wordmark svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}

/* ---------- buttons (app .btn, pill shape) ---------- */

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  line-height: 1.3;
}

.button:hover { background: var(--accent-hover); color: var(--on-accent); }

.button-small { padding: 0.5rem 1.1rem; font-size: 0.95rem; }

.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.7rem 1.5rem;
}

.button-secondary:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- layout ---------- */

main { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

.hero { padding: 4.5rem 0 3.5rem; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.lede { font-size: 1.25rem; color: var(--muted); max-width: 34rem; }

.cta-row { margin: 1.75rem 0 0; }

.section { padding: 3rem 0; border-top: 1px solid var(--line); }

.section h2 {
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.section-intro { color: var(--muted); max-width: 36rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

/* ---------- cards (app .card) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.35rem;
}

.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Now-page example (built from the app's own book-row + goalbar styles) ---------- */

.example-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 1.5rem 0 0.75rem;
}

.now-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.5rem 1.25rem;
}

.now-demo .demo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.now-demo .demo-head h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.now-demo .demo-head .demo-user {
  font-size: 0.85rem;
  color: var(--subtle);
}

.demo-books .book-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}

.demo-books .book-row:last-child { border-bottom: 0; }

.demo-books .cover {
  width: 52px;
  aspect-ratio: 2/3;
  flex: none;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--subtle);
}

.demo-books .t { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; line-height: 1.3; }
.demo-books .a { font-size: 12px; color: var(--muted); margin-top: 2px; }
.demo-books .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

.demo-books .mini-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.demo-books .mini-bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.demo-goal { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

.demo-goal h4 { margin: 0 0 0.5rem; font-size: 1rem; letter-spacing: -0.02em; }

.big-count { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.big-count small { font-size: 18px; color: var(--muted); font-weight: 700; }

.goalbar { margin: 10px 0; }
.goalbar .track {
  height: 12px;
  background: var(--surface-2);
  border-radius: 7px;
  overflow: hidden;
}
.goalbar .fill { height: 100%; background: var(--accent); border-radius: 7px; }

.pace {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  margin-top: 10px;
  line-height: 1.5;
}

.demo-caption { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- supporter ---------- */

.supporter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
}

.perks { margin: 1.25rem 0 0; padding-left: 1.25rem; }
.perks li { margin-bottom: 0.5rem; }

.fine-print { color: var(--muted); font-size: 0.92rem; margin-top: 1.25rem; }

/* ---------- faq ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.25em;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::before { content: "–"; }

.faq details p { margin: 0.75rem 0 0.25rem; color: var(--muted); }

/* ---------- footer ---------- */

.footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 36rem) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .lede { font-size: 1.1rem; }
  .supporter { padding: 1.75rem 1.25rem; }
  .now-demo { padding: 1.25rem 1rem 1rem; }
}
