/*
 * ScamHalt website: one stylesheet for every page. No build step, nothing loaded from other sites.
 *
 * The idea: a traffic signal at night. The top of each page is dark, and the lit lamp is the
 * light source; below it the page is daylight. Green, amber and red appear only where they mean
 * a verdict (looks safe, suspicious, possibly dangerous). Blue is the one accent, for links and
 * focus rings.
 *
 * Type: Sofia Sans, served from /assets/fonts/ (SIL Open Font License, see OFL.txt there).
 * Semi Condensed for headlines, the same letter shapes road signs use; the regular width for text.
 *
 * Motion is CSS only. Everything that moves sits behind `prefers-reduced-motion: no-preference`,
 * and the scroll-linked parts also behind `@supports (animation-timeline: view())`: where either
 * is missing, the page simply shows its final state.
 *
 * Copy lives in the HTML only (the site will be translated); nothing here adds text.
 */

/* ----------------------------------------------------------------- fonts */

@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-latin.woff2") format("woff2");
  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: "Sofia Sans";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-latin-ext.woff2") format("woff2");
  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: "Sofia Sans";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Sofia Sans Semi Condensed";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-semi-condensed-latin.woff2") format("woff2");
  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: "Sofia Sans Semi Condensed";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-semi-condensed-latin-ext.woff2") format("woff2");
  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: "Sofia Sans Semi Condensed";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-semi-condensed-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------------------------------------------------------------- tokens */

/* The colour of the light in the hero. Registered so that it can fade from one verdict to the next. */
@property --glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #d81e2a;
}

