/* Shared stylesheet for every app's doc pages (privacy / support / FAQ).
   Tokens mirror the home page's inline <style> in index.html exactly — light on bare :root,
   dark defined twice: once for system mode, once for an explicit choice. */

:root{
  --bg:#ffffff;
  --bg-soft:#f6f7fa;
  --surface:#ffffff;
  --line:#e3e6ed;
  --text:#131722;
  --muted:#5f6779;
  --heading:#1b2340;
  --orange:#e8912f;
  --badge-bg:#fdf1e1;
  --callout-bg:#f6f7fa;
  --shadow:rgba(19,23,34,.09);
  --seg-bg:#eef0f4;
  --seg-active:#ffffff;
  --radius:16px;
  --maxw:1180px;
  --docw:760px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0f1216;
    --bg-soft:#161a20;
    --surface:#171b21;
    --line:#272c35;
    --text:#eceff4;
    --muted:#98a0b0;
    --heading:#dce3f5;
    --orange:#f0a24e;
    --badge-bg:#3a2a14;
    --callout-bg:#161a20;
    --shadow:rgba(0,0,0,.5);
    --seg-bg:#1d222a;
    --seg-active:#2b323d;
  }
}
:root[data-theme="dark"]{
  --bg:#0f1216;
  --bg-soft:#161a20;
  --surface:#171b21;
  --line:#272c35;
  --text:#eceff4;
  --muted:#98a0b0;
  --heading:#dce3f5;
  --orange:#f0a24e;
  --badge-bg:#3a2a14;
  --callout-bg:#161a20;
  --shadow:rgba(0,0,0,.5);
  --seg-bg:#1d222a;
  --seg-active:#2b323d;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--text);
  font:400 16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 24px}
.vh{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

/* ---------- nav (same shell as the home page) ---------- */
.nav{border-bottom:1px solid var(--line);background:var(--bg);position:sticky;top:0;z-index:10}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:76px;gap:16px}
.brand{display:flex;align-items:center;text-decoration:none;color:inherit;flex:none}
.brand img{display:block;width:136px;height:auto;aspect-ratio:629/280}
.brand .logo-dark{display:none}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .brand .logo-light{display:none}
  :root:not([data-theme="light"]) .brand .logo-dark{display:block}
}
:root[data-theme="dark"] .brand .logo-light{display:none}
:root[data-theme="dark"] .brand .logo-dark{display:block}
:root[data-theme="light"] .brand .logo-light{display:block}
:root[data-theme="light"] .brand .logo-dark{display:none}
.nav-right{display:flex;align-items:center;gap:14px}
.nav-links{display:flex;gap:30px;font-size:15px}
.nav-links a{color:var(--muted);text-decoration:none}
.nav-links a:hover{color:var(--text)}
.nav-links a[aria-current="page"]{color:var(--text);font-weight:600}
.nav-toggle{
  display:none;background:none;border:1px solid var(--line);border-radius:9px;
  padding:9px 13px;font:inherit;font-size:14px;cursor:pointer;color:var(--text);
}
.mode{display:flex;gap:2px;background:var(--seg-bg);border-radius:10px;padding:3px;flex:none}
.mode button{
  display:flex;align-items:center;justify-content:center;
  width:32px;height:28px;padding:0;border:0;border-radius:8px;
  background:none;color:var(--muted);cursor:pointer;
}
.mode button:hover{color:var(--text)}
.mode button[aria-pressed="true"]{background:var(--seg-active);color:var(--text);box-shadow:0 1px 2px var(--shadow)}
.mode svg{width:16px;height:16px;display:block}
@media(max-width:720px){
  .nav-toggle{display:block}
  .nav-links{
    display:none;position:absolute;top:76px;left:0;right:0;
    flex-direction:column;gap:0;background:var(--bg);border-bottom:1px solid var(--line);
  }
  .nav-links.open{display:flex}
  .nav-links a{padding:16px 24px;border-top:1px solid var(--line)}
}
@media(max-width:430px){
  .brand img{width:120px}
  .nav-right{gap:8px}
}

