/*
 * Echo website (homepage and /legal/*)
 *
 * Colours, type and radii follow the Echo dashboard: Plus Jakarta Sans, navy
 * surfaces and the teal Echo primary.
 */

:root {
  /* Surfaces, from the dashboard's dark theme */
  --bg: #243253;
  --bg-deep: #1d2946;
  --surface: #26385a;
  --surface-2: #293e6a;
  --surface-3: #2f477a;
  --border: rgba(45, 69, 111, 0.74);
  --border-strong: #35507f;

  /* Text */
  --heading: #eaeff4;
  --text: #9aabc5;
  /* At least 4.5:1 on --bg, --bg-deep and --surface, for small text */
  --muted: #93a3bc;

  /* Brand */
  --primary: #17a2b8;
  --primary-rgb: 23, 162, 184;
  --primary-text: #3ec6dc;
  --primary-hover: #138fa3;
  --secondary: #49beff;
  --success: #2dce89;
  --info: #539bff;
  --warning: #ecb403;
  --danger: #f5365c;
  --danger-text: #ff7590;

  /* Subtle fills, from the dashboard */
  --primary-subtle: rgba(23, 162, 184, 0.12);
  --secondary-subtle: #1c455d;
  --success-subtle: #1b3c48;
  --info-subtle: #223662;
  --warning-subtle: #4d3a2a;
  --danger-subtle: #4b313d;

  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 12px 30px rgba(8, 14, 30, 0.35);
  --shadow-lg: 0 30px 80px rgba(8, 14, 30, 0.55);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--primary-text);
  text-decoration: none;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

::selection {
  background: rgba(var(--primary-rgb), 0.45);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Layout */
.container,
.container-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

.container {
  max-width: 1232px;
}

.container-wide {
  max-width: 1432px;
}

.container-narrow {
  max-width: 860px;
}

@media (min-width: 768px) {
  .container,
  .container-wide {
    padding-inline: 24px;
  }
}

.section {
  padding-block: 72px;
}

@media (min-width: 992px) {
  .section {
    padding-block: 112px;
  }
}

/* Back-to-back sections share one gap rather than stacking two, so every
   gap between sections on the page is the same. A section with its own
   background keeps its padding, inside the background. */
.section:not(.section-alt) + .section:not(.section-alt) {
  padding-top: 0;
}

.section-alt {
  background: var(--bg-deep);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  font-weight: 800;
  text-wrap: balance;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.0625rem;
  text-wrap: balance;
}

.section-head-start {
  margin-inline: 0;
  text-align: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-subtle);
  color: var(--primary-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(100deg, var(--primary-text) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
}

.text-link i {
  transition: transform 0.2s var(--ease);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.38);
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--heading);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
  color: var(--heading);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Pills, tiles and dots shared by the mockups */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.pill i {
  font-size: 0.9rem;
}

.pill-primary {
  background: var(--primary-subtle);
  color: var(--primary-text);
}

.pill-success {
  background: var(--success-subtle);
  color: var(--success);
}

.pill-warning {
  background: var(--warning-subtle);
  color: var(--warning);
}

.pill-danger {
  background: var(--danger-subtle);
  color: var(--danger-text);
}

.pill-info {
  background: var(--info-subtle);
  color: #8bb8ff;
}

.pill-secondary {
  background: var(--secondary-subtle);
  color: var(--secondary);
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  font-size: 1.375rem;
}

.icon-tile-primary {
  background: var(--primary-subtle);
  color: var(--primary-text);
}

.icon-tile-success {
  background: var(--success-subtle);
  color: var(--success);
}

.icon-tile-warning {
  background: var(--warning-subtle);
  color: var(--warning);
}

.icon-tile-danger {
  background: var(--danger-subtle);
  color: var(--danger-text);
}

.icon-tile-info {
  background: var(--info-subtle);
  color: #8bb8ff;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-danger {
  background: var(--danger);
}

.dot-warning {
  background: var(--warning);
}

.dot-info {
  background: var(--info);
}

/* Announcement bar */
.announce {
  background: linear-gradient(90deg, #138397, var(--primary) 45%, #2b9fe0);
  color: #fff;
  font-size: 0.875rem;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 42px;
  padding-block: 8px;
  text-align: center;
}

.announce-badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: #0f1d36;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.announce-text {
  font-weight: 500;
}

@media (max-width: 575px) {
  .announce {
    font-size: 0.8125rem;
  }
}

.announce-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Region banner: points visitors in Latin America to their Echo LATAM site */
.region-banner {
  border-bottom: 1px solid rgba(43, 212, 106, 0.3);
  background:
    linear-gradient(90deg, rgba(43, 212, 106, 0.18), rgba(var(--primary-rgb), 0.18) 60%, rgba(73, 190, 255, 0.14)),
    var(--bg-deep);
  color: var(--heading);
  font-size: 0.875rem;
}

.region-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 46px;
  padding-block: 8px;
  padding-inline-end: 44px;
  position: relative;
  text-align: center;
}

.region-banner-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.region-banner-text {
  font-weight: 500;
}

.region-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #2bd46a;
  color: #0d2a19;
  font-weight: 700;
  transition: filter 0.2s;
}

.region-banner-cta:hover {
  filter: brightness(1.08);
}

.region-banner-other {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.region-banner-other:hover {
  color: var(--heading);
}

.region-banner-close {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
}

.region-banner-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--heading);
}

@media (max-width: 575px) {
  .region-banner {
    font-size: 0.8125rem;
  }

  .region-banner-other {
    display: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(36, 50, 83, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(29, 41, 70, 0.92);
  box-shadow: 0 10px 30px rgba(8, 14, 30, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.header-brand {
  flex: none;
  margin-inline-end: 28px;
}

.logo {
  width: auto;
  height: 38px;
}

/* The header logo's rings turn around the O at the brand's pace: the outer
   pair clockwise once every 30s, the inner pair anticlockwise once every
   10s, both starting from the rest position. Without motion they stay
   there. The outer ring touches the edge of the box, so overflow is left
   visible to keep its antialiased edge. */
.logo-animated {
  overflow: visible;
}

.logo-ring-outer,
.logo-ring-inner {
  transform-box: view-box;
  transform-origin: 1396px 579px;
}

@media (prefers-reduced-motion: no-preference) {
  .logo-ring-outer {
    animation: logo-ring 30s linear infinite;
  }

  .logo-ring-inner {
    animation: logo-ring 10s linear infinite reverse;
  }
}

@keyframes logo-ring {
  to {
    transform: rotate(360deg);
  }
}

.header-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
}

/* Sits right after the logo, with the buttons pushed to the far end. */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: auto;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--heading);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The language selector and, on small screens, the menu button. */
.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

/*
 * Language selector, like the dashboard's: the current language's flag in a
 * round button, with the languages in a dropdown underneath.
 */
.lang-select {
  position: relative;
}

/* Sized and styled like the header's ghost buttons ("Log In"), so it sits
   in line with them: 44px tall, transparent until hovered. */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lang-trigger::-webkit-details-marker {
  display: none;
}

.lang-trigger:hover,
.lang-select[open] .lang-trigger {
  background: rgba(255, 255, 255, 0.06);
}

.lang-trigger .ti {
  color: var(--text);
  font-size: 0.875rem;
  transition: transform 0.2s;
}

.lang-select[open]:not(.is-closing) .lang-trigger .ti {
  transform: rotate(180deg);
}

.lang-flag {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.lang-trigger .lang-flag {
  width: 20px;
  height: 20px;
}

/* Every language fits in two columns, so the menu never scrolls. */
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 20;
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 24px 60px rgba(8, 14, 30, 0.55), 0 6px 18px rgba(8, 14, 30, 0.35);
}

/* Bridges the gap to the trigger, so hover doesn't drop the menu. */
.lang-menu::before {
  content: "";
  position: absolute;
  inset: -11px 0 auto;
  height: 11px;
}

.lang-menu-head {
  display: none;
}

.lang-section {
  padding: 6px 8px 4px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-option[aria-current] {
  background: var(--primary-subtle);
  color: var(--primary-text);
}

.lang-option[aria-current] .lang-flag {
  box-shadow: 0 0 0 2px var(--primary);
}

.lang-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-check {
  margin-inline-start: auto;
  font-size: 1rem;
}

.lang-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 2px 0;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 0.75rem;
}

.lang-foot a {
  color: var(--primary-text);
}

/* site.js adds .is-closing and waits for the animation before closing, since
   a <details> otherwise hides its content at once. */
@media (prefers-reduced-motion: no-preference) {
  .lang-select[open] .lang-menu {
    transform-origin: top right;
    animation: lang-menu-in 0.2s var(--ease);
  }

  .lang-select.is-closing .lang-menu {
    animation: lang-menu-out 0.16s ease-in forwards;
  }
}

@keyframes lang-menu-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes lang-menu-out {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

/* On phones site.js opens the menu in this modal dialog, a sheet from the
   bottom of the screen. It's in the top layer, so the header's
   backdrop-filter can't trap it the way it would a fixed element. */
.lang-sheet {
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: 80dvh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface-2);
  box-shadow: 0 -12px 40px rgba(8, 14, 30, 0.45);
  color: var(--text);
}

/* site.js focuses the sheet itself when it's opened by a tap. */
.lang-sheet:focus {
  outline: none;
}

/* The page behind the sheet is dimmed and blurred. */
.lang-sheet::backdrop {
  background: rgba(8, 12, 24, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html:has(.lang-sheet[open]) {
  overflow: hidden;
}

.lang-sheet .lang-menu {
  position: static;
  width: auto;
  max-width: none;
  padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  animation: none;
}

.lang-sheet .lang-menu::before {
  inset: 8px 50% auto;
  width: 40px;
  height: 4px;
  margin-inline-start: -20px;
  border-radius: 2px;
  background: var(--border-strong);
}

.lang-sheet .lang-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6px 8px;
  color: var(--heading);
  font-weight: 700;
}

.lang-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading);
  cursor: pointer;
}

.lang-sheet .lang-option {
  padding: 12px 10px;
}

/* Long names ("Português (Portugal)") wrap rather than being cut short. */
.lang-sheet .lang-name {
  line-height: 1.25;
  white-space: normal;
}

/* site.js adds .is-closing and waits for the slide down before closing. */
@media (prefers-reduced-motion: no-preference) {
  .lang-sheet[open] {
    animation: lang-sheet-in 0.3s var(--ease);
  }

  .lang-sheet[open]::backdrop {
    animation: lang-backdrop-in 0.3s ease-out;
  }

  .lang-sheet.is-closing {
    animation: lang-sheet-out 0.22s ease-in forwards;
  }

  .lang-sheet.is-closing::backdrop {
    animation: lang-backdrop-out 0.22s ease-in forwards;
  }
}

@keyframes lang-sheet-in {
  from {
    transform: translateY(100%);
  }
}

@keyframes lang-sheet-out {
  to {
    transform: translateY(100%);
  }
}

@keyframes lang-backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes lang-backdrop-out {
  to {
    opacity: 0;
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--heading);
  font-size: 1.375rem;
  cursor: pointer;
}

@media (max-width: 1099px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100dvh - var(--header-h));
    padding: 16px 16px 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
  }

  .site-header.is-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .nav-links a {
    padding: 12px;
    font-size: 1rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .btn {
    width: 100%;
  }

  /* Without JS the menu stays in the flow so it can still be used. */
  html:not(.js) .header-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
  }
}

