/* Scrub marketing + legal site — single shared stylesheet.
   Static, dependency-free, system fonts (no web-font fetch). Brand palette is
   the app icon's warm charcoal + off-white, with one restrained indigo accent. */

:root {
  --ink: #1C1917;        /* warm charcoal — primary text / dark sections */
  --ink-soft: #3A3531;
  --cream: #F5F0EB;      /* off-white — app icon bars, dark-section text */
  --paper: #FFFFFF;
  --muted: #6B6560;      /* secondary text on light */
  --muted-dark: #B7AFA6; /* secondary text on dark */
  --line: #E7E1D9;       /* hairline borders on light */
  --line-dark: #36302B;  /* hairline borders on dark */
  --accent: #4F46E5;     /* indigo — links + CTAs, used sparingly */
  --accent-soft: #EEF0FE;
  --good: #1F9D6B;       /* "on-device / not collected" affirmations */
  --radius: 14px;
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.logo-mark { display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---- Buttons / pills ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1px solid var(--ink);
}
.btn:hover { text-decoration: none; background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--disabled { opacity: 0.6; cursor: default; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 6px 13px; border-radius: 999px;
}
.pill--good { background: rgba(31,157,107,0.12); color: var(--good); }
.pill--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- Hero ------------------------------------------------------------ */
.hero { background: var(--ink); color: var(--cream); padding: clamp(56px, 9vw, 104px) 0; }
.hero .eyebrow { color: var(--muted-dark); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 16px; }
.hero h1 { color: var(--cream); max-width: 16ch; }
.hero .lede { color: var(--muted-dark); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 56ch; margin-top: 8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero .btn:hover { background: #fff; }
.hero .pill--good { background: rgba(31,157,107,0.18); color: #5fe3ab; }

/* The redaction-bar motif: sample line with sensitive spans burned out. */
.redaction-demo { margin-top: 44px; font-size: clamp(1rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--cream); display: grid; gap: 10px; }
.redaction-demo .row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.redacted { position: relative; border-radius: 4px; padding: 2px 8px; background: #000; color: transparent; user-select: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.redacted--blur { background: transparent; color: var(--cream); filter: blur(5px); }
.label-mini { font-size: 0.8rem; color: var(--muted-dark); font-weight: 700; }

/* ---- Section scaffolding -------------------------------------------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--tint { background: var(--cream); }
.section-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---- Feature grid ---------------------------------------------------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section--tint .card { background: var(--paper); }
.card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--cream); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---- Steps ----------------------------------------------------------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.step .num { counter-increment: step; font-weight: 800; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; }
.step .num::before { content: "0" counter(step) " "; }

/* ---- Privacy band ---------------------------------------------------- */
.band { background: var(--ink); color: var(--cream); border-radius: 22px; padding: clamp(28px, 5vw, 52px); }
.band h2 { color: var(--cream); }
.band p { color: var(--muted-dark); max-width: 60ch; }
.band ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.band li { display: flex; gap: 10px; align-items: flex-start; color: var(--cream); }
.band li svg { flex: 0 0 auto; margin-top: 3px; color: #5fe3ab; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-soft); font-weight: 600; }

/* ---- Long-form prose (privacy / support) ---------------------------- */
.doc { padding: clamp(40px, 7vw, 72px) 0; }
.doc-wrap { max-width: 760px; margin: 0 auto; }
.doc h1 { margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.doc h2 { margin-top: 2em; font-size: 1.4rem; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.callout { background: var(--accent-soft); border: 1px solid #d9ddfb; border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }
.faq dt { font-weight: 700; margin-top: 1.4em; }
.faq dd { margin: 0.3em 0 0; color: var(--ink-soft); }

hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 600px) {
  .nav-links { gap: 16px; }
  .nav-links .nav-extra { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
