/* FamBoard's website: the same fonts and colors as the app (client/src/index.css), light and dark. Plain CSS, no build,
   nothing newer than Safari 15 (parents open it on old iPads too). */
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka-600.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito-600.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito-800.woff') format('woff'); font-weight: 800; font-display: swap; }

:root {
  --bg: #F5F3EF;
  --surface: #FFFFFF;
  --surface-alt: #FAF9F7;
  --ink: #1C1C28;
  --ink-2: #4A4A5A;
  --edge: #C9BFAE;
  --on-ink: #FFFFFF;
  --accent: #6D28D9;        /* links: 7:1 on white */
  --sun: #FDE68A;
  --sun-on: #5B3A00;
  --good: #0F6B3A;
  --bad: #9F1239;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130F;
    --surface: #221E19;
    --surface-alt: #2A251F;
    --ink: #F3EEE6;
    --ink-2: #CFC6B8;
    --edge: #0B0907;
    --on-ink: #16130F;
    --accent: #C4B5FD;
    --sun: #4A3A12;
    --sun-on: #FDE68A;
    --good: #86EFAC;
    --bad: #FDA4AF;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font-body); font-weight: 600; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
header.top .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; color: var(--ink); text-decoration: none; }
header.top .brand img { width: 40px; height: 40px; }
header.top nav { margin-left: auto; display: flex; gap: 16px; font-weight: 800; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px 0 48px; }
.hero h1 { font-size: 52px; }
.hero p.lead { font-size: 21px; color: var(--ink-2); margin: 16px 0 24px; }
.hero .shot { border-radius: 28px; box-shadow: 0 6px 0 var(--edge); overflow: hidden; max-width: 340px; justify-self: center; }

.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sun); color: var(--sun-on); font-weight: 800; font-size: 15px; margin-bottom: 14px; }

form.waitlist { display: flex; gap: 10px; flex-wrap: wrap; }
form.waitlist input { flex: 1 1 240px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 18px; }
form.waitlist button, .button { min-height: 52px; padding: 0 26px; border-radius: 999px; border: none; background: var(--ink); color: var(--on-ink); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #000; text-decoration: none; display: inline-flex; align-items: center; }
form.waitlist button:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
form.waitlist button[disabled] { opacity: 0.6; }
.form-note { margin-top: 10px; font-size: 16px; color: var(--ink-2); min-height: 1.5em; }
.form-note.ok { color: var(--good); font-weight: 800; }
.form-note.bad { color: var(--bad); font-weight: 800; }

section.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 48px; }
.card { background: var(--surface); border-radius: 28px; padding: 22px; }
.card h3 { font-size: 24px; margin: 12px 0 6px; }
.card p { color: var(--ink-2); }
.card .emoji { font-size: 36px; line-height: 1; }

section.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 48px; }
section.showcase figure { background: var(--surface); border-radius: 28px; padding: 14px; }
section.showcase img { border-radius: 18px; }
section.showcase figcaption { padding: 12px 6px 4px; color: var(--ink-2); }

.promise { background: var(--surface); border-radius: 28px; padding: 28px; margin-bottom: 48px; }
.promise h2 { font-size: 32px; margin-bottom: 12px; }
.promise ul { padding-left: 22px; color: var(--ink-2); }
.promise li { margin: 6px 0; }

footer.bottom { padding: 28px 0 40px; color: var(--ink-2); font-size: 15px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Policy pages */
article.policy { background: var(--surface); border-radius: 28px; padding: 28px; margin: 12px 0 40px; }
article.policy h1 { font-size: 40px; margin-bottom: 6px; }
article.policy h2 { font-size: 26px; margin: 28px 0 8px; }
article.policy p, article.policy li { color: var(--ink-2); margin: 8px 0; }
article.policy ul { padding-left: 22px; }
article.policy .updated { color: var(--ink-2); font-size: 15px; }
.draft { background: var(--sun); color: var(--sun-on); border-radius: 18px; padding: 12px 16px; margin: 16px 0; font-weight: 800; }
table.who { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
table.who th, table.who td { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--surface-alt); vertical-align: top; color: var(--ink-2); }
table.who th { color: var(--ink); }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .hero h1 { font-size: 38px; }
  section.features, section.showcase { grid-template-columns: minmax(0, 1fr); }
  header.top nav { gap: 12px; font-size: 15px; }
  table.who { font-size: 14px; }
  article.policy { padding: 20px; }
}
