/* Extensity website
 *
 * Palette (from the original site and the extension itself):
 *   navy   #304669  page background, popup title
 *   steel  #516C97  \ popup section headers (gradient)
 *   mist   #7F97B9  /
 *   amber  #FFAA00  \
 *   orange #FF9300   | calls to action, "rate" star
 *   gold   #FCB935   |
 *   cream  #FFF6E9  /
 *   black  #000000  code blocks
 */

:root {
  --navy: #304669;
  --navy-700: #2a3e5e;
  --navy-800: #233552;
  --navy-900: #1b2942;
  --steel: #516c97;
  --mist: #7f97b9;
  --amber: #ffaa00;
  --orange: #ff9300;
  --gold: #fcb935;
  --cream: #fff6e9;
  --black: #000;
  --ok: #46c37b;      /* "verified" on the unofficial copies page */
  --danger: #ff5d55;  /* "forgery" on the unofficial copies page */

  --text: #fff;
  --muted: rgb(255 255 255 / 0.74);
  --faint: rgb(255 255 255 / 0.55);
  --line: rgb(255 255 255 / 0.12);
  --line-strong: rgb(255 255 255 / 0.22);
  --card: rgb(255 255 255 / 0.045);
  --card-hover: rgb(255 255 255 / 0.075);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */

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

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

::selection {
  background: var(--amber);
  color: var(--navy-900);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.solid {
  fill: currentColor;
  stroke: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.8em 1.35em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background-color 0.2s,
    border-color 0.2s;
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--amber) 55%, var(--orange));
  border-color: var(--gold);
  color: var(--navy-900);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    0 6px 18px -6px rgb(255 147 0 / 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    0 12px 28px -8px rgb(255 147 0 / 0.7);
}

.btn-ghost {
  background: rgb(255 255 255 / 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.35);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.55em 1em;
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgb(255 246 233 / 0.35);
  transition: border-color 0.2s, color 0.2s;
}

.text-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.text-link .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s var(--ease-out);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(35 53 82 / 0.82);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

/* When supported, the bar starts transparent and firms up as you scroll. */
@supports (animation-timeline: scroll()) {
  .site-header {
    background: rgb(35 53 82 / 0);
    border-bottom-color: transparent;
    animation: header-solid linear both;
    animation-timeline: scroll();
    animation-range: 0 140px;
  }
}

@keyframes header-solid {
  to {
    background: rgb(35 53 82 / 0.82);
    border-bottom-color: var(--line);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.3);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgb(255 255 255 / 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-github {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.nav-github:hover {
  color: var(--text);
  background: rgb(255 255 255 / 0.08);
}

.nav-github .icon {
  width: 1.35rem;
  height: 1.35rem;
}

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

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .nav-actions .btn .long,
  .nav-github {
    display: none;
  }

}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}

.section-dark {
  background: var(--navy-800);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1rem;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--mist), var(--steel));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 1px 2px rgb(0 0 0 / 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.35);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-title em {
  color: var(--gold);
}

.section-lead {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.15rem;
}

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

.hero {
  position: relative;
  isolation: isolate;
  margin-top: -4.25rem; /* slide under the sticky header */
  padding-top: calc(4.25rem + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48rem 30rem at 82% 18%, rgb(127 151 185 / 0.42), transparent 70%),
    radial-gradient(36rem 26rem at 8% 85%, rgb(81 108 151 / 0.55), transparent 70%),
    radial-gradient(22rem 16rem at 60% 95%, rgb(255 170 0 / 0.08), transparent 70%);
}

.hero::after {
  /* a faint grid, fading out towards the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 40rem;
  }
}

.hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-kicker .pill {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.2vw, 4.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  white-space: nowrap;
}

.hero-lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-cta .btn {
  font-size: 1.05rem;
  padding: 0.95em 1.5em;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.92rem;
}

.hero-note li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-note .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--gold);
}

/* Entrance: short and quick, only for people who are fine with motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.7s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ---------- Demo: a working replica of the popup ---------- */

.demo {
  position: relative;
  container-type: inline-size;
}

.demo-window {
  position: relative;
  min-height: 452px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 14px;
  background: var(--navy-900);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.12) inset,
    0 40px 80px -30px rgb(0 0 0 / 0.65),
    0 0 0 8px rgb(255 255 255 / 0.03);
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 40px;
  padding: 0 0.75rem;
  background: #16223a;
}

.demo-dots {
  display: flex;
  gap: 7px;
  align-self: center;
  margin-right: 0.35rem;
}

.demo-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}

