/* Sift — shared styling for the support and privacy pages.
   Dark-first, with a deliberate light variant. */

:root {
  color-scheme: dark light;

  --bg: oklch(14% 0.012 265);
  --bg-elevated: oklch(18% 0.016 265);
  --border: oklch(30% 0.02 265);
  --text: oklch(96% 0.005 265);
  --text-dim: oklch(72% 0.012 265);
  --text-faint: oklch(56% 0.012 265);

  --accent: oklch(72% 0.16 232);
  --accent-deep: oklch(56% 0.19 262);
  --accent-soft: oklch(72% 0.16 232 / 0.12);

  --text-hero: clamp(2.6rem, 1.4rem + 4.4vw, 4.75rem);
  --text-section: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --text-body: clamp(1rem, 0.96rem + 0.18vw, 1.075rem);

  --space-section: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --measure: 34rem;

  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: oklch(98.5% 0.004 265);
    --bg-elevated: oklch(100% 0 0);
    --border: oklch(90% 0.008 265);
    --text: oklch(21% 0.014 265);
    --text-dim: oklch(44% 0.014 265);
    --text-faint: oklch(58% 0.012 265);
    --accent: oklch(52% 0.17 250);
    --accent-deep: oklch(44% 0.19 262);
    --accent-soft: oklch(52% 0.17 250 / 0.09);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric wash behind the hero, kept off the compositor's critical path. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 18% -8%, oklch(72% 0.16 232 / 0.16), transparent 62%),
    radial-gradient(48rem 30rem at 92% 4%, oklch(56% 0.19 262 / 0.13), transparent 60%);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Header */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

header.site .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 640;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.glyph {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  display: grid;
  place-items: center;
  flex: none;
}

.glyph svg { width: 15px; height: 15px; display: block; }

nav.site {
  display: flex;
  gap: 1.4rem;
  font-size: 0.94rem;
}

nav.site a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

nav.site a:hover,
nav.site a:focus-visible { color: var(--text); }

/* Hero */

.hero { padding-block: var(--space-section) clamp(2rem, 1rem + 3vw, 3.5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent);
  padding: 0.32rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}

h1 {
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 680;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text-dim);
  max-width: var(--measure);
  margin: 0;
  text-wrap: pretty;
}

/* Sections */

main { padding-bottom: var(--space-section); }

section + section { margin-top: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }

h2 {
  font-size: var(--text-section);
  letter-spacing: -0.022em;
  font-weight: 640;
  margin: 0 0 0.75rem;
  scroll-margin-top: 5rem;
}

h3 {
  font-size: 1.03rem;
  font-weight: 620;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 0.9rem + 0.7vw, 1.6rem);
}

.card + .card { margin-top: 0.85rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.85rem;
}

/* The single strongest privacy claim gets its own treatment. */
.claim {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.1rem, 0.9rem + 0.7vw, 1.5rem);
}

.claim strong { font-weight: 650; }

ul.plain { margin: 0; padding-left: 1.15rem; color: var(--text-dim); }
ul.plain li { margin-bottom: 0.45rem; max-width: var(--measure); }
ul.plain li:last-child { margin-bottom: 0; }

dl.faq { margin: 0; }
dl.faq div + div { margin-top: 1.4rem; }
dl.faq dt { font-weight: 620; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
dl.faq dd { margin: 0; color: var(--text-dim); max-width: var(--measure); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: color-mix(in oklab, var(--text) 8%, transparent);
  padding: 0.1em 0.38em;
  border-radius: 5px;
}

.meta { color: var(--text-faint); font-size: 0.9rem; }

/* Footer */

footer.site {
  border-top: 1px solid var(--border);
  padding-block: 2rem 3rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

footer.site .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
}

footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
