/* comepray.org: shared styles for the landing, privacy and terms pages.
   Denim colors from apps/web/src/app.css. The logo is the two-tone flame (deploy/landing-src/logo-light.svg), inline in
   each page and painted with --flame-1 (outer tongue) and --flame-2 (inner tongue), so it follows light and dark.
   Fonts are the app's own Bree Serif and Mulish, self-hosted in /fonts/ (copied from apps/web/node_modules). */
@font-face {
  font-family: "Bree Serif";
  src: url("/fonts/bree-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/fonts/mulish-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #eef2f6;
  --fg: #1f2a38;
  --surface: #fafcfe;
  --muted: #576476;
  --border: #d2dbe6;
  --primary: #2e4d7c;
  --primary-fg: #ffffff;
  --brand: #2e4d7c;
  --thread: #c8a27a;
  --flame-1: #2e4d7c;
  --flame-2: #7a9cc4;
  --shadow-color: rgb(30 50 90 / 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f131a;
    --fg: #e3e9f1;
    --surface: #171d26;
    --muted: #a7b3c4;
    --border: #2e3846;
    --primary: #a0c1ef;
    --primary-fg: #0c1a2e;
    --brand: #f3f6fa;
    --thread: #8f7556;
    --flame-1: #a0c1ef;
    --flame-2: #dbe7f8;
    --shadow-color: rgb(0 0 0 / 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  padding: 16px;
  background: var(--bg);
  color: var(--fg);
  font-family: "Mulish", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: "Bree Serif", ui-serif, Georgia, serif; font-weight: 400; }
a { color: var(--primary); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* A stitched panel, as in the app: surface, 20px radius, soft shadow and a dashed seam 5px inside the edge. */
main {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 1px 2px var(--shadow-color), 0 4px 14px var(--shadow-color);
}
main::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px dashed color-mix(in srgb, var(--thread) 55%, transparent);
  border-radius: 16px;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  text-decoration: none;
}
.brand svg { flex: none; }
.flame-1 { fill: var(--flame-1); }
.flame-2 { fill: var(--flame-2); }

footer {
  font-size: 0.8125rem;
  color: var(--muted);
}
footer a { color: inherit; }

/* Landing page: one centred card. */
body.landing { display: grid; place-items: center; }
.landing main {
  max-width: 28rem;
  padding: 40px 28px 32px;
  text-align: center;
}
.landing .brand { display: flex; flex-direction: column; gap: 14px; margin: 0 0 12px; font-size: 2.25rem; line-height: 1.1; }
.landing h1 { margin: 0; font-size: inherit; }
.soon {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-fg);
  background: var(--primary);
  border-radius: 999px;
}
.tagline {
  margin: 0 0 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}
a.button {
  display: block;
  padding: 11px 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-fg);
  background: var(--primary);
  border-radius: 12px;
  outline: 1.5px dashed color-mix(in srgb, var(--primary-fg) 70%, transparent);
  outline-offset: -4px;
  text-decoration: none;
}
a.button:hover { filter: brightness(0.92); }
a.button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.landing footer { margin-top: 24px; }

/* Privacy and terms: a long readable document. */
.doc main {
  max-width: 44rem;
  padding: 28px 28px 32px;
}
.doc .brand { margin: 0 0 24px; font-size: 1.25rem; }
.doc h1 { margin: 0 0 4px; font-size: 2rem; line-height: 1.2; }
.effective {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--muted);
}
.doc h2 { margin: 32px 0 8px; font-size: 1.3125rem; line-height: 1.3; }
.doc h3 { margin: 20px 0 4px; font-size: 1.0625rem; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0 0 4px; }
/* Store badges: the official files from the app build (/store-badges/, apps/web/public/), unchanged and 40px high,
   with a quarter of their height as clear space; the trademark lines go under them. */
.doc .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 14px; }
.badges img { display: block; height: 40px; width: auto; }
.credits { font-size: 0.8125rem; color: var(--muted); }
.doc footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1.5px dashed color-mix(in srgb, var(--thread) 60%, transparent);
  text-align: center;
}