/* Hero */
.hero {
  position: relative;
  padding-top: 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(var(--primary-rgb), 0.22), transparent 70%),
    radial-gradient(40% 35% at 85% 30%, rgba(73, 190, 255, 0.12), transparent 70%),
    radial-gradient(40% 35% at 10% 40%, rgba(83, 155, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.375rem, 1.4rem + 4.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* Keep the highlighted phrase on one line. */
.hero-title .text-gradient {
  white-space: nowrap;
}

.hero-sub {
  max-width: 680px;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 36px;
  height: 36px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
}

.avatar-stack a {
  position: relative;
  display: block;
  border-radius: 50%;
  transition: transform 0.2s var(--ease);
}

.avatar-stack a + a {
  margin-inline-start: -10px;
}

/* The hovered logo comes out from under its neighbour. */
.avatar-stack a:hover {
  z-index: 1;
  transform: translateY(-2px);
}

.avatar-stack a:hover img {
  filter: drop-shadow(0 4px 10px rgb(23 162 184 / 0.5));
}

.avatar-stack img {
  display: block;
  transition: filter 0.2s var(--ease);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 32px;
}

.hero-games {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-games-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-games ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.game-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease);
}

/* Fills the chip like the game cards. The chip can't clip with overflow
   because its tooltip sits outside it, so the image rounds itself. */
.game-chip img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 1px);
  object-fit: cover;
}

.game-chip:hover,
.game-chip:focus-visible {
  transform: translateY(-3px);
}

/* Tooltips from data-tooltip */
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 5px 10px;
  border-radius: 6px;
  background: #0f1a30;
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s, transform 0.15s;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-stage {
  position: relative;
  max-width: 1120px;
  display: flex;
  justify-content: center;
  margin-top: 64px;
  padding-bottom: 24px;
}


/* Browser window around the dashboard mockup */
.browser {
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, 0.02);
  text-align: start;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

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

.browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f5365c;
}

.browser-dots i:nth-child(2) {
  background: #ecb403;
}

.browser-dots i:nth-child(3) {
  background: #2dce89;
}

.browser-address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
  padding: 5px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

/*
 * Dashboard replica, matching the Echo dashboard's dark theme: cards are the
 * body colour with a deep shadow, subtle fills sit on top.
 * Sizes are in em so the whole thing scales from .dash's font size.
 */
.dash {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  padding: 2.2em;
  background: #243253;
  color: #7c8fac;
  font-size: 10px;
  line-height: 1.5;
}

.dash code {
  padding: 0.15em 0.45em;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #eaeff4;
  font-size: 0.875em;
  font-weight: 500;
}

.d-verdict {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1.2em 2em;
  border-radius: 7px;
  background: #4b313d;
}

.d-verdict-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  background: #f5365c;
  color: #fff;
  font-size: 1.2em;
}

.d-verdict-icon i {
  font-size: 1.6em;
}

.d-verdict > span:last-child {
  display: flex;
  flex-direction: column;
}

.d-verdict strong {
  color: #eaeff4;
  font-size: 1.35em;
  font-weight: 600;
}

.d-verdict small {
  font-size: 1em;
}

.d-card {
  overflow: hidden;
  border-radius: 7px;
  background: #243253;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.176);
}

.d-card-header {
  display: flex;
  flex-direction: column;
  padding: 1.1em 2.1em;
  background: rgba(124, 143, 172, 0.03);
}

.d-card-header strong {
  color: #eaeff4;
  font-size: 1.3em;
  font-weight: 600;
}

.d-card-header small {
  font-size: 1em;
}

.d-card-header-split {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.d-card-header-split > span:first-child {
  display: flex;
  flex-direction: column;
}

.d-card-body {
  padding: 1.4em 2.1em 1.8em;
}

.text-primary {
  color: #17a2b8;
}

.text-secondary {
  color: #49beff;
}

.text-success {
  color: #2dce89;
}

.text-danger {
  color: #f5365c;
}

.text-warning {
  color: #ecb403;
}

.text-info {
  color: #539bff;
}

.d-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-inline-start: auto;
  padding: 0.3em 0.7em;
  border-radius: 7px;
  font-size: 0.95em;
  font-weight: 500;
  text-align: end;
  overflow-wrap: anywhere;
}

.d-badge-primary {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.d-badge-secondary {
  background: rgba(73, 190, 255, 0.1);
  color: #49beff;
}

.d-badge-success {
  background: rgba(45, 206, 137, 0.1);
  color: #2dce89;
}

.d-badge-warning {
  background: rgba(236, 180, 3, 0.1);
  color: #ecb403;
}

.d-badge-danger {
  background: rgba(245, 54, 92, 0.12);
  color: #ff6b88;
}

.d-badge-info {
  background: rgba(83, 155, 255, 0.12);
  color: #8bb8ff;
}

.d-filters {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}

.d-filter {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 1em;
  padding: 0.3em;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.176);
}

.d-filter-success {
  background: rgba(45, 206, 137, 0.08);
}

.d-filter-warning {
  background: rgba(236, 180, 3, 0.08);
}

.d-filter-danger {
  background: rgba(245, 54, 92, 0.08);
}

.d-filter-icon {
  display: grid;
  place-items: center;
  width: 3em;
  height: 3em;
  border-radius: 7px;
  font-size: 1.1em;
}

.d-filter-success .d-filter-icon {
  background: #1b3c48;
  color: #2dce89;
}

.d-filter-warning .d-filter-icon {
  background: #4d3a2a;
  color: #ecb403;
}

.d-filter-danger .d-filter-icon {
  background: #4b313d;
  color: #f5365c;
}

.d-filter > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.d-filter small {
  font-size: 1em;
}

.d-filter b {
  color: #eaeff4;
  font-size: 1.15em;
  font-weight: 600;
}

.d-feed {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.d-feed-item {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 1em 1em 1em 1.4em;
  border-radius: 7px;
  background: #4b313d;
}

.d-feed-item::before {
  content: "";
  align-self: stretch;
  flex: none;
  width: 2px;
  margin-inline-end: 0.3em;
  background: #f5365c;
}

.d-feed-item > i:first-of-type {
  color: #f5365c;
  font-size: 1.35em;
}

.d-feed-item span {
  flex: 1;
  min-width: 0;
  color: #eaeff4;
  font-size: 1.1em;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.d-feed-item.is-warning {
  background: #4d3a2a;
}

.d-feed-item.is-warning::before {
  background: #ecb403;
}

.d-feed-item.is-warning > i:first-of-type {
  color: #ecb403;
}

.d-official {
  color: #2dce89;
  font-size: 1.4em;
}

.d-custom {
  color: #539bff;
  font-size: 1.4em;
}

/* Floating cards on either side of the scan window */
.float-card {
  position: absolute;
  z-index: 2;
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/*
 * Both cards are anchored to the edges of the 900px scan window and overlap
 * it by 40px, which only covers the window's padding and the card margins
 * inside it. Extra screen width lets them grow outwards.
 */
.float-left {
  top: 230px;
  right: calc(50% + 450px - 40px);
  width: 214px;
  padding: 18px;
  background: #243253;
  font-size: 13px;
}

.float-right {
  top: 30px;
  left: calc(50% + 450px - 40px);
  width: 214px;
  overflow: hidden;
}

.float-right .tool-frame {
  border-radius: 12px;
  box-shadow: none;
}

.float-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-account img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  image-rendering: pixelated;
}

.float-account > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.float-account strong {
  color: #eaeff4;
  font-size: 1.15em;
}

.float-account .d-badge,
.float-account-foot .d-badge {
  margin: 0;
}

.float-account-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

/* With room to spare the account card grows to fit its badges on one line. */
@media (min-width: 1440px) {
  .float-left {
    width: max-content;
    font-size: 14px;
  }

  .float-account-foot {
    flex-wrap: nowrap;
  }

  .float-account-foot .d-badge {
    white-space: nowrap;
  }

  .float-right {
    width: 290px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .float-left {
    animation: bob 7s ease-in-out infinite;
  }

  .float-right {
    animation: bob 7s ease-in-out -3.5s infinite;
  }

}

@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

/* Firefox snaps a plain translate to whole pixels, so an 8px bob over 3.5s
   moves in visible one-pixel steps. The tiny rotation keeps it subpixel. */
@supports (-moz-appearance: none) {
  @keyframes bob {
    0%,
    100% {
      transform: translateY(0) rotate(0.02deg);
    }

    50% {
      transform: translateY(-8px) rotate(0.02deg);
    }
  }
}

/* The cards need the space beside the window, so they only show when it exists. */
@media (max-width: 1279px) {
  .float-card {
    display: none;
  }
}

@media (max-width: 991px) {
  .dash {
    font-size: 11px;
  }
}

@media (max-width: 575px) {
  .hero {
    padding-top: 40px;
  }

  .hero-stage {
    margin-top: 44px;
  }

  .dash {
    padding: 1.4em;
    font-size: 9.5px;
  }

  .browser-address {
    font-size: 0.6875rem;
  }

  .d-filters {
    gap: 0.6em;
  }

  .d-filter {
    gap: 0.6em;
  }
}

/* Partner logos */
.partners {
  position: relative;
  /* Gives back the 24px the scrolling strip pulls up by, so the gap down to
     Features matches the rest of the page. */
  padding-block: 40px 24px;
}

/* The scrolling strip fades its edges and clips what's outside it, which
   would cut off a logo's name near either end, so site.js shows the name in
   this one tooltip outside the strip instead. */
.partner-strip.has-tip [data-tooltip]::after {
  content: none;
}

.partner-tip {
  position: absolute;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 6px;
  background: #0f1a30;
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 6px));
  transition: opacity 0.15s, transform 0.15s;
}

.partner-tip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 10px));
}

