/*
 * abackdirectories.com: the landing page, pricing, the directory database
 * and the private order pages.
 *
 * Follows the Aback design system (aback-tools/DESIGN.md): square corners,
 * 1px hairlines, one brand blue used as a signal, Geist Sans and Geist Mono,
 * and a dark theme that follows the operating system.
 */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* A local fallback sized like Geist, so the font swap barely moves the page. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #f5f5f5;
  --fg: #0a0a0a;
  --fg-mute: #737373;
  --border: #e5e5e5;
  --separator: #d7d7d7;
  --grid-line: rgb(0 0 0 / 4.5%);

  /* Aback Blue ramp. 500 is decorative only on white; text uses 700. */
  --blue-50: #e6f6ff;
  --blue-100: #ccedff;
  --blue-200: #99dbff;
  --blue-500: #009bf9;
  --blue-600: #007cc7;
  --blue-text: #0070ac;
  --link: #005d95;
  --link-hover: #003e63;
  --brand-fill: #005d95;
  --brand-fill-hover: #003e63;
  --on-brand: #ffffff;
  --icon-chip: #ccedff;
  --icon-chip-fg: #007cc7;

  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;

  --font-sans: "Geist", "Geist Fallback", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --card: #171717;
    --muted: #262626;
    --fg: #fafafa;
    --fg-mute: #a1a1a1;
    --border: rgb(255 255 255 / 10%);
    --separator: rgb(255 255 255 / 15%);
    --grid-line: rgb(255 255 255 / 4%);

    --blue-50: rgb(0 31 50 / 45%);
    --blue-100: #001f32;
    --blue-200: #003e63;
    --blue-500: #009bf9;
    --blue-600: #33b7ff;
    --blue-text: #33b7ff;
    --link: #33b7ff;
    --link-hover: #66c9ff;
    --brand-fill: #33b7ff;
    --brand-fill-hover: #66c9ff;
    --on-brand: #000f19;
    --icon-chip: #001f32;
    --icon-chip-fg: #33b7ff;

    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--link);
  text-underline-offset: 3px;
  transition: color 200ms;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--brand-fill);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-brand);
}

/* ---------------------------------------------------------------- labels */

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

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 20px;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-center {
  justify-content: center;
}

.eyebrow .sep {
  color: var(--blue-600);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue-text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--blue-500);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 200ms,
    border-color 200ms,
    color 200ms,
    transform 100ms;
}

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

.btn-brand {
  background: var(--brand-fill);
  color: var(--on-brand);
}

.btn-brand:hover {
  background: var(--brand-fill-hover);
  color: var(--on-brand);
}

.btn-outline {
  border-color: var(--separator);
  background: var(--bg);
  color: var(--fg);
}

.btn-outline:hover {
  background: var(--muted);
  color: var(--fg);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn .arrow {
  transition: transform 200ms;
}

.btn:hover .arrow {
  transform: translateX(2px);
}

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

.topbar {
  height: 4px;
  background: var(--blue-500);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--separator);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--fg);
}

.brand span {
  white-space: nowrap;
}

/* The header has room for the full button label from a small tablet up. */
.wide-only {
  display: none;
}

@media (min-width: 420px) {
  .wide-only {
    display: inline;
  }
}

.brand img {
  width: 30px;
  height: auto;
  transition: transform 200ms;
}

.brand:hover img {
  transform: scale(1.08);
}

.site-nav {
  display: none;
  gap: 28px;
}

.site-nav a {
  color: var(--fg-mute);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

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

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--separator);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 64px;
}

@media (min-width: 960px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding-top: 88px;
    padding-bottom: 96px;
  }
}

.hero h1 {
  font-size: clamp(40px, 7.2vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  color: var(--blue-text);
}

.hero .lead {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--fg-mute);
  font-size: 18px;
  line-height: 1.6;
}

.hero .lead strong {
  color: var(--fg);
  font-weight: 600;
}

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

.hero-note {
  margin-top: 20px;
  color: var(--fg-mute);
  font-size: 13px;
}

.hud {
  display: none;
  width: 100%;
  max-width: 580px;
  justify-self: center;
}

/* Decorative: on a phone its labels would be too small to read, and the
   text above already says the same thing. */
@media (min-width: 640px) {
  .hud {
    display: block;
  }
}

.hud .trace {
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 5;
  stroke-linejoin: miter;
}