.demo-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(210px, 50%);
  height: 32px;
  padding: 0 0.8rem;
  border-radius: 9px 9px 0 0;
  background: var(--navy-900);
  color: rgb(255 255 255 / 0.75);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
}

.demo-tab::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--mist), var(--steel));
}

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 10px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.demo-nav {
  display: flex;
  gap: 2px;
  color: rgb(255 255 255 / 0.45);
}

.demo-nav .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
}

.demo-address {
  flex: 1 1 auto;
  min-width: 60px;
  height: 30px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.55);
  font-size: 12.5px;
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-exts {
  display: flex;
  align-items: center;
}

.tb-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  transition:
    width 0.35s var(--ease-out),
    opacity 0.25s,
    transform 0.35s var(--ease-out);
}

.tb-icon .ext-ico {
  width: 18px;
  height: 18px;
}

.tb-icon.off {
  width: 0;
  opacity: 0;
  transform: scale(0.4);
}

.tb-extensity,
.tb-puzzle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(255 255 255 / 0.6);
  cursor: pointer;
}

.tb-extensity {
  background: rgb(255 255 255 / 0.14);
}

.tb-extensity[aria-expanded="false"] {
  background: transparent;
}

.tb-extensity:hover {
  background: rgb(255 255 255 / 0.2);
}

.tb-extensity img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.tb-puzzle {
  cursor: default;
}

.tb-puzzle .icon {
  width: 18px;
  height: 18px;
}

/* The web page behind the popup: abstract placeholder blocks */
.demo-page {
  display: grid;
  gap: 14px;
  padding: 28px 28px 0;
}

.demo-page span {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.07);
}

.demo-page .h {
  width: 55%;
  height: 22px;
  margin-bottom: 6px;
  background: rgb(255 255 255 / 0.1);
}

.demo-page .img {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(127 151 185 / 0.18), rgb(81 108 151 / 0.12));
}

.demo-page .w90 { width: 90%; }
.demo-page .w75 { width: 75%; }
.demo-page .w60 { width: 60%; }

/* The popup */

.px {
  --px-bg: #fff;
  --px-text: #000;
  --px-title: #304669;
  --px-icon: #000;
  --px-hover: #e0e0e0;
  --px-hover-shadow: rgb(0 0 0 / 0.2);
  --px-disabled-bg: #eee;
  --px-disabled-text: #555;
  --px-search: linear-gradient(to bottom, rgb(0 0 0 / 0.1), rgb(0 0 0 / 0));
  --px-search-text: #555;
  --px-head-text: #fff;

  position: absolute;
  top: 92px;
  right: 14px;
  z-index: 2;
  width: 292px;
  padding: 8px 8px 10px;
  border-radius: 10px;
  background: var(--px-bg);
  color: var(--px-text);
  font-family: "Lucida Grande", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.08),
    0 18px 50px -12px rgb(0 0 0 / 0.6);
  transform-origin: calc(100% - 52px) -10px;
  transition:
    opacity 0.18s,
    transform 0.25s var(--ease-out),
    background-color 0.3s,
    color 0.3s;
  -webkit-user-select: none;
  user-select: none;
}

.px[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.92) translateY(-6px);
  transition:
    opacity 0.15s,
    transform 0.15s,
    visibility 0s 0.15s;
}

/* The little arrow that points at the toolbar button */
.px::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 46px;
  width: 12px;
  height: 12px;
  background: var(--px-bg);
  transform: rotate(45deg);
  border-radius: 2px;
  transition: background-color 0.3s;
}

.px.dark {
  --px-bg: #333;
  --px-text: #ccc;
  --px-title: #ccc;
  --px-icon: #eee;
  --px-hover: #777;
  --px-hover-shadow: rgb(0 0 0 / 0.2);
  --px-disabled-bg: transparent;
  --px-disabled-text: #ccc;
  --px-search: linear-gradient(to bottom, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.2));
  --px-search-text: #ccc;
  --px-head-text: #ccc;
}