.partners-title {
  /* Room for a logo's name tooltip above it. */
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* More partners than fit in a row: they scroll slowly left in a loop, like
   the feature marquee, and stop while the pointer or focus is on one. The
   padding (taken back with the margin) is room inside the clipped strip for
   the name tooltip above a logo and its glow below. */
.partner-strip.is-scrolling {
  margin-block: -40px -24px;
  padding-block: 40px 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.partner-track {
  display: flex;
  width: max-content;
}

.partner-track .partner-logos {
  flex-wrap: nowrap;
  gap: 40px;
  padding-inline-end: 40px;
}

@media (prefers-reduced-motion: no-preference) {
  .partner-track {
    /* About 3s per logo, so the pace is the same however many there are. */
    animation: marquee calc(var(--partner-logos, 14) * 3s) linear infinite;
  }

  .partner-strip:hover .partner-track,
  .partner-strip:focus-within .partner-track {
    animation-play-state: paused;
  }
}

/* No motion: every partner once, wrapped into rows. */
@media (prefers-reduced-motion: reduce) {
  .partner-strip.is-scrolling {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .partner-track {
    width: auto;
  }

  .partner-track .partner-logos {
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
  }

  .partner-track .partner-logos + .partner-logos,
  .partner-track li[aria-hidden] {
    display: none;
  }
}

[dir="rtl"] .partner-track {
  animation-direction: reverse;
}

/* site.js runs the scroll instead, so the strip can be dragged. Vertical
   swipes still scroll the page. */
.partner-strip.is-draggable {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.partner-strip.is-draggable .partner-track {
  animation: none;
}

.partner-strip.is-dragging,
.partner-strip.is-dragging .partner-chip {
  cursor: grabbing;
}

/* Partner logos are shown as they are: no tile, border or background behind
   them, in full colour, with the same lift and name tooltip as the game chips.
   The glow follows the logo's own shape. */
.partner-chip {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease);
}

/* Softens the corners of logos that are opaque squares. The tooltip sits
   outside the link, so the link can't clip and the image rounds itself. */
.partner-chip img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
  transition: filter 0.2s var(--ease);
}

.partner-chip:hover,
.partner-chip:focus-visible {
  transform: translateY(-3px);
}

/* On the image, not the link, so the tooltip doesn't glow too. */
.partner-chip:hover img,
.partner-chip:focus-visible img {
  filter: drop-shadow(0 6px 14px rgb(23 162 184 / 0.5));
}

.partner-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 575px) {
  .partner-logos {
    gap: 12px;
  }

  .partner-chip {
    width: 52px;
    height: 52px;
  }
}

/* Feature bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "hwid lab designer"
    "share lab api";
  gap: 24px;
}

.bento-hwid {
  grid-area: hwid;
}

.bento-share {
  grid-area: share;
}

.bento-lab {
  grid-area: lab;
}

.bento-designer {
  grid-area: designer;
}

.bento-api {
  grid-area: api;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.bento-card h3 {
  font-size: 1.25rem;
}

.bento-card p {
  margin-top: 10px;
}

.tint-primary {
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.16), rgba(var(--primary-rgb), 0.05));
}

.tint-secondary {
  background: linear-gradient(180deg, #1f4a66, var(--surface));
}

.tint-warning {
  background: linear-gradient(180deg, #4d3a2a, var(--surface));
}

.tint-danger {
  background: linear-gradient(180deg, #4b313d, var(--surface));
}

.tint-success {
  background: linear-gradient(180deg, #1b3c48, var(--surface));
}

.bento-lab {
  align-items: center;
  text-align: center;
}

.bento-lab h3 {
  margin-top: 8px;
  font-size: 1.75rem;
}

.bento-lab p {
  max-width: 360px;
}

/* Evidence sources feeding into Echo */
.lab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 320px;
  margin-block: auto;
  padding-top: 32px;
}

.lab-core {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0.12), 0 0 60px rgba(var(--primary-rgb), 0.45);
}

.lab-core img {
  border-radius: 12px;
}

.lab-core::before {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px dashed rgba(var(--primary-rgb), 0.4);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .lab-core::before {
    animation: spin 30s linear infinite;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.lab-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Dashed line running from the list up into the core */
.lab-list::before {
  content: "";
  position: absolute;
  top: -28px;
  bottom: 20px;
  left: 50%;
  border-left: 1px dashed rgba(var(--primary-rgb), 0.45);
}

.lab-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: start;
  box-shadow: var(--shadow);
}

.lab-list li i {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-subtle);
  color: var(--primary-text);
  font-size: 1rem;
}

.bento-hwid p,
.bento-share p {
  margin-bottom: 24px;
}

/* One banned device and the accounts seen on it */
.hwid {
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(36, 50, 83, 0.7);
  font-size: 12px;
}

.hwid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.hwid-id {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--heading);
  font-family: var(--mono);
  white-space: nowrap;
}

.hwid-id i {
  color: var(--muted);
  font-size: 1rem;
}

.hwid .d-badge {
  max-width: none;
  margin: 0;
  /* Set here so labels in the account rows, which are set tighter, come out
     the same height as the one in the header. */
  line-height: 1.65;
  white-space: nowrap;
}

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

.hwid-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
}

.hwid-list li + li {
  border-top: 1px solid var(--border);
}

.hwid-list li.is-caught {
  background: rgba(236, 180, 3, 0.07);
  box-shadow: inset 3px 0 #ecb403;
}

[dir="rtl"] .hwid-list li.is-caught {
  box-shadow: inset -3px 0 #ecb403;
}

.hwid-list img {
  flex: none;
  border-radius: 8px;
  image-rendering: pixelated;
}

.hwid-account {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.35;
}

/* The name and its label share a line, so the ID below gets the full
   width. */
.hwid-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hwid-list strong {
  color: var(--heading);
  font-size: 0.8125rem;
}

.hwid-list small {
  font-family: var(--mono);
  font-size: 0.6875rem;
  overflow-wrap: anywhere;
}

.api-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.api-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(29, 41, 70, 0.6);
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.api-points i {
  color: var(--success);
  font-size: 1.125rem;
}

/* A ban appeal ticket, laid out like Discord in the site's colours */
.ticket {
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(36, 50, 83, 0.7);
  font-size: 0.8125rem;
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-weight: 600;
}

.ticket-head > span:first-child {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticket-head i {
  color: var(--muted);
}

.ticket-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
}

.ticket-message {
  display: flex;
  gap: 12px;
}

.ticket-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.ticket-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.45;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ticket-meta strong {
  color: var(--heading);
  font-weight: 600;
}

/* Names and avatars coloured by role, as Discord does */
.ticket-message.is-first strong {
  color: var(--primary-text);
}

.ticket-message.is-second .ticket-avatar {
  background: #3a6fd8;
}

.ticket-message.is-second strong {
  color: #8bb8ff;
}

.ticket-meta small {
  color: var(--muted);
  font-size: 0.6875rem;
}

.ticket-text {
  color: var(--text);
}

.ticket-link {
  color: var(--primary-text);
  overflow-wrap: anywhere;
}

/* Discord-style reactions, already clicked */
.ticket-reactions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.ticket-reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  border-radius: 8px;
  background: var(--primary-subtle);
  color: var(--primary-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.ticket-reaction img {
  border-radius: 3px;
}

/* A letter emoji, like Discord's regional indicator W */
.ticket-emoji-w {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #3a6fd8;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
}

/* Three scanner themes from the Tool Designer */
.designer {
  position: relative;
  height: 150px;
  margin-top: auto;
  padding-top: 24px;
}

.designer-window {
  position: absolute;
  bottom: 10px;
  width: 52%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease);
}

.designer-window .designer-window .scanner {
  border-radius: 8px;
}

.designer-window:nth-child(1) {
  left: 2%;
  transform: rotate(-7deg);
}

.designer-window:nth-child(2) {
  left: 24%;
  z-index: 1;
  transform: translateY(-14px);
}

.designer-window:nth-child(3) {
  right: 2%;
  transform: rotate(7deg);
}

.bento-designer:hover .designer-window:nth-child(1) {
  transform: rotate(-10deg) translateX(-6px);
}

.bento-designer:hover .designer-window:nth-child(3) {
  transform: rotate(10deg) translateX(6px);
}

@media (max-width: 991px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "lab lab"
      "hwid designer"
      "share api";
  }
}

@media (max-width: 639px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lab"
      "hwid"
      "share"
      "designer"
      "api";
    gap: 16px;
  }

  .bento-card {
    padding: 24px;
    min-height: 0;
  }

  .designer {
    margin-top: 24px;
  }

}

/* "Inside a scan" tabs */
.section-tabs {
  padding-bottom: 72px;
}

@media (min-width: 992px) {
  .section-tabs {
    padding-bottom: 112px;
  }
}

.tabbar {
  margin-bottom: 48px;
  border-block: 1px solid var(--border);
  background: var(--bg-deep);
}

.tablist {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.tablist::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  gap: 10px;
  padding: 22px 24px;
  border: 0;
  border-inline-end: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.tab:first-child {
  border-inline-start: 1px solid var(--border);
}

.tab i {
  font-size: 1.375rem;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--heading);
}

.tab[aria-selected="true"] {
  background: var(--primary-subtle);
  color: var(--primary-text);
}