.hud .node {
  fill: var(--bg);
  stroke: var(--blue-500);
  stroke-width: 5;
}

.hud .chip {
  fill: var(--card);
  stroke: var(--border);
  stroke-width: 1.5;
}

.hud .chip-bar {
  fill: var(--blue-500);
}

.hud .chip-title {
  fill: var(--fg);
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hud .chip-status {
  fill: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hud .dot {
  fill: var(--success);
}

.hud .mark {
  fill: var(--blue-500);
}

/* --------------------------------------------------------------- facts */

.facts {
  border-bottom: 1px solid var(--separator);
}

.facts ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 24px 16px 24px 0;
  border-bottom: 1px solid var(--border);
}

.facts li:nth-child(odd) {
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.facts li:nth-child(even) {
  padding-left: 16px;
}

.facts li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

@media (min-width: 860px) {
  .facts ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .facts li,
  .facts li:nth-child(odd),
  .facts li:nth-child(even) {
    padding: 32px 24px;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .facts li:first-child {
    padding-left: 0;
  }

  .facts li:last-child {
    border-right: 0;
  }
}

.fact-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.fact-label {
  display: block;
  margin-top: 8px;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.45;
}

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

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--separator);
}

@media (min-width: 960px) {
  .section {
    padding: 104px 0;
  }
}

.section-head {
  max-width: 44rem;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 16px;
  color: var(--fg-mute);
  font-size: 17px;
  line-height: 1.6;
}

/* ----------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  list-style: none;
  background: var(--border);
  gap: 1px;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 24px;
  background: var(--card);
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--blue-500);
}

.step-number {
  display: block;
  margin-bottom: 20px;
  color: var(--blue-text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.step p {
  margin-top: 8px;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.6;
}

/* ----------------------------------------------------------------- links */

.split {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
  }
}

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

.section-head .callout {
  color: var(--fg);
}

.callout {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--blue-200);
  border-left: 4px solid var(--blue-500);
  background: var(--blue-50);
  font-size: 15px;
  line-height: 1.6;
}

.status-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--card);
  list-style: none;
}

.status-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.status-list li:last-child {
  border-bottom: 0;
}

@media (min-width: 560px) {
  .status-list li {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: currentColor;
}

.status-good {
  color: var(--success);
}

.status-warn {
  color: var(--warning);
}

.status-bad {
  color: var(--danger);
}

.status-info {
  color: var(--blue-text);
}

.status-list p {
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- report */

.report {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 2%),
    0 24px 48px -24px rgb(0 0 0 / 18%);
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.report-title {
  font-size: 15px;
  font-weight: 600;
}

.report-tag {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .report-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.report-stats div {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Five numbers in two columns: the last one takes the whole row. */
.report-stats div:last-child {
  grid-column: 1 / -1;
  border-right: 0;
}

@media (min-width: 640px) {
  .report-stats div {
    border-bottom: 0;
  }

  .report-stats div:last-child {
    grid-column: auto;
  }
}

.report-stats dt {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-stats dd {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.report-stats .highlight dd {
  color: var(--blue-text);
}

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

.report table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.report th,
.report td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.report th {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* On a phone the detail column is the one to drop: the status says it. */
.report .col-detail {
  display: none;
}

@media (min-width: 560px) {
  .report .col-detail {
    display: table-cell;
  }

  .report th,
  .report td {
    padding: 14px 20px;
  }
}

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

.report td:first-child {
  font-weight: 500;
}

.report .url {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 12px;
}

.report-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  color: var(--fg-mute);
  font-size: 13px;
}

/* ------------------------------------------------------------ principles */

.principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--border);
  list-style: none;
}

@media (min-width: 640px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.principles li {
  display: flex;
  gap: 14px;
  padding: 22px 24px;
  background: var(--card);
}

.principles .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--icon-chip);
  color: var(--icon-chip-fg);
}

.principles .icon svg {
  width: 18px;
  height: 18px;
}

.principles h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.principles p {
  margin-top: 4px;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------- faq */

.faq {
  max-width: 52rem;
  border-top: 1px solid var(--border);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--separator);
  color: var(--blue-text);
  font-family: var(--font-mono);
  font-size: 16px;
  transition: transform 200ms;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover {
  color: var(--link);
}

.faq .answer {
  max-width: 72ch;
  padding: 0 44px 22px 0;
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.7;
}

.faq .answer p + p {
  margin-top: 12px;
}

/* ------------------------------------------------------------------- cta */

.cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  border-bottom: 1px solid var(--separator);
  background: var(--blue-50);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta .container {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .cta .container {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.cta h2 {
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta p {
  max-width: 40rem;
  margin-top: 12px;
  /* Muted grey on the blue wash falls under 4.5:1, so the copy stays ink. */
  color: var(--fg);
  font-size: 17px;
  line-height: 1.6;
}

.cta .email {
  font-family: var(--font-mono);
  font-size: 14px;
}

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

.site-footer {
  padding: 40px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }
}

.footer-grid .tagline {
  max-width: 36ch;
  margin-top: 12px;
  color: var(--fg-mute);
  font-size: 13px;
  line-height: 1.6;
}

.footer-title {
  margin-bottom: 12px;
  color: var(--fg-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--fg-mute);
  font-size: 14px;
  text-decoration: none;
}

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

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--fg-mute);
  font-size: 13px;
}

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

button.btn {
  font-family: inherit;
  cursor: pointer;
}

button.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.muted {
  color: var(--fg-mute);
}

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

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--border);
  list-style: none;
}

@media (min-width: 960px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
  background: var(--card);
}

.plan-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--blue-500);
}