.px button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
}

.px-header {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: -3px -3px 3px 0;
}

.px-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  color: var(--px-title);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

.px-title img {
  width: 16px;
  height: 16px;
}

.px-action {
  display: grid;
  place-items: center;
  padding: 4px 3.5px;
  border-radius: 4px;
  color: var(--px-icon);
  opacity: 0.6;
  transition: opacity 0.15s;
}

.px-action:hover {
  opacity: 1;
}

.px-action .icon {
  width: 17px;
  height: 17px;
}

.px-action.star {
  color: #ff9300;
}

.px-switch .icon {
  width: 24px;
  height: 18px;
  stroke-width: 1.8;
}

.px-switch .knob {
  fill: currentColor;
  stroke: none;
  transition: transform 0.25s var(--ease-out);
}

.px-switch[aria-pressed="true"] .knob {
  transform: translateX(-8px);
}

.px-switch[aria-pressed="true"] {
  color: #444;
}

.px.dark .px-switch[aria-pressed="true"] {
  color: #aaa;
}

.px-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 2px 6px;
  border-radius: 3px 3px 0 0;
  background-image: var(--px-search);
  color: #777;
}

.px-search .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

.px-search input {
  flex: 1;
  min-width: 0;
  padding: 4px 3px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--px-search-text);
  font: inherit;
}

.px-search input::placeholder {
  color: #999;
}

.px-search:focus-within {
  box-shadow: 0 0 0 2px rgb(81 108 151 / 0.45);
}

.px h2 {
  margin: 0;
  padding: 3px 5px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--mist), var(--steel));
  color: var(--px-head-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.35;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.7);
}

.px ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.px-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 3.5px 4px;
  border-radius: 2px;
  transition: background-color 0.2s, opacity 0.2s, color 0.2s;
}

.px-row:hover {
  background-color: var(--px-hover);
  box-shadow: 0 0 15px var(--px-hover-shadow) inset;
}

/* Set by the demo's opening animation when it clicks a row by itself */
.px-row.auto-press {
  background-color: var(--px-hover);
  box-shadow: 0 0 0 2px var(--amber) inset;
}

.px-row:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: -2px;
}

.px-row .ext-ico {
  transition: opacity 0.2s, filter 0.2s;
}

.px-ext[aria-pressed="false"] {
  background-color: var(--px-disabled-bg);
  color: var(--px-disabled-text);
  opacity: 0.7;
}

.px-ext[aria-pressed="false"]:hover {
  background-color: var(--px-hover);
}

.px-ext[aria-pressed="false"] .ext-ico {
  opacity: 0.3;
  filter: grayscale(1);
}

.px-row .name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.px-row .flask,
.px-row .gear {
  width: 14px;
  height: 14px;
  color: #777;
}

.px-row .gear {
  transition: color 0.15s, transform 0.3s var(--ease-out);
}

.px-row .gear:hover {
  color: #333;
  transform: rotate(60deg);
}

.px.dark .px-row .gear:hover {
  color: #ccc;
}

.px-ext[aria-pressed="false"] .gear {
  visibility: hidden;
}

.px-profile .mark {
  display: grid;
  place-items: center;
  width: 16px;
}

.px-profile .mark .icon {
  width: 14px;
  height: 14px;
}

.px-profile .check {
  display: none;
  color: green;
  stroke-width: 3;
}

.px-profile[aria-pressed="true"] .check {
  display: block;
}

.px-profile[aria-pressed="true"] .user {
  display: none;
}

.px-empty {
  padding: 14px 0 6px;
  color: #777;
  text-align: center;
}

.px-empty .icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
}

.px-toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #1b2942;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease-out);
}

.px-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Extension icons used in the demo: a glyph on a coloured tile */
.ext-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--c, #888);
  color: #fff;
}

.ext-ico .icon {
  width: 72%;
  height: 72%;
  stroke-width: 2.6;
}

/* Memory meter under the window: one segment per extension that's on */

