@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --text: #171f25;
  --muted: #626b72;
  --border: #d9dddf;
  --surface: #f7f8f8;
  --accent: #197b8a;
  --accent-dark: #125e75;
  --error: #a4264e;
  color-scheme: light;
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: white;
  color: var(--text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #77cad0;
  outline-offset: 2px;
}

svg {
  display: block;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.legal-notice {
  padding-block: 3rem 4rem;
}

.legal-notice h1 {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.filter-panel {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.search-field {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding-inline: 0.85rem;
  color: var(--muted);
}

.search-field:focus-within {
  border-color: var(--accent);
}

.search-field svg {
  width: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

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

.search-field button {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
}

.filter-buttons {
  display: flex;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: white;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
}

.filter-button span {
  color: var(--muted);
  font-size: 0.68rem;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: white;
}

.filter-button:hover span,
.filter-button[aria-pressed="true"] span {
  color: white;
}

.result-count {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
}

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

.processor-group + .processor-group {
  margin-top: 3rem;
}

.group-heading {
  margin-bottom: 0.75rem;
}

.group-heading h2 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.processor-grid {
  border-top: 1px solid var(--border);
}

.subprocessor-card {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.card-heading h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.applies-when {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: right;
}

.processor-details {
  display: grid;
  margin-top: 1.25rem;
  gap: 1rem 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.processor-details dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.processor-details dd {
  font-size: 0.78rem;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  margin-top: 1.25rem;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.vendor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.vendor-links a {
  font-size: 0.75rem;
  font-weight: 650;
}

.card-footer > p {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: right;
}

.empty-state {
  margin-top: 2rem;
  border: 1px solid var(--border);
  padding: 2rem 1rem;
  text-align: center;
}

.empty-state h2 {
  font-size: 1rem;
}

.empty-state p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.updates {
  padding-top: 2.5rem;
}

.subscribe-form {
  display: flex;
  max-width: 38rem;
  flex-direction: column;
}

.subscribe-form h2 {
  font-size: 1.35rem;
  font-weight: 650;
}

.form-description {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.subscribe-form > label {
  margin-block: 1.5rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.email-control {
  display: flex;
  min-height: 3rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding-inline: 0.85rem;
}

.email-control:focus-within {
  border-color: var(--accent);
}

.email-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.email-control input::placeholder {
  color: var(--muted);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.turnstile-slot {
  min-height: 4.1rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: white;
}

.button-primary:hover:not(:disabled) {
  background: var(--text);
}

.button-primary:disabled {
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
}

.submit-button {
  width: 100%;
  margin-top: 0.5rem;
}

.form-status {
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  font-size: 0.75rem;
  line-height: 1.5;
}

.form-status[data-state="error"] {
  border-color: var(--error);
  color: var(--error);
}

.form-privacy {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

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

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.error-page main {
  max-width: 35rem;
  padding: 2rem;
}

.error-page .eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.error-page h1 {
  margin-top: 0.5rem;
  font-size: 2.5rem;
}

.error-page p:not(.eyebrow) {
  margin-block: 1rem 1.5rem;
  color: var(--muted);
}

@media (max-width: 64rem) {
  .processor-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .wrap {
    width: min(100% - 2rem, 72rem);
  }

  .legal-notice {
    padding-block: 2rem 3rem;
  }

  .filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .card-heading,
  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .applies-when,
  .card-footer > p {
    text-align: left;
  }

  .processor-details {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media print {
  .filter-panel,
  .updates {
    display: none;
  }

  .legal-notice {
    padding: 0;
  }

  .subprocessor-card {
    break-inside: avoid;
  }
}
