/* Bloom landing and legal pages. Tokens mirror Bloom-App/src/theme/palettes.ts (Blush by day, Night by system setting).
   System fonts only: no third party sees a visit. */
:root {
  --bg: #fff8f4;
  --surface: #ffffff;
  --tint: #fdefec;
  --border: rgba(74, 45, 58, 0.12);
  --text: #3a2630;
  --text-2: #6f5a65;
  --accent: #bf4f79;
  --accent-text: #a83b64;
  --on-accent: #ffffff;
  --baby: #6a55b0;
  --honey: #8f5d0e;
  --honey-soft: #fbefd9;
  --wrap: 720px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1218;
    --surface: #251a22;
    --tint: #2f2230;
    --border: rgba(255, 255, 255, 0.12);
    --text: #f7ecef;
    --text-2: #c9b6be;
    --accent: #f08faa;
    --accent-text: #f08faa;
    --on-accent: #2a1220;
    --baby: #b9a6f0;
    --honey: #e8b65a;
    --honey-soft: #3d2f14;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
header.top {
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 28px;
  height: 28px;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 1.2rem 0 0.6rem;
}
h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.4rem;
}
p,
li {
  color: var(--text-2);
}
p {
  margin: 0.6rem 0;
}
ul {
  padding-left: 1.2rem;
  margin: 0.6rem 0;
}
li {
  margin: 0.3rem 0;
}
a {
  color: var(--accent-text);
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 34rem;
}
.hero {
  background: linear-gradient(135deg, var(--tint), var(--bg));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 36px 24px;
  margin: 8px 0 28px;
}
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--baby);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
}
.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 18px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
}
.card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--text);
}
.card p {
  margin: 0;
}
/* Public home and support pages. Classes only (the pages' CSP blocks inline styles). */
.stack {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
}
.stack .card p {
  margin: 6px 0 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}
.actions a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.actions a:hover {
  background: var(--tint);
}
.draft {
  background: var(--honey-soft);
  color: var(--honey);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 8px 0 20px;
  font-weight: 600;
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 22px 0 40px;
  font-size: 0.9rem;
  color: var(--text-2);
}
footer a {
  margin-right: 14px;
}
.updated {
  color: var(--text-2);
  font-size: 0.9rem;
}

/* Legal pages (privacy, terms): long-form reading helpers. Classes only (the pages' CSP blocks inline styles). */
main h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin: 1.5rem 0 0.2rem;
}
main h2,
main h3 {
  scroll-margin-top: 16px;
}
strong {
  color: var(--text);
}
/* Bracketed placeholders the owner or lawyer must fill in, kept visible on purpose. */
.ph {
  background: var(--honey-soft);
  color: var(--honey);
  border-radius: 6px;
  padding: 0 5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout > :first-child {
  margin-top: 0;
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout h2 {
  margin-top: 0;
}
.toc {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px 18px;
  margin: 20px 0 8px;
}
.toc strong {
  display: block;
  margin-bottom: 4px;
}
.toc ol {
  margin: 0;
  padding-left: 1.3rem;
  columns: 2 220px;
  column-gap: 28px;
}
.toc li {
  margin: 0.15rem 0;
  break-inside: avoid;
}
.note {
  font-size: 0.92rem;
}
@media print {
  .toc {
    display: none;
  }
}