.mem {
  margin-top: 1rem;
  padding: 0.85rem 1rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(0 0 0 / 0.18);
}

.mem-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.mem-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.mem-label .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--gold);
}

.mem-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--faint);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.mem-value b {
  min-width: 2.4em;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.mem-delta {
  margin-right: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgb(70 195 123 / 0.16);
  color: #8be0ae;
  font-size: 0.82rem;
  font-weight: 600;
}

.mem-delta.up {
  background: rgb(255 170 0 / 0.16);
  color: var(--gold);
}

.mem-bar {
  display: flex;
  height: 14px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  overflow: hidden;
}

/* Full width is every extension on (477 MB in the example) */
.mem-seg {
  position: relative;
  flex: none;
  width: calc(var(--mb) * 100% / 477);
  transition: width 0.6s var(--ease-out);
}

.mem-seg::before {
  content: "";
  position: absolute;
  inset: 0 2px 0 0;
  background: var(--c);
}

.mem-seg.off {
  width: 0;
}

.mem-note {
  margin-top: 0.55rem;
  color: var(--faint);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  .mem-seg {
    transition: none;
  }
}

/* Under the window */

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.1rem;
  color: var(--faint);
  font-size: 0.92rem;
}

.demo-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-hint .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--gold);
}

.demo-controls {
  display: flex;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  background: rgb(255 255 255 / 0.12);
  color: var(--text);
}

.chip .icon {
  width: 1em;
  height: 1em;
}

.chip[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--cream);
}

.demo-status {
  font-variant-numeric: tabular-nums;
}

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

/* Narrow screens: drop the browser chrome we don't need */
@container (max-width: 520px) {
  .demo-window {
    min-height: 452px;
  }

  .demo-nav,
  .demo-address {
    display: none;
  }

  .demo-exts {
    margin-left: auto;
  }

  .px {
    left: 50%;
    right: auto;
    width: min(292px, calc(100% - 24px));
    transform: translateX(-50%);
  }

  .px[hidden] {
    transform: translateX(-50%) scale(0.92) translateY(-6px);
  }

  .px::before {
    display: none;
  }

  .demo-page {
    padding: 20px 16px 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .demo {
    animation: rise 0.8s var(--ease-out) 0.15s both;
  }
}

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

.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature {
  position: relative;
  grid-column: span 2;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    transform 0.3s var(--ease-out);
}

.feature:hover {
  background: var(--card-hover);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.feature.wide {
  grid-column: span 3;
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature,
  .feature.wide {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--mist), var(--steel));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 6px 14px -6px rgb(0 0 0 / 0.5);
}

.feature-icon .icon {
  width: 1.35rem;
  height: 1.35rem;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.35));
}

.feature-icon.amber {
  background: linear-gradient(180deg, var(--gold), var(--orange));
  color: var(--navy-900);
}

.feature-icon.amber .icon {
  filter: none;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.feature p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Mini illustrations inside the two wide cards */

.mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.22);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  white-space: nowrap;
}

.mini-chip .ext-ico {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.mini-chip.off {
  color: var(--faint);
}

.mini-chip.off .ext-ico {
  filter: grayscale(1);
  opacity: 0.35;
}

.mini-switch {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.mini-switch .track {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25);
}

.mini-switch .track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 34px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .mini-switch .track {
    animation: track 4s var(--ease-out) infinite;
  }

  .mini-switch .track::after {
    animation: knob 4s var(--ease-out) infinite;
  }

  .mini-switch .tiles .ext-ico {
    animation: tile 4s var(--ease-out) infinite;
    animation-delay: calc(var(--i) * 40ms);
  }
}

@keyframes knob {
  0%, 40% { left: 34px; }
  50%, 90% { left: 4px; }
  100% { left: 34px; }
}

@keyframes track {
  0%, 40% { background: linear-gradient(180deg, var(--gold), var(--orange)); }
  50%, 90% { background: rgb(255 255 255 / 0.18); }
}

@keyframes tile {
  0%, 42% { opacity: 1; filter: none; }
  52%, 90% { opacity: 0.3; filter: grayscale(1); }
  100% { opacity: 1; filter: none; }
}

.mini-switch .tiles {
  display: flex;
  gap: 0.35rem;
}

