/*
  KindBell web — the same tokens the app's Theme.swift defines, so the support
  and privacy pages read as the same product rather than a generic legal page.
  Values are copied from KB in KindBell/Design/Theme.swift; keep them in step.

  No build step: nginx serves these files straight off disk.
*/

:root {
  color-scheme: light dark;

  --paper:      #FBFAF8;
  --surface:    #FFFFFF;
  --surface-2:  #F4F2ED;
  --ink:        #1A1A1F;
  --ink-soft:   #6B6B73;
  --ink-faint:  #A4A3AB;
  --accent:     #2461E0;
  --accent-ink: #1A4DBD;
  --accent-wash:#E7EDFB;
  --hairline:   #ECEAE4;

  --radius-card: 18px;
  --radius-group: 14px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #121214;
    --surface:    #1C1C20;
    --surface-2:  #26262C;
    --ink:        #F4F3F0;
    --ink-soft:   #9A9AA2;
    --ink-faint:  #6A6A72;
    --accent:     #5C92FF;
    --accent-ink: #8FB4FF;
    --accent-wash:#16213B;
    --hairline:   #2A2A30;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header ------------------------------------------------------------------ */

header.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}

.mark { width: 30px; height: 30px; flex: none; }

.wordmark {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

nav.site {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  font-size: 0.9375rem;
}

nav.site a { color: var(--ink-soft); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }

/* Type -------------------------------------------------------------------- */

main { padding: 2.75rem 0 1rem; }

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.6rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin: 1.75rem 0 0.35rem;
}

p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
ul, ol { padding-left: 1.25rem; }

.lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }

strong { font-weight: 650; }

small, .meta { font-size: 0.875rem; color: var(--ink-soft); }

/* Blocks ------------------------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

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

.callout {
  background: var(--accent-wash);
  border: none;
}

.contact {
  display: block;
  font-size: 1.0625rem;
  font-weight: 650;
  margin-top: 0.25rem;
}

/* A definition-style list for "what we collect" — question left, answer right
   on wide screens, stacked on a phone. */

dl.facts { margin: 1.25rem 0; }

dl.facts dt {
  font-weight: 650;
  margin-top: 1.1rem;
}

dl.facts dd {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
}

/* FAQ --------------------------------------------------------------------- */

details.faq {
  border-bottom: 1px solid var(--hairline);
  padding: 0.9rem 0;
}

details.faq:first-of-type { border-top: 1px solid var(--hairline); }

details.faq > summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

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

details.faq > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
}

details.faq[open] > summary::after { content: "\2013"; }

details.faq > :not(summary) { margin-top: 0.65rem; color: var(--ink-soft); }
details.faq > :last-child { margin-bottom: 0.25rem; }

/* Footer ------------------------------------------------------------------ */

footer.site {
  border-top: 1px solid var(--hairline);
  margin-top: 3.5rem;
  padding: 1.75rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

footer.site .wrap {
  display: flex;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  align-items: baseline;
}

footer.site a { color: var(--ink-soft); }
footer.site .spacer { margin-left: auto; }

/* Landing ----------------------------------------------------------------- */

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

.tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 2rem 0 0;
}

@media (max-width: 34rem) {
  .tiles { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  body { font-size: 16px; }
}

a.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
}

a.tile:hover { border-color: var(--accent); color: var(--ink); }
a.tile b { display: block; font-weight: 650; margin-bottom: 0.2rem; }
a.tile span { color: var(--ink-soft); font-size: 0.9375rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