.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--primary);
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel:focus-visible {
  outline-offset: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .tab-panel:not([hidden]) {
    animation: fade-up 0.45s var(--ease);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.tab-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.tab-copy h3 {
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 800;
}

.accordion {
  margin: 24px 0 32px;
}

.tab-points {
  display: none;
  margin: 28px 0 36px;
}

.tab-points > div + div {
  margin-top: 22px;
}

.tab-points dt {
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 700;
}

.tab-points dd {
  margin: 6px 0 0;
}

/* Side by side with the preview there is room for everything, so the
   accordion gives way to a plain list. */
@media (min-width: 992px) {
  .tab-points {
    display: block;
  }

  .tab-copy .accordion {
    display: none;
  }
}

.accordion details {
  border-bottom: 1px solid var(--border);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.accordion summary::after,
.faq-item summary::after {
  content: "\ea5f";
  flex: none;
  font-family: "tabler-icons";
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}

.accordion details[open] summary::after,
.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.accordion details p {
  padding-bottom: 18px;
}

/* Tab previews reuse the dashboard replica at a smaller size */
/* The previews are bare dashboard cards, with nothing framing them. */
.d-window {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1.2em;
  width: 100%;
  color: #7c8fac;
  font-size: 13px;
  line-height: 1.5;
}

/* Lifted one step off the page so the cards read without borders. */
.d-window .d-card {
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(5, 10, 25, 0.45);
}

.d-window code {
  padding: 0.15em 0.45em;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #eaeff4;
  font-size: 0.875em;
  font-weight: 500;
}

.d-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.d-table th {
  padding: 1em;
  color: #7c8fac;
  font-weight: 600;
  text-align: start;
}

.d-table td {
  padding: 0.85em 1em;
  border-top: 1px solid rgba(45, 69, 111, 0.74);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.d-table th:first-child,
.d-table td:first-child {
  width: 30%;
  padding-inline-start: 1.6em;
}

.d-table th:last-child,
.d-table td:last-child {
  width: 18%;
}

.d-muted {
  font-family: var(--mono);
}

.d-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.7em;
  border-radius: 7px;
  color: #fff;
  font-size: 0.95em;
  font-weight: 500;
  white-space: nowrap;
}

.d-solid-danger {
  background: #f5365c;
}

.d-solid-success {
  background: #2dce89;
}

.d-solid-info {
  background: #539bff;
}

.d-solid-primary {
  background: #17a2b8;
}

.d-table-striped tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.025);
}

.d-account {
  display: flex;
  align-items: center;
  gap: 0.9em;
}

.d-account img {
  flex: none;
  width: 3.6em;
  height: 3.6em;
  border-radius: 7px;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.33));
}

/* Heads fill the square like Steam avatars, just kept crisp. */
.d-account img.is-minecraft {
  image-rendering: pixelated;
}

.d-account > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.d-account b {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: #eaeff4;
  font-weight: 600;
}

.d-account b i {
  font-size: 1.25em;
}

.d-account small {
  font-size: 0.85em;
  white-space: nowrap;
}

/* Previous scans by verdict, as the dashboard's stacked bar */
.d-stack {
  display: flex;
  min-width: 4em;
  height: 1.1em;
  overflow: hidden;
  border-radius: 5px;
}

.d-stack-danger {
  background: #f5365c;
}

.d-stack-warning {
  background: #ecb403;
}

.d-stack-success {
  background: #2dce89;
}

.d-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.d-accounts {
  table-layout: auto;
}

.d-accounts th:first-child,
.d-accounts td:first-child,
.d-accounts th:last-child,
.d-accounts td:last-child {
  width: auto;
}

.d-accounts td:nth-child(2) {
  width: 22%;
}

.d-util-stack {
  display: flex;
  flex-direction: column;
  gap: 1.3em;
}

.d-util-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-util-list li {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1.1em 2.1em;
  border-top: 1px solid rgba(45, 69, 111, 0.74);
}

.d-util-list li.is-flagged {
  background: rgba(245, 54, 92, 0.06);
  box-shadow: inset 3px 0 #f5365c;
}

[dir="rtl"] .d-util-list li.is-flagged {
  box-shadow: inset -3px 0 #f5365c;
}

.d-util-list img {
  flex: none;
  border-radius: 50%;
}

.d-util-list li > span:not(.d-badge) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.d-util-list strong {
  color: #eaeff4;
  font-size: 1.15em;
  font-weight: 600;
}

.d-util-list small {
  font-size: 0.95em;
}

.d-util-list .d-badge {
  flex: none;
  white-space: nowrap;
}

.d-editor .d-card-header-split .d-solid {
  margin-inline-start: auto;
}

.code {
  margin: 0;
  padding: 1.2em 0;
  overflow-x: auto;
  border-top: 1px solid rgba(45, 69, 111, 0.74);
  background: #1d2946;
  font-family: var(--mono);
  font-size: 1.1em;
  line-height: 1.75;
  white-space: normal;
}

.code-line {
  display: block;
  padding-inline: 1.4em;
  white-space: pre;
}

.code-ln {
  display: inline-block;
  width: 2.4em;
  color: #4d618a;
  user-select: none;
}

.tok-kw {
  color: #c792ea;
}

.tok-fn {
  color: #82aaff;
}

.tok-str {
  color: #c3e88d;
}

.tok-var {
  color: #49beff;
}

.tok-num {
  color: #f78c6c;
}

.tok-com {
  color: #6b7fa6;
  font-style: italic;
}

@media (max-width: 575px) {
  .d-window {
    font-size: 11px;
  }

  .d-table .d-solid {
    white-space: normal;
  }

  .d-table th:first-child,
  .d-table td:first-child {
    width: 32%;
    padding-inline-start: 1em;
  }

  .d-table th:last-child,
  .d-table td:last-child {
    width: 25%;
  }

  .d-table th {
    overflow-wrap: anywhere;
  }

  .d-account small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .d-util-list li {
    flex-wrap: wrap;
  }

  .code {
    font-size: 0.95em;
  }
}

/* Small phones: keep the longest code line (and its translations) on screen. */
@media (max-width: 400px) {
  .code {
    font-size: 0.82em;
  }
}

@media (max-width: 340px) {
  .code {
    font-size: 0.72em;
  }
}

/* Tighter tabs on laptops so all of them fit without scrolling. */
@media (max-width: 1279px) {
  .tab {
    gap: 8px;
    padding: 20px 14px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 991px) {
  .tab-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }


  .tab {
    gap: 8px;
    padding: 16px 12px;
    font-size: 0.875rem;
  }

  .tab i {
    font-size: 1.125rem;
  }
}

/* On tablets and phones the tabs wrap into pills rather than scrolling off
   screen. */
@media (max-width: 991px) {
  .tablist {
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 12px;
    overflow: visible;
  }

  .tab,
  .tab:first-child {
    flex: 1 1 auto;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .tab[aria-selected="true"] {
    border-color: var(--primary);
  }

  .tab[aria-selected="true"]::after {
    display: none;
  }
}

/* Supported games */
.games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.game {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  isolation: isolate;
}

.game-cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(29, 41, 70, 0.05) 20%, rgba(29, 41, 70, 0.75) 60%, #1d2946 100%);
}

.game:hover .game-cover {
  transform: scale(1.06);
}