.mini-switch .tiles .ext-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

.step p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.key {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.06);
  font-family: var(--font-mono);
  font-size: 0.85em;
  line-height: 1.5;
}

.step .kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  margin-inline: 0.1em;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  vertical-align: -0.35em;
}

.step .kbd .icon {
  width: 0.95em;
  height: 0.95em;
}

/* ---------- Privacy / open source ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.split .section-head {
  margin-bottom: 0;
}

.promises {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.promises li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
}

.promises .icon {
  margin-top: 0.15em;
  color: var(--gold);
}

.promises strong {
  color: var(--text);
  font-weight: 600;
}

.terminal {
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.5);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}

.terminal-bar b {
  margin-left: 0.6rem;
  font-weight: 400;
}

.terminal pre {
  margin: 0;
  padding: 1.25rem 1.35rem 1.4rem;
  overflow-x: auto;
  color: #e6e6e6;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.75;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.2) transparent;
}

.terminal .c { color: rgb(255 255 255 / 0.45); }
.terminal .k { color: var(--mist); }
.terminal .s { color: var(--gold); }
.terminal .p { color: var(--amber); user-select: none; }

.terminal hr {
  margin: 0;
  border: 0;
  border-top: 1px dashed rgb(255 255 255 / 0.12);
}

.terminal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

/* ---------- History ---------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mist) 8%, var(--mist) 85%, var(--gold));
  opacity: 0.6;
}

.timeline li {
  position: relative;
  padding-top: 2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--mist);
}

.timeline li:last-child::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgb(252 185 53 / 0.2);
}

.timeline .year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
}

.timeline h3 {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 650;
}

.timeline p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding-left: 2rem;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 0.4rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--mist) 85%, var(--gold));
  }

  .timeline li {
    padding-top: 0;
  }

  .timeline li::before {
    top: 0.45rem;
    left: -2rem;
  }
}

.after-list {
  margin-top: 2.5rem;
}

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

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: background-color 0.2s, border-color 0.2s;
}

.faq details[open] {
  background: var(--card-hover);
  border-color: var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  color: var(--faint);
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq .answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
}

.faq .answer p + p {
  margin-top: 0.75rem;
}

/* Smoothly open and close, where the browser can animate to height: auto */
@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 0.35s var(--ease-out),
      content-visibility 0.35s allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

/* ---------- Support ---------- */

.support-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 62rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgb(255 170 0 / 0.12), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03));
  border: 1px solid rgb(252 185 53 / 0.35);
}

@media (max-width: 700px) {
  .support-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6);
  object-fit: cover;
}

.support-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.45;
}

.support-card blockquote p + p {
  margin-top: 0.9rem;
}

