:root {
  --white: #ffffff;
  --black: #000000;
  --red: #d9200f;
  --yellow: #f7c600;
  --blue: #1c3f94;
  --grey: #c4c4bf;
  --hatch: repeating-linear-gradient(45deg, #000 0 2px, #fff 2px 6px);

  --rule: 6px;
  --rule-thin: 2px;
  --pad: clamp(1rem, 3vw, 2.5rem);

  --font: "Archivo", "Arial", system-ui, sans-serif;
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.75rem;
  --text-xl: 2.5rem;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--rule);
  background: var(--black);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul, ol, pre, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.invert a:focus-visible { outline-color: var(--white); }

.display {
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plane { background: var(--white); padding: var(--pad); min-width: 0; }
.measure { max-width: 65ch; }
.grid { display: grid; gap: var(--rule); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover { background: var(--white); color: var(--black); }
.button-light { border-color: var(--white); background: var(--white); color: var(--black); }
.button-light:hover { background: var(--black); color: var(--white); }

.link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.top {
  display: flex;
  align-items: center;
  padding: 1rem var(--pad);
  background: var(--white);
}
.wordmark { font-size: var(--text-md); color: var(--black); text-decoration: none; }
.sign-in { margin-left: auto; }

.shot { border: var(--rule-thin) solid var(--black); }

/* Landing page */

.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.intro h1 { font-size: clamp(1.875rem, 3.6vw, 3.75rem); max-width: 13ch; }
.intro p { font-size: var(--text-md); }
.intro .free { font-size: var(--text-sm); font-weight: 600; }
.hero-shot { display: flex; align-items: center; }

.section-head h2, .why h2, .claim-plane h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }

.flags { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flag {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 15rem;
  padding: var(--pad);
}
.flag h3 { font-size: var(--text-lg); overflow-wrap: break-word; hyphens: auto; }
.flag p { margin-top: auto; max-width: 30ch; }
.flag-missing { background: var(--red); color: var(--white); }
.flag-underpaid { background: var(--yellow); color: var(--black); }
.flag-duplicate { background: var(--blue); color: var(--white); }
.flag-unknown { background: var(--grey); color: var(--black); }

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}
.step { display: flex; flex-direction: column; gap: 1.25rem; }
.step-number { font-size: clamp(3rem, 6vw, 5.5rem); }
.step p { max-width: 40ch; }

.why-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.why { display: flex; flex-direction: column; gap: 1.5rem; }
.claims-list { display: grid; padding: 0; list-style: none; border-bottom: var(--rule-thin) solid var(--black); }
.claims-list li { padding: 0.875rem 0; border-top: var(--rule-thin) solid var(--black); font-size: 1.0625rem; }
.why-shot { display: flex; align-items: center; }

.faq { display: grid; border-bottom: var(--rule-thin) solid var(--black); }
.faq-item { display: grid; gap: 0.5rem; padding: 1.25rem 0; border-top: var(--rule-thin) solid var(--black); }
.faq-item h3 { font-size: var(--text-md); font-weight: 700; }
.faq-item p { max-width: 65ch; }

.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.plan h3 { font-size: var(--text-lg); }
.price { font-size: clamp(2.5rem, 5vw, 4.5rem); font-variant-numeric: tabular-nums; }
.price span { font-size: var(--text-md); font-weight: 600; letter-spacing: 0; }
.plan .button { margin-top: auto; }
.plans-note { font-weight: 600; }

.closing { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 5rem); background: var(--black); color: var(--white); }
.closing p.display { font-size: clamp(2rem, 5vw, 4.5rem); }
.closing p { font-size: var(--text-md); }

.foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding: 1.25rem var(--pad); background: var(--white); font-size: var(--text-xs); }
.foot span { font-weight: 700; margin-right: auto; }

/* Legal pages */

.legal { display: flex; flex-direction: column; gap: 1rem; }
.legal > * { max-width: 70ch; }
.legal h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.legal h2 { margin-top: 1rem; font-size: var(--text-lg); font-weight: 800; }
.legal ul { display: grid; gap: 0.5rem; padding-left: 1.25rem; }
.legal .updated { font-size: var(--text-xs); font-weight: 600; }

/* Sample audit page */

.notice { font-size: var(--text-md); font-weight: 600; }

.summary-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.summary { display: flex; flex-direction: column; gap: 1.25rem; }
.summary h1 { font-size: var(--text-lg); }
.total { font-size: clamp(2.5rem, 5vw, 5rem); font-variant-numeric: tabular-nums; }
.total-note { font-weight: 600; }
.tally { display: grid; border-bottom: var(--rule-thin) solid var(--black); }
.tally div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.625rem 0; border-top: var(--rule-thin) solid var(--black); }
.tally dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.notes { display: flex; flex-direction: column; gap: 1.5rem; }
.notes h2 { font-size: var(--text-lg); }
.notes p { font-size: 1.0625rem; }

.maker { padding: 0; }
.maker-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  padding: var(--pad);
}
.maker-head h2 { font-size: var(--text-xl); overflow-wrap: anywhere; }
.owed { text-align: right; }
.owed strong { display: block; font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.owed span { font-size: var(--text-xs); }

.findings { list-style: none; padding: 0; }
.finding {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.25rem var(--pad) 1.5rem calc(var(--pad) + 12px);
  border-top: var(--rule-thin) solid var(--black);
}
.finding::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 12px; background: var(--kind); }
.finding-missing { --kind: var(--red); }
.finding-underpaid { --kind: var(--yellow); }
.finding-duplicate { --kind: var(--blue); }
.finding-unknown { --kind: var(--grey); }
.finding-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.finding-head h3 { font-size: var(--text-md); font-weight: 700; }
.finding-head .kind { font-weight: 600; }
.fields {
  display: flex;
  flex-wrap: wrap;
  border-top: var(--rule-thin) solid var(--black);
  border-left: var(--rule-thin) solid var(--black);
}
.fields div {
  flex: 1 1 8.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.625rem 0.75rem;
  border-right: var(--rule-thin) solid var(--black);
  border-bottom: var(--rule-thin) solid var(--black);
}
.fields dt { font-size: var(--text-xs); }
.fields dd { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.reason { font-size: var(--text-md); max-width: 65ch; }
.evidence { display: grid; gap: 0.25rem; font-size: var(--text-xs); }
.evidence strong { font-weight: 700; }
.evidence ul { padding-left: 1.125rem; }

.held { position: relative; display: flex; flex-direction: column; gap: 1rem; padding-left: calc(var(--pad) + 24px); }
.held::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 24px; background: var(--hatch); border-right: var(--rule-thin) solid var(--black); }
.held h2 { font-size: var(--text-xl); }
.held .status { font-size: var(--text-md); font-weight: 700; }
.held p { max-width: 65ch; }

.claim-plane { display: flex; flex-direction: column; gap: 1.25rem; }
.claim {
  max-width: 52rem;
  padding: 1.25rem 1.5rem;
  border: var(--rule-thin) solid var(--black);
  font: inherit;
  font-size: var(--text-sm);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1079px) {
  .hero, .why-row, .summary-row { grid-template-columns: minmax(0, 1fr); }
  .flags, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro h1 { max-width: 16ch; }
}

@media (max-width: 760px) {
  :root { --rule: 4px; --pad: 1rem; }
  .flags, .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .flag { min-height: 0; }
  .flag p { margin-top: 0; }
  .owed { text-align: left; }
  .held { padding-left: calc(var(--pad) + 16px); }
  .held::before { width: 16px; }
  .claim { padding: 1rem; font-size: var(--text-xs); }
}
