/* CourierHound
   One typeface, black and white, one red.
   The rules: square corners (only dots are round), no shadows, a 2px ink rule
   under page titles and above section groups, 1px hairlines between rows,
   spacing from the scale below and nothing in between. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.2bf3d951bf9d.woff2") format("woff2");
}

:root {
  --paper: #FFFFFF;
  --ink: #111111;
  --body: #333333;
  --muted: #555555;
  --stone: #F2F0EB;
  --line: #DDDDDD;
  --accent: #E30613;
  --midnight: #0B1020;

  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 56px;
  --s7: 88px;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
table {
  margin: 0;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

.wrap {
  max-width: 1168px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -100px;
  z-index: 10;
  padding: var(--s3) var(--s4);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--s3);
  color: var(--paper);
}

/* --- Type ---------------------------------------------------------------- */

.display {
  color: var(--ink);
  font-size: 84px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-wrap: balance;
}

.display--2 {
  font-size: 64px;
}

/* The full stop that ends a display headline. */
.stop {
  color: var(--accent);
}

.figure {
  color: var(--ink);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* The one key figure on a page: the amount recovered. */
.figure--key {
  color: var(--accent);
}

.heading {
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.subheading {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.label + .heading {
  margin-top: var(--s3);
}

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

.measure {
  max-width: 62ch;
}

/* --- Logo ---------------------------------------------------------------- */
/* Lowercase wordmark, Inter 800, -0.05em, then the scan-dot symbol sitting on
   the baseline at 45% of the font size. Do not restyle. */

.logo {
  display: inline-block;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--ink);
}

.logo__mark {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.1em;
  vertical-align: baseline;
}

.logo--stacked {
  font-size: 64px;
  line-height: 0.95;
}

.logo--stacked .logo__line {
  display: block;
}

.logo--on-dark,
.logo--on-dark:hover {
  color: var(--paper);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--s2) var(--s4);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn--accent {
  border-color: var(--accent);
  background: var(--accent);
}

.btn--accent:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--s5);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--s5);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

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

.section {
  margin-top: var(--s7);
}

/* A section group opens with a 2px ink rule. */
.section__head {
  margin-bottom: var(--s6);
  padding-top: var(--s4);
  border-top: 2px solid var(--ink);
}

/* When a ruled list follows straight on, the head sits closer to it. */
.section__head--tight {
  margin-bottom: var(--s4);
}

.section__head .heading + p {
  margin-top: var(--s3);
}

.section__foot {
  margin-top: var(--s5);
}

/* A page title sits on a 2px ink rule. */
.page-title {
  padding-top: var(--s6);
  padding-bottom: var(--s5);
  border-bottom: 2px solid var(--ink);
}

.page-title .label {
  margin-bottom: var(--s4);
}

.page-title__intro {
  margin-top: var(--s5);
}

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

.hero {
  padding-top: var(--s6);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: var(--s6);
}

.hero .label {
  margin-bottom: var(--s4);
}

.hero__lede {
  margin-top: var(--s5);
}

.hero .actions {
  margin-top: var(--s5);
}

.hero__note {
  margin-top: var(--s3);
}

.hero__mark {
  display: flex;
  align-items: flex-end;
  min-height: 336px;
  padding: var(--s5);
  background: var(--midnight);
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
}

.step .figure {
  margin-bottom: var(--s4);
}

.step .subheading {
  margin-bottom: var(--s2);
}

/* The long form on the How it works page: number left, text right. */
.steps--long {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.steps--long .step {
  display: grid;
  grid-template-columns: 136px minmax(0, 62ch);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
}

.steps--long .step:first-child {
  padding-top: 0;
}

.steps--long .step .figure {
  margin-bottom: 0;
}

.steps--long .step p + p {
  margin-top: var(--s3);
}

/* --- Tables -------------------------------------------------------------- */

.table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
}

