/* Until Done: night, ember, Geist. The same tokens as the iOS app (LockFeature/Theme.swift). */
:root {
  --night: #0b0b0b;
  --surface: #161412;
  --surface-2: #1c1917;
  --ink: #f5f2ed;
  --ink-2: rgba(245, 242, 237, 0.62);
  --ink-3: rgba(245, 242, 237, 0.4);
  --line: rgba(245, 242, 237, 0.1);
  --ember: #ff4f17;
  --amber: #ffb05c;
  --radius: 24px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header and footer */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding-block: 36px 48px; color: var(--ink-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ember); color: var(--night); font-weight: 600; text-decoration: none;
  border: 0; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform 0.12s ease-out;
}
.button:active { transform: scale(0.97); }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Legal and support pages */
.doc { max-width: 720px; margin: 0 auto; padding-top: 32px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
.doc .updated { color: var(--ink-3); font-size: 15px; margin: 0 0 36px; }
.doc .lede { font-size: 19px; color: var(--ink-2); margin-bottom: 36px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 10px; text-wrap: balance; }
.doc h3 { font-size: 17px; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 22px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand img { height: 19px; }
  .nav .hide-sm { display: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
