/*
 * The landing page, in the product's own design system.
 *
 * Two-ink risograph: one black plate, one fluorescent plate, deliberately
 * misregistered. The ghost offsets are the signature — the same 3px slip the
 * extension prints on its share cards — so the site and the product read as one
 * thing rather than as a product and its brochure.
 *
 * Self-contained on purpose. No CDN, no Google Fonts, no analytics: an
 * extension that ships no remote code should not have a homepage that does.
 */

@font-face {
  font-family: 'Archivo Black';
  src: url('fonts/ArchivoBlack.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --paper: #e9e7e2;
  --paper-sunk: #dedbd4;
  --card: #f3f1ed;
  --ink: #1a1a1e;
  --ink-muted: #5a5a63;
  --rule: #1a1a1e;
  --pink: #ff3b8d;
  --blue: #2b44ff;
  --yellow: #ffc400;
  /* Small text needs contrast the flat inks do not have on this stock. */
  --pink-text: #b3005a;
  --blue-text: #2b44ff;
  --display: 'Archivo Black', system-ui, sans-serif;
  --text: 'IBM Plex Sans', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #16161a;
    --paper-sunk: #101013;
    --card: #1f1f25;
    --ink: #ece9e3;
    --ink-muted: #9a9aa4;
    --rule: #ece9e3;
    --pink-text: #ff86b8;
    --blue-text: #93a2ff;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background-color: var(--paper);
  /* The riso grain, procedural so there is no texture asset to load. */
  background-image: radial-gradient(var(--rule) 0.5px, transparent 0.5px);
  background-size: 14px 14px;
  background-position: 0 0;
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

a {
  color: var(--blue-text);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--pink-text);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* --- the misregistration ghost, used on every display line ---------------
 *
 * The ghost is a real, aria-hidden duplicate rather than a ::before carrying
 * attr(). A pseudo-element is not laid out in the same box as the text it
 * copies, so on any heading that wrapped, the ghost broke at a different word
 * and a stray pink line appeared under the real one. Absolute inset over the
 * same container guarantees identical wrapping at every width, and a real
 * element is the only way to mark the duplicate as decoration for a screen
 * reader — which matters more than usual for a tool that audits accessibility.
 */
.ghosted {
  position: relative;
  display: block;
  font-family: var(--display);
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.ghosted .ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: var(--pink);
  transform: translate(0.055em, 0.055em);
  z-index: 0;
  pointer-events: none;
}
.ghosted .ink {
  position: relative;
  z-index: 1;
}

/* --- masthead ------------------------------------------------------------ */
header.masthead {
  border-bottom: 3px solid var(--rule);
  background: var(--paper);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
}
.masthead nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.masthead nav a {
  color: var(--ink-muted);
  text-decoration: none;
}
.masthead nav a:hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .masthead nav a:not(.btn) {
    display: none;
  }
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 var(--rule);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--rule);
  color: var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--rule);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--rule);
}
.btn-primary:hover {
  color: #fff;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
  box-shadow: 3px 3px 0 0 var(--rule);
}

/* --- hero ---------------------------------------------------------------- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 3px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-text);
  margin: 0 0 14px;
}
h1 {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 82px);
}
.hero p.lede {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 46ch;
  margin: 22px 0 0;
}
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero .note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* The quote that carries the whole pitch: bad line, good line. */
.compare {
  border: 3px solid var(--rule);
  background: var(--card);
  box-shadow: 8px 8px 0 0 var(--pink);
}
.compare div {
  padding: 18px 20px;
}
.compare div + div {
  border-top: 3px solid var(--rule);
}
.compare .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.compare .bad .label {
  color: var(--ink-muted);
}
.compare .good .label {
  color: var(--pink-text);
}
.compare p {
  margin: 0;
  font-size: 16px;
}
.compare .bad p {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* --- section furniture --------------------------------------------------- */
section {
  padding: 68px 0;
  border-bottom: 3px solid var(--rule);
}
h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.4vw, 46px);
}
.section-lede {
  margin: 0 0 36px;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 17px;
}

/* --- the split: measured vs opinion -------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.plate {
  border: 3px solid var(--rule);
  background: var(--card);
  padding: 24px;
}
.plate.measured {
  box-shadow: 8px 8px 0 0 var(--blue);
}
.plate.opinion {
  box-shadow: 8px 8px 0 0 var(--pink);
}
.plate h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 22px;
}
.plate .who {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px;
}
.plate ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.plate li {
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  font-weight: 600;
}
.plate .weight {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 3px solid var(--rule);
  font-size: 14px;
  color: var(--ink-muted);
}
.plate .weight strong {
  color: var(--ink);
  font-size: 28px;
  font-family: var(--display);
  display: block;
  line-height: 1.1;
}

/* --- features ------------------------------------------------------------ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  border-top: 3px solid var(--rule);
  padding-top: 16px;
}
.feature .n {
  font-family: var(--display);
  font-size: 13px;
  color: var(--pink-text);
  letter-spacing: 0.08em;
}
.feature h3 {
  margin: 6px 0 6px;
  font-size: 19px;
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

/* --- shots --------------------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .shots {
    grid-template-columns: 1fr;
  }
}
figure {
  margin: 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--rule);
  background: var(--card);
}
figure.ghost-blue img {
  box-shadow: 8px 8px 0 0 var(--blue);
}
figure.ghost-pink img {
  box-shadow: 8px 8px 0 0 var(--pink);
}
figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}
figcaption b {
  color: var(--ink);
}
.stack {
  display: grid;
  gap: 28px;
}

/* --- privacy table ------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border: 2px solid var(--rule);
  vertical-align: top;
}
thead th {
  background: var(--card);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
td.yes {
  color: var(--pink-text);
  font-weight: 600;
}
td.no {
  color: var(--blue-text);
  font-weight: 600;
}

/* --- install ------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  max-width: 70ch;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 22px;
  color: var(--pink-text);
}
.step p {
  margin: 0;
}
code,
kbd,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}
pre {
  border: 2px solid var(--rule);
  background: var(--card);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 12px 0 0;
}
code.inline {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1px 5px;
}

/* --- footer -------------------------------------------------------------- */
footer {
  padding: 42px 0 56px;
  font-size: 14px;
  color: var(--ink-muted);
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* --- the policy page ----------------------------------------------------- */
.policy {
  padding: 56px 0 72px;
  border-bottom: none;
}
.policy .body {
  max-width: 68ch;
}
.policy h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin-top: 44px;
  padding-top: 18px;
  border-top: 3px solid var(--rule);
}
.policy h3 {
  margin: 28px 0 6px;
  font-size: 18px;
}
.policy p,
.policy li {
  font-size: 16px;
}
.policy ul {
  padding-left: 20px;
}
.policy li {
  margin: 6px 0;
}
.policy .updated {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.callout {
  border: 3px solid var(--rule);
  background: var(--card);
  box-shadow: 6px 6px 0 0 var(--blue);
  padding: 18px 20px;
  margin: 26px 0;
}
.callout p:first-child {
  margin-top: 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