.support-card .signature {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.support-card .signature a {
  color: var(--cream);
}

.donate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.donate-row form {
  margin: 0;
}

.donate-row .icon.btc {
  width: 1.3em;
  height: 1.3em;
}

.other-help {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.other-help span {
  color: var(--faint);
}

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

.site-footer {
  padding-block: 3.5rem 2.5rem;
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-bottom a {
  color: var(--muted);
}

/* ---------- Support page (help.html) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  margin-top: -4.25rem;
  padding-top: calc(4.25rem + clamp(3rem, 8vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40rem 22rem at 50% 0%, rgb(127 151 185 / 0.4), transparent 70%),
    radial-gradient(26rem 16rem at 85% 70%, rgb(255 170 0 / 0.08), transparent 70%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.page-hero h1 em {
  color: var(--gold);
}

.page-hero h1 ~ p {
  max-width: 36rem;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.page-hero .donate-row {
  justify-content: center;
}

.letter {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--cream);
  color: #1f2a3d;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.7);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.7;
}

.letter-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.letter-head .avatar {
  width: 64px;
  height: 64px;
  border-color: var(--amber);
}

.letter-head strong {
  display: block;
  font-size: 1.35rem;
}

.letter-head span {
  color: #5b6477;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.letter p + p {
  margin-top: 1.1rem;
}

.letter strong {
  color: var(--navy);
}

.letter .sign {
  margin-top: 1.75rem;
  font-style: italic;
}

.letter .donate-row {
  justify-content: center;
  margin-block: 2rem;
  font-family: var(--font-body);
}

.letter .btn-ghost {
  border-color: rgb(48 70 105 / 0.3);
  background: rgb(48 70 105 / 0.06);
  color: var(--navy);
}

.letter .btn-ghost:hover {
  background: rgb(48 70 105 / 0.12);
  border-color: rgb(48 70 105 / 0.5);
}

.letter :focus-visible {
  outline-color: var(--navy);
}

.crypto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 52rem;
  margin-inline: auto;
}

@media (max-width: 760px) {
  .crypto {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wallet {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}

.wallet-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 650;
}

.wallet-head img {
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
}

.wallet .qr {
  width: 168px;
  height: 168px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  image-rendering: pixelated;
}

.address {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.3);
}

.address code {
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
}

.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy-900);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.copy:hover {
  background: var(--gold);
}

.copy:active {
  transform: scale(0.96);
}

.copy .icon {
  width: 1em;
  height: 1em;
}

.copy .done,
.copy.copied .idle {
  display: none;
}

.copy.copied .done {
  display: inline;
}

/* ---------- Unofficial copies page (unofficial.html) ---------- */

.eyebrow .icon {
  width: 1.1em;
  height: 1.1em;
}

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

/* Verdict bar across the top of each card: official, forgery, or not Extensity.
   Cards that hold one set --pad and overflow: hidden. */
.verdict {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0;
  padding: 0.75rem var(--pad);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verdict .icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.6;
}

.verdict.ok {
  background: var(--ok);
  color: var(--navy-900);
}

.verdict.ok .icon {
  stroke-width: 3.4;
}

.verdict.danger {
  background: #c9362f;
  color: #fff;
}

.verdict.soft {
  border-bottom: 1px solid rgb(255 93 85 / 0.3);
  background: rgb(255 93 85 / 0.14);
  color: #ffb3ad;
}

/* The real one */

.official {
  --pad: clamp(1.5rem, 4.5vw, 2.75rem);
  max-width: 56rem;
  margin-inline: auto;
  padding: var(--pad);
  overflow: hidden;
  border: 1px solid rgb(70 195 123 / 0.6);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgb(70 195 123 / 0.14), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.03));
  box-shadow:
    0 0 0 6px rgb(70 195 123 / 0.06),
    0 30px 70px -40px rgb(0 0 0 / 0.8);
}

.official-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.official-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.6);
}

.official-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ok);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.official-label .icon {
  width: 1.15em;
  height: 1.15em;
}

.official h2 {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}

.official .by {
  margin-top: 0.2rem;
  color: var(--muted);
}

.official-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.75rem;
}

