/*
 * SayIt's static /about and /help pages (public/about.html, help.html). The
 * home page (public/index.html) carries its own styles.
 * Plain HTML with no Angular, so search engines and link previews read the
 * words directly. Find tokens copied from src/styles.css; keep in sync.
 * Theme is <html data-theme>, set before paint by each page's inline script.
 */
:root {
  --st-bg: #ffffff;
  --st-raised: #f2f3f6;
  --st-surface: #f2f3f6;
  --st-surface2: #e4e7ed;
  --st-text: #0f1115;
  --st-muted: #5a6170;
  --st-divider: #e4e7ed;
  --st-accent: #2f6bff;
  --st-link: #1f55e0;
  --st-primary: #2f6bff;
  --st-primary-ink: #ffffff;
  --st-tag-bg: #e0f6e6;
  --st-tag-ink: #17703a;
  --st-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --st-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --st-bg: #0c0e13;
  --st-raised: #171a22;
  --st-surface: #171a22;
  --st-surface2: #242936;
  --st-text: #f2f4f8;
  --st-muted: #9aa2b2;
  --st-divider: #242936;
  --st-accent: #3d7bff;
  --st-link: #86aeff;
  --st-primary: #3d7bff;
  --st-tag-bg: #0e2c19;
  --st-tag-ink: #80e2a4;
  color-scheme: dark;
}

.st-page {
  margin: 0;
  background: var(--st-bg);
  color: var(--st-text);
  font: 400 17px/1.6 var(--st-body);
  -webkit-font-smoothing: antialiased;
}

.st {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 3rem;
  color: var(--st-text);
  font: 400 17px/1.6 var(--st-body);
}

.st a {
  color: var(--st-link);
  text-decoration: none;
}

.st a:hover {
  color: var(--st-accent);
}

.st :focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
}

.st-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.st-wordmark {
  font: 700 24px/1 var(--st-heading);
  letter-spacing: -0.04em;
  color: var(--st-text) !important;
  text-decoration: none;
}

.st-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.st-nav__links a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--st-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.st-nav__links a:hover {
  background: var(--st-surface);
}

.st-nav__links a[aria-current="page"] {
  background: var(--st-text);
  color: var(--st-bg);
}

/* Sun/moon switch (theme-toggle.js), the app's round surface button. */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--st-surface);
  color: var(--st-text);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.theme-toggle:hover {
  background: var(--st-surface2);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.st h1,
.st h2 {
  font-family: var(--st-heading);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.st h1 {
  font-size: clamp(34px, 7vw, 48px);
}

.st main > h1:first-child {
  margin-top: 1.5rem;
}

.st h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-top: 2.5rem;
}

.st h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.35rem;
}

.st p {
  margin: 0 0 1rem;
}

.st-lede {
  font-size: 1.2rem;
  color: var(--st-muted);
  max-width: 38rem;
}

.st-card {
  padding: 1.25rem;
  border-radius: 28px;
  background: var(--st-raised);
}

.st-muted {
  color: var(--st-muted);
}

.st-card {
  margin: 1rem 0;
}

.st-card > :last-child {
  margin-bottom: 0;
}

.st-faq details {
  margin-bottom: 6px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--st-surface);
}

.st-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.st-faq details p,
.st-faq details ul {
  margin: 0.6rem 0 0;
  color: var(--st-text);
}

.st-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  color: var(--st-muted);
  font-size: 0.9rem;
}

.st-footer a {
  color: var(--st-muted);
  margin-right: 1rem;
}

