/*
 * PRNEWS.IO design system: white page, soft-black copy, one red.
 * Fira Sans for headings and numbers, Lato for everything else.
 * Font files are the production faces, served unmodified (see fonts/*-OFL.txt).
 */

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/FiraSans-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/FiraSans-ExtraBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Lato-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Lato-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Lato-Bold.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /* Brand palette */
  --pr-red: #ef3b52;
  --pr-red-hover: #e3384e;
  --pr-red-active: #d43449;
  --pr-black: #1b1b1b;
  --pr-ink: #333333;
  --pr-gray-dark: #5e5e5e;
  --pr-gray-light: #777777;
  --pr-gray-10: #f5f5f5;
  --pr-gray-20: #eeeeee;
  --pr-gray-30: #dddddd;
  --pr-red-wash: #fef5f6;
  --pr-red-tint-1: #fff0f0;

  /* Roles. Small muted text uses gray-dark: gray-light (#777) is 4.4:1 on white, below AA. */
  --text-body: var(--pr-ink);
  --text-muted: var(--pr-gray-dark);
  --text-link: var(--pr-red-active);
  --surface-page: #ffffff;
  --surface-card: #ffffff;
  --surface-subtle: var(--pr-gray-10);
  --border-default: var(--pr-gray-30);
  --border-focus: var(--pr-red);

  /*
   * Change pill: white ground with an inset ring, so every state clears AA
   * (red on the rose tint would be 4.47:1). The system has no success colour,
   * so "up" keeps a quiet green.
   */
  --up: #17723f;
  --up-ring: rgba(23, 114, 63, 0.3);
  --down: var(--pr-red-active);
  --down-ring: rgba(212, 52, 73, 0.35);
  --neutral: var(--pr-gray-dark);
  --neutral-ring: var(--pr-gray-30);

  --shadow-card: 0 15px 50px rgba(0, 0, 0, 0.04);
  --shadow-red: 0 10px 35px rgba(239, 59, 82, 0.35);
  --shadow-red-hover: 0 10px 35px rgba(239, 59, 82, 0.55);
  --gradient-grey: linear-gradient(97deg, #f5f5f5 0%, #e8e8e8 100%);

  --radius-xs: 8px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --transition: 0.2s ease;
  --ease-panel: cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-dark: linear-gradient(103.35deg, #5e5e5e -0.5%, #1b1b1b 99.5%);
  --gradient-dark-active: linear-gradient(103.35deg, #454545 -0.5%, #000000 99.5%);
  --gradient-light: linear-gradient(103.35deg, #ffffff -0.5%, #ababab 99.5%);
  --footer-ground: #2e2e2e;

  /* Lato has no U+2212 minus sign in Regular/Bold; Fira Sans fills that glyph. */
  --font-heading: 'Fira Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Lato', 'Fira Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-body);
  font: 400 16px/1.4 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper > main {
  flex: 1 0 auto;
}

/* The landing's grid: 1170px of content plus 16px gutters. */
.container {
  width: 100%;
  max-width: 1202px;
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  max-width: 752px;
  margin: 0 auto;
  padding: 72px 16px 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pr-black);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: var(--pr-black);
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title {
  margin: 0;
  font: 500 64px/1.1 var(--font-heading);
  color: var(--text-body);
}

.lede {
  margin: 20px 0 0;
  max-width: 32em;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Form ---------- */

.check {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
}

.field {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 24px;
  font: 400 16px/1.4 var(--font-body);
  color: var(--text-body);
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  outline: none;
  appearance: none;
  transition: border-color var(--transition), color var(--transition);
}

/* pr-black-70-solid: the lightest ink step that still clears 4.5:1 on white. */
.field input::placeholder {
  color: #707070;
  opacity: 1;
}

/* Focus and error are both a red border, never a ring or glow. */
.field input:focus,
.field input[aria-invalid='true'] {
  border-color: var(--border-focus);
}

.field input:read-only {
  color: var(--text-muted);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 52px;
  padding: 0 32px;
  font: 700 16px/1.4 var(--font-body);
  color: #ffffff;
  background: var(--pr-red);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-red);
  cursor: pointer;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.button:hover {
  background: var(--pr-red-hover);
  box-shadow: var(--shadow-red-hover);
}

.button:active {
  background: var(--pr-red-active);
  box-shadow: none;
}

.button:focus-visible {
  outline: 2px solid var(--pr-black);
  outline-offset: 3px;
}

/* Busy, not unavailable: the button stays red and drops its glow while the check runs. */
.button:disabled {
  cursor: progress;
  background: var(--pr-red-active);
  box-shadow: none;
}

/* Both labels share one grid cell, so the button keeps its width while busy. */
.button-text {
  display: grid;
}

.button-text > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-busy,
.button[aria-busy='true'] .button-idle {
  visibility: hidden;
}

.button[aria-busy='true'] .button-busy {
  visibility: visible;
}

.spinner {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.field-error {
  margin: 12px 24px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pr-red-active);
  text-align: left;
}

.note {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Result card ---------- */

.result {
  max-width: 640px;
  margin: 64px auto 0;
  padding: 40px;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.result[data-state='problem'] .found,
.result:not([data-state='problem']) .problem {
  display: none;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

.site-icon {
  display: grid;
  flex: none;
  width: 24px;
  height: 24px;
}

.site-icon img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  object-fit: contain;
}

.site-icon-fallback {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font: 700 12px/1 var(--font-body);
  color: var(--text-muted);
  background: var(--pr-gray-20);
  border-radius: var(--radius-xs);
}

.domain {
  margin: 0;
  min-width: 0;
  font: 800 22px/1.2 var(--font-heading);
  overflow-wrap: anywhere;
}

.scores {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.score {
  min-width: 0;
  padding: 28px 12px 24px;
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
}

.score-num {
  font: 500 56px/1 var(--font-heading);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.score-label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arrow {
  font: 500 28px/1 var(--font-heading);
  color: #c2c2c2;
}

.pill {
  display: inline-block;
  min-width: 48px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-pill);
}

.pill[data-status] {
  background: var(--surface-card);
}

.pill[data-status='positive'] {
  color: var(--up);
  box-shadow: inset 0 0 0 1px var(--up-ring);
}

.pill[data-status='negative'] {
  color: var(--down);
  box-shadow: inset 0 0 0 1px var(--down-ring);
}

.pill[data-status='unchanged'] {
  color: var(--neutral);
  box-shadow: inset 0 0 0 1px var(--neutral-ring);
}

.demo-note {
  margin: 24px 0 0;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--pr-red-wash);
  border-radius: var(--radius-md);
}

.demo-note strong {
  font-weight: 700;
}

.attribution {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
}

.attribution a {
  color: var(--text-link);
  text-decoration: underline;
  text-decoration-color: rgba(212, 52, 73, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.attribution-sep {
  margin: 0 8px;
}

.attribution > a {
  white-space: nowrap;
}

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

.attribution a:focus-visible {
  outline: 2px solid var(--pr-black);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Problems read as an empty state: grey-gradient ground, card title, what to do next. */
.result[data-state='problem'] {
  background: var(--gradient-grey);
  box-shadow: none;
}

.problem-title {
  margin: 0;
  font: 800 22px/1.2 var(--font-heading);
  text-wrap: balance;
}

.problem-message {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ---------- Loading ---------- */

.result[data-state='loading'] .score-num::before,
.result[data-state='loading'] .pill::before {
  content: '';
  display: inline-block;
  vertical-align: top;
  background: var(--pr-gray-30);
  animation: pulse 1.2s ease-in-out infinite;
}

.result[data-state='loading'] .score-num::before {
  width: 1.3em;
  height: 1em;
  border-radius: var(--radius-xs);
}

.result[data-state='loading'] .pill {
  padding: 0;
  background: none;
}

.result[data-state='loading'] .pill::before {
  width: 56px;
  height: 28px;
  border-radius: var(--radius-pill);
}

.result[data-state='loading'] .attribution {
  visibility: hidden;
}

.result[data-state='found'] .scores {
  animation: rise 0.28s ease-out;
}

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

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

/* A plain fade-up, the only reveal motion the system allows. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Site header (as on prnews.io/get/pro/) ---------- */

.site-header {
  position: relative;
  z-index: 10;
  padding: 20px 0 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* The PRNEWS.IO logo lockup, used as-is: never redrawn or set in live type. */
.header-logo {
  position: relative;
  z-index: 2;
  display: block;
  flex: none;
  width: 160px;
  border-radius: 4px;
}

.header-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation li {
  display: inline-flex;
  align-items: center;
  margin-right: 50px;
}

.navigation li a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--transition);
}

.navigation li a:hover {
  color: var(--pr-red);
}

.navigation li a:active {
  color: var(--pr-red-active);
}

.pro-chip {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 0.9;
  color: #ffffff;
  background: var(--gradient-dark);
  border-radius: var(--radius-pill);
}

/* Outline pill that fills with the dark gradient on hover (Sign Up, Join Now). */
.button-outline,
.button-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font: 400 16px/1 var(--font-body);
  color: var(--text-body);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--pr-ink);
  border-radius: var(--radius-pill);
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

.button-outline:hover,
.button-white:hover {
  color: #ffffff;
  background: var(--gradient-dark);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.button-outline:active,
.button-white:active {
  color: #ffffff;
  background: var(--gradient-dark-active);
}

.button-outline {
  min-width: 120px;
  height: 48px;
}

.toggle {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px auto;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #000000;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Background blobs (as on prnews.io/get/pro/) ---------- */

/* Mirrored like the landing, so "left" below lands on the right. Never under the content column. */
.decor-page {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transform: scaleX(-1);
}

.decor-defs {
  position: absolute;
}

.decoration {
  position: absolute;
}

.decoration svg {
  display: block;
}

.decoration-1 { top: 0; left: -350px; }
.decoration-1 svg { width: 672px; height: 672px; transform: rotate(180deg); }
.decoration-2 { top: -100px; left: -200px; }
.decoration-2 svg { width: 384px; height: 384px; transform: rotate(90deg); }
.decoration-3 { top: 0; left: -50px; }
.decoration-3 svg { width: 640px; height: 640px; }
.decoration-13 { top: -50px; right: -250px; }
.decoration-13 svg { width: 352px; height: 352px; }
.decoration-14 { top: -200px; right: -350px; }
.decoration-14 svg { width: 480px; height: 480px; transform: rotate(145deg); }
.decoration-15 { top: -100px; right: -100px; }
.decoration-15 svg { width: 320px; height: 480px; transform: rotate(160deg); }
/* The landing has these lower down; here they sit beside the FAQ. */
.decoration-16 { top: 760px; right: -350px; }
.decoration-16 svg { width: 480px; height: 480px; }
.decoration-17 { top: 960px; right: -250px; }
.decoration-17 svg { width: 480px; height: 480px; transform: rotate(160deg); }
.decoration-18 { top: 760px; right: -200px; }
.decoration-18 svg { width: 480px; height: 640px; }

@media (min-width: 1441px) {
  .decoration-1 svg { width: 850px; height: 850px; }
  .decoration-2 svg { width: 550px; height: 550px; }
  .decoration-3 svg { width: 570px; height: 800px; }
  .decoration-13 svg { width: 550px; height: 550px; }
  .decoration-14 svg { width: 550px; height: 550px; }
  .decoration-15 svg { width: 390px; height: 547px; }
  .decoration-16 svg { width: 650px; height: 650px; }
  .decoration-17 svg { width: 650px; height: 650px; }
  .decoration-18 svg { width: 590px; height: 947px; }
}

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

.faq {
  margin: 120px 0 100px;
}

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

.section-title {
  margin: 0;
  font: 500 44px/1.1 var(--font-heading);
}

.section-text {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
}

.accordion {
  max-width: 820px;
  margin: 0 auto;
}

/* Frosted rows over the blobs; opaque enough that the red open question keeps 4.5:1. */
.accordion-item {
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

.accordion-heading {
  margin: 0;
  font: inherit;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 10px 10px 10px 30px;
  font: 700 18px/1.3 var(--font-body);
  color: var(--text-body);
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: color var(--transition);
}

/* 44px disc with a plus drawn from two bars; it turns 45° into a cross when open. */
.accordion-toggle::after {
  content: '';
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--pr-red);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  background-color: rgba(239, 59, 82, 0.05);
  border-radius: 50%;
  transition:
    transform 0.34s var(--ease-panel),
    background-color var(--transition),
    color var(--transition);
}

.accordion-toggle:hover::after {
  background-color: rgba(239, 59, 82, 0.15);
}

.is-open > .accordion-heading .accordion-toggle {
  color: var(--pr-red-active);
}

.is-open > .accordion-heading .accordion-toggle::after {
  color: #ffffff;
  background-color: var(--pr-red);
  transform: rotate(45deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 1fr;
}

.accordion-body {
  min-height: 0;
  overflow: hidden;
}

.accordion-body p {
  margin: 0;
  padding: 2px 84px 24px 30px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Collapsed only when site.js can open them; the height animates via the grid row. */
@media (scripting: enabled) {
  .accordion-panel {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition:
      grid-template-rows 0.34s var(--ease-panel),
      visibility 0s linear 0.34s;
  }

  .is-open > .accordion-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition:
      grid-template-rows 0.34s var(--ease-panel),
      visibility 0s;
  }
}

/* ---------- Site footer (as on prnews.io/get/pro/) ---------- */

.site-footer {
  position: relative;
  color: #ffffff;
  background: var(--footer-ground);
}

.site-footer a:focus-visible {
  outline-color: #ffffff;
}

.footer-top {
  padding: 30px 0;
  background: var(--pr-red) url('/img/bg-footer.svg') center / cover no-repeat;
}

.footer-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-top-title {
  margin: 0;
  font: 500 38px/1.1 var(--font-heading);
}

.join {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font: 700 12px/1.1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.join-images {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 30px;
  height: 30px;
  margin: 0 24px;
}

.avatar {
  position: absolute;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: -10px 5px 29px rgba(0, 0, 0, 0.07);
}

.avatar:nth-child(1) {
  top: -13px;
}

.avatar:nth-child(2) {
  bottom: -6px;
  left: -11px;
}

.avatar:nth-child(3) {
  right: -11px;
  bottom: -6px;
}

.button-white {
  min-width: 200px;
  min-height: 52px;
  border: 0;
}

.button-white:focus-visible {
  outline-color: var(--pr-black);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 50px;
  padding-bottom: 50px;
}

.widget {
  width: 20%;
}

/* White at half strength, as on the landing: 4.6:1 on the footer ground. */
.widget-title {
  margin: 0;
  font: 400 14px/1.22 var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #979797;
}

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

.widget li {
  margin: 15px 0;
  line-height: 1.1;
}

.widget a {
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition);
}

.widget a:hover {
  color: var(--pr-red);
  text-decoration: underline;
}

/* #999, not the landing's #777, which is 3.3:1 on the footer ground. */
.copyright {
  width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  color: #999999;
  text-align: right;
}

/* ---------- Tablets and phones: menu overlay, no blobs, compact footer ---------- */

@media (max-width: 992px) {
  html.menu-open {
    overflow: hidden;
  }

  .toggle {
    display: flex;
  }

  .navigation {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 16px 32px;
    overflow-y: auto;
    background: var(--pr-red);
  }

  .navigation ul {
    display: block;
  }

  .navigation li {
    display: flex;
    margin: 0 0 20px;
  }

  .navigation li a,
  .navigation li a:hover,
  .navigation li a:active {
    font-size: 26px;
    color: #ffffff;
  }

  .navigation li a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .navigation a:focus-visible {
    outline-color: #ffffff;
  }

  .navigation .pro-chip {
    font-size: 12px;
    line-height: 1;
    color: var(--text-body);
    background: var(--gradient-light);
  }

  .navigation .button-outline {
    min-width: 160px;
    height: 52px;
    margin-top: 32px;
    font-size: 19px;
    color: #ffffff;
    background: transparent;
    border-color: #ffffff;
    box-shadow: none;
  }

  .navigation .button-outline:hover {
    color: var(--pr-red-active);
    background: #ffffff;
  }

  /* Open: the header pins to the top above the red overlay, logo and bars turn white. */
  .site-header.is-open {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }

  .site-header.is-open .navigation {
    display: flex;
  }

  .site-header.is-open .header-logo img {
    filter: brightness(0) invert(1);
  }

  .site-header.is-open .header-logo:focus-visible,
  .site-header.is-open .toggle:focus-visible {
    outline-color: #ffffff;
  }

  .site-header.is-open .toggle-bar {
    width: 20px;
    background: #ffffff;
  }

  .site-header.is-open .toggle-bar:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-open .toggle-bar:nth-of-type(3) {
    opacity: 0;
  }

  .site-header.is-open .toggle-bar:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .decoration {
    display: none;
  }

  .faq {
    margin: 96px 0 72px;
  }

  .section-title {
    font-size: 36px;
  }

  .footer-top-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .footer-top-title {
    width: 100%;
    margin-bottom: 28px;
    text-align: center;
  }

  .join {
    width: 50%;
    justify-content: center;
  }

  .join br {
    display: none;
  }

  /* Two columns of links instead of four. */
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .widget {
    width: auto;
  }

  .widget ul {
    margin: 12px 0 28px;
  }

  .widget li {
    margin: 12px 0;
  }

  .widget a {
    font-size: 16px;
  }

  .copyright {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* ---------- Small screens ---------- */

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

  .header-logo {
    width: 140px;
  }

  .accordion-toggle {
    padding-left: 20px;
    font-size: 16px;
  }

  .accordion-body p {
    padding: 2px 20px 20px;
  }

  /* The licence line and the DR4 link each get their own line. */
  .attribution > span {
    display: block;
  }

  .attribution > .attribution-sep {
    display: none;
  }

  /* Join band stacks: title, avatars + count, full-width button. */
  .join {
    width: 100%;
    margin-bottom: 28px;
  }

  .button-white {
    width: 100%;
  }

  .title {
    font-size: clamp(36px, 11vw, 64px);
  }

  .lede {
    margin-top: 16px;
    font-size: 18px;
  }

  .check {
    margin-top: 32px;
  }

  .field {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .result {
    margin-top: 48px;
    padding: 28px 20px;
  }

  .domain,
  .problem-title {
    font-size: 18px;
  }

  /* Tiles sit side by side; the change pill drops below them. */
  .scores {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .mid {
    grid-column: 1 / -1;
    order: 3;
  }

  .arrow {
    display: none;
  }

  .score {
    padding: 22px 8px 18px;
  }

  .score-num {
    font-size: clamp(36px, 12vw, 56px);
  }

  .score-label {
    font-size: 12px;
  }
}