/* ---------- app header strip ---------- */
.app-head{background:var(--bg-soft);border-bottom:1px solid var(--line);padding:44px 0 38px}
.app-head-inner{display:flex;align-items:flex-start;gap:20px;max-width:var(--docw);margin:0 auto}
.app-head img{width:64px;height:64px;border-radius:15px;flex:none;box-shadow:0 6px 16px rgba(0,0,0,.16)}
/* Stand-in for an app icon that is being held back until launch. Same 64px box
   as the real thing, so swapping one in later does not move the header. */
.app-head-mark{
  width:64px;height:64px;border-radius:15px;flex:none;box-shadow:0 6px 16px rgba(0,0,0,.16);
  background:var(--surface);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
}
.app-head-mark img{width:32px;height:32px;border-radius:0;box-shadow:none;opacity:.5}
.eyebrow{
  margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--orange);
}
.app-head h1{font-size:clamp(26px,4.4vw,36px);line-height:1.15;margin:0;letter-spacing:-.025em;color:var(--heading)}
.updated{margin:8px 0 0;color:var(--muted);font-size:14px}

/* ---------- App Store link ----------
   Same pill as the home page's .store. Ink is the brand navy in BOTH themes,
   not white: on --orange (#e8912f light / #f0a24e dark) white lands near 2.3:1,
   navy at ~6.4:1, so the label stays legible without a second colour token. */
.store{
  display:inline-flex;align-items:center;gap:7px;
  font-size:14px;font-weight:600;line-height:1;text-decoration:none;
  color:#1b2340;background:var(--orange);
  border-radius:9px;padding:10px 16px;
  transition:filter .15s,transform .15s;
}
.store:hover{filter:brightness(1.07);transform:translateY(-1px);color:#1b2340}
.store:focus-visible{outline:2px solid var(--heading);outline-offset:2px}
.store svg{width:15px;height:15px;display:block;fill:currentColor}
/* .doc a sets underline + --heading colour; the pill is a button, not prose. */
.doc .store{text-decoration:none}
.store-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0 0}
.store-row .note{color:var(--muted);font-size:13.5px}

/* ---------- doc body ---------- */
.doc{max-width:var(--docw);margin:0 auto;padding:48px 0 72px}
.doc .lede{font-size:18px;color:var(--muted);margin:0 0 32px}
.doc h2{font-size:21px;margin:38px 0 12px;letter-spacing:-.015em;color:var(--heading)}
.doc h3{font-size:16.5px;margin:28px 0 8px;color:var(--heading)}
.doc p{margin:0 0 14px}
.doc ul{margin:0 0 16px;padding-left:22px}
.doc li{margin-bottom:7px}
.doc a{color:var(--heading);text-decoration:underline;text-underline-offset:2px}
.doc a:hover{color:var(--orange)}

.callout{
  background:var(--callout-bg);border:1px solid var(--line);border-left:3px solid var(--orange);
  border-radius:10px;padding:16px 18px;margin:0 0 26px;
}
.callout p{margin:0 0 8px}
.callout p:last-child{margin:0}

/* Doc-to-doc links at the foot of each page */
.doc-nav{
  display:flex;gap:12px;flex-wrap:wrap;
  border-top:1px solid var(--line);margin-top:44px;padding-top:24px;
}
.doc-nav a{
  border:1px solid var(--line);border-radius:10px;padding:9px 15px;font-size:14px;
  text-decoration:none;color:var(--text);background:var(--surface);
}
.doc-nav a:hover{border-color:var(--orange);color:var(--orange)}

/* ---------- app hub cards (apps/<app>/index.html) ---------- */
.hub-lede{max-width:var(--docw);margin:0 auto;padding:44px 0 0;color:var(--muted);font-size:18px}
.hub-lede + .hub{padding-top:26px}
.hub{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:var(--docw);margin:0 auto;padding:48px 0 72px}
@media(max-width:720px){.hub{grid-template-columns:1fr}}
.hub a{
  display:block;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);
  padding:22px;text-decoration:none;color:inherit;transition:box-shadow .2s,transform .2s;
}
.hub a:hover{box-shadow:0 12px 28px var(--shadow);transform:translateY(-2px)}
.hub h2{font-size:17px;margin:0 0 6px;letter-spacing:-.01em;color:var(--heading)}
.hub p{margin:0;color:var(--muted);font-size:14.5px}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line);padding:44px 0}
.foot{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:center;
      color:var(--muted);font-size:14px}
.foot a{color:var(--heading);font-weight:600;text-decoration:none}
.foot a:hover{text-decoration:underline}
