/* Shared by every page: Porcelain, the app's default theme. Warm porcelain by day, graphite by
   night, one orange. Links use the deeper orange so they reach 4.5:1 in both appearances. */
:root {
  --bg: #E9E7E2; --bg-2: #F1EFEA; --card: #F6F4F0; --fg: #23231F; --muted: #5C5A55; --line: #D6D3CB;
  --accent: #E8590C; --link: #A63D08; --fill: #C84C0A; --fill-2: #B04208;
  --lcd: #C9D3BE; --lcd-ink: #2B3626; --ink-mark: #2D3526;
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 12px 32px rgba(40, 30, 20, .10);
  --shadow-lg: 0 2px 6px rgba(40, 30, 20, .08), 0 40px 80px rgba(40, 30, 20, .18);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E2125; --bg-2: #23262B; --card: #2A2D33; --fg: #ECEEF1; --muted: #A5AAB2; --line: #363B43;
    --link: #FF995C; --lcd: #1B382B; --lcd-ink: #7DF5B2; --ink-mark: #8CF7C1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link) }
img { max-width: 100%; height: auto; display: block }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px }
@media (min-width: 760px) { .wrap { padding: 0 32px } }

/* Header: glass that thickens once the page scrolls. */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
header.top.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent) }
header.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); text-decoration: none; margin-right: auto; letter-spacing: -.01em }
.brand img { width: 30px; height: 30px; border-radius: 7px }
header.top nav { display: flex; gap: 20px; align-items: center }
header.top nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted) }
header.top nav a:hover { color: var(--fg) }
header.top nav a.pill { color: #fff; background: var(--fill); padding: .45rem .95rem; border-radius: 999px }
@media (max-width: 560px) { header.top nav a.hide-sm { display: none } }

/* Documents: Privacy, Terms, Support. */
main.doc { max-width: 46rem; margin: 0 auto; padding: 2.5rem 16px 4rem }
main.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; letter-spacing: -.025em; margin: .2em 0 }
main.doc h2 { font-size: 1.2rem; margin: 2em 0 .4em; letter-spacing: -.01em }
.meta { color: var(--muted); font-size: .9rem }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; margin: 1rem 0 }
details { border-top: 1px solid var(--line); padding: .8rem 0 }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem }
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; color: var(--accent); font-weight: 700; transition: transform .3s var(--ease) }
details[open] summary::after { transform: rotate(45deg) }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 2rem 0 3rem; margin-top: 2rem }
footer.site .row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: .8rem }
footer.site .row a { color: var(--muted); text-decoration: none; font-weight: 600 }
footer.site .row a:hover { color: var(--fg) }
footer.site .brand { margin-right: 0 }