:root {
  color-scheme: light;

  /* Night: the asphalt the signal stands on. */
  --night: #0b0f16;
  --night-raised: #131924;
  --night-high: #1c2331;
  --night-line: rgb(255 255 255 / 0.1);
  --on-night: #f4f6fa;
  --on-night-soft: #aab3c2;

  /* Day. */
  --paper: #ffffff;
  --mist: #f2f4f8;
  --line: #dfe3ea;
  --ink: #10141b;
  --ink-soft: #4a5261;
  --ink-hover: #262c38;

  /* The signal. "deep" variants are for text on light ground, "tint" for soft backgrounds. */
  --go: #1fa35a;
  --go-deep: #12703d;
  --go-tint: #e4f5ea;
  --wait: #f5b301;
  --wait-soft: #ffc933;
  --wait-deep: #7a5600;
  --wait-tint: #fff4d1;
  --stop: #d81e2a;
  --stop-page: #c1121c;
  --stop-deep: #a80f19;
  --stop-tint: #fde7e8;

  /* The one accent. */
  --accent: #1456d9;
  --accent-deep: #0f44ad;
  --accent-tint: #e8eefc;
  --accent-on-night: #8ab4ff;

  --text: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Sofia Sans Semi Condensed", "DIN Alternate", Bahnschrift, "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --step-3: clamp(2.125rem, 1.5rem + 2.6vw, 3.375rem);
  --step-4: clamp(2.75rem, 1.7rem + 4.4vw, 4.75rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --content: 74rem;
  --section: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --header: 4.25rem;

  --r-sm: 0.625rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;

  --shadow-card: 0 1px 2px rgb(16 20 27 / 0.05), 0 8px 24px -12px rgb(16 20 27 / 0.12);
  --shadow-lift: 0 2px 4px rgb(16 20 27 / 0.06), 0 24px 48px -20px rgb(16 20 27 / 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: var(--display);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

p,
li,
dd {
  text-wrap: pretty;
}

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

img {
  height: auto;
}

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

:where(a:hover) {
  color: var(--accent-deep);
  text-decoration-thickness: 2px;
}

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: var(--ink);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus {
  color: var(--ink);
  transform: none;
}

.wrap {
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/*
 * A dark part of the page. It only sets the colours its content inherits and the
 * custom properties buttons and links read; each dark block brings its own background.
 */
.night {
  color: var(--on-night);
}

.night :focus-visible {
  outline-color: var(--accent-on-night);
}

.night :where(a) {
  color: var(--on-night);
}

.night :where(a:hover) {
  color: var(--accent-on-night);
}

/* --------------------------------------------------------------- buttons */

.button {
  --button-ground: var(--ink);
  --button-ink: #ffffff;
  --button-line: var(--ink);
  --button-ground-hover: var(--ink-hover);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  background: var(--button-ground);
  color: var(--button-ink);
  border: 1.5px solid var(--button-line);
  border-radius: var(--r-sm);
  font: 700 1.0625rem / 1.2 var(--text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--button-ground-hover);
  color: var(--button-ink);
}

.button--secondary {
  --button-ground: transparent;
  --button-ink: var(--ink);
  --button-line: rgb(16 20 27 / 0.28);
  --button-ground-hover: rgb(16 20 27 / 0.06);
}

.night .button--primary {
  --button-ground: #ffffff;
  --button-ink: var(--ink);
  --button-line: #ffffff;
  --button-ground-hover: #e6e9ef;
}

.night .button--secondary {
  --button-ground: rgb(255 255 255 / 0.05);
  --button-ink: var(--on-night);
  --button-line: rgb(255 255 255 / 0.28);
  --button-ground-hover: rgb(255 255 255 / 0.13);
}

.button--compact {
  min-height: 2.75rem;
  padding: 0.45rem 1.05rem;
  font-size: 1rem;
}

.button--large {
  min-height: 3.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1.125rem;
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
  }

  .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -12px rgb(16 20 27 / 0.6);
  }

  .button:active {
    transform: scale(0.98);
    box-shadow: none;
  }
}

.store-note {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.night .store-note {
  color: var(--on-night-soft);
}

.tag {
  flex: none;
  display: inline-block;
  padding: 0.1rem 0.6rem;
  background: var(--accent-tint);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- header */

.site-header {
  z-index: 50;
  background: var(--night);
  border-bottom: 1px solid var(--night-line);
  color: var(--on-night);
  view-transition-name: site-header;
}

.site-header :focus-visible {
  outline-color: var(--accent-on-night);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: 0.6rem 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  flex: none;
  width: 1.875rem;
  height: 1.875rem;
}

.brand__name {
  font: 800 1.5rem / 1 var(--display);
  letter-spacing: 0.005em;
}

.site-nav {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  margin-inline: calc(-1 * var(--gutter));
}

/* On a phone the links sit on one line and scroll sideways; nothing wraps or hides. */
.site-nav__list {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0 2.5rem 0 calc(var(--gutter) - 0.65rem);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}

.site-nav__list::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.65rem;
  color: var(--on-night-soft);
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a[aria-current="page"] {
  color: var(--on-night);
  box-shadow: inset 0 -2px 0 var(--on-night);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.site-nav .site-nav__mail {
  font-weight: 400;
}

.site-header__actions {
  display: flex;
  order: 2;
  align-items: center;
  gap: 0.75rem;
}

.site-header .button--primary {
  --button-ground: #ffffff;
  --button-ink: var(--ink);
  --button-line: #ffffff;
  --button-ground-hover: #e6e9ef;
}

@media (prefers-reduced-motion: no-preference) {
  .site-nav a {
    transition: color 0.15s ease, background-color 0.15s ease;
  }
}

@media (min-width: 64rem) {
  /* Room for one line of links: the bar stays in view while the page scrolls. */
  .site-header {
    position: sticky;
    top: 0;
  }

  html {
    scroll-padding-top: calc(var(--header) + 1.5rem);
  }

  .site-header__inner {
    flex-wrap: nowrap;
    min-height: var(--header);
    padding-block: 0;
  }

  .site-nav {
    order: 2;
    flex: 1 1 auto;
    margin-inline: 0;
  }

  .site-nav__list {
    justify-content: flex-end;
    padding: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .site-nav a:hover {
    background: rgb(255 255 255 / 0.08);
  }

  .site-nav a[aria-current="page"] {
    background: rgb(255 255 255 / 0.1);
    box-shadow: none;
    border-radius: var(--r-sm);
  }

  .site-header__actions {
    order: 3;
  }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--night);
  color: var(--on-night-soft);
  font-size: 1rem;
}

.site-footer :focus-visible {
  outline-color: var(--accent-on-night);
}

.site-footer__inner {
  display: grid;
  gap: 2rem 3rem;
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.site-footer .brand {
  color: var(--on-night);
}

.site-footer__about p {
  max-width: 34rem;
  margin-top: 1rem;
}

.site-footer__nav ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--on-night);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--accent-on-night);
  text-decoration: underline;
}

.site-footer__copy {
  padding-top: 1.5rem;
  border-top: 1px solid var(--night-line);
}

@media (min-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .site-footer__nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  /* The e-mail address is too long for half a column. */
  .site-footer__nav li:last-child {
    grid-column: 1 / -1;
  }

  .site-footer__copy {
    grid-column: 1 / -1;
  }
}

/* -------------------------------------------------------------- sections */

.section {
  padding-block: var(--section);
}

.section--mist {
  background: var(--mist);
}

/* The first daylight section slides over the dark one above it, like a sheet of paper. */
.section--sheet {
  position: relative;
  margin-top: calc(-1 * var(--r-xl));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
}

.section-head h2 {
  font-size: var(--step-3);
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* ------------------------------------------------------------------ hero */

.hero {
  --glow: var(--stop);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) calc(clamp(3.5rem, 2rem + 6vw, 6.5rem) + var(--r-xl));
  background: var(--night);
}

/* The light the lit lamp throws on the scene, and its reflection on the road below. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  top: -18%;
  right: -12%;
  width: min(62rem, 120%);
  aspect-ratio: 1.15;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 40%, transparent), color-mix(in srgb, var(--glow) 12%, transparent) 55%, transparent);
}

.hero::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 9rem;
  background: radial-gradient(60% 100% at 68% 100%, color-mix(in srgb, var(--glow) 22%, transparent), transparent);
}

.hero:has(#demo-safe:checked) {
  --glow: var(--go);
}

.hero:has(#demo-suspect:checked) {
  --glow: var(--wait);
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.012em;
}

.hero__lede {
  max-width: 33rem;
  margin-top: 1.5rem;
  color: var(--on-night-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero__lede + .hero__lede {
  margin-top: 0.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 30rem) {
  .hero__actions .button {
    flex: 1 1 auto;
    padding-inline: 1rem;
  }
}

@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  }
}

/*
 * The demo: three example addresses, and what ScamHalt does with each.
 * It is a group of radio buttons, so it works with the keyboard and without JavaScript;
 * the stage below is a drawing (hidden from screen readers) and the caption says the same in words.
 */
.demo {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.demo__legend {
  margin-bottom: 0.65rem;
  padding: 0;
  color: var(--on-night-soft);
  font-size: var(--step--1);
  font-weight: 600;
}

.demo__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.demo__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.75rem 0.3rem 0.65rem;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  color: var(--on-night);
  cursor: pointer;
}

.demo__pill::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.32);
}

.demo__pill code {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.demo__pill:hover {
  background: rgb(255 255 255 / 0.12);
}

.demo__choice input:checked + .demo__pill {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

.demo__choice--safe input:checked + .demo__pill::before {
  background: var(--go);
}

.demo__choice--suspect input:checked + .demo__pill::before {
  background: var(--wait);
}

.demo__choice--danger input:checked + .demo__pill::before {
  background: var(--stop);
}

.demo__choice input:focus-visible + .demo__pill {
  outline: 3px solid var(--accent-on-night);
  outline-offset: 3px;
}

/* Everything on the stage is sized in em, and one em follows the width of the stage. */
.demo__stage {
  container-type: inline-size;
  margin-top: 1.25rem;
}

.demo__scene {
  position: relative;
  padding: 0 0 2.4em 4.1em;
  font-size: clamp(0.5rem, 1.6vw + 0.25rem, 1rem);
  font-size: clamp(0.5rem, 2.62cqw, 1rem);
  line-height: 1.35;
}

.demo__captions {
  min-height: 3.2em;
  margin-top: 1rem;
  color: var(--on-night-soft);
  font-size: var(--step--1);
  line-height: 1.5;
}

.demo__caption strong {
  color: var(--on-night);
}

/* One of three: only the parts that belong to the chosen address are shown. */
.demo [data-for] {
  display: none;
}

.demo:has(#demo-safe:checked) [data-for="safe"],
.demo:has(#demo-suspect:checked) [data-for="suspect"],
.demo:has(#demo-danger:checked) [data-for="danger"] {
  display: revert;
}

/* A browser that cannot follow the choice shows the stopped page, the one that matters most. */
@supports not selector(:has(a)) {
  .demo [data-for="danger"] {
    display: revert;
  }

  .demo__choices,
  .demo__legend {
    display: none;
  }
}

/* --- the traffic signal --- */

.signal {
  display: grid;
  flex: none;
  gap: 4px;
  padding: 6px;
  background: var(--ink);
  border-radius: 13px;
}

.signal__lamp {
  width: 15px;
  height: 15px;
  background: #343b49;
  border-radius: 50%;
}

.verdict--safe .signal__lamp--green {
  background: var(--go);
  box-shadow: 0 0 9px 1px rgb(31 163 90 / 0.75);
}

.verdict--suspect .signal__lamp--amber {
  background: var(--wait);
  box-shadow: 0 0 9px 1px rgb(245 179 1 / 0.75);
}

.verdict--danger .signal__lamp--red {
  background: var(--stop);
  box-shadow: 0 0 9px 1px rgb(216 30 42 / 0.8);
}

.signal--stage {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  gap: 0.6em;
  padding: 0.7em;
  background: linear-gradient(160deg, #262e3f, #121722);
  border-radius: 2.2em;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 1.6em 3em -0.8em rgb(0 0 0 / 0.85);
}

.signal--stage .signal__lamp {
  width: 3.3em;
  height: 3.3em;
  background: #0a0d13;
  box-shadow: inset 0 0.2em 0.5em rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.06);
}

.demo:has(#demo-safe:checked) .signal__lamp--green {
  background: radial-gradient(circle at 35% 30%, #8df0b6, var(--go) 55%, #12703d);
  box-shadow: 0 0 1.4em 0.2em rgb(31 163 90 / 0.9), 0 0 5em 1.4em rgb(31 163 90 / 0.4);
}

.demo:has(#demo-suspect:checked) .signal__lamp--amber {
  background: radial-gradient(circle at 35% 30%, #ffe9a3, var(--wait) 55%, #b88400);
  box-shadow: 0 0 1.4em 0.2em rgb(245 179 1 / 0.9), 0 0 5em 1.4em rgb(245 179 1 / 0.4);
}

.demo:has(#demo-danger:checked) .signal__lamp--red {
  background: radial-gradient(circle at 35% 30%, #ff9aa0, var(--stop) 55%, #96101a);
  box-shadow: 0 0 1.4em 0.2em rgb(216 30 42 / 0.9), 0 0 5em 1.4em rgb(216 30 42 / 0.45);
}

@supports not selector(:has(a)) {
  .signal--stage .signal__lamp--red {
    background: radial-gradient(circle at 35% 30%, #ff9aa0, var(--stop) 55%, #96101a);
    box-shadow: 0 0 1.4em 0.2em rgb(216 30 42 / 0.9), 0 0 5em 1.4em rgb(216 30 42 / 0.45);
  }
}

/* --- the browser window --- */

.browser {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 27.5em;
  overflow: hidden;
  background: #ffffff;
  border-radius: 1.1em;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 2.5em 5em -1.5em rgb(0 0 0 / 0.75);
  color: var(--ink);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em 0.9em;
  background: #edf0f4;
  border-bottom: 1px solid #dde1e8;
}

.browser__dots {
  display: flex;
  gap: 0.4em;
}

.browser__dots i {
  width: 0.72em;
  height: 0.72em;
  background: #c6ccd6;
  border-radius: 50%;
}

.browser__url {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 2.3em;
  padding: 0 1em;
  overflow: hidden;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #dde1e8;
  font: 500 0.92em / 1 var(--mono);
  white-space: nowrap;
}

.browser__ext {
  position: relative;
  flex: none;
  width: 2em;
  height: 2em;
}

.browser__ext svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.browser__progress {
  position: absolute;
  top: 3.7em;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 0.2em;
  background: var(--accent);
  opacity: 0;
  transform-origin: left center;
}

.browser__view {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
}

/* Grey bars stand for text nobody needs to read. */
.bar {
  display: block;
  height: 0.7em;
  background: #dfe3ea;
  border-radius: 0.35em;
}

.bar--ink {
  background: var(--ink);
}

.bar--tall {
  height: 1.1em;
  border-radius: 0.3em;
}

.bar--20 {
  width: 20%;
}

.bar--35 {
  width: 35%;
}

.bar--50 {
  width: 50%;
}

.bar--65 {
  width: 65%;
}

.bar--80 {
  width: 80%;
}

.bar--95 {
  width: 95%;
}

/* Looks safe: an ordinary page, nothing added. */
.view--safe {
  padding: 1.5em 1.7em;
}

.mock-nav {
  display: flex;
  align-items: center;
  gap: 1.2em;
}

.mock-nav__logo {
  width: 2em;
  height: 2em;
  margin-right: auto;
  background: var(--accent);
  border-radius: 0.5em;
}

.mock-nav .bar {
  width: 3.4em;
}

.mock-lead {
  display: grid;
  gap: 0.7em;
  margin-top: 2.2em;
}

.mock-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin-top: 2em;
}

.mock-tiles i {
  height: 6.4em;
  background: var(--mist);
  border-radius: 0.8em;
}

/* Suspicious: the page opens, with a notice on top. */
.view--suspect {
  padding: 4.9em 1.7em 1.5em;
  background: #fbfbfd;
}

.mock-notice {
  position: absolute;
  top: 0.8em;
  right: 1.2em;
  left: 1.2em;
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em 0.9em;
  background: var(--wait-soft);
  border-radius: 0.8em;
  box-shadow: 0 0.6em 1.6em -0.5em rgb(16 20 27 / 0.45);
  font-size: 0.82em;
  line-height: 1.3;
}

.mock-notice svg {
  flex: none;
  width: 2.2em;
  height: 2.2em;
}

.mock-notice b {
  display: block;
  font-size: 1.08em;
}

.mock-notice u {
  font-weight: 700;
  text-underline-offset: 0.15em;
}

.mock-notice__close {
  flex: none;
  width: 1em;
  height: 1em;
  margin-left: auto;
  background:
    linear-gradient(45deg, transparent 44%, var(--ink) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--ink) 44% 56%, transparent 56%);
}

.mock-form {
  display: grid;
  gap: 0.7em;
  max-width: 21em;
}

.mock-field {
  display: flex;
  align-items: center;
  gap: 0.45em;
  height: 2.6em;
  margin-top: 0.3em;
  padding: 0 0.9em;
  border: 1px solid #c3c9d4;
  border-radius: 0.5em;
}

.mock-field i {
  width: 0.5em;
  height: 0.5em;
  background: var(--ink);
  border-radius: 50%;
}

.mock-field i:nth-child(4n) {
  margin-right: 0.5em;
}

.mock-button {
  width: 8.5em;
  height: 2.5em;
  margin-top: 0.4em;
  background: var(--ink);
  border-radius: 0.5em;
}

/* Possibly dangerous: the page never opens; the warning page stands in its place. */
.view--danger {
  padding: 1.5em 1.7em;
  background: linear-gradient(160deg, #cf1622, #a90f19);
  color: #ffffff;
}

.mock-stop {
  display: flex;
  align-items: center;
  gap: 1.1em;
}

.mock-octagon {
  flex: none;
  display: grid;
  place-items: center;
  width: 4.1em;
  height: 4.1em;
  background: #ffffff;
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  color: var(--stop-page);
  font: 800 1.15em / 1 var(--display);
  letter-spacing: 0.04em;
}

.mock-stop__title {
  display: block;
  font: 800 1.75em / 1.05 var(--display);
}

.mock-stop__lead {
  display: block;
  margin-top: 0.25em;
  font-size: 0.9em;
  opacity: 0.92;
}

.mock-plate {
  margin-top: 1.2em;
  padding: 1em 1.2em 1.1em;
  background: #ffffff;
  border-radius: 0.9em;
  box-shadow: 0 1em 2.4em -1em rgb(60 0 6 / 0.7);
  color: var(--ink);
  font-size: 0.82em;
}

.mock-plate__label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9em;
}

.mock-plate__host {
  display: block;
  font: 600 1.1em / 1.3 var(--mono);
}

.mock-plate__heading {
  display: block;
  margin-top: 0.8em;
  padding-top: 0.8em;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.mock-plate ul {
  display: grid;
  gap: 0.25em;
  margin-top: 0.4em;
  padding: 0;
  list-style: none;
}

.mock-plate li {
  position: relative;
  padding-left: 1.1em;
}

.mock-plate li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 0.5em;
  height: 0.5em;
  background: var(--stop);
  border-radius: 50%;
}

.mock-actions {
  display: flex;
  align-items: center;
  gap: 1.4em;
  margin-top: 1.2em;
  font-size: 0.86em;
}

.mock-actions b {
  padding: 0.75em 1.3em;
  background: #ffffff;
  border-radius: 0.6em;
  color: var(--ink);
}

.mock-actions u {
  text-underline-offset: 0.2em;
}

/* ---------------------------------------------------- the five check areas */

.checks {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check {
  display: grid;
  align-content: start;
  gap: 1.5rem;
  min-width: 0;
  padding: clamp(1.4rem, 1rem + 2vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.check__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.check__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--ink);
  border-radius: 0.8rem;
  color: #ffffff;
}

.check__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.check__title {
  font-size: var(--step-2);
}

.check__body {
  margin-top: 1.1rem;
  color: var(--ink-soft);
}

.check__body > * + * {
  margin-top: 0.85rem;
}

.check__body ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.check__body li + li {
  margin-top: 0.3rem;
}

.check__body li::marker {
  color: #9aa3b2;
}

.check__body code {
  color: var(--ink);
}

.plan-note {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 1rem;
}

/* A small drawing under the text of a check. */
.check__art {
  align-self: end;
  padding: 1rem;
  background: var(--mist);
  border-radius: var(--r-md);
  font-size: 1rem;
  line-height: 1.4;
}

@media (min-width: 46rem) {
  .checks {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .check {
    grid-column: span 6;
  }

  .check--links {
    grid-column: 1 / -1;
  }
}

@media (min-width: 62rem) {
  .check--links {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  .check--downloads {
    grid-column: span 7;
  }

  .check--reports {
    grid-column: span 5;
  }
}

/* Links: three addresses, and what gives two of them away. */
.lookalikes {
  display: grid;
  gap: 0.6rem;
  padding: 0.6rem;
}

.lookalikes > div {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 1rem 0.85rem 3rem;
  background: var(--paper);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(16 20 27 / 0.06);
}

/* The verdict's own shape in front of each address: a circle for the real one, an octagon for the fakes. */
.lookalikes > div::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--stop);
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
}

.lookalikes > .lookalikes__real::before {
  background: var(--go);
  border-radius: 50%;
  clip-path: none;
}

.lookalikes dt code {
  color: var(--ink);
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lookalikes mark {
  padding: 0.05em 0.12em;
  background: var(--stop-tint);
  border-radius: 0.25em;
  box-shadow: inset 0 -2px 0 var(--stop);
  color: var(--stop-deep);
}

.lookalikes__quiet {
  color: #6b7484;
}

.lookalikes dd {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* The open page: what the page tried to copy, and what the clipboard holds instead. */
.swap {
  display: grid;
  gap: 0.5rem;
}

.swap__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.2rem 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(16 20 27 / 0.06);
}

.swap__mark {
  grid-row: span 2;
  width: 1.6rem;
  height: 1.6rem;
}

.swap__label {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.swap__value {
  font-weight: 700;
}

.swap__code {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  height: 1.4em;
}

.swap__code i {
  height: 0.55rem;
  background: linear-gradient(var(--stop), var(--stop)) center / 100% 2px no-repeat, #cfd5df;
  border-radius: 0.2rem;
}

.swap__code i:nth-child(1) {
  width: 3.6rem;
}

.swap__code i:nth-child(2) {
  width: 1.4rem;
}

.swap__code i:nth-child(3) {
  width: 5rem;
}

.swap__code i:nth-child(4) {
  width: 2.2rem;
}

/* Forms and downloads: the question ScamHalt asks, drawn small. */
.ask {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--paper);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(16 20 27 / 0.06);
}

.ask__head {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.7rem;
  font-weight: 700;
}

/* A head with a state label: the label drops to the next line before the name is broken. */
.ask__head--split {
  flex-wrap: wrap;
}

.ask__head svg {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
}

.ask__file {
  font: 600 1rem / 1.3 var(--mono);
  overflow-wrap: anywhere;
}

.ask__file mark {
  padding: 0.05em 0.12em;
  background: var(--stop-tint);
  border-radius: 0.25em;
  box-shadow: inset 0 -2px 0 var(--stop);
  color: var(--stop-deep);
}

.ask__state {
  margin-left: auto;
  padding: 0.1rem 0.6rem;
  background: var(--wait-tint);
  border-radius: 999px;
  color: var(--wait-deep);
  font-size: 0.875rem;
  white-space: nowrap;
}

.ask__state--sent {
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.ask__text {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

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

.ask__actions span {
  padding: 0.4rem 0.85rem;
  border: 1.5px solid rgb(16 20 27 / 0.25);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.ask__actions span:first-child {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* ------------------------------------------------------------- verdicts */

/* The score from 0 to 100, cut where the verdict changes. The cards below line up with it. */
.scale {
  display: none;
}

.verdicts {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.verdict {
  --tone: var(--go);
  --tone-deep: var(--go-deep);
  --tone-tint: var(--go-tint);

  display: grid;
  align-content: start;
  gap: 1.1rem;
  min-width: 0;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  background: var(--tone-tint);
  border-radius: var(--r-lg);
}

.verdict--suspect {
  --tone: var(--wait);
  --tone-deep: var(--wait-deep);
  --tone-tint: var(--wait-tint);
}

.verdict--danger {
  --tone: var(--stop);
  --tone-deep: var(--stop-deep);
  --tone-tint: var(--stop-tint);
}

.verdict__screen {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(16 20 27 / 0.08), 0 14px 28px -16px rgb(16 20 27 / 0.35);
}

.verdict__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.verdict__name {
  font-size: var(--step-2);
}

.verdict__score {
  margin-top: 0.15rem;
  color: var(--tone-deep);
  font-size: var(--step--1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.verdict__text {
  max-width: 34rem;
}

.verdict-notes {
  display: grid;
  gap: 0.6rem;
  max-width: 46rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.verdict-notes__lead {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.4;
}

.verdict-notes p:not(.verdict-notes__lead) {
  color: var(--ink-soft);
}

@media (min-width: 40rem) and (max-width: 57.99rem) {
  .verdict {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    align-items: center;
    column-gap: 1.75rem;
  }

  .verdict__screen {
    grid-row: span 2;
  }

  .verdict__head {
    align-self: end;
  }

  .verdict__text {
    align-self: start;
  }
}

@media (min-width: 58rem) {
  .scale {
    display: block;
    margin-bottom: 1.5rem;
  }

  .scale__bar,
  .verdicts {
    display: grid;
    grid-template-columns: 3fr 4fr 3fr;
    gap: 1.25rem;
  }

  .scale__bar span {
    height: 0.6rem;
    border-radius: 999px;
  }

  .scale__bar span:nth-child(1) {
    background: var(--go);
  }

  .scale__bar span:nth-child(2) {
    background: var(--wait);
  }

  .scale__bar span:nth-child(3) {
    background: var(--stop);
  }

  .scale__ticks {
    position: relative;
    height: 1.6rem;
    margin-top: 0.4rem;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .scale__ticks span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
  }

  .scale__ticks span:nth-child(1) {
    left: 0;
    transform: none;
  }

  .scale__ticks span:nth-child(2) {
    left: 30%;
  }

  .scale__ticks span:nth-child(3) {
    left: 70%;
  }

  .scale__ticks span:nth-child(4) {
    right: 0;
    transform: none;
  }
}

/* ------------------------------------------------- what we do not collect */

.privacy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: var(--night);
}

.privacy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  left: -15%;
  width: min(50rem, 110%);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(20 86 217 / 0.22), transparent);
  pointer-events: none;
}

.privacy__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.privacy__intro h2 {
  font-size: var(--step-3);
}

.privacy__intro p {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--on-night-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.privacy__intro code {
  color: var(--on-night);
}

.privacy__intro .privacy__more {
  margin-top: 1.75rem;
  font-size: var(--step-0);
  font-weight: 700;
}

.privacy__panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

/* One address, cut where ScamHalt cuts it. */
.trim {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
}

.trim__title {
  color: var(--on-night-soft);
  font-size: var(--step--1);
  font-weight: 600;
}

.trim__url {
  margin-top: 0.75rem;
  font: 500 clamp(0.8125rem, 0.7rem + 0.55vw, 1rem) / 1.7 var(--mono);
  overflow-wrap: anywhere;
}

.trim__kept {
  padding: 0.15em 0.3em;
  background: rgb(31 163 90 / 0.18);
  border-radius: 0.3em;
  box-shadow: inset 0 -2px 0 var(--go);
  color: #b9f2d0;
}

.trim__cut {
  display: inline-block;
  background: linear-gradient(#ff8088, #ff8088) left center / 100% 2px no-repeat;
  color: #7f8898;
}

.trim__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  color: var(--on-night-soft);
  font-size: var(--step--1);
}

.trim__legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trim__legend li::before {
  content: "";
  width: 1.4rem;
  height: 0.2rem;
  background: var(--go);
  border-radius: 1px;
}

.trim__legend li:last-child::before {
  background: #ff8088;
}

.never {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
}

.never h3 {
  font-size: var(--step-1);
}

.never ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0;
  list-style: none;
  color: var(--on-night-soft);
}

/* Each item is crossed out with a drawn "x": these things are never sent or used. */
.never li {
  position: relative;
  padding-left: 1.9rem;
}

.never li::before,
.never li::after {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.15rem;
  width: 0.95rem;
  height: 2px;
  background: #ff8088;
  border-radius: 1px;
}

.never li::before {
  transform: rotate(45deg);
}

.never li::after {
  transform: rotate(-45deg);
}

@media (min-width: 36rem) {
  .never {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .privacy__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
  }
}

/* -------------------------------------------------------------------- FAQ */

.faq__inner {
  display: grid;
  gap: 2rem;
}

.faq__intro h2 {
  font-size: var(--step-3);
}

.faq__intro p {
  margin-top: 1rem;
  color: var(--ink-soft);
}

@media (min-width: 62rem) {
  .faq__inner {
    grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
    gap: 4rem;
  }

  .faq__intro {
    position: sticky;
    top: calc(var(--header) + 2rem);
    align-self: start;
  }
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4rem;
  padding-block: 1rem;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* A drawn plus in a ring; the upright stroke folds away when the answer is open. */
.faq-list summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  background:
    linear-gradient(currentColor, currentColor) center / 0.8rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 0.8rem no-repeat;
  border: 1.5px solid var(--line);
  border-radius: 50%;
}

.faq-list details[open] > summary::after {
  background-size: 0.8rem 2px, 2px 0;
  border-color: var(--ink);
}

.faq-list summary:hover {
  color: var(--accent-deep);
}

.faq-list summary:focus-visible {
  outline-offset: 2px;
}

.faq-list details > :not(summary) {
  max-width: 42rem;
  padding-bottom: 1.4rem;
  color: var(--ink-soft);
}

.faq-list details > :not(summary) + :not(summary) {
  margin-top: -0.6rem;
}

/* ------------------------------------------------------- plans (home teaser) */

.plan-cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.plan-card--featured {
  background: var(--night);
  border-color: var(--night);
  box-shadow: var(--shadow-lift);
}

.plan-card__name {
  font-size: var(--step-2);
}

.plan-card__price {
  font: 800 clamp(2.25rem, 1.8rem + 1.6vw, 3rem) / 1 var(--display);
  font-variant-numeric: tabular-nums;
}

.plan-card__period {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.plan-card__desc {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.plan-card--featured .plan-card__period,
.plan-card--featured .plan-card__desc {
  color: var(--on-night-soft);
}

@media (min-width: 52rem) {
  .plan-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* ------------------------------------------------------------ page heads */

.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--night);
}

.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%;
  right: -10%;
  width: min(46rem, 100%);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(20 86 217 / 0.26), transparent);
  pointer-events: none;
}

.page-head h1 {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 0.98;
}

.page-head__lede {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--on-night-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.page-head__meta {
  max-width: 40rem;
  margin-top: 0.75rem;
  color: var(--on-night-soft);
  font-size: var(--step--1);
}

/* On the pricing page the plan cards overlap the dark band. */
.page-head--overlap {
  padding-bottom: calc(clamp(2.5rem, 5vw, 4rem) + 4.5rem);
}

/* ------------------------------------------------------------- pricing */

.plans {
  position: relative;
  margin-top: -4.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.plans__grid,
.plans__paid {
  display: grid;
  gap: 1.25rem;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.plan--premium {
  background: var(--night);
  border-color: rgb(255 255 255 / 0.14);
  box-shadow: var(--shadow-lift);
}

.plan__intro,
.plan__includes {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.plan__name {
  font-size: var(--step-3);
}

.plan__summary {
  color: var(--ink-soft);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
}

.price__amount {
  font: 800 3rem / 1 var(--display);
  font-variant-numeric: tabular-nums;
}

.price__period {
  color: var(--ink-soft);
}

.price-options {
  display: grid;
  gap: 0.85rem;
}

.price-option {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.price-option .price__amount {
  font-size: 2.25rem;
}

.price-option__save {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  background: var(--accent-tint);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

.plan .button {
  width: 100%;
}

.plan .store-note {
  margin-top: -0.4rem;
  text-align: center;
}

.plan__fine {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.plan__list-title {
  margin-top: 0.35rem;
  font: 700 1rem / 1.4 var(--text);
  letter-spacing: 0;
}

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* A drawn tick in the accent colour. */
.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0.2rem;
  width: 0.45rem;
  height: 0.8rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
}

.plan--premium .plan__summary,
.plan--premium .plan__fine,
.plan--premium .price__period {
  color: var(--on-night-soft);
}

.plan--premium .price-option {
  background: rgb(255 255 255 / 0.04);
  border-color: rgb(255 255 255 / 0.14);
}

.plan--premium .price-option__save {
  background: rgb(138 180 255 / 0.16);
  color: var(--accent-on-night);
}

.plan--premium .feature-list li::before {
  border-color: var(--accent-on-night);
}

.checkout-terms {
  display: grid;
  gap: 0.25rem;
  padding-inline: 0.25rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

@media (min-width: 44rem) and (max-width: 63.99rem) {
  .plan--free {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 2.5rem;
  }

  .plans__paid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-terms {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .plans__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  /* Free, Premium and Family stand in one row; the wrapper around the paid plans steps aside. */
  .plans__paid {
    display: contents;
  }

  .checkout-terms {
    grid-column: 2 / -1;
  }
}

.availability {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.notice {
  max-width: 50rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--accent-tint);
  border-radius: var(--r-lg);
}

.notice h2 {
  font-size: var(--step-2);
}

.notice p {
  margin-top: 0.65rem;
}

#availability:target .notice {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.compare h2 {
  font-size: var(--step-3);
}

.table-scroll {
  max-width: 58rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.25rem clamp(1rem, 3vw, 1.75rem) 0.5rem;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.4;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}

.compare-table thead th {
  border-bottom: 2px solid var(--ink);
  font: 760 1.1875rem / 1.2 var(--display);
}

.compare-table th:first-child {
  padding-left: 0;
  text-align: left;
}

.compare-table tbody th {
  font-weight: 500;
}

.compare-table td {
  width: 19%;
}

/* Drawn marks: a tick for "included", a short dash for "not included". The words are in the HTML. */
.mark {
  display: inline-block;
  vertical-align: middle;
}

.mark--yes {
  width: 0.5rem;
  height: 0.95rem;
  margin-top: -0.3rem;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(45deg);
}

.mark--no {
  width: 0.9rem;
  height: 2px;
  background: #9aa3b2;
}

@media (max-width: 30rem) {
  .compare-table {
    font-size: 0.9375rem;
  }

  .compare-table th,
  .compare-table td {
    padding-inline: 0.3rem;
  }

  .compare-table td {
    width: 3.75rem;
  }

  .compare-table thead th {
    font-size: 1rem;
  }
}

.billing {
  padding-block: var(--section);
}

/* ------------------------------------------------------------------- 404 */

.not-found {
  --glow: var(--stop);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(3.5rem, 2rem + 8vw, 8rem);
  background: var(--night);
}

.not-found::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: clamp(-8rem, -10vw, 0rem);
  width: min(40rem, 110%);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(216 30 42 / 0.3), transparent);
  transform: translateY(-50%);
  pointer-events: none;
}

.not-found__inner {
  display: grid;
  align-items: center;
  gap: 2rem;
}

.not-found__mark {
  width: clamp(5.5rem, 14vw, 9rem);
  height: auto;
}

.not-found h1 {
  font-size: var(--step-3);
  font-weight: 800;
}

.not-found p {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--on-night-soft);
  font-size: var(--step-1);
}

.not-found .hero__actions {
  margin-top: 1.75rem;
}

@media (min-width: 40rem) {
  .not-found__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3rem;
  }
}

/* ----------------------------------------------------------- legal pages */

/*
 * The text column stays at a comfortable reading width; tables may use the full width
 * of the article. On narrow screens each table row becomes a small card, labelled from
 * the data-label attribute of its cells. On wide screens the table of contents moves to
 * the side and stays in view.
 */
.legal {
  width: min(60rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 1rem + 5vw, 4.5rem) clamp(3.5rem, 2rem + 6vw, 6.5rem);
  line-height: 1.65;
}

.legal > :not(section),
.legal > .legal-summary,
.legal section:not(.legal-summary) > :not(.table-wrap) {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal h1 {
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
}

.legal .legal-updated {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.legal .legal-lede {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.55;
}

.legal-summary {
  margin-top: 2rem;
  padding: 1.4rem clamp(1.1rem, 4vw, 1.75rem) 1.6rem;
  background: var(--mist);
  border-radius: var(--r-lg);
}

.legal .legal-summary h2 {
  margin: 0;
  font-size: var(--step-2);
}

.legal .legal-summary ul {
  margin-top: 0.75rem;
}

.legal .legal-summary code {
  background: var(--paper);
}

.legal-toc {
  margin-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal .legal-toc ol {
  margin: 0;
  padding-left: 1.6rem;
  columns: 2 15rem;
  column-gap: 2.5rem;
}

.legal .legal-toc li {
  margin: 0;
  break-inside: avoid;
}

.legal .legal-toc li::marker {
  font-variant-numeric: tabular-nums;
}

/* Block, not inline-block: an inline-block puts the list number next to the
   last line when a long entry wraps. */
.legal-toc a {
  display: block;
  padding-block: 0.4rem;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal section {
  margin-top: 2.75rem;
}

.legal h2 {
  font-size: var(--step-2);
  line-height: 1.1;
}

.legal h3 {
  margin-top: 1.75rem;
  font-size: 1.3125rem;
  line-height: 1.15;
}

.legal :where(p, ul, ol, address, .table-wrap) {
  margin-top: 1rem;
}

.legal h2 + :where(p, ul, ol, address, .table-wrap),
.legal h3 + :where(p, ul, ol, address, .table-wrap) {
  margin-top: 0.75rem;
}

.legal ul,
.legal ol {
  padding-left: 1.4rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal li::marker {
  color: var(--ink-soft);
}

.legal address {
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  font-style: normal;
}

.legal .legal-note {
  padding: 1rem 1.25rem;
  background: var(--accent-tint);
  border-radius: var(--r-md);
}

.legal code {
  padding: 0.1em 0.35em;
  background: var(--mist);
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.legal .table-wrap {
  overflow-x: auto;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.legal th,
.legal td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal thead th {
  background: var(--mist);
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

.legal thead th:first-child {
  border-radius: var(--r-sm) 0 0 0;
}

.legal thead th:last-child {
  border-radius: 0 var(--r-sm) 0 0;
}

.legal tbody th {
  font-weight: 700;
}

@media (max-width: 40rem) {
  .legal table,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
  }

  .legal thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .legal tbody tr {
    padding: 0.35rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
  }

  .legal tbody tr + tr {
    margin-top: 0.85rem;
  }

  .legal tbody th,
  .legal tbody td {
    padding: 0.65rem 0;
  }

  .legal tbody tr > :last-child {
    border-bottom: 0;
  }

  .legal tbody [data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.1rem;
    color: var(--ink-soft);
    font-size: 0.875rem;
    font-weight: 700;
  }
}

@media (min-width: 78rem) {
  .legal {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: 4rem;
    width: min(76rem, 100% - 2 * var(--gutter));
  }

  .legal > * {
    grid-column: 2;
  }

  .legal > :not(section),
  .legal > .legal-summary,
  .legal section:not(.legal-summary) > :not(.table-wrap) {
    margin-inline: 0;
  }

  /* The contents list spans every row of the article, so it can stay in view the whole way down. */
  .legal > .legal-toc {
    grid-column: 1;
    grid-row: 1 / span 60;
    align-self: start;
    position: sticky;
    top: calc(var(--header) + 1.5rem);
    max-height: calc(100vh - var(--header) - 3rem);
    margin: 0;
    padding: 0 0.5rem 0 0;
    overflow-y: auto;
    border: 0;
    font-size: 1rem;
  }

  .legal .legal-toc ol {
    columns: auto;
  }

  .legal-toc a {
    padding-block: 0.3rem;
    color: var(--ink-soft);
  }

  .legal-toc a:hover {
    color: var(--accent-deep);
  }
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  /* Moving between pages: a short cross-fade; the header stays where it is. */
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.22s;
  }

  /* The one orchestrated moment: the words arrive, then a link is opened and stopped. */
  .hero__copy > * {
    animation: rise 0.7s var(--ease) both;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero__copy > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero__copy > :nth-child(5) {
    animation-delay: 0.24s;
  }

  .demo {
    animation: rise 0.8s var(--ease) 0.15s both;
  }

  .hero {
    transition: --glow 0.7s ease 0.35s;
  }

  .demo__pill {
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  }

  .demo__pill::before {
    transition: background-color 0.3s ease 0.45s;
  }

  /* A lamp goes out at once and comes on when the page has "loaded". */
  .signal--stage .signal__lamp {
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }

  .demo:has(#demo-safe:checked) .signal__lamp--green,
  .demo:has(#demo-suspect:checked) .signal__lamp--amber,
  .demo:has(#demo-danger:checked) .signal__lamp--red {
    transition: background 0.35s ease 0.5s, box-shadow 0.5s ease 0.5s;
  }

  /* Choosing an address shows its parts afresh, so each of these plays again. */
  .browser__address {
    animation: type 0.42s steps(16, end) both;
  }

  .browser__ext svg {
    animation: pop 0.4s var(--ease-back) 0.55s both;
  }

  .view {
    animation: view-in 0.45s var(--ease) 0.5s both;
  }

  .view--danger {
    animation-name: view-stop;
  }

  .mock-notice {
    animation: drop 0.45s var(--ease-back) 0.95s both;
  }

  .demo__caption {
    animation: fade 0.4s ease 0.5s both;
  }

  /* Three names for the same movement: a new name is what makes the bar run again. */
  .browser__progress {
    animation: load-danger 0.6s ease-in both;
  }

  .demo:has(#demo-safe:checked) .browser__progress {
    animation-name: load-safe;
  }

  .demo:has(#demo-suspect:checked) .browser__progress {
    animation-name: load-suspect;
  }

  .faq-list summary::after {
    transition: background-size 0.25s var(--ease), border-color 0.2s ease;
  }

  /* An answer opens by growing, where the browser can animate to "auto". */
  @supports selector(::details-content) {
    :root {
      interpolate-size: allow-keywords;
    }

    .faq-list details::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size 0.32s var(--ease), content-visibility 0.32s allow-discrete;
    }

    .faq-list details[open]::details-content {
      block-size: auto;
    }
  }

  /* Tied to scrolling: things arrive as they come into view, and leave the same way. */
  @supports (animation-timeline: view()) {
    /* Solid at the top of the page; glass once something has scrolled under it. */
    @media (min-width: 64rem) {
      .site-header {
        -webkit-backdrop-filter: saturate(150%) blur(14px);
        backdrop-filter: saturate(150%) blur(14px);
        animation: glass linear both;
        animation-timeline: scroll(root block);
        animation-range: 0 8rem;
      }
    }

    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 16rem;
    }

    .scale__bar {
      animation: wipe linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 32%;
    }

    .trim__cut {
      animation: strike linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 42%;
    }

    .trim__kept {
      animation: keep linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 42%;
    }
  }
}

@keyframes glass {
  to {
    background-color: rgb(11 15 22 / 0.78);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.75rem);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes type {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(0.8em);
  }
}

@keyframes view-stop {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-1.2em);
  }
}

@keyframes load-danger {
  from {
    opacity: 1;
    transform: scaleX(0);
  }

  85% {
    opacity: 1;
    transform: scaleX(0.7);
  }

  to {
    opacity: 0;
    transform: scaleX(0.7);
  }
}

@keyframes load-safe {
  from {
    opacity: 1;
    transform: scaleX(0);
  }

  85% {
    opacity: 1;
    transform: scaleX(1);
  }

  to {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes load-suspect {
  from {
    opacity: 1;
    transform: scaleX(0);
  }

  85% {
    opacity: 1;
    transform: scaleX(1);
  }

  to {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes strike {
  from {
    background-size: 0% 2px;
    color: var(--on-night);
  }
}

@keyframes keep {
  from {
    background-color: transparent;
    box-shadow: inset 0 -2px 0 transparent;
    color: var(--on-night);
  }
}

/* ----------------------------------------------------------------- print */

@media print {
  .site-header,
  .site-footer,
  .demo__choices {
    display: none;
  }

  .reveal {
    animation: none;
  }
}
