:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #eef3fa;
  --text: #0f1b2d;
  --muted: #475569;
  --border: #d6dfeb;
  --input-border: #7b8aa0;
  --error: #b42318;
  --primary: #1557d6;
  --primary-hover: #0f47b3;
  --on-primary: #ffffff;
  --accent: #0b7a54;
  --notice-bg: #fff8e8;
  --notice-border: #e9cf94;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 6%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2c;
    --surface-alt: #0e1627;
    --text: #e6edf7;
    --muted: #a3b0c4;
    --border: #25324b;
    --input-border: #5b6b86;
    --error: #ff8a80;
    --primary: #6ea0ff;
    --primary-hover: #8db4ff;
    --on-primary: #0b1220;
    --accent: #4cc79a;
    --notice-bg: #1d1a10;
    --notice-border: #4a3f1f;
    --shadow: none;
    color-scheme: dark;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

svg {
  display: block;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary-hover);
}

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

h1,
h2,
h3 {
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.container {
  width: min(100% - 2rem, 1080px);
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, 760px);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* Keep jump-link targets clear of the sticky header. */
section[id] {
  scroll-margin-top: 5.5rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 64px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-mark .mark-bg {
  fill: var(--primary);
}

.brand-mark .mark-fg {
  fill: var(--on-primary);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--text);
  text-decoration: underline;
}

.nav-list a.button,
.nav-list a.button:hover {
  color: var(--on-primary);
  text-decoration: none;
}

/* On phones the header keeps just the logo and the Add to Chrome button. */
@media (max-width: 640px) {
  .site-header .nav-list li:not(.nav-cta) {
    display: none;
  }
}

/* Hero */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: var(--bg);
  background: radial-gradient(1200px 420px at 50% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%), var(--bg);
}

