/* The public pages the API serves (account deletion, help): plain, readable on a phone, light and
   dark. No external fonts or scripts. */

:root {
  --bg: #f6f7fb; --surface: #ffffff; --text: #1d2433; --muted: #5f6a7d; --border: #e3e6ee;
  --primary: #5b5bd6; --on-primary: #ffffff; --danger: #b42318; --danger-soft: #fdecea;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11131a; --surface: #1a1d27; --text: #e8eaf0; --muted: #a3a9b8; --border: #2b2f3c;
          --primary: #8b8bf0; --on-primary: #11131a; --danger: #f97066; --danger-soft: #3a1d1b; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.page.narrow { max-width: 560px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; margin-bottom: 24px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.top .brand { white-space: nowrap; }
.top .brand { margin-bottom: 0; }
.small-btn { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.mark { display: inline-block; width: 34px; height: 34px; border-radius: 9px; vertical-align: middle; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 19px; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 18px 0 6px; }
.lede { color: var(--muted); margin: 0 0 20px; }
.small { font-size: 14px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.card ul, .card ol { padding-left: 20px; margin: 8px 0; }
.card li { margin: 4px 0; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
input[type=email], input[type=password] { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.check input { margin-top: 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; min-height: 44px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.or { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0; }
#google-box .btn { width: 100%; }
.form .btn { width: 100%; }
.error { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 10px; margin: 0; font-size: 14px; }
a { color: var(--primary); }
nav.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
nav.toc a { text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; }
.tip { border-left: 3px solid var(--primary); padding: 4px 0 4px 12px; margin: 10px 0; }
dl { margin: 8px 0; }
dt { font-weight: 650; margin-top: 10px; }
dd { margin: 2px 0 0; color: var(--muted); }

/* The website: home, sample sheets and the policy pages (website.py makes those from docs/). */
a.brand { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.sheets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 0 0 16px; }
.sheets .card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sheets h2, .sheets p { margin: 0; }
.sheets ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.sheets li { margin: 6px 0; }
.sheets li span { display: block; color: var(--muted); }
.sheets .btn { justify-content: center; margin-top: auto; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 32px; }
details ol { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; columns: 2; column-gap: 16px; }
details li { break-inside: avoid; }
details li b { display: inline-block; min-width: 26px; color: var(--muted); font-weight: 600; }
.draft { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; margin: 0 0 16px; font-size: 14px; }
.prose h2 { margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); min-width: 110px; }
th { color: var(--muted); font-weight: 600; }
.top-nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--text); }
.top-nav .btn { color: var(--text); border-radius: 999px; }

/* The footer every page ends with (website.FOOTER): the brand and what it is, three short lists
   of links, and the small print. */
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
footer.site { margin-top: 32px; border-top: 1px solid var(--border); background: var(--bg); }
.foot { display: grid; gap: 28px; padding-block: 36px 24px; }
.foot .about { display: grid; gap: 10px; max-width: 30em; }
.foot .about .brand { margin: 0; }
.foot .about p { color: var(--muted); font-size: 14px; margin: 0; }
.foot .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.foot .cols > div:last-child { grid-column: 1 / -1; }
.foot .cols > div:last-child ul { grid-template-columns: 1fr 1fr; }
.foot h4 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.foot li { margin: 0; }
.foot ul a { color: var(--text); text-decoration: none; }
.foot ul a:hover { color: var(--primary); text-decoration: underline; }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-block: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.foot .legal a { color: var(--muted); text-decoration: none; }
.foot .legal a:hover { color: var(--text); }
@media (min-width: 600px) {
  .foot .cols { grid-template-columns: repeat(3, 1fr); }
  .foot .cols > div:last-child { grid-column: auto; }
  .foot .cols > div:last-child ul { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .foot { grid-template-columns: 1.2fr 2fr; gap: 40px; padding-block: 48px 0; }
  .foot .legal { grid-column: 1 / -1; }
}

/* The page width the parent's pages share, and the store badges they show. The home page has its
   own stylesheet (home.css). */
.page.wide { max-width: 1080px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 9px; background: #000; color: #fff; border: 1px solid #333; border-radius: 8px; padding: 6px 12px 6px 10px; min-height: 44px; text-decoration: none; }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { display: block; line-height: 1.1; }
.store small { display: block; font-size: 10px; opacity: .85; letter-spacing: .02em; }
.store b { font-size: 15px; font-weight: 600; }
.store.soon { background: var(--surface); color: var(--muted); border-color: var(--border); }

/* Signing in is for a computer: on a phone the site points parents to the app, so every Sign in
   link steps aside under 600px, and the few buttons meant only for a phone show there alone. */
@media (max-width: 599px) { .signin { display: none !important; } }
@media (min-width: 600px) { .phone-only { display: none !important; } }
/* The flag in "Made in ... United Kingdom", in every footer. */
.flag { width: 18px; height: 12px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
