/* SafeContext site. System fonts only, no third-party requests. */
:root {
  --bg: #fcfcfb;
  --surface: #f3f3f0;
  --text: #16171a;
  --muted: #62646b;
  --line: #e4e4df;
  --accent: #3355e0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(51, 85, 224, .09);
  --radius: 14px;
  --wrap: 1040px;
  --prose: 680px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --surface: #17181c;
    --text: #ececef;
    --muted: #9a9ca5;
    --line: #26282e;
    --accent: #8ea3ff;
    --accent-ink: #0c0f1d;
    --accent-soft: rgba(142, 163, 255, .12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
b, strong { font-weight: 600; }
code { font: .86em/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface);
       border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; overflow-wrap: anywhere; }
svg { display: block; max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
      clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
                   flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
         font-weight: 650; letter-spacing: -.01em; font-size: 17px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand:hover { text-decoration: none; }
.site-head nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--text); }
.site-head nav a.nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.site-head nav a.nav-cta:hover,
.site-head nav a.nav-cta:focus-visible {
  color: var(--accent-ink);
  text-decoration: none;
  filter: brightness(1.08);
}

/* Type */
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.12; margin: 0; font-weight: 700; }
h1 { font-size: clamp(38px, 6.4vw, 68px); letter-spacing: -.035em; line-height: 1.04; }
h1.long { font-size: clamp(34px, 5vw, 56px); max-width: 14em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 19px; letter-spacing: -.01em; line-height: 1.3; font-weight: 650; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--muted); margin: 22px 0 0; max-width: 38em; }
.follow { margin: 18px 0 0; max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Hero */
.hero { padding: clamp(64px, 12vw, 136px) 0 clamp(56px, 9vw, 104px); }
.hero h1 { max-width: 13em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink);
          font-weight: 600; font-size: 17px; text-decoration: none; padding: 14px 24px; border-radius: 999px;
          transition: filter .15s ease, transform .15s ease; }
.button svg { width: 18px; height: 18px; }
.button:hover { filter: brightness(1.08); text-decoration: none; color: var(--accent-ink); }
.button:active { transform: translateY(1px); }
.text-link { font-weight: 600; text-decoration: none; font-size: 17px; }
.text-link:hover { text-decoration: underline; }
.req { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 + p, .section-intro { margin: 14px 0 0; color: var(--muted); max-width: 40em; font-size: 18px; }
.section > .wrap > h2 + .diagram { margin-top: 28px; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
h2 + .benefits { margin-top: 40px; }
.benefits li { margin: 0; }
.benefits .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
                  display: grid; place-items: center; margin-bottom: 18px; }
.benefits .icon svg { width: 22px; height: 22px; }
.benefits p { margin: 8px 0 0; color: var(--muted); }

/* Google data note */
.data-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 64px; align-items: start; }
.data-note p { margin: 0 0 14px; }
.data-note p:last-child { margin-bottom: 0; }