.plan h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan-summary {
  margin-top: 6px;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.55;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan-amount {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan-unit,
.plan-per {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.plan-count strong {
  font-size: 20px;
}

.plan-per {
  margin-left: auto;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}

.plan-features li {
  display: flex;
  gap: 10px;
}

.plan-features .tick {
  flex: none;
  margin-top: 2px;
  color: var(--blue-text);
}

.plan-buy {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.plan-buy .btn {
  width: 100%;
}

.plan-note {
  color: var(--fg-mute);
  font-size: 13px;
  line-height: 1.55;
}

.plan-for {
  margin-top: 8px;
  color: var(--fg-mute);
  font-size: 13px;
}

/* What the plans are counted for: software, AI products or developer tools. */
.focus-picker {
  margin-bottom: 24px;
}

.focus-label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.focus-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-tab {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
}

.focus-tab:hover {
  border-color: var(--separator);
  background: var(--muted);
}

.focus-tab[aria-current="true"] {
  border-color: var(--brand-fill);
  background: var(--brand-fill);
  color: var(--on-brand);
}

.focus-help {
  max-width: 72ch;
  margin-top: 10px;
  color: var(--fg-mute);
  font-size: 13px;
  line-height: 1.55;
}

.plans-foot {
  max-width: 72ch;
  margin-top: 16px;
  color: var(--fg-mute);
  font-size: 13px;
  line-height: 1.6;
}

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

.page-head {
  position: relative;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--separator);
  background: var(--blue-50);
}

.page-head h1 {
  max-width: 24ch;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-head .lead {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--fg);
  font-size: 17px;
  line-height: 1.6;
}

.page-head .eyebrow a {
  color: inherit;
}

.section-tight {
  padding: 40px 0 64px;
}

/* --------------------------------------------------------- the database */

.db-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 44rem;
  margin: 28px 0 0;
  border: 1px solid var(--border);
  background: var(--border);
}

@media (min-width: 640px) {
  .db-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.db-stats div {
  padding: 14px 16px;
  background: var(--card);
}

.db-stats dt,
.facts-list dt {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.db-stats dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.db-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--muted);
}

.db-reset {
  align-self: center;
  font-size: 14px;
}

.db-count {
  margin: 20px 0 10px;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

table.db {
  width: 100%;
  border: 1px solid var(--border);
  border-collapse: collapse;
  background: var(--card);
  font-size: 14px;
}

.db th,
.db td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.db th {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.db td:first-child a {
  font-weight: 500;
}

.db-domain {
  display: block;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 12px;
}

.db .col-wide {
  display: none;
}

@media (min-width: 720px) {
  .db .col-wide {
    display: table-cell;
  }

  .db th,
  .db td {
    padding: 12px 16px;
  }
}

.db .url {
  max-width: 28ch;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-more {
  margin-top: 20px;
}

.db-notes {
  display: grid;
  gap: 12px;
  max-width: 72ch;
  margin-top: 24px;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.6;
}

.db-notes strong {
  color: var(--fg);
}

.empty {
  padding: 24px;
  border: 1px dashed var(--separator);
  color: var(--fg-mute);
  font-size: 15px;
}

.detail {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .detail {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.facts-list {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--card);
}

.facts-list div {
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.facts-list div:last-child {
  border-bottom: 0;
}

.facts-list dd {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 15px;
}

.fact-note {
  color: var(--fg-mute);
  font-size: 13px;
  line-height: 1.55;
}

.detail-title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
}

.sources {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--border);
  list-style: none;
}

.sources li {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  background: var(--card);
}

.sources a {
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 13px;
}

.source-covers {
  font-size: 15px;
}

.source-date {
  color: var(--fg-mute);
  font-size: 12px;
}

.detail-cta {
  margin-top: 24px;
}

/* ------------------------------------------------------------------ forms */

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-inline {
  min-width: 140px;
}

.field-grow {
  flex: 1 1 220px;
}

.field-label {
  font-size: 14px;
  font-weight: 500;
}

.field-label em {
  color: var(--fg-mute);
  font-style: normal;
  font-weight: 400;
}

.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="search"],
.field textarea,
.field select,
.copy-row input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--separator);
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}

.field textarea {
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue-600);
  outline: 1px solid var(--blue-600);
  outline-offset: 0;
}

.field-help {
  color: var(--fg-mute);
  font-size: 13px;
}

.field-invalid input,
.field-invalid textarea,
.field-invalid select {
  border-color: var(--danger);
}

.field-invalid .field-help {
  color: var(--danger);
}

.field-check,
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}