.game-info {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

/* Most game icons are square artwork, so they fill the tile edge to edge. */
.game-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(36, 50, 83, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.game h3 {
  font-size: 1.0625rem;
}

.game p {
  color: #b9c6da;
  font-size: 0.8125rem;
  line-height: 1.4;
}

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

@media (max-width: 479px) {
  .games {
    gap: 12px;
  }

  .game {
    aspect-ratio: 1;
  }

  .game-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .game-icon {
    width: 36px;
    height: 36px;
  }

  .game h3 {
    font-size: 0.9375rem;
  }
}

/* How it works */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.step:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
}

.step h3 {
  font-size: 1.125rem;
}

.step p {
  margin-top: 6px;
}

.how-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

/*
 * The scanner in "How it works", drawn by js/scanner.js at the scanner's real
 * 510x287 size. The static screen under the canvas, in the same pixels (1px is
 * 0.196cqw), is the finished scan for visitors without JavaScript or motion.
 */
.tool-frame {
  position: relative;
  aspect-ratio: 510 / 287;
  overflow: hidden;
  border-radius: 10px;
  background: #243253;
  box-shadow: 0 30px 70px rgba(5, 10, 25, 0.5);
  color: #fff;
  font-family: "Poppins", var(--font);
  font-weight: 500;
  container-type: inline-size;
}

.tool-frame canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.tool-frame.is-live .tool-static {
  display: none;
}

.tool-titlebar {
  position: absolute;
  inset: 0 0 auto;
  height: 4.41cqw;
  background: #111222;
}

.tool-thumb {
  position: absolute;
  top: 15.29cqw;
  left: 39.8cqw;
  width: 14.34cqw;
  height: auto;
}

.tool-done,
.tool-note {
  position: absolute;
  margin: 0;
}

.tool-done {
  inset: 32.94cqw 0 auto;
  font-size: 4.2cqw;
  line-height: 5.88cqw;
  text-align: center;
}

.tool-note {
  top: 40.78cqw;
  left: 8.43cqw;
  font-size: 2.24cqw;
  line-height: 3.14cqw;
}

.tool-pin {
  position: absolute;
  top: 40.78cqw;
  left: 62.35cqw;
  display: flex;
  gap: 0.98cqw;
}

.tool-pin b {
  width: 3.33cqw;
  height: 3.92cqw;
  padding: 0.39cqw 0 0 0.98cqw;
  border-radius: 0.98cqw;
  background: #2b395d;
  font-size: 2.24cqw;
  font-weight: inherit;
  line-height: 3.14cqw;
}

/*
 * The scanner's PIN screen in the Tool Designer mockup, laid out like the Tool
 * Designer's own previews: a 378x241 window, so 1cqw is 3.78 of those pixels. The theme colours (--sc-*) tint it
 * the same way the Tool Designer does.
 */
.scanner {
  position: relative;
  display: block;
  aspect-ratio: 378 / 241;
  overflow: hidden;
  border-radius: 6px;
  background: var(--sc-bg, #243253);
  color: var(--sc-text, #efefef);
  font-family: "Poppins", var(--font);
  font-weight: 300;
  line-height: 1.2;
  container-type: inline-size;
}

.scanner-titlebar {
  position: absolute;
  inset: 0 0 auto;
  height: 5.03cqw;
  background: var(--sc-bar, #1b263e);
}

.scanner-logo {
  position: absolute;
  top: 8.47cqw;
  left: 27.5cqw;
  width: 45cqw;
  height: auto;
}

.scanner-pin {
  position: absolute;
  top: 43.1cqw;
  left: 50%;
  display: flex;
  gap: 1.85cqw;
  transform: translateX(-50%);
}

.scanner-pin b {
  display: grid;
  place-items: center;
  width: 5.29cqw;
  height: 7.94cqw;
  background: var(--sc-box, #2b395d);
  color: var(--sc-text, #efefef);
  font-size: 4.2cqw;
  font-weight: 400;
}

@media (max-width: 991px) {
  .how {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

}

/* Feature marquee */
.marquee-panel {
  padding: 72px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(var(--primary-rgb), 0.16), transparent 70%),
    var(--surface);
}

.marquee-panel h2 {
  max-width: 640px;
  margin: 0 auto 40px;
  padding-inline: 16px;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 800;
  text-align: center;
}

.marquee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
}

.marquee-track {
  display: flex;
  gap: 14px;
  padding-inline-end: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-row {
    animation: marquee 60s linear infinite;
  }

  .marquee-row.is-reverse {
    animation-direction: reverse;
  }

  .marquee:hover .marquee-row {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .marquee-track + .marquee-track {
    display: none;
  }

  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

[dir="rtl"] .marquee-row {
  animation-direction: reverse;
}

[dir="rtl"] .marquee-row.is-reverse {
  animation-direction: normal;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip i {
  color: var(--primary-text);
  font-size: 1.375rem;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.plan.is-popular {
  border-color: var(--primary);
  background:
    linear-gradient(180deg, rgba(var(--primary-rgb), 0.14), transparent 45%),
    var(--surface);
  box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.18);
}

.plan-badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 50%;
  /* One pixel more below, so the mostly lowercase label looks centred
     rather than sitting low. */
  padding: 3px 12px 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
}

[dir="rtl"] .plan-badge {
  transform: translateX(50%);
}

.plan h3 {
  font-size: 1.25rem;
}

.plan-desc {
  min-height: 3.3em;
  margin-top: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 20px;
}

.plan-price b {
  color: var(--heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-price span {
  color: var(--muted);
}

.plan-extra {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Same place in every card, so the rows line up across plans. */
.plan-pins {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.plan-pins i {
  flex: none;
  color: var(--primary);
  font-size: 1.125rem;
}

/* A translation too long for the card is cut short rather than widening
   the card and pushing the row off centre. */
.plan-pins span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-pins.is-off {
  background: rgb(255 255 255 / 0.04);
  color: var(--muted);
}

.plan-pins.is-off i {
  color: #5a6a85;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
}

.plan-features i {
  flex: none;
  color: var(--success);
  font-size: 1.25rem;
  line-height: 1.1;
}

.plan-features li.is-off {
  color: var(--muted);
}

.plan-features li.is-off i {
  color: #5a6a85;
}

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

/* The pricing table's cards share rows (name, description, price, lifetime
   line, PINs, features, button), so the PINs and buttons line up even when a
   long translation wraps. Each feature list keeps its own spacing, so a line
   wrapping in one card leaves the others alone. */
@media (min-width: 600px) {
  .plans-rows .plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-row: span 7;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .plans-rows .plan-features {
    align-self: start;
  }
}

/* Free vs paid on /free */
.plans-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin-inline: auto;
}

.plans-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Four columns only where every line fits on one row. */
@media (max-width: 1199px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

/* minmax(0, ...) as above: a bare 1fr can't shrink below its longest
   unbreakable line, so a long translation widened every card past the
   screen. In one column the PIN line and buttons may wrap instead. */
@media (max-width: 599px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-pins,
  .plan .btn {
    white-space: normal;
    text-align: center;
  }
}

/* Discord band */
.cta-band {
  background: linear-gradient(90deg, #138397, var(--primary) 50%, #2b9fe0);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-block: 28px;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: center;
}

.cta-band-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.375rem;
}

.cta-band a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cta-band a span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item p {
  padding: 0 24px 22px;
}

.faq-more {
  width: fit-content;
  margin: 32px auto 0;
  padding: 8px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-weight: 600;
  text-align: center;
}

.faq-more a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Final call to action */
.final {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(var(--primary-rgb), 0.25), transparent 70%),
    var(--surface-2);
}

.final-copy {
  padding: 72px;
}

.final h2 {
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 800;
}

.final p {
  margin-top: 14px;
  font-size: 1.0625rem;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.final-art {
  align-self: end;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-inline-start: auto;
}

@media (max-width: 991px) {
  .final {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .final-copy {
    padding: 48px 24px 0;
  }

  .final-actions {
    justify-content: center;
  }

  .final-art {
    max-width: 340px;
    margin: 24px auto 0;
  }
}

/* Footer */
.site-footer {
  padding-top: 72px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px 32px;
  padding-bottom: 56px;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 16px;
  font-size: 0.9375rem;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--heading);
  font-size: 1.125rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.footer-col h2 {
  margin-bottom: 18px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-col a:hover,
.footer-bottom p a:hover {
  color: var(--primary-text);
}

.footer-bottom p a {
  color: inherit;
  transition: color 0.2s;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-trademark {
  margin-top: 4px;
  font-size: 0.75rem;
  opacity: 0.75;
}

.footer-staff {
  margin-inline-start: auto;
  font-size: 0.8125rem;
}

/* Long single words ("Datenschutzerklärung") break rather than widen the
   column past the screen. */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-col a {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Legal pages */
.legal-hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.legal-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 800;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.crumbs a {
  color: var(--text);
}

.legal-revision {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 500;
}

.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.legal-switch a {
  display: block;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.legal-switch a:hover {
  border-color: var(--primary);
  color: var(--heading);
}

.legal-switch a[aria-current="page"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  padding-block: 56px 96px;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-inline-end: 8px;
}

.legal-toc-title {
  margin-bottom: 12px;
  color: var(--heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-inline-start: 1px solid var(--border-strong);
}

.legal-toc a {
  display: block;
  margin-inline-start: -1px;
  padding: 6px 14px;
  border-inline-start: 2px solid transparent;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.45;
  transition: color 0.2s, border-color 0.2s;
}

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

.legal-toc a.is-active {
  border-color: var(--primary);
  color: var(--primary-text);
  font-weight: 600;
}

.prose {
  max-width: 760px;
  color: #b3c0d4;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border);
  font-size: 1.5rem;
  line-height: 1.3;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 2em;
  font-size: 1.1875rem;
  line-height: 1.35;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.8em;
}

.legal-num {
  color: var(--primary-text);
}

.prose strong {
  color: var(--heading);
  font-weight: 600;
}

.prose a {
  color: var(--primary-text);
  text-decoration: underline;
  text-decoration-color: rgba(62, 198, 220, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding-inline-start: 1.6em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose ol.roman {
  list-style: lower-roman;
}

.prose li::marker {
  color: var(--primary-text);
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.6em;
}

.prose code {
  padding: 0.15em 0.4em;
  border-radius: 5px;
  background: rgba(8, 14, 30, 0.3);
  color: var(--heading);
  overflow-wrap: anywhere;
}

.prose pre {
  padding: 18px 20px;
  overflow-x: auto;
  scrollbar-color: var(--border-strong) transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-deep);
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: none;
  color: #b3c0d4;
  overflow-wrap: normal;
}

.prose blockquote {
  margin-inline: 0;
  padding: 14px 20px;
  border-inline-start: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--primary-subtle);
  color: var(--heading);
  font-weight: 500;
}

/* Tables scroll sideways on a narrow screen rather than squeezing. */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: normal;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

.prose th {
  color: var(--heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 991px) {
  .legal-layout {
    /* minmax so a wide table or code block scrolls inside the column
       instead of stretching it past the screen */
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 32px;
  }

  .legal-toc {
    position: static;
    max-height: none;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }
}

/* Scroll reveal. Only hidden when JS is running, so nothing is lost without it. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Free scanner download page */
.free-hero {
  padding-bottom: 32px;
}

.free-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.free-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.free-note i {
  flex: none;
  font-size: 1.125rem;
}

/* Download page (page.Download, served on dl.echo.ac and its per-game
   hosts). The hero above a card with the PIN, then the steps once the
   download has started. */
.download-hero {
  padding-bottom: 96px;
}

.download-game img,
.download-game i {
  width: 22px;
  height: 22px;
  margin-inline-start: -4px;
  border-radius: 6px;
  object-fit: cover;
}

.download-game i {
  display: grid;
  place-items: center;
  font-size: 1.0625rem;
}

.download-card {
  width: 100%;
  max-width: 520px;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: center;
}

.download-ask,
.download-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 40px 32px;
}

/* The flex above would otherwise show whichever half the script hid. */
.download-card [hidden] {
  display: none;
}

/* One real input laid over six cells. Without JavaScript the input shows as
   a plain field, since the cells are drawn by js/download.js. */
.pin-field {
  position: relative;
  width: 100%;
  max-width: 408px;
}

.pin-input {
  display: block;
  width: 100%;
  height: 64px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--heading);
  font-family: var(--mono);
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4em;
  text-align: center;
  outline: none;
}

.pin-cells {
  display: none;
}

.js .pin-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  cursor: text;
}

.js .pin-input::selection {
  background: transparent;
}

.js .pin-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pin-cells span {
  display: grid;
  place-items: center;
  height: 64px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--heading);
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s, color 0.15s;
}

.pin-cells span.is-filled {
  border-color: rgba(var(--primary-rgb), 0.55);
}

.pin-cells span.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

/* A blinking caret in the cell the next digit goes into. */
.pin-cells span.is-active:empty::after {
  content: "";
  width: 2px;
  height: 28px;
  border-radius: 1px;
  background: var(--primary-text);
}

@media (prefers-reduced-motion: no-preference) {
  .pin-cells span.is-active:empty::after {
    animation: pin-caret 1s steps(1) infinite;
  }
}

@keyframes pin-caret {
  50% {
    opacity: 0;
  }
}

.pin-field[data-state="checking"] .pin-cells span {
  border-color: rgba(var(--primary-rgb), 0.55);
  color: var(--text);
}

.pin-field[data-state="error"] .pin-cells span {
  border-color: var(--danger);
  background: var(--danger-subtle);
  color: var(--danger-text);
}

@media (prefers-reduced-motion: no-preference) {
  .pin-field[data-state="error"] .pin-cells {
    animation: pin-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  }
}

@keyframes pin-shake {
  10%,
  90% {
    transform: translateX(-1px);
  }

  20%,
  80% {
    transform: translateX(2px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-5px);
  }

  40%,
  60% {
    transform: translateX(5px);
  }
}

.pin-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 1.65em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.pin-status.is-error {
  color: var(--danger-text);
}

.pin-status i {
  flex: none;
  font-size: 1.125rem;
}

.pin-spinner {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  border-top-color: var(--primary-text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.pin-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Once the download has started */
.download-done-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--success-subtle);
  color: var(--success);
  font-size: 2rem;
}

.download-done h2 {
  font-size: 1.625rem;
  font-weight: 800;
  text-wrap: balance;
}

/* Focused by the script when the download starts, for screen readers. */
.download-done h2:focus {
  outline: none;
}

.download-done > p {
  margin-top: 8px;
}

.download-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-deep);
  counter-reset: step;
  text-align: start;
}

.download-steps li {
  position: relative;
  padding-inline-start: 40px;
  counter-increment: step;
}

.download-steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary-text);
  font-size: 0.875rem;
  font-weight: 700;
}

.download-steps strong {
  color: var(--heading);
  font-weight: 600;
}

.download-expired {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
  text-wrap: balance;
}

.download-expired a {
  font-weight: 600;
}

/* Platform and help, under a line at the bottom of the card. */
.download-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

.download-foot > span,
.download-foot > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download-foot i {
  font-size: 1.125rem;
}

.download-foot a {
  font-weight: 600;
}

@media (max-width: 575px) {
  .download-hero {
    padding-bottom: 64px;
  }

  .download-ask,
  .download-done {
    padding: 28px 20px 24px;
  }

  .download-foot {
    padding-inline: 20px;
  }

  .js .pin-cells {
    gap: 6px;
  }

  .pin-cells span {
    height: 54px;
    font-size: 1.5rem;
  }

  .download-done .btn {
    width: 100%;
  }
}

/* Sponsor slot. The gap below it is deliberate: on a page whose whole job is
   handing out a security binary, an ad sitting right on top of the Download
   button is an accidental-click trap. Keep at least 3rem. */
.sponsor-slot {
  width: 100%;
  max-width: 560px;
  margin: 40px auto 12px;
}

.sponsor-slot + .free-download {
  margin-top: 48px;
}

.sponsor-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* A sponsor sending a huge creative gets a letterboxed banner, not a wrecked
   page. */
.sponsor-image {
  display: inline-block;
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--radius);
}

.sponsor-promo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: start;
  transition: border-color 0.2s;
}

.sponsor-promo:hover {
  border-color: var(--primary);
}

.sponsor-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
}

.sponsor-icon svg {
  width: 100%;
  height: 100%;
}

.sponsor-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sponsor-text b {
  color: var(--heading);
  font-size: 0.9375rem;
}

.sponsor-text span {
  color: var(--muted);
  font-size: 0.8125rem;
}

.sponsor-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  color: var(--primary-text);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .sponsor-promo {
    flex-direction: column;
    text-align: center;
  }

  .free-note {
    align-items: flex-start;
    text-align: start;
  }
}

/* Payment help (/charge). One section, so the answer, the two buttons most
   people need and the details read as a single block. */
.help {
  position: relative;
  padding-block: 56px 96px;
  overflow: hidden;
  isolation: isolate;
}

.help-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  text-align: center;
}

.help-head h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.help-head h1 .text-gradient {
  white-space: nowrap;
}

.help-head > p {
  margin-top: 16px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.help-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.help-card-wide {
  grid-column: 1 / -1;
}

.help-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--primary-subtle);
  color: var(--primary-text);
  font-size: 1.375rem;
}

.help-card h2 {
  font-size: 1.25rem;
}

.help-card p {
  margin-top: 8px;
}

.help-card a {
  color: var(--primary-text);
  font-weight: 600;
}

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* The number is positioned rather than a flex item, so links inside a step
   flow with the text instead of getting gaps around them. */
.help-steps li {
  position: relative;
  min-height: 28px;
  padding-inline-start: 40px;
  padding-top: 2px;
  color: var(--heading);
  counter-increment: step;
}

.help-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.help-card .help-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

.help-note i {
  flex: none;
  font-size: 1.125rem;
  line-height: 1.3;
}

@media (max-width: 575px) {
  .help-actions {
    flex-direction: column;
    align-self: stretch;
  }
}

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

  .help-card {
    padding: 22px;
  }
}

/* Error pages (404, 500 and so on) reuse the /charge header. */
.error-page {
  padding-block: 88px 120px;
}

.help-head .error-code {
  margin: 0 0 8px;
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Block and security-check pages (layout.Bare): logo, one card, a footer
   line, centred in the window. */
.bare {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.bare .hero-glow {
  position: fixed;
}

.bare-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 820px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.bare-logo .logo {
  width: auto;
  height: 64px;
}

.bare-card {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.bare-card-narrow {
  max-width: 600px;
}

.bare-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 56px 40px;
  text-align: center;
}

.bare-head h1 {
  margin-top: 14px;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.bare-head p {
  max-width: 560px;
  margin-top: 12px;
  font-size: 1.0625rem;
  text-wrap: balance;
}

.bare-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--danger-subtle);
  color: var(--danger-text);
  font-size: 2.25rem;
}

.bare-denied {
  color: var(--danger-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bare-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-subtle);
  color: var(--primary-text);
  font-size: 0.8125rem;
  font-weight: 700;
}

.bare-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .bare-dot {
    animation: bare-pulse 1.4s ease-in-out infinite;
  }
}

@keyframes bare-pulse {
  50% {
    opacity: 0.3;
  }
}

.bare-section {
  padding: 32px 56px;
  border-top: 1px solid var(--border);
}

.bare-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.bare-section p {
  margin-top: 8px;
}

.bare-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px !important;
}

.bare-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-text);
  font-weight: 600;
}

