/* Shared styles for the app support and privacy pages (sift/…, bolt/…).
   Design tokens are copied from index.html and blog/index.html; keep them in sync. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0d0f;
  --bg-card:   #0f1315;
  --bg-line:   rgba(255,255,255,0.07);
  --fg:        #eaeef1;
  --fg-muted:  #6e8490;
  --accent:    #00c4cc;
  --accent-bg: rgba(0,196,204,0.08);
  --font-display: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --max:       1080px;
  --gutter:    clamp(1.5rem, 5vw, 4rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem var(--gutter);
  background: rgba(10,13,15,0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-line);
}
/* Logo and nav links are 44px tall so they meet the minimum tap target. */
.nav-logo,
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  padding: 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-muted);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--fg); }
/* Current page: brighter and underlined, not color alone. */
.nav-links a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

/* ─── PAGE ─── */
main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 9rem var(--gutter) 5rem;
  width: 100%;
}
.page-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.page-hed {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 2.5rem;
}
.page-hed .grad {
  background: linear-gradient(135deg, var(--accent) 0%, #4dd3d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc {
  border: 1px solid var(--bg-line);
  border-radius: 3px;
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  max-width: 720px;
}
.doc h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin: 2rem 0 0.6rem;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1.25rem 0 0.35rem;
}
.doc p, .doc li { color: var(--fg-muted); font-size: 1rem; }
.doc p + p { margin-top: 0.85rem; }
.doc ol, .doc ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.doc li + li { margin-top: 0.35rem; }
.doc strong { color: var(--fg); font-weight: 500; }
.doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,196,204,0.4);
  transition: border-color 0.18s, color 0.18s;
}
.doc a:hover { border-color: var(--accent); color: var(--fg); }
/* --fg-muted at full opacity is about 4.8:1 on --bg-card (WCAG AA). */
.updated { margin-top: 2rem; font-size: 0.85rem; color: var(--fg-muted); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--bg-line);
  padding: 2rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.foot-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
/* About 5:1 on --bg (WCAG AA). */
.foot-note { font-size: 0.75rem; color: var(--fg-muted); }

@media (max-width: 760px) {
  nav { padding: 0.25rem 1.25rem; }
  main { padding: 7rem 1.25rem 3rem; }
  .doc { padding: 2rem 1.5rem; }
  footer { flex-direction: column; gap: 0.4rem; text-align: center; }
}
@media (max-width: 460px) {
  .nav-links { gap: 1rem; }
  .doc { padding: 1.5rem 1.1rem; }
}
