/* The website's own pages (privacy, terms, support, account deletion): the same garden as the app (src/styles.css)
   and the landing page (welcome/index.html). Fonts are our own copies (fonts/fonts.css), nothing from Google Fonts. */
@import url('/fonts/fonts.css');

:root {
  --ink: #3a2d57;
  --ink-soft: #5d5079;
  --ink-faint: #8e80ae;
  --iris: #6a4bb0;
  --iris-dark: #4e3590;
  --petal: #b9a0ea;
  --lilac: #e9dffa;
  --ground: #f8f4fc;
  --paper: #fffdf8;
  --beard: #f2c94c;
  --leaf-text: #3f7351;
  --blush: #f6dce5;
  --sage: #ddeee2;
  --butter: #fff3c9;
  --line: #e0d6f0;
  --r-a: 22px 16px 24px 14px / 14px 24px 16px 22px;
  --r-b: 16px 20px 14px 22px / 20px 14px 22px 16px;
  --r-c: 26px 20px 28px 18px / 18px 28px 20px 26px;
  --r-d: 20px 24px 18px 26px / 24px 18px 26px 20px;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--iris); text-underline-offset: 2px; }
a:hover { color: var(--iris-dark); }
:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hand { font-family: var(--hand); font-weight: 700; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--paper); padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; }

.btn {
  min-height: 48px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--paper); color: var(--ink);
  font-size: 15px; font-weight: 800; text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: var(--r-a);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); }
.btn:active { transform: translate(2px, 2px); box-shadow: none !important; }
.btn--primary { background: var(--iris); color: #fff; box-shadow: 3px 4px 0 var(--petal); }
.btn--primary:hover { color: #fff; }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 14px; border-width: 2px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(248, 244, 252, 0.92); backdrop-filter: blur(8px); border-bottom: 2px dashed var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.brand svg { flex-shrink: 0; }
.brand b { font-family: var(--hand); font-size: 36px; line-height: 1; white-space: nowrap; }
.brand b span { font-size: 0.6em; color: var(--iris); }
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a { color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--iris); }
.top .btn { white-space: nowrap; flex-shrink: 0; }

/* the page */
.page { max-width: 780px; margin: 0 auto; padding: 40px 20px 72px; position: relative; }
.page-head { position: relative; margin-bottom: 26px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--iris); text-transform: uppercase; margin: 0 0 6px; }
h1 { font-family: var(--hand); font-weight: 700; font-size: clamp(46px, 8vw, 64px); line-height: 0.95; margin: 0; }
.lede { font-size: 18px; color: var(--ink-soft); font-weight: 600; margin: 14px 0 0; max-width: 620px; }
.updated { display: inline-block; margin-top: 14px; padding: 2px 12px; border: 2px solid var(--ink); border-radius: var(--r-b); background: var(--lilac); font-size: 13px; font-weight: 800; }
.deco { position: absolute; pointer-events: none; }

.doc { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-d); padding: 8px 28px 28px; }
.doc h2 { font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 1.05; margin: 30px 0 8px; scroll-margin-top: 84px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc li::marker { color: var(--iris); font-weight: 800; }
.doc code { background: var(--lilac); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; overflow-wrap: anywhere; }
.doc strong { font-weight: 800; }
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 2px dashed var(--line); }
.doc th { font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.doc .table-wrap { overflow-x: auto; }

.summary { background: var(--lilac); border: 2.5px solid var(--ink); border-radius: var(--r-c); box-shadow: 4px 5px 0 var(--petal); padding: 18px 22px 8px; margin-bottom: 24px; }
.summary h2 { font-family: var(--hand); font-size: 30px; margin: 0 0 8px; }
.summary ul { margin: 0 0 10px; padding-left: 20px; }
.summary li { margin-bottom: 8px; }

.toc { border: 2px dashed var(--ink-faint); border-radius: var(--r-c); padding: 14px 20px 6px; margin: 22px 0 6px; }
.toc b { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.toc ol { columns: 2; column-gap: 28px; padding-left: 20px; margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.toc li { break-inside: avoid; margin-bottom: 6px; }

.steps { list-style: none; counter-reset: step; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; }
.steps li::before {
  content: counter(step); flex-shrink: 0; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 10px 8px 11px 7px; background: var(--beard); font-weight: 800; font-size: 15px;
}

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 18px; }
.cards .card { background: var(--ground); border: 2px solid var(--ink); border-radius: var(--r-b); padding: 14px 16px; }
.cards .card b { display: block; margin-bottom: 4px; }
.cards .card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

details { background: var(--ground); border: 2px solid var(--ink); border-radius: var(--r-d); padding: 0 18px; margin-bottom: 10px; }
details[open] { box-shadow: 4px 5px 0 var(--petal); background: var(--paper); }
summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 800; font-size: 16px; display: flex; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; margin-left: auto; font-size: 24px; font-weight: 700; color: var(--iris); transition: transform 0.15s; }
details[open] summary::after { transform: rotate(45deg); }
details > *:not(summary) { margin: 0 0 14px; color: var(--ink-soft); }

.contact { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 26px; padding: 18px 22px; background: var(--lilac); border: 2.5px solid var(--ink); border-radius: var(--r-c); box-shadow: 4px 5px 0 var(--petal); }
.contact p { margin: 0; font-weight: 700; }

footer { border-top: 2px dashed var(--ink-faint); padding: 26px 0 40px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
footer a { font-weight: 800; }
footer .grow { flex: 1; min-width: 180px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .top .wrap { gap: 12px; }
  .page { padding-top: 28px; }
  .doc { padding: 4px 18px 22px; }
  .toc ol { columns: 1; }
  .cards { grid-template-columns: 1fr; }
}
/* On a phone the name and the button share one line: the name gives way, the button stays whole. */
@media (max-width: 430px) {
  .brand svg, .brand img { display: none; }
  .brand b { font-size: clamp(25px, 8vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
@media print {
  .top, footer, .toc, .contact .btn { display: none; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}