/* What we saw, one line each so it's easy to copy into a ticket. */
.bare-debug {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.bare-debug > div {
  min-width: 0;
}

.bare-debug dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.bare-debug dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.bare-debug code {
  color: var(--heading);
  font-size: 0.9375rem;
}

.bare-challenge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px 32px;
}

.bare-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 40px 32px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-deep);
  font-size: 0.875rem;
}

.bare-note i {
  flex: none;
  color: var(--primary-text);
  font-size: 1.125rem;
}

.bare-card-narrow .bare-head {
  padding-inline: 40px;
}

.bare-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

.bare-card-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Cloudflare's own orange, so the badge reads as theirs. */
.bare-cf i {
  color: #f38020;
  font-size: 1.125rem;
}

/* Same copyright line and look as the bottom of the site footer. */
.bare-foot {
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  text-wrap: balance;
}

.bare-foot a {
  color: inherit;
  transition: color 0.2s;
}

.bare-foot a:hover {
  color: var(--primary-text);
}

@media (max-width: 575px) {
  .bare-main {
    justify-content: flex-start;
    padding: 36px 16px 32px;
  }

  .bare-head,
  .bare-card-narrow .bare-head {
    padding: 36px 22px 28px;
  }

  .bare-section {
    padding: 26px 22px;
  }

  .bare-section .btn {
    width: 100%;
  }

  .bare-challenge {
    padding-inline: 22px;
  }

  .bare-note {
    margin-inline: 22px;
  }

  .bare-card-foot {
    padding-inline: 22px;
  }
}

/* Changelog (/changelog and /changelog/{slug}) */
.cl-hero {
  position: relative;
  padding: 72px 0 24px;
  overflow: hidden;
  isolation: isolate;
}

.cl-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  text-align: center;
}

.cl-hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cl-hero-inner > p:not(.english-only) {
  max-width: 640px;
  margin-top: 16px;
  font-size: 1.125rem;
  text-wrap: balance;
}

.cl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.cl-post-hero .crumbs {
  justify-content: center;
}

.cl-post-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.cl-post-hero .cl-counts {
  justify-content: center;
  margin-top: 22px;
}

/* Kind badges, also used for the counts */
.cl-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cl-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cl-kind i {
  font-size: 0.9rem;
}

.cl-kind-added {
  background: var(--success-subtle);
  color: var(--success);
}

.cl-kind-improved {
  background: var(--info-subtle);
  color: #8bb8ff;
}

.cl-kind-changed {
  background: var(--warning-subtle);
  color: var(--warning);
}

.cl-kind-fixed {
  background: var(--primary-subtle);
  color: var(--primary-text);
}

/* Timeline of posts */
.section.cl-list {
  padding-top: 48px;
}

.cl-timeline {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.cl-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(var(--border-strong) 70%, transparent);
}

.cl-entry {
  position: relative;
  padding-left: 36px;
}

.cl-entry + .cl-entry {
  margin-top: 48px;
}

.cl-entry-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--heading);
  font-weight: 700;
}

.cl-entry-dot {
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

.cl-entry:first-child .cl-entry-dot {
  animation: cl-pulse 2.4s var(--ease) infinite;
}

@keyframes cl-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(var(--primary-rgb), 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-entry:first-child .cl-entry-dot {
    animation: none;
  }
}

@media (min-width: 992px) {
  /* Down the middle of the gap between the dates and the cards. */
  .cl-timeline::before {
    left: 191px;
  }

  .cl-entry {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 64px;
    padding-left: 0;
  }

  .cl-entry-date {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    align-self: start;
    margin: 0;
    padding-top: 22px;
    text-align: right;
  }

  .cl-entry-dot {
    top: 26px;
    left: auto;
    right: -40px;
  }
}

.cl-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-deep) 100%);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.cl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--primary-rgb), 0.15);
  color: inherit;
}

.cl-card-media {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

.cl-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(29, 41, 70, 0.75));
  pointer-events: none;
}

.cl-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease);
}

.cl-card:hover .cl-card-media img {
  transform: scale(1.03);
}

.cl-card-body {
  padding: 26px 28px 30px;
}

.cl-card-body h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cl-card-body > p {
  margin-top: 10px;
  font-size: 1rem;
}

.cl-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--primary-text);
  font-weight: 600;
}

.cl-card-more i {
  transition: transform 0.25s var(--ease);
}

.cl-card:hover .cl-card-more i {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .cl-card-body {
    padding: 30px 36px 34px;
  }
}