.table th,
.table td {
  padding: var(--s3) var(--s4) var(--s3) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.table tbody th {
  width: 34%;
  color: var(--ink);
  font-weight: 700;
}

.table .num {
  padding-right: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Small red dots may flag errors in tables. The only round thing we draw. */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--s3);
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.1em;
}

/* --- Cards and panels ---------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}

.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  background: var(--stone);
}

.card .label {
  margin-bottom: var(--s3);
}

.card .subheading {
  margin-bottom: var(--s2);
}

.card__figure {
  margin-top: auto;
  padding-top: var(--s5);
}

.card__figure .label {
  margin-bottom: var(--s2);
}

.card .list {
  margin-top: var(--s3);
}

.panel {
  padding: var(--s5);
  background: var(--stone);
}

.panel .label {
  margin-bottom: var(--s3);
}

.panel p + p {
  margin-top: var(--s3);
}

/* A result: label left, amount right, hairlines between. */
.result {
  border-top: 2px solid var(--ink);
}

.result__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}

.result__row dt {
  color: var(--ink);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
  align-items: start;
}

.split > * + * > .heading {
  margin-top: 0;
}

/* Plain lists with hairlines. */
.list li {
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}

.list li:first-child {
  border-top: 1px solid var(--line);
}

/* --- Dark band ----------------------------------------------------------- */

.band {
  margin-top: var(--s7);
  padding: var(--s7) 0;
  background: var(--midnight);
  color: var(--paper);
}

.band .label,
.band .heading,
.band .subheading {
  color: var(--paper);
}

.band .section__head {
  border-top-color: var(--paper);
}

.band :focus-visible {
  outline-color: var(--paper);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
}

.feature .icon {
  margin-bottom: var(--s4);
}

.feature .subheading {
  margin-bottom: var(--s2);
}

.feature p {
  color: var(--line);
}

/* Line icons: 2px stroke, drawn in the current text colour. */
.icon {
  display: block;
  width: 32px;
  height: 32px;
}

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

.faq {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 72px;
  padding: var(--s3) 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  width: var(--s4);
  font-weight: 400;
  text-align: center;
}

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

.faq__answer {
  max-width: 62ch;
  padding-bottom: var(--s5);
}

.faq__answer p + p {
  margin-top: var(--s3);
}

/* --- Long-form text (Terms, Privacy) ------------------------------------- */

.prose {
  max-width: 62ch;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: var(--s3);
}

.prose .list strong {
  display: block;
}

.contact-address {
  display: inline-block;
  margin-top: var(--s2);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

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

.site-footer {
  margin-top: var(--s7);
  padding: var(--s5) 0 var(--s6);
  border-top: 2px solid var(--ink);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s5);
}

.site-footer .nav {
  justify-content: flex-end;
}

.site-footer__small {
  margin-top: var(--s5);
  color: var(--muted);
}

/* --- Smaller screens ----------------------------------------------------- */
/* The type scale is fixed by the brand. Display type alone steps down, so a
   headline still fits the screen it is read on. */

@media (max-width: 1100px) {
  .display {
    font-size: 64px;
  }

  .steps,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps--long {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .hero__mark {
    min-height: 0;
    padding-top: var(--s6);
  }

  .split {
    gap: var(--s5);
  }
}

@media (max-width: 640px) {
  .display,
  .display--2 {
    font-size: 44px;
  }

  .section,
  .band,
  .site-footer {
    margin-top: var(--s6);
  }

  .band {
    padding: var(--s6) 0;
  }

  .section__head {
    margin-bottom: var(--s5);
  }

  .hero,
  .page-title {
    padding-top: var(--s5);
  }

  .steps,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps--long .step {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
  }

  .nav {
    column-gap: var(--s2);
    justify-content: space-between;
    width: 100%;
  }

  .site-footer .nav {
    column-gap: var(--s4);
    justify-content: flex-start;
  }

  /* Tables fold into stacked rows. */
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table tr {
    display: block;
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--line);
  }

  .table tbody th,
  .table td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: 0;
  }

  .table .num {
    text-align: left;
  }
}
