/* NoTrack website. Colours and type follow the logo design: warm paper, navy,
   teal and IBM Plex. Fonts are served from this site; nothing loads from
   anywhere else (the Content Security Policy enforces it). */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Variable.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --bg: #f4f3f0;
  --surface: #ffffff;
  --surface-2: #ebe9e4;
  --text: #1d2230;
  --muted: #5b606b;
  --border: #e3e1db;
  --border-strong: #cfcbc2;

  --brand: #1d2a3a;
  --brand-hover: #2c3d52;
  --on-brand: #f4f3f0;
  --accent: #276b5d;
  --accent-mark: #5fb3a0;
  --accent-soft: #e2efea;
  --danger: #b3261e;

  --badge-red: #d93a32;
  --badge-orange: #e8892b;

  --panel: #1d2a3a;        /* hero panel and privacy band: the shield's navy */
  --panel-text: #f4f3f0;
  --panel-muted: #b8c0c9;
  --panel-border: rgba(244, 243, 240, 0.14);
  --toolbar: #e9eaec;
  --omnibox: #ffffff;
  --shadow: 0 30px 60px -30px rgba(29, 42, 58, 0.5);

  /* Layout: the content column grows with the screen; side margins scale. */
  --max: 1240px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --section-space: clamp(48px, 7vw, 104px);
}

@media (min-width: 1600px) {
  :root {
    --max: 1400px;
  }
}

@media (min-width: 2200px) {
  :root {
    --max: 1600px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1217;
    --surface: #171b22;
    --surface-2: #1f242d;
    --text: #eef0ec;
    --muted: #9aa0ab;
    --border: #272c36;
    --border-strong: #3a404c;

    --brand: #eef0ec;
    --brand-hover: #ffffff;
    --on-brand: #1d2a3a;
    --accent: #5fb3a0;
    --accent-soft: #16302a;
    --danger: #f2a49c;

    --panel: #171b22;
    --panel-text: #eef0ec;
    --panel-muted: #9aa0ab;
    --panel-border: #272c36;
    --toolbar: #2b2d33;
    --omnibox: #1f2329;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-sans);
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 1600px) {
  body {
    font-size: 18px;
  }
}

a {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a:not(.button) {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.nav a:not(.button):hover {
  color: var(--text);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--brand);
  color: var(--on-brand);
}

.button.primary:hover {
  background: var(--brand-hover);
}

.button.secondary {
  border-color: var(--border-strong);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--surface);
}

.button.small {
  padding: 8px 15px;
  font-size: 14px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  padding: clamp(16px, 3.5vw, 56px) 0 var(--section-space);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw + 6px, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 34em;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 0.6vw + 13px, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mark);
}

.hero-panel {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 44px clamp(16px, 3vw, 40px) 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
}

.hero-panel img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow);
}

.panel-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--panel-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Sections */

.section {
  padding: calc(var(--section-space) * 0.7) 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.6vw + 12px, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lede {
  max-width: 38em;
  margin: 0 0 32px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card .index {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Badge examples: a browser toolbar with the NoTrack icon */

.toolbars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
}

.toolbar-card {
  margin: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--toolbar);
  border-radius: 12px;
}

.omnibox {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 7px 14px;
  background: var(--omnibox);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omnibox .warning {
  color: var(--danger);
  font-family: var(--font-sans);
  font-weight: 600;
}

.toolbar-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 35px;
  margin-right: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.toolbar-icon .badge {
  position: absolute;
  right: -11px;
  bottom: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
}

.badge.red {
  background: var(--badge-red);
  color: #ffffff;
}

.badge.orange {
  background: var(--badge-orange);
  color: #1d2a3a;
}

.toolbar-card figcaption {
  margin-top: 14px;
  font-size: 16px;
}

/* Privacy band */

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 5vw, 72px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  color: var(--panel-text);
}

.band .eyebrow {
  color: var(--accent-mark);
}

.band h2 {
  margin-bottom: 20px;
}

.band-mark {
  width: clamp(96px, 9vw, 136px);
  height: auto;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px 32px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--panel-muted);
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-mark);
  font-weight: 700;
}

.band .button.secondary {
  border-color: var(--panel-border);
  color: var(--panel-text);
}

.band .button.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* FAQ: heading beside the questions on wide screens */

.faq-layout {
  display: grid;
  gap: 8px;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(48px, 6vw, 112px);
  }

  .faq-intro {
    position: sticky;
    top: 32px;
  }
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* Final call to action */

.cta {
  padding: var(--section-space) 0 calc(var(--section-space) * 1.1);
  text-align: center;
}

.cta img {
  margin: 0 auto 22px;
}

.cta .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.cta .actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .brand {
  font-size: 18px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

/* Privacy policy page: summary cards, then contents beside the text */

.doc-header {
  padding: clamp(16px, 3vw, 40px) 0 clamp(24px, 3vw, 40px);
}

.doc-header h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 3vw + 14px, 60px);
}

.doc-header .meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.promise {
  padding: 22px;
  background: var(--accent-soft);
  border-radius: 16px;
}

.promise h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0;
}

.promise p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.doc-layout {
  display: grid;
  gap: 32px;
  padding-bottom: var(--section-space);
}

.toc {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.toc-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
}

.toc li {
  padding: 3px 0; /* padding, not margin, so both columns start level */
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 600px) and (max-width: 999px) {
  .toc ol {
    columns: 2;
    column-gap: 32px;
  }

  .toc li {
    break-inside: avoid;
  }
}

@media (min-width: 1000px) {
  .doc-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(48px, 5vw, 96px);
  }

  .toc {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

.doc {
  max-width: 860px;
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: clamp(22px, 0.8vw + 16px, 27px);
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.doc code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Tablets and small laptops: stack the hero and the privacy band */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }

  .band {
    grid-template-columns: minmax(0, 1fr);
  }

  .band .band-mark {
    display: none;
  }
}

@media (max-width: 680px) {
  .nav a:not(.button) {
    display: none;
  }

  .card,
  .toolbar-card {
    padding: 18px;
  }
}

/* Phones */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .site-header .wrap {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    font-size: 23px;
  }

  .site-header .brand img {
    width: 38px;
    height: 44px;
  }

  .button.small {
    padding: 7px 12px;
    font-size: 13px;
  }

  .actions .button {
    flex: 1 1 100%;
  }

  .note {
    align-items: flex-start;
    font-size: 12px;
  }

  .note::before {
    margin-top: 5px;
    flex: none;
  }

  .hero-panel {
    padding-top: 40px;
    border-radius: 18px;
  }

  .band {
    border-radius: 18px;
  }

  .faq summary {
    font-size: 16px;
  }
}