/* A post */
.cl-cover {
  max-width: 1120px;
  margin: 48px auto 0;
}

.cl-window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-deep);
  box-shadow: var(--shadow-lg), 0 0 120px rgba(var(--primary-rgb), 0.12);
}

.cl-window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.cl-window-dots {
  display: flex;
  gap: 7px;
}

.cl-window-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--danger);
}

.cl-window-dots i:nth-child(2) {
  background: var(--warning);
}

.cl-window-dots i:nth-child(3) {
  background: var(--success);
}

.cl-window-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(360px, 100%);
  margin-inline: auto;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(8, 14, 30, 0.25);
  color: var(--muted);
  font-size: 0.8125rem;
  transform: translateX(-28px);
}

.cl-window img {
  display: block;
  width: 100%;
  height: auto;
}

.cl-post-layout {
  max-width: 1120px;
}

.legal-toc.cl-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cl-post {
  max-width: 760px;
  min-width: 0;
}

.cl-section + .cl-section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.cl-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cl-section > p {
  color: #b3c0d4;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.cl-section > p + p {
  margin-top: 12px;
}

.cl-figure {
  margin: 28px 0 0;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(var(--primary-rgb), 0.14), transparent 70%),
    var(--bg-deep);
  text-align: center;
}

.cl-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}

.cl-figure figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.cl-changes {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.cl-changes li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: #d3dcea;
  line-height: 1.55;
  transition: border-color 0.2s, background-color 0.2s;
}

.cl-changes li:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.cl-changes .cl-kind {
  flex: none;
  min-width: 96px;
  margin-top: 1px;
}

@media (max-width: 575px) {
  .cl-changes li {
    flex-direction: column;
    gap: 8px;
  }

  .cl-changes .cl-kind {
    min-width: 0;
  }
}

.cl-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
}

.cl-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.cl-pager-link:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.cl-pager-link span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.cl-pager-link strong {
  color: var(--heading);
}

.cl-pager-newer {
  grid-column: 2;
  align-items: flex-end;
  text-align: right;
}

.cl-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--primary-text);
  font-weight: 600;
}

@media (max-width: 991px) {
  .cl-post-layout.legal-layout {
    padding-top: 40px;
  }
}

/* Pages whose text is only in English, for visitors reading another language */
.english-only {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(8, 14, 30, 0.2);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

.english-only i {
  color: var(--primary-text);
  font-size: 1rem;
}

/* Brand guidelines (/brand): the downloads and a logo preview, then the
   guidelines in the legal pages' layout. */
.brand-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.brand-intro {
  max-width: 620px;
  margin-top: 16px;
  font-size: 1.125rem;
}

.brand-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.brand-files {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
  font-size: 0.875rem;
}

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

.brand-files ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-files a {
  display: block;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.brand-files a:hover {
  border-color: var(--primary);
  color: var(--heading);
}

/* Echo Navy, with room around the logo for its clear space. */
.brand-preview {
  margin: 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #243253;
  box-shadow: var(--shadow);
}

.brand-preview img {
  width: 100%;
  height: auto;
}

.brand-preview figcaption {
  margin-top: clamp(20px, 4vw, 32px);
  color: var(--text);
  font-size: 0.8125rem;
  text-align: center;
}

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

@media (max-width: 991px) {
  .brand-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .brand-preview {
    max-width: 480px;
  }
}

@media (max-width: 575px) {
  .brand-downloads .btn {
    width: 100%;
    white-space: normal;
  }
}

/* The colour tables, drawn as chips like the PDF's palette page. Each value
   is a button that copies it (site.js, [data-copy]). */
.prose .palette {
  display: grid;
  /* Three across, so each set of six is two even rows */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 1.2em 0 1.6em;
  padding: 0;
  list-style: none;
}

.prose .palette-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 196px;
  margin: 0;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: var(--chip);
  color: #fff;
}

.prose .palette-chip.is-light {
  border-color: rgba(11, 15, 25, 0.12);
  color: #0b0f19;
}

.palette-name {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.palette-use {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.palette-hex,
.palette-value {
  position: relative;
  padding: 2px 6px;
  margin-inline-start: -6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: copy;
  transition: background-color 0.15s;
}

.palette-hex {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.01em;
}

.palette-value {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.palette-hex:hover,
.palette-value:hover,
.palette-hex:focus-visible,
.palette-value:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.is-light .palette-hex:hover,
.is-light .palette-value:hover,
.is-light .palette-hex:focus-visible,
.is-light .palette-value:focus-visible {
  background: rgba(11, 15, 25, 0.1);
}

.palette-hex:focus-visible,
.palette-value:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

@media (max-width: 575px) {
  .prose .palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .prose .palette-chip {
    min-height: 180px;
    padding: 14px 12px 12px;
  }

  .palette-hex {
    font-size: 1.125rem;
  }
}

/* "Copied" appears over the value for a moment after a click. */
.palette-hex.is-copied::after,
.palette-value.is-copied::after,
.code-copy.is-copied::after {
  content: "Copied";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline: 6px;
  border-radius: inherit;
  background: var(--chip, var(--surface-2));
  font-weight: 700;
}

.palette-hex.is-copied::after {
  padding-top: 18px;
}

/* Code blocks: highlighted on the server (internal/brand), with a copy
   button in the corner. Token colours are Echo's. */
.prose .code-block {
  position: relative;
}

.prose .code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--heading);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

.prose .code-copy:hover,
.prose .code-copy:focus-visible {
  border-color: var(--primary);
}

.prose .code-copy.is-copied::after {
  justify-content: center;
  padding: 0;
}

.prose .chroma .c,
.prose .chroma .c1,
.prose .chroma .cm {
  color: var(--text);
  font-style: italic;
}

.prose .chroma .nc,
.prose .chroma .nt,
.prose .chroma .nf {
  color: var(--primary-text);
}

.prose .chroma .k,
.prose .chroma .n,
.prose .chroma .nb {
  color: var(--heading);
}

.prose .chroma .kc,
.prose .chroma .kd,
.prose .chroma .kn {
  color: var(--secondary);
}

.prose .chroma .m,
.prose .chroma .mi,
.prose .chroma .mf,
.prose .chroma .kt {
  color: var(--warning);
}

.prose .chroma .s,
.prose .chroma .s1,
.prose .chroma .s2 {
  color: var(--success);
}

.prose .chroma .p,
.prose .chroma .o {
  color: var(--text);
}

/* The PDF's pictures, drawn from the markdown (internal/brand/enhance.go). */

/* Rules: a cross for "never", a tick for "must". */
.prose ul.rules {
  list-style: none;
  padding-inline-start: 0;
}

.prose ul.rules > li {
  position: relative;
  padding-inline-start: 1.9em;
}

.prose ul.rules > li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: var(--surface-2) center / 0.7em no-repeat;
}

.prose ul.rules > li.rule-never::before {
  background-color: var(--danger-subtle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='%23ff7590' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.prose ul.rules > li.rule-must::before {
  background-color: var(--success-subtle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.8 5.4l2.2 2.2 4.2-4.8' fill='none' stroke='%232dce89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.prose ul.rules > li:not(.rule-never):not(.rule-must)::before {
  top: 0.62em;
  left: 0.4em;
  width: 0.36em;
  height: 0.36em;
  background: var(--primary);
}

/* The most important rule, set apart. */
.prose .callout {
  margin: 1.6em 0;
  padding: 4px 24px 20px;
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.03));
}

.prose .callout > h3 {
  color: var(--primary-text);
}

/* Logo versions: each on a background it belongs on. */
.prose .logo-versions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 1.2em 0 1.6em;
}

.prose .logo-version,
.prose .bg-tiles li,
.prose .icon-row figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.prose .logo-version-art,
.prose .bg-tile-art {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  aspect-ratio: 16 / 9;
  /* The logo at 56% of the width, which leaves it room inside 16:9 */
  padding: 8% 22%;
}

.prose .logo-version-art img,
.prose .bg-tile-art img {
  width: 100%;
  height: auto;
}

.prose .bg-tile-art.is-image {
  padding: 0;
}

.prose .bg-tile-art.is-image img {
  height: 100%;
  object-fit: cover;
}

.prose .logo-version figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 16px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.prose .logo-version figcaption strong {
  color: var(--heading);
}

.prose .logo-version-files {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-weight: 600;
}

/* Backgrounds: the logo on each one. */
.prose .bg-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 1.2em 0 1.6em;
  padding: 0;
  list-style: none;
}

.prose .bg-tiles li {
  display: flex;
  flex-direction: column;
}

.prose .bg-tile-art {
  /* 52% wide, the same as the pack's Facets image beside them */
  padding: 10% 24%;
  border-bottom: 1px solid var(--border);
}

.bg-tile-name {
  padding: 10px 12px 0;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.875rem;
}

.bg-tile-meta {
  padding: 0 12px 12px;
  color: var(--text);
  font-size: 0.8125rem;
}

/* Clear space: the logo's box, and x all round it. */
.prose .clearspace {
  margin: 1.2em 0 1.6em;
}

.clearspace-box {
  position: relative;
  max-width: 520px;
  /* x as a share of the box: 10.7 / (100 + 2 * 10.7) */
  padding: 8.8%;
  border: 1.5px dashed var(--primary-text);
  border-radius: var(--radius-sm);
  background: #243253;
}

.clearspace-logo {
  outline: 1px solid rgba(255, 255, 255, 0.25);
}

.clearspace-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-x {
  position: absolute;
  color: var(--primary-text);
  font-style: italic;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.cs-top {
  top: 4.4%;
  left: 50%;
}

.cs-bottom {
  top: 95.6%;
  left: 50%;
}

.cs-left {
  top: 50%;
  left: 4.4%;
}

.cs-right {
  top: 50%;
  left: 95.6%;
}

.prose .clearspace figcaption,
.prose .brand-demo figcaption,
.prose .icon-row figcaption {
  margin-top: 10px;
  color: var(--text);
  font-size: 0.8125rem;
}

/* Motion: the logo spinning, live. */
.prose .brand-demo {
  margin: 1.2em 0 1.6em;
}

.prose .brand-demo img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  padding: 6% 8%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #243253;
  box-sizing: border-box;
}

/* App icon and the rings on their own, on navy. */
.prose .icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 1.2em 0 1.6em;
}

.prose .icon-row figure {
  width: 180px;
}

.prose .icon-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 22%;
  background: #243253;
}

