/*
 * The visual system for every page that is not the landing page.
 *
 * index.html stays self-contained on purpose -- it is the highest-traffic page, and an
 * inlined stylesheet means one fewer render-blocking request on the page a stranger
 * decides everything from. These three do not carry that pressure, so they share one
 * file instead of each carrying its own slightly-different copy of the same rules, which
 * is what they were doing before: three files, three near-identical inline <style>
 * blocks, already drifted (different border colours for the same line, a --dim that
 * wasn't quite the same grey). Shared here, so the next edit lands once.
 *
 * Token values are hand-copied from index.html's :root rather than shared by import, for
 * the same request-count reason above. If the palette changes there, it has to change
 * here too -- there is no build step in this project to enforce that automatically.
 *
 * No dark-mode media queries. The pages they replace had them; the app and the landing
 * page do not. theme.ts settled that argument already -- a relationship app someone
 * opens at breakfast reads better as deliberately light than as adapting to the system --
 * and three legal/support pages quietly answering to a different rule than the rest of
 * the product is its own small inconsistency. Committing these to the same choice.
 */

:root {
  --ink: #15171F;
  --dim: #565C6E;
  --faint: #717685;
  --line: #E2E5EF;
  --card: #FFFFFF;
  --bg: #F6F7FB;
  --accent: #3A75C4;
  --accent-soft: #E9F0FC;
  --good: #2B8454;
  --mid: #A3690F;
  --low: #C8456F;
  --shadow: 0 1px 2px rgba(21,23,31,.04), 0 10px 30px rgba(21,23,31,.06);
  --shadow-lg: 0 2px 6px rgba(21,23,31,.05), 0 28px 60px rgba(21,23,31,.11);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); }

.wrap { position: relative; max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }

/* ---------- compact hero, shared by every non-landing page ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3.5rem 0 2.75rem;
  background: radial-gradient(50rem 28rem at 50% -12rem, var(--accent-soft) 0%, rgba(233,240,252,0) 70%);
}
@media (max-width: 720px) { .hero { padding: 2.75rem 0 2rem; } }

/* Same heart path as the app icon and the landing page's own watermark -- a second,
   slightly-different heart drawn for this file would read as a mistake, not branding. */
.hero-mark {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(16rem, 48vw, 30rem);
  transform: translate(-50%, -42%);
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.lockup-link { display: inline-block; text-decoration: none; color: inherit; }
.lockup-link:hover .lockup { opacity: .8; }
.lockup {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  margin-bottom: 1.75rem; transition: opacity .15s ease;
}
.lockup .name { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -.6px; line-height: 1; }
.lockup .tag {
  font-size: .68rem; font-weight: 600; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--faint);
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -1.2px; font-weight: 800; line-height: 1.05;
  margin: 0 auto .55rem; max-width: 24ch;
}
.hero .byline { color: var(--faint); font-size: .93rem; margin: 0; }

/* ---------- the reading column ---------- */
.doc { max-width: 42rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.doc > p:first-child { margin-top: 0; }
.doc h2 {
  font-size: 1.32rem; font-weight: 700; letter-spacing: -.3px;
  margin: 2.75rem 0 .9rem; color: var(--ink);
}
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 1rem 0; }
.doc ul, .doc ol { padding-left: 1.35rem; margin: 1rem 0; }
.doc li { margin: .45rem 0; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc code {
  background: var(--accent-soft); color: var(--accent);
  padding: .12em .4em; border-radius: 5px; font-size: .92em;
}

.doc table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 700; }
.doc td { color: var(--dim); }
.doc td strong { color: var(--ink); }

.doc dt { font-weight: 700; margin-top: 1.3rem; color: var(--ink); }
.doc dd { margin: .3rem 0 0; color: var(--dim); }

.doc .muted { color: var(--faint); font-size: .92rem; }

/* One box system, three weights of emphasis -- a neutral aside, a quiet policy note, and
   an urgent one. Same shape throughout so the reader learns it once. */
.callout {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem 1.5rem; margin: 1.85rem 0; box-shadow: var(--shadow);
}
.callout h2 { margin-top: 0; }
.callout-note { border-left: 4px solid var(--accent); }
.callout-crisis { border: 2px solid var(--low); }

/* ---------- footer, identical to the landing page's ---------- */
footer { border-top: 1px solid var(--line); padding: 3rem 0 4.5rem; color: var(--faint); font-size: .93rem; text-align: center; }
footer a { color: var(--dim); text-decoration: none; margin: 0 .85rem; }
footer a:hover { color: var(--accent); }
footer p { max-width: 42rem; margin: 1.5rem auto 0; }