.hero-inner {
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.lede {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}

.qualifier {
  max-width: 620px;
  margin: 1.75rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.qualifier strong {
  color: var(--text);
}

/* Product preview in the hero */

.mockup {
  max-width: 620px;
  margin: 2.5rem auto 0;
}

.mockup-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-address {
  flex: 1;
  overflow: hidden;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}

.mockup .brand-mark {
  width: 20px;
  height: 20px;
}

.mockup-body {
  position: relative;
  min-height: 250px;
  padding: 1.25rem;
}

.mockup-page {
  display: grid;
  gap: 0.6rem;
  max-width: 50%;
}

.mockup-line {
  height: 10px;
  border-radius: 6px;
  background: var(--surface-alt);
}

.mockup-line.short {
  width: 60%;
}

.mockup-block {
  height: 90px;
  border-radius: 10px;
  background: var(--surface-alt);
}

.mockup-popup {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: min(270px, 46%);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgb(15 27 45 / 16%);
}

.mockup-popup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.mockup-status {
  margin-left: auto;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 0.75rem;
}

.mockup-count {
  margin: 0.75rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.mockup-count strong {
  display: block;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.1;
}

.mockup-list {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  list-style: none;
}

.mockup-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-top: 1px solid var(--border);
}

.mockup-list li::after {
  content: "Blocked";
  color: var(--accent);
  font-weight: 600;
}

.mockup figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .mockup-page {
    display: none;
  }

  .mockup-body {
    min-height: 0;
  }

  .mockup-popup {
    position: static;
    width: auto;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

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

.button-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

.button-ghost:hover {
  border-color: var(--input-border);
  color: var(--text);
}

.button-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.button-large {
  padding: 1rem 2rem;
  font-size: 1.15rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

/* A button with its fine print directly underneath, e.g. renewal terms. */
.button-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 20rem;
}

.button-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.button-row:has(.button-stack) {
  align-items: flex-start;
}

@media (max-width: 520px) {
  .button-large {
    padding-inline: 1.25rem;
  }

  .button-row .button {
    width: 100%;
  }

  .button-stack {
    width: 100%;
    max-width: none;
  }
}

.button:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* Sections */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}

.section-lede {
  max-width: 680px;
  margin: 0 0 2rem;
  color: var(--muted);
}

.cards,
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}

.card,
.feature,
.plan {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card p {
  margin: 0 0 0.75rem;
}

.card .source {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface-alt);
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pricing */

.plan {
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border: 2px solid var(--primary);
}

.price {
  margin: 0.25rem 0 1rem;
}

.amount {
  font-size: 2.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.checklist {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li + li {
  margin-top: 0.5rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.plan .button {
  margin-top: auto;
}

.centered > h2,
.centered > .section-lede {
  margin-inline: auto;
  text-align: center;
}

/* Pricing as a timeline: trial first, then the choice on the day after it ends. */

.timeline-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.timeline-step h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.timeline-step .checklist li + li {
  margin-top: 1rem;
}

.timeline-divider {
  margin: 0.75rem 0 2rem;
  border: 0;
  border-top: 1px solid var(--border);
}

.timeline-note {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.timeline-cta {
  width: 100%;
  margin-top: 0.75rem;
}

@media (max-width: 520px) {
  .timeline-card {
    padding: 2rem 1.25rem;
  }
}

/* FAQ */

details {
  padding: 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

details + details {
  margin-top: 0.75rem;
}

summary {
  padding: 1rem 0;
  font-weight: 650;
  cursor: pointer;
}

summary::marker {
  color: var(--primary);
}

details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

/* Text pages (privacy policy, no-JavaScript confirmation) */

.prose {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.intro {
  color: var(--muted);
  font-size: 1.2rem;
}

.prose .card-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.prose .cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  margin: 2rem 0;
}

/* Pin animation on the welcome page: a 4-second loop. Coordinates assume the 240px-wide box. */

.pin-demo {
  position: relative;
  width: 240px;
  height: 140px;
  margin: 0.75rem 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.pin-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.pin-address {
  flex: 1;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
}

.pin-icon,
.pin-puzzle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.pin-icon .brand-mark {
  width: 20px;
  height: 20px;
}

.pin-puzzle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.pin-menu {
  position: absolute;
  top: 46px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 170px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgb(15 27 45 / 14%);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 20px;
}

.pin-menu .brand-mark {
  width: 18px;
  height: 18px;
}

.pin-pin {
  width: 18px;
  height: 18px;
  margin-left: auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.pin-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  fill: var(--text);
  stroke: var(--surface);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transform-origin: 2px 1.5px;
}

/* Scale the whole demo on very narrow screens; zoom keeps the animation coordinates lined up. */
@media (max-width: 360px) {
  .pin-demo {
    zoom: 0.8;
  }
}

.card .pin-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .pin-cursor {
    animation: pin-cursor 4s ease-in-out infinite;
  }

  .pin-puzzle {
    animation: pin-puzzle 4s ease-in-out infinite;
  }

  .pin-menu {
    animation: pin-menu 4s ease-in-out infinite;
  }

  .pin-pin {
    animation: pin-pin 4s ease-in-out infinite;
  }

  .pin-icon {
    animation: pin-icon 4s ease-in-out infinite;
  }
}

/* With reduced motion, the demo shows its end state: menu open, TraceBlocker pinned. */
@media (prefers-reduced-motion: reduce) {
  .pin-pin {
    fill: var(--primary);
    stroke: var(--primary);
  }

  .pin-cursor {
    transform: translate(211px, 62px);
  }
}

@keyframes pin-cursor {
  0% {
    opacity: 0;
    transform: translate(40px, 110px);
  }
  6% {
    opacity: 1;
    transform: translate(40px, 110px);
  }
  24% {
    transform: translate(218px, 18px);
  }
  27% {
    transform: translate(218px, 18px) scale(0.8);
  }
  30% {
    transform: translate(218px, 18px);
  }
  50% {
    transform: translate(211px, 62px);
  }
  53% {
    transform: translate(211px, 62px) scale(0.8);
  }
  56%,
  88% {
    opacity: 1;
    transform: translate(211px, 62px);
  }
  96%,
  100% {
    opacity: 0;
    transform: translate(211px, 62px);
  }
}

@keyframes pin-puzzle {
  0%,
  25% {
    background: transparent;
  }
  28%,
  64% {
    background: var(--border);
  }
  70%,
  100% {
    background: transparent;
  }
}

@keyframes pin-menu {
  0%,
  28% {
    opacity: 0;
    transform: translateY(-4px);
  }
  31%,
  64% {
    opacity: 1;
    transform: none;
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes pin-pin {
  0%,
  53% {
    fill: none;
    stroke: var(--muted);
  }
  54%,
  100% {
    fill: var(--primary);
    stroke: var(--primary);
  }
}

@keyframes pin-icon {
  0%,
  54% {
    opacity: 0;
    transform: scale(0.6);
  }
  60%,
  90% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: none;
  }
}

/* Email offer on the welcome page */

.offer {
  margin: 0 0 2rem;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.field-row input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.field-row input::placeholder {
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.offer-form.is-done .field-row {
  display: none;
}

@media (max-width: 520px) {
  .field-row .button {
    width: 100%;
  }
}

/* Uninstall survey */

.survey fieldset {
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
}

.survey legend {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.choice + .choice {
  margin-top: 0.5rem;
}

.choice input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--primary);
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.survey textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.form-status {
  min-height: 1.6em;
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.form-status:empty {
  min-height: 0;
  margin: 0;
}

.form-status.is-error {
  color: var(--error);
}

.survey.is-done > :not(.form-status, .rescue) {
  display: none;
}

.rescue p {
  margin: -0.5rem 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--notice-border);
  border-radius: 10px;
  background: var(--notice-bg);
}

.draft-notice {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--notice-border);
  border-radius: 12px;
  background: var(--notice-bg);
}

.updated {
  color: var(--muted);
}
