/* SSL Checker website: plain CSS, no build step. Colors and fonts are the extension's own. */

@font-face {
  font-family: 'Atkinson Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+2000-206F, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F;
}

:root {
  color-scheme: light dark;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --ink: #16233a;
  --ink-2: #485870;
  --ink-3: #66748a;
  --line: #dde3ec;
  --line-strong: #c3ccd9;
  --brand: #1f56aa;
  --on-brand: #ffffff;
  /* The solid offset shadow under the screenshots, as in the store images. */
  --block: #dde6f3;
  --ok: #1d7a4c;
  --ok-wash: #e6f3eb;
  --danger: #b42318;
  --danger-wash: #fbebea;
  --focus: #2f6fd0;
  --font: 'Atkinson Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Atkinson Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  --gutter: 20px;
  --offset: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1726;
    --surface: #152036;
    --ink: #e5ebf4;
    --ink-2: #aab6c8;
    --ink-3: #8a99ae;
    --line: #26334b;
    --line-strong: #34435f;
    --brand: #9bbdf4;
    --on-brand: #0f1726;
    --block: #0a111e;
    --ok: #5cc28e;
    --ok-wash: #12302a;
    --danger: #f2877d;
    --danger-wash: #3a1d22;
    --focus: #9bbdf4;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --offset: 16px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

code,
pre {
  font-family: var(--mono);
}

.nowrap {
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.skip:focus {
  top: 12px;
}

/* Header ------------------------------------------------------------------ */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 720;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .lang {
  padding: 3px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

@media (max-width: 759px) {
  .site-nav .optional {
    display: none;
  }
}

/* Hero -------------------------------------------------------------------- */

.hero {
  display: grid;
  gap: 48px;
  padding-top: 28px;
  padding-bottom: 80px;
}

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
    gap: 52px;
    padding-top: 64px;
    padding-bottom: 120px;
  }
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 15ch;
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  border-color: var(--ink-3);
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

/* Until the store listing is live: not a link, and does not look like one. */
.button.soon {
  border-style: dashed;
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
}

.note {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
}

/* The fingerprint comparison ---------------------------------------------- */

.compare {
  max-width: 520px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--offset) var(--offset) 0 var(--block);
  overflow: hidden;
}

.network {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
}

.seg label {
  position: relative;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
}

.seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg label:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
  font-weight: 650;
}

.seg label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.verdict {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-left: 4px solid var(--ok);
  background: var(--ok-wash);
}

.shield {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--ok);
}

.verdict-title {
  margin: 0;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.35;
}

.verdict-body {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.witnesses {
  margin: 0;
  padding: 4px 20px;
  list-style: none;
}

.witness {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--line-strong);
}

.witness:first-child {
  border-top: 0;
}

.who {
  font-weight: 700;
}

.chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ok-wash);
  color: var(--ok);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.print {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bars {
  flex: 0 1 316px;
  min-width: 0;
  height: auto;
  color: var(--ink);
}

.bars rect {
  fill: currentColor;
}

.hex {
  color: var(--ink-2);
  font: 15px var(--mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.meta {
  grid-column: 1 / -1;
  margin-top: -2px;
  color: var(--ink-3);
  font-size: 14px;
}

.compare figcaption {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}

/* "Your browser" bars are drawn at full height and scaled to each fingerprint, so
   that they can turn into the other one. */
.you .bars rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(var(--a));
}

@media (prefers-reduced-motion: no-preference) {
  .you .bars rect {
    transition: transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i) * 12ms);
  }
}

.is-bad {
  display: none;
}

.compare:has(input[value='inspected']:checked) .is-good {
  display: none;
}

.compare:has(input[value='inspected']:checked) .is-bad {
  display: inline;
}

.compare:has(input[value='inspected']:checked) svg.is-bad {
  display: block;
}

.compare:has(input[value='inspected']:checked) .verdict {
  border-left-color: var(--danger);
  background: var(--danger-wash);
}

.compare:has(input[value='inspected']:checked) .shield,
.compare:has(input[value='inspected']:checked) .witness:not(.you) .bars {
  color: var(--danger);
}

.compare:has(input[value='inspected']:checked) .chip {
  background: var(--danger-wash);
  color: var(--danger);
}

.compare:has(input[value='inspected']:checked) .you .bars rect {
  transform: scaleY(var(--b));
}

/* Features ---------------------------------------------------------------- */

.feature {
  display: grid;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 72px;
}

@media (min-width: 980px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 96px;
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.feature h2,
.privacy h2 {
  margin: 0 0 18px;
  max-width: 18ch;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
  font-weight: 740;
  letter-spacing: -0.015em;
}

.feature h3 {
  margin: 36px 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 720;
}

.feature p,
.feature ul {
  max-width: 34em;
  color: var(--ink-2);
}

.feature p {
  margin: 0 0 16px;
}

.feature ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.feature li {
  margin: 8px 0;
}

.feature li::marker {
  color: var(--ink-3);
}

.feature strong {
  color: var(--ink);
  font-weight: 700;
}

.shot {
  justify-self: center;
  margin: 0 var(--offset) var(--offset) 0;
}

.shot picture {
  display: block;
  max-width: 400px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--offset) var(--offset) 0 var(--block);
  overflow: hidden;
}

.shot.wide picture {
  max-width: 480px;
}

/* Privacy ----------------------------------------------------------------- */

.privacy {
  display: grid;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 104px;
}

@media (min-width: 980px) {
  .privacy {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: start;
    gap: 96px;
    padding-top: 96px;
  }
}

.checks {
  margin: 0 0 24px;
  padding: 0;
  max-width: 34em;
  list-style: none;
  color: var(--ink-2);
}

.checks li {
  position: relative;
  margin: 12px 0;
  padding-left: 32px;
}

/* A small shield, the extension's own sign for "nothing to worry about". */
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 20px;
  background: var(--ok);
  clip-path: polygon(50% 0, 100% 16%, 100% 52%, 50% 100%, 0 52%, 0 16%);
}

.request {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.request figcaption {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}

.request pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Privacy policy pages ---------------------------------------------------- */

.prose {
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 96px;
}

.prose h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.prose .updated {
  margin: 0 0 36px;
  color: var(--ink-3);
}

.prose p {
  margin: 0 0 18px;
  color: var(--ink-2);
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose code {
  font-size: 0.92em;
}

/* Footer ------------------------------------------------------------------ */

.site-foot {
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}

.foot-grid {
  display: grid;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 48px;
}

@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 64px;
  }
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-brand strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.foot-brand p {
  margin: 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .foot-links {
    justify-content: flex-end;
  }
}

.foot-links a {
  color: var(--ink-2);
}

.copy {
  margin: 0;
  color: var(--ink-3);
}

@media (min-width: 760px) {
  .copy {
    grid-column: 1 / -1;
  }
}