.prose .icon-art img {
  width: 100%;
  height: auto;
}

.prose .icon-row figcaption {
  margin: 0;
  padding: 10px 12px;
  color: var(--heading);
  font-weight: 600;
}

/* Type specimen: each weight in itself. */
.prose .type-specimen {
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 48px);
  margin: 1.2em 0 1.6em;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.type-aa {
  color: var(--heading);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.prose .type-name {
  margin: 0 0 10px;
  color: var(--primary-text);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose .type-weights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.prose .type-weights li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--heading);
  font-size: 1.125rem;
}

.type-weight {
  min-width: 8.5em;
  color: var(--text);
  font-weight: 500;
  font-size: 0.8125rem;
}

/* Files: one block per file on a phone, rather than a squeezed table. */
@media (max-width: 575px) {
  .prose .logo-versions {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .prose .icon-row figure {
    width: calc(50% - 7px);
  }

  .prose .type-specimen {
    flex-direction: column;
    align-items: flex-start;
  }

  .prose table.files-table,
  .prose table.files-table tbody,
  .prose table.files-table tr,
  .prose table.files-table td {
    display: block;
  }

  .prose table.files-table thead {
    display: none;
  }

  .prose table.files-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .prose table.files-table td {
    padding: 2px 0;
    border: 0;
  }

  .prose table.files-table code {
    overflow-wrap: anywhere;
  }
}

/* Hero scan, played once by site.js: a line sweeps down the window, each
   finding fades in as the line reaches it, and the verdict follows once the
   sweep is done. .is-scanning holds the start state, .is-live plays it.
   Without either the finished scan shows as it is. */
@media (prefers-reduced-motion: no-preference) {
  .hero-stage.is-scanning .browser {
    position: relative;
  }

  .hero-stage.is-scanning .browser::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.8) 25%, #fff 50%, rgba(var(--primary-rgb), 0.8) 75%, transparent) bottom / 100% 2px no-repeat,
      linear-gradient(180deg, transparent 88%, rgba(var(--primary-rgb), 0.1));
    opacity: 0;
    translate: 0 -100%;
    pointer-events: none;
  }

  .hero-stage.is-live .browser::after {
    animation: scan-sweep var(--scan-sweep, 1.8s) linear var(--scan-start, 0.9s) both;
  }

  .hero-stage.is-scanning .d-feed-item,
  .hero-stage.is-scanning .d-verdict {
    opacity: 0;
  }

  .hero-stage.is-live .d-feed-item {
    animation: scan-finding 0.5s var(--ease) var(--scan-at, 1s) both;
  }

  .hero-stage.is-live .d-verdict {
    animation: scan-finding 0.6s var(--ease) var(--scan-end, 2.7s) both;
  }
}

@keyframes scan-sweep {
  0% {
    opacity: 0;
    translate: 0 -100%;
  }

  10%,
  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    translate: 0 0;
  }
}

@keyframes scan-finding {
  from {
    opacity: 0;
    translate: 0 6px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Hover only: a soft light follows the pointer over the feature cards and
   plans (site.js sets --mx/--my), and a shine crosses the primary buttons. */
@media (prefers-reduced-motion: no-preference) {
  .spotlight {
    isolation: isolate;
  }

  /* Behind the card's children but, thanks to the isolation, over its
     background. */
  .spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--primary-rgb), 0.14), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }

  .spotlight:hover::after {
    opacity: 1;
  }

  .btn-primary {
    position: relative;
    overflow: hidden;
  }

  .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    translate: -130% 0;
    pointer-events: none;
  }

  .btn-primary:hover::after {
    animation: shine 0.8s var(--ease);
  }
}

@keyframes shine {
  to {
    translate: 130% 0;
  }
}

/* The code bar (layout/codebar.templ): a creator code from a link is
   applied, and what it takes off. Echo's teal, so it never reads as a
   seasonal sale. */
.code-bar {
  background: linear-gradient(90deg, #17a2b8, #3ec6dc 55%, #49beff);
  color: #071a24;
  font-size: 0.875rem;
  line-height: 1.4;
}

.code-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 46px;
  padding-block: 8px;
  text-align: center;
}

.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: #071a24;
  color: #7fe3f2;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.code-badge .ti {
  font-size: 1rem;
}

.code-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  font-weight: 600;
}

.code-chip {
  padding: 1px 8px;
  border: 1.5px solid rgba(7, 26, 36, 0.55);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.3);
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.code-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #071a24;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s;
}

.code-cta:hover {
  background: #0d2c3b;
  color: #7fe3f2;
  transform: translateY(-1px);
}

/* Phones and tablets: the sentence, with the code inline, beside the button */
@media (max-width: 991px) {
  .code-bar {
    font-size: 0.8125rem;
  }

  .code-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 12px;
    min-height: 0;
    padding-block: 9px;
    text-align: start;
  }

  .code-badge {
    display: none;
  }

  .code-text {
    display: block;
    line-height: 1.45;
  }

  .code-chip {
    display: inline-block;
    margin-inline: 3px;
    padding: 0 6px;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .code-cta {
    padding: 5px 12px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 400px) {
  .code-cta .ti {
    display: none;
  }
}

/* The site-wide sale (internal/sale), Echo's 6th birthday: the bar with
   balloons drifting across, confetti fired over the page and into the bar
   on load (site.js), and the hero's balloons. They go by themselves
   at the end of 15 November. */
.sale-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #ecb403, #f7c52b 50%, #ffd866);
  color: #1a1206;
  font-size: 0.875rem;
  line-height: 1.4;
}

.sale-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 46px;
  padding-block: 8px;
  text-align: center;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: #1a1206;
  color: #ffd866;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sale-badge .ti {
  font-size: 1rem;
}

.sale-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  font-weight: 600;
}

.sale-code {
  padding: 1px 8px;
  border: 1.5px dashed rgba(26, 18, 6, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.3);
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sale-ends {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline-start: 20px;
  border-inline-start: 1px solid rgba(26, 18, 6, 0.25);
  font-weight: 500;
  white-space: nowrap;
}

.sale-ends[hidden] {
  display: none;
}

.sale-ends .ti {
  font-size: 1rem;
  opacity: 0.75;
}

.sale-clock {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sale-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #1a1206;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s;
}

.sale-cta:hover {
  background: #2d1f0b;
  color: #ffd866;
  transform: translateY(-1px);
}

/* Claimed: the code's in their cookie */
.sale-bar.is-claimed .sale-badge {
  color: #8ff0b4;
}

.sale-bar.is-claimed .sale-code {
  border-style: solid;
}

/* Phones, tablets and small laptops, below the width the one-row bar
   needs in the longer languages (German, Greek): the text
   across the full width, then the countdown and the button on one row
   under it, instead of wrapping into stacked rows. The badge goes; the text
   already says whether the code is claimed. */
@media (max-width: 1199px) {
  .sale-bar {
    font-size: 0.8125rem;
  }

  .sale-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "text text"
      "ends cta";
    align-items: center;
    gap: 6px 12px;
    min-height: 0;
    padding-block: 9px;
    text-align: start;
  }

  .sale-badge {
    display: none;
  }

  /* Plain inline text, so the code flows inside the sentence */
  .sale-text {
    display: block;
    grid-area: text;
    line-height: 1.45;
  }

  .sale-code {
    display: inline-block;
    margin-inline: 3px;
    padding: 0 6px;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .sale-ends {
    grid-area: ends;
    gap: 4px;
    padding-inline-start: 0;
    border-inline-start: 0;
    font-size: 0.75rem;
  }

  .sale-ends .ti {
    font-size: 0.875rem;
  }

  .sale-cta {
    grid-area: cta;
    justify-self: end;
    padding: 5px 12px;
    font-size: 0.8125rem;
  }
}

/* The narrowest phones: the hourglass says what the clock is, and the
   clock may wrap rather than run under the button */
@media (max-width: 400px) {
  .sale-ends-label,
  .sale-cta .ti {
    display: none;
  }

  .sale-ends {
    white-space: normal;
  }
}

/* Balloons drifting across the bar, behind the text */
.sale-flyer {
  position: absolute;
  top: 8px;
  left: 0;
  width: 16px;
  height: 30px;
  pointer-events: none;
  opacity: 0.55;
  animation: sale-fly 24s linear infinite;
}

.sale-flyer-2 {
  top: 13px;
  width: 12px;
  height: 22px;
  animation-duration: 33s;
  animation-delay: -13s;
}

.sale-flap {
  display: block;
  width: 100%;
  height: 100%;
  background: url("../images/balloon-red.svg") no-repeat center / contain;
  animation: sale-glide 1.3s ease-in-out infinite alternate;
}

.sale-flyer-2 .sale-flap {
  background-image: url("../images/balloon-cyan.svg");
}

@keyframes sale-fly {
  from {
    transform: translateX(-60px);
  }

  to {
    transform: translateX(calc(100vw + 60px));
  }
}

@keyframes sale-glide {
  from {
    transform: translateY(-6px) rotate(-6deg);
  }

  to {
    transform: translateY(6px) rotate(4deg);
  }
}

/* site.js draws the confetti: over the whole page once on load, and in the
   bar, behind its text, for as long as the page is open */
.sale-confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sale-bar-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The hero's balloons */
.sale-hero {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.sale-balloon {
  position: absolute;
  top: 230px;
  width: 104px;
  height: auto;
  animation: sale-bounce 1.5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.sale-balloon-left {
  left: max(24px, calc(50% - 660px));
}

.sale-balloon-right {
  right: max(24px, calc(50% - 660px));
  width: 84px;
  top: 160px;
  animation-delay: -0.7s;
}

@keyframes sale-bounce {
  from {
    transform: translateY(26px) rotate(-3deg);
  }

  to {
    transform: translateY(-34px) rotate(3deg);
  }
}

/* Only where the copy leaves room either side */
@media (max-width: 1199px) {
  .sale-balloon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sale-flyer,
  .sale-flap,
  .sale-balloon {
    animation: none;
  }

  .sale-flyer-1 {
    transform: translateX(12vw);
  }

  .sale-flyer-2 {
    display: none;
  }
}