.field-check input,
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-fill);
}

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

@media (min-width: 640px) {
  .checks {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------- notices */

.notice {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-500);
  background: var(--card);
  font-size: 15px;
  line-height: 1.55;
}

.notice-good {
  border-left-color: var(--success);
}

.notice-warn {
  border-left-color: var(--warning);
}

.notice-bad {
  border-left-color: var(--danger);
}

/* ------------------------------------------------------------------ order */

.page-head-order {
  padding: 40px 0 28px;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 12px;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 13px;
}

.order-body {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.order-section h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.order-product {
  color: var(--fg-mute);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}

.order-intro {
  max-width: 68ch;
  margin: 10px 0 24px;
  color: var(--fg-mute);
  font-size: 16px;
  line-height: 1.6;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.order-waiting {
  padding: 48px 24px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}

.order-waiting h2 {
  justify-content: center;
}

.order-waiting .order-intro {
  margin: 10px auto 0;
}

.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-500);
  animation: spin 900ms linear infinite;
}

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

.report-stats-6 {
  border: 1px solid var(--border);
  background: var(--card);
}

@media (min-width: 640px) {
  .report-stats-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-stats-6 div {
    border-bottom: 1px solid var(--border);
  }
}

@media (min-width: 960px) {
  .report-stats-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .report-stats-6 div {
    border-bottom: 0;
  }
}

.report-stats-6 div:last-child {
  grid-column: auto;
}

.order-table {
  margin-top: 16px;
}

.brief {
  display: grid;
  gap: 20px;
  max-width: 52rem;
  padding: 28px 24px;
  border: 1px solid var(--border);
  background: var(--card);
}

.brief-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.brief-note {
  color: var(--fg-mute);
  font-size: 13px;
  line-height: 1.55;
}

.brief .btn {
  justify-self: start;
}

.private-link {
  max-width: 52rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.private-link summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.private-link p {
  padding: 0 18px;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.55;
}

.copy-row {
  display: flex;
  gap: 8px;
  padding: 12px 18px 18px;
}

.copy-row input {
  font-family: var(--font-mono);
  font-size: 13px;
}

.order-help {
  color: var(--fg-mute);
  font-size: 14px;
}

.badge-consent {
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--muted);
}

.check-block {
  align-items: flex-start;
  min-height: 0;
}

.check-block input {
  flex: none;
  margin-top: 3px;
}

.badge-needed {
  display: block;
  margin-top: 4px;
  color: var(--warning);
  font-size: 12px;
}

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

.not-found {
  display: grid;
  min-height: calc(100vh - 69px);
  place-items: center;
  padding: 64px 0;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.not-found p {
  margin: 16px auto 28px;
  max-width: 32rem;
  color: var(--fg-mute);
  font-size: 17px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