/* How it works: steps */
.page-head { padding: clamp(56px, 9vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-head .lead { margin-top: 18px; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
                    background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.steps.stack { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 12px; }
.steps.stack li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.steps.stack li::before { margin: 2px 0 0; }
.steps.stack h3, .steps.stack p { grid-column: 2; }
.steps.stack h3 { margin: 5px 0 0; }
.steps.stack p { margin: 0; }

.diagram { margin: 0 0 8px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.diagram figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.diagram .tall { display: none; }
.d-box { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.d-mac { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 5; }
.d-relay { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; }
.d-t { fill: var(--text); font: 600 15px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.d-s { fill: var(--muted); font: 13px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.d-a { fill: var(--accent); font: 600 13px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.d-line { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.d-head { fill: var(--muted); }
.d-dot { fill: var(--accent); }

/* Two-column lists */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin-top: 36px; }
.cols h3 { margin-bottom: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 22px; margin: 0 0 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .75; }
.ticks.minus li::before { width: 10px; height: 2px; border-radius: 1px; top: .78em; left: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 15px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.example { margin-top: 24px; font-size: 15px; color: var(--muted); }

.facts { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts li > b { font-weight: 650; }
.facts li > span { color: var(--muted); }
.facts + .follow { margin-top: 22px; }

.next { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 40px; }

/* Argument, quote, sources */
.pullquote {
  margin: 28px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
  letter-spacing: -.022em;
  font-weight: 650;
}
.pullquote p { margin: 0; }
.callout {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
}
.callout p { margin: 0; }
.prose > ul:not(.ticks):not(.chips):not(.sources) { margin: 16px 0 0; padding-left: 1.2em; }
.prose > ul:not(.ticks):not(.chips):not(.sources) > li { margin: 0 0 10px; }
.prose h3 { margin-top: 28px; }
.sources { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.sources a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: var(--bg);
}
.sources a:hover { border-color: var(--accent); text-decoration: none; }
.sources .src { color: var(--muted); font-size: 13px; white-space: nowrap; }
.source-line { margin: 18px 0 0; max-width: 46em; font-size: 13px; line-height: 1.55; color: var(--muted); }
.source-line a { color: var(--muted); text-decoration-color: var(--line); }
.source-line a:hover { color: var(--text); }

/* Sample Privacy Report */
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .9fr);
  gap: 28px 56px;
  align-items: start;
}
.report {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.report-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
}
.report-meta { font-size: 12px; color: var(--muted); }
.report h3 { font-size: 18px; }
.report-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.report-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.report-stats div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 10px 8px;
}
.report-stats dt { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.report-stats dd {
  margin: 2px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.report-label {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.report-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.report-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.report-rows b { font-weight: 650; }
.report-foot { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Long-form pages (privacy, 404) */
.doc { padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 23px; margin: 48px 0 12px; letter-spacing: -.015em; }
.doc p, .doc li { line-height: 1.7; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 10px; }
.doc li ul { margin-top: 10px; }
.doc .muted:first-of-type { margin-top: 12px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.stack { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .benefits, .cols, .data-note, .report-layout { grid-template-columns: minmax(0, 1fr); }
  .benefits { gap: 36px; }
  .facts li { grid-template-columns: minmax(0, 1fr); }
  .diagram .wide { display: none; }
  .diagram .tall { display: block; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps.stack { gap: 0; }
  .site-head nav { gap: 8px 16px; }
  .cta { gap: 18px 24px; }
  .sources a { grid-template-columns: minmax(0, 1fr); }
  .sources .src { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.logo-bg { fill: var(--accent); }
.logo-fg { fill: var(--accent-ink); }
h1, h2 { text-wrap: balance; }
h1 .line { display: block; }

/* Rotating word in the hero headline (CSS only; the page runs no scripts) */
.rotator { display: inline-grid; color: var(--accent); }
.rotator > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; animation: rotate-word 10s infinite both; }
.rotator > span:nth-child(2) { animation-delay: 2.5s; }
.rotator > span:nth-child(3) { animation-delay: 5s; }
.rotator > span:nth-child(4) { animation-delay: 7.5s; }
@keyframes rotate-word {
  0% { opacity: 0; transform: translateY(.3em); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-.3em); }
}
@media (prefers-reduced-motion: reduce) {
  .rotator > span { animation: none; }
  .rotator > span:first-child { opacity: 1; }
}
.soon { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.soon span { display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
             color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; margin-right: 6px; }

/* Connector pages in this repo. Scoped so they do not restyle the guide's source lines. */
.button-meta { font-size: .85em; font-weight: 500; opacity: .7; padding-left: 10px; border-left: 1px solid currentColor; white-space: nowrap; }
.page-head .sources { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.page-head .sources li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.page-head .sources b { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 8.5em; }
.page-head .sources span { font-size: 15px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
         gap: 28px 56px; counter-reset: rule; }
.rules li { counter-increment: rule; position: relative; padding-left: 46px; margin: 0; }
.rules li::before { content: counter(rule); position: absolute; left: 0; top: -2px; display: grid; place-items: center;
                    width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
                    font-weight: 700; font-size: 14px; }
.rules b { display: block; font-weight: 650; }
.rules span { display: block; margin-top: 4px; color: var(--muted); font-size: 16px; }
.cols p { margin: 0; }
.cols + .facts { margin-top: 32px; }
.facts li > b code { font-weight: 500; }
.code { margin: 36px 0 0; min-width: 0; }
.code figcaption { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.code pre { margin: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
            overflow-x: auto; font: 14px/1.6 ui-monospace, "SF Mono", Menlo, monospace; tab-size: 4; }
.code pre code { font: inherit; background: none; border: 0; padding: 0; overflow-wrap: normal; white-space: pre; }
.code + .cols { margin-top: 44px; }
.sub { margin: 44px 0 14px; }
.checks { columns: 2; column-gap: 56px; }
.checks li { break-inside: avoid; }
.next .button { justify-content: center; }
@media (max-width: 900px) {
  .steps.three { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .rules { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .checks { columns: 1; }
}
@media (max-width: 520px) {
  .code pre { padding: 16px; font-size: 13px; }
  .page-head .sources b { min-width: 0; width: 100%; }
}
.doc .facts { padding-left: 0; }
.doc .facts li { margin: 0; }