@media (max-width: 760px) {
  .official-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.official-note {
  margin-top: 1.5rem;
  color: var(--muted);
}

.facts {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 560px) {
  .facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

.facts dt {
  color: var(--faint);
  font-size: 0.92rem;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.facts a {
  color: var(--cream);
  text-decoration-color: rgb(255 246 233 / 0.35);
  text-underline-offset: 3px;
}

.facts a:hover {
  color: var(--gold);
}

.facts .ext-id {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 600;
  word-break: break-all;
}

.checklist code,
.listing p code,
.mini-card code {
  padding: 0.1em 0.4em;
  border-radius: 5px;
  background: rgb(0 0 0 / 0.3);
}

/* Permission lists: the real one in green, forgeries with their extras in red */

.perms {
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-sm);
  background: var(--black);
}

.perms-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.7rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.perms-title span {
  color: var(--faint);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.perms ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.perms li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
}

.perms li .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.perms li code {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.perms li span {
  grid-column: 2;
  color: var(--faint);
  font-size: 0.85rem;
}

.perms.ok li {
  background: rgb(70 195 123 / 0.1);
}

.perms.ok li .icon {
  color: var(--ok);
  stroke-width: 3;
}

.perms.ok li code {
  color: #b8f0cf;
}

.perms.bad li.same,
.perms.bad li.same .icon {
  color: var(--faint);
}

.perms.bad li.extra {
  background: rgb(255 93 85 / 0.16);
  box-shadow: inset 3px 0 0 var(--danger);
}

.perms.bad li.extra .icon {
  color: var(--danger);
}

.perms.bad li.extra code {
  color: #ffc2be;
  font-weight: 600;
}

.perms.bad li.extra code::before {
  content: "+ ";
  color: var(--danger);
}

.perms.bad li.extra span {
  color: #ffa49e;
}

/* Full-width red warning band (unofficial copies page, and its section on the home page) */

.warning-band {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-block: 1px solid rgb(255 93 85 / 0.35);
  background: linear-gradient(180deg, #5e3445, #512e40);
  color: #fff;
}

.warning-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 520px) {
  .warning-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
}

.warning-icon {
  width: clamp(2.25rem, 5vw, 3.25rem);
  height: clamp(2.25rem, 5vw, 3.25rem);
  color: #ff8f88;
  stroke-width: 2;
}

.warning-band .warning-kicker {
  margin: 0 0 0.35rem;
  color: #ffb3ad;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.warning-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 400;
  text-wrap: balance;
}

.warning-band p {
  max-width: 52rem;
  margin-top: 0.75rem;
  color: rgb(255 255 255 / 0.85);
  font-size: 1.05rem;
}

.warning-actions {
  margin-top: 1.5rem;
}

/* Forgeries */

.eyebrow.danger {
  background: linear-gradient(180deg, #ff7d76, #e2463f);
}

.section-title em.danger {
  color: var(--danger);
}

.forgeries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1.25rem;
}

.forgery {
  --pad: clamp(1.25rem, 3.5vw, 1.75rem);
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding: var(--pad);
  overflow: hidden;
  border: 1px solid rgb(255 93 85 / 0.6);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(255 93 85 / 0.12), rgb(255 93 85 / 0.03)),
    repeating-linear-gradient(-45deg, transparent 0 16px, rgb(255 93 85 / 0.035) 16px 32px);
}

/* How the copy shows up in its store: Extensity's own icon and name */
.fake-listing {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(0 0 0 / 0.28);
}

.fake-listing img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.fake-listing h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

.fake-listing span {
  display: block;
  margin-top: 0.15rem;
  color: var(--faint);
  font-size: 0.88rem;
}

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

.signs li {
  display: flex;
  gap: 0.65rem;
  color: var(--muted);
}

.signs .icon {
  flex: none;
  margin-top: 0.2em;
  color: var(--danger);
  stroke-width: 3;
}

.id-line {
  color: var(--faint);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.id-line code {
  padding: 0.1em 0.4em;
  border-radius: 5px;
  background: rgb(0 0 0 / 0.3);
  color: var(--muted);
}

/* Lookalikes: same name, different extension */

.listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.1rem;
}

.listing {
  --pad: 1.6rem;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: var(--pad);
  overflow: hidden;
  border: 1px solid rgb(255 93 85 / 0.3);
  border-radius: var(--radius);
  background: var(--card);
}

.listing header {
  display: grid;
  gap: 0.35rem;
}

.listing .store {
  justify-self: start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.listing h3 {
  margin-top: 0.35rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.listing .id {
  color: var(--faint);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.listing p {
  color: var(--muted);
}

.more-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.mini-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.mini-card > .icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--mist);
}

.mini-card h3 {
  font-size: 1.1rem;
  font-weight: 650;
}

.mini-card p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.checked {
  margin-top: 2rem;
  color: var(--faint);
  font-size: 0.92rem;
}

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

.checklist li {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--muted);
}

.checklist li > div {
  min-width: 0;
}

.checklist code {
  word-break: break-all;
}

.checklist strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-weight: 600;
}

.checklist .num {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
}

.report {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03));
}

@media (max-width: 620px) {
  .report {
    grid-template-columns: minmax(0, 1fr);
  }
}

.report-icon {
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--mist), var(--steel));
}

.report h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
}

.report p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.report .donate-row {
  margin-top: 1.75rem;
}

/* ---------- Reveal on scroll ----------
   Pure CSS, driven by the element's position in the viewport. Never touches
   scrolling itself, and content is fully visible where it isn't supported. */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* Uses translate/scale rather than transform, so it never fights hover effects. */
@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 28px;
    scale: 0.985;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
