/* knownprint.com: the landing page and its subpages. No inline styles anywhere (the CSP allows
   only this file), square corners, Archivo throughout, a 2px rule between sections. */

/* Archivo, variable on the weight axis, self-hosted (OFL, assets/fonts/OFL.txt). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-wght.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext-wght.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* Arial (or Helvetica) scaled to Archivo's advance widths and vertical metrics, one face per
   weight band, so the swap to Archivo barely moves a line. Measured in Chromium. */
@font-face {
  font-family: "Archivo Fallback";
  font-weight: 100 500;
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Helvetica Neue");
  size-adjust: 98.57%;
  ascent-override: 89.07%;
  descent-override: 21.3%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Archivo Fallback";
  font-weight: 501 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold");
  size-adjust: 95.18%;
  ascent-override: 92.25%;
  descent-override: 22.06%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Archivo Fallback";
  font-weight: 701 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold");
  size-adjust: 104.2%;
  ascent-override: 84.26%;
  descent-override: 20.15%;
  line-gap-override: 0%;
}

:root {
  --paper: #f3f2f2;
  --ink: #201e1d;
  /* Display numbers, the confidence figure, accents and the mark: large text only (3.8:1). */
  --red: #ec3013;
  /* Buttons and the waitlist band: 4.7:1 with paper, so small paper text passes AA. */
  --red-strong: #cf2a10;
  --red-hover: #b6230c;
  /* Small red text and links: 6.4:1 on paper. */
  --red-deep: #ae1800;
  --card: #eae9e9;
  --track: #d7d3d3;
  --rule: rgba(32, 30, 29, 0.4);
  --rule-solid: #9f9d9d;
  --rule-soft: rgba(32, 30, 29, 0.15);
  --muted: rgba(32, 30, 29, 0.7);
  --body: rgba(32, 30, 29, 0.78);
  --lead: rgba(32, 30, 29, 0.85);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --font: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

[hidden] {
  display: none;
}

a {
  color: var(--red-deep);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: rgba(236, 48, 19, 0.3);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.nowrap {
  white-space: nowrap;
}

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

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Buttons. */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--red-strong);
  color: var(--paper);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--red-hover);
}

.btn:active {
  background: var(--red-deep);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--red-deep);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}

.btn-text:hover {
  background: rgba(236, 48, 19, 0.1);
}

.btn-text:active {
  background: rgba(236, 48, 19, 0.18);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 8px 18px;
  background: transparent;
  color: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 0;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.12);
}

.btn-outline:active {
  background: rgba(0, 0, 0, 0.22);
}

.btn-outline:disabled,
.btn-outline[aria-disabled="true"] {
  cursor: progress;
  background: rgba(0, 0, 0, 0.12);
}

/* Header and navigation: sticky, slim, on paper. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--rule-solid);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  flex: none;
  display: block;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-menu-list a:hover {
  color: var(--red-deep);
  text-decoration: underline;
}

.nav-cta {
  padding: 0 14px;
}

.nav-menu {
  display: none;
}

.nav-menu-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  list-style: none;
  cursor: pointer;
}

.nav-menu-button::-webkit-details-marker {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.burger {
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.nav-menu[open] .burger {
  background: transparent;
}

.nav-menu[open] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-menu[open] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-menu-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  padding: 4px var(--gutter) 12px;
  background: var(--paper);
  border-bottom: 2px solid var(--rule-solid);
}

.nav-menu-list :where(li + li) {
  border-top: 1px solid var(--rule-soft);
}

.nav-menu-list a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 24px;
  text-decoration: none;
}

@media (max-width: 759px) {
  .nav {
    gap: 8px;
  }

  .nav-links {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 17px;
  }

  .nav-cta {
    padding: 0 12px;
    white-space: normal;
  }
}

@media (max-width: 349px) {
  .nav-cta-tail {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Section scaffolding. */

.rule {
  height: 2px;
  margin: 0;
  border: 0;
  background: var(--rule);
}

.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section-how {
  padding-bottom: clamp(64px, 8vw, 98px);
}

.eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--red-deep);
  font-weight: 400;
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display {
  max-width: 24ch;
  margin: 0 0 56px;
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* Hero. */

.hero {
  display: grid;
  gap: 56px clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 7vw, 84px);
}

.hero-title {
  margin-left: -0.058em;
  font-weight: 800;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
}

.hero-lead {
  max-width: 52ch;
  margin-top: 36px;
  color: var(--lead);
  font-size: 17px;
  line-height: 28px;
}

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

.hero-note {
  margin-top: 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (max-width: 400px) {
  .hero-title {
    font-size: 10.6vw;
  }

  .hero-lead {
    margin-top: 28px;
  }

  .hero-note {
    margin-top: 32px;
  }
}

/* The example check card. */

.check {
  --pad: 24px;
  container-type: inline-size;
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 560px;
  margin: 0;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(45, 43, 43, 0.22);
  font-size: 14px;
}

@media (min-width: 960px) {
  .check {
    max-width: 480px;
  }
}

.check-stack {
  display: grid;
}

.check-stack > * {
  grid-area: 1 / 1;
  min-width: 0;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0s;
}

.check-stack > .is-off {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}

.check-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 16px var(--pad);
  border-bottom: 2px solid var(--rule);
}

.check-route {
  color: var(--red-deep);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-req {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.check-id {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: end;
  padding: 24px var(--pad) 0;
}

.check-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-vid {
  margin-top: 4px;
  font-weight: 600;
  font-size: min(17px, 5cqi);
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.check-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.check-conf {
  text-align: right;
}

.check-num {
  margin-top: 6px;
  color: var(--red);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.check-bar {
  height: 4px;
  margin: 14px var(--pad) 20px;
  background: var(--track);
}

.check-fill {
  width: 100%;
  height: 100%;
  background: var(--red);
  transition: width 0.9s var(--ease);
}

.check-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.check-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  background: var(--paper);
  color: var(--muted);
  border: 0;
  border-radius: 0;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  transition:
    background 0.5s ease,
    color 0.5s ease;
}

button.check-cell {
  cursor: pointer;
}

button.check-cell:hover {
  color: var(--ink);
}

.check-cell.is-on,
button.check-cell.is-on:hover {
  background: var(--red-strong);
  color: var(--paper);
}

.check-cell.is-on[data-cell="deny"],
button.check-cell.is-on[data-cell="deny"]:hover {
  background: var(--ink);
}

.check-cell:focus-visible {
  outline-offset: -4px;
  outline-color: var(--ink);
}

.check-cell.is-on:focus-visible {
  outline-color: var(--paper);
}

.check-bottom {
  display: flex;
  flex-direction: column;
}

.check-reasons {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px var(--pad);
  color: var(--lead);
  font-size: 13px;
  line-height: 20px;
}

.check-reasons li {
  position: relative;
  padding-left: 18px;
}

.check-reasons li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
}

.check-reasons .check-none::before {
  background: transparent;
  border: 1.5px solid var(--muted);
}

.check-code {
  display: block;
  color: var(--red-deep);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.check-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  padding: 4px var(--pad) 20px;
  border-top: 1px solid var(--rule);
}

.check-signals > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12px;
  line-height: 18px;
}

.check-signals dt {
  color: var(--muted);
}

.check-signals dd {
  color: var(--muted);
  font-weight: 600;
  text-align: right;
}

.check-signals .is-flag {
  color: var(--red-deep);
}

.check-caption {
  min-height: 44px;
  padding: 14px 60px 12px var(--pad);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-left: 1px solid var(--rule);
  border-radius: 0;
  cursor: pointer;
}

.check-toggle:hover {
  background: rgba(32, 30, 29, 0.06);
}

.check-toggle:focus-visible {
  outline-offset: -4px;
}

.check-toggle::before {
  content: "";
  display: block;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.check-toggle[data-state="paused"]::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-right: 0;
}

@container (max-width: 440px) {
  .check-id {
    grid-template-columns: minmax(0, 1fr);
  }

  .check-conf {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 10px;
    text-align: left;
  }

  .check-conf .check-num {
    margin-top: 0;
  }
}

@container (max-width: 340px) {
  .check > * {
    --pad: 18px;
  }

  .check-cell {
    justify-content: center;
    padding: 0 4px;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-align: center;
  }

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

/* The four numbers. */

.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px 24px;
  padding: clamp(56px, 7vw, 84px) 0;
}

.stat-num {
  margin-left: -0.045em;
  color: var(--red);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.17;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

/* Numbered rows (How it works) and question rows (FAQ). */

.row {
  display: grid;
  gap: 12px clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: 42px 0;
}

.row + .row {
  border-top: 2px solid var(--rule);
}

.step {
  grid-template-columns: minmax(48px, 120px) minmax(0, 1fr) minmax(0, 1.4fr);
}

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

.step-num {
  font-weight: 800;
  font-size: 15px;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}

.row-title {
  font-weight: 800;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.row-body {
  max-width: 52ch;
  color: var(--body);
  font-size: 15.5px;
  line-height: 28px;
}

.qa .row-body {
  max-width: 56ch;
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

@media (max-width: 759px) {
  .row {
    padding: 32px 0;
  }

  .step {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
  }

  .row-body {
    font-size: 15px;
    line-height: 26px;
  }

  .step .row-body {
    grid-column: 1 / -1;
  }

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

  .row-title {
    font-size: 21px;
    line-height: 26px;
  }
}

.code {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 24px;
  overflow-x: auto;
}

.code pre,
.code code {
  font: inherit;
  white-space: pre;
  tab-size: 2;
}

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

.tok-k,
.tok-r {
  color: var(--red-deep);
}

@media (max-width: 599px) {
  .code {
    padding: 20px;
    font-size: 12.5px;
    line-height: 22px;
  }
}

/* Signals and verdicts. */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  padding: 1px;
}

.tile {
  min-height: 150px;
  padding: 24px 22px 28px;
  background: var(--paper);
  outline: 1px solid var(--rule);
}

.tile-title {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
}

.tile-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

@media (max-width: 599px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile {
    min-height: 0;
    padding: 18px 16px 22px;
  }

  .tile-title {
    font-size: 16px;
  }
}

@media (max-width: 359px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

.verdicts {
  display: grid;
  gap: 28px clamp(20px, 4vw, 64px);
  margin-top: 56px;
}

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

.verdict {
  padding-top: 20px;
  border-top: 2px solid var(--rule);
}

.verdict-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  line-height: 28px;
}

.verdict-text {
  margin-top: 12px;
  color: var(--body);
  font-size: 15px;
  line-height: 24px;
}

.sq {
  flex: none;
  width: 10px;
  height: 10px;
}

.sq-allow {
  background: var(--red);
}

.sq-challenge {
  border: 2px solid var(--red);
}

.sq-deny {
  background: var(--ink);
}

/* Pricing, the calculator and the notes. */

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  padding: 1px;
}

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

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

.plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px 32px;
  background: var(--paper);
  outline: 1px solid var(--rule);
}

.plan-name {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-price {
  margin: 10px 0 0 -0.045em;
  color: var(--red);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-unit {
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

.plan-volume {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
}

.calc {
  margin: 0 1px;
  padding: 28px 24px;
  outline: 1px solid var(--rule);
  outline-offset: 0;
}

.calc-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}

.calc-title {
  font-weight: 800;
  font-size: 20px;
  line-height: 28px;
}

.calc-tag,
.calc-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-tag {
  color: var(--red-deep);
}

.calc-live {
  margin-top: 24px;
}

.calc-volume {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
}

.calc-v {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.calc-range {
  --fill: 50%;
  display: block;
  width: 100%;
  height: 44px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.calc-range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(
    to right,
    var(--red) 0,
    var(--red) var(--fill),
    var(--track) var(--fill),
    var(--track) 100%
  );
}

.calc-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -10px;
  background: var(--red-strong);
  border: 3px solid var(--paper);
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--red-strong);
  -webkit-appearance: none;
  appearance: none;
}

.calc-range::-moz-range-track {
  height: 4px;
  background: var(--track);
}

.calc-range::-moz-range-progress {
  height: 4px;
  background: var(--red);
}

.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--red-strong);
  border: 3px solid var(--paper);
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--red-strong);
}

.calc-range:focus-visible {
  outline-offset: 0;
}

.calc-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.calc-grid {
  display: grid;
  gap: 24px clamp(20px, 4vw, 56px);
  margin-top: 28px;
}

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

.calc-cell {
  padding-top: 16px;
  border-top: 2px solid var(--rule);
}

.calc-num {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin: 10px 0 0 -0.045em;
  color: var(--red);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.calc-num-ink {
  color: var(--ink);
}

.calc-unit {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.calc-num-small {
  font-size: 20px;
  line-height: 1.6;
}

.calc-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.calc-fine {
  max-width: 80ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.calc-static {
  margin-top: 20px;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.calc-table caption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.calc-table th,
.calc-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

.calc-table thead th {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-color: var(--rule);
}

.calc-table tbody th {
  font-weight: 800;
}

.calc-table-plan {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.calc-static .calc-note {
  margin-top: 12px;
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px clamp(20px, 4vw, 64px);
  margin-top: 42px;
}

.note {
  max-width: 52ch;
  color: var(--body);
  font-size: 15.5px;
  line-height: 28px;
}

@media (max-width: 599px) {
  .calc {
    padding: 24px 18px;
  }

  .calc-table {
    font-size: 13px;
  }

  .calc-table th,
  .calc-table td {
    padding-right: 8px;
  }

  .calc-table thead th {
    letter-spacing: 0;
    text-transform: none;
  }

  .note {
    font-size: 15px;
    line-height: 26px;
  }
}

/* Why it exists. */

.section-story {
  padding-bottom: clamp(80px, 10vw, 126px);
}

.section-story .eyebrow {
  margin-bottom: 28px;
}

.quote-text {
  max-width: 36ch;
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-indent: -0.496em;
}

.quote-by {
  margin-top: 42px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 28px;
}

/* The waitlist band. */

.band {
  background: var(--red-strong);
  color: var(--paper);
}

.band-inner {
  padding-top: clamp(80px, 9vw, 112px);
  padding-bottom: clamp(80px, 9vw, 112px);
}

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

.band a {
  color: var(--paper);
}

.band-title {
  margin-left: -0.058em;
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.band-title span {
  display: block;
}

.band-title:focus {
  outline: none;
}

.band-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 42px;
}

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

@media (min-width: 1000px) {
  .band-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field-label {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 6px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  border-radius: 0;
  font-size: 15px;
  caret-color: var(--red-strong);
}

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

.field-input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.field-select {
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  appearance: none;
}

.band-submit {
  width: 100%;
}

/* The honeypot: off screen and hidden from assistive tech, but not display:none, so form-filling
   bots still find it. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.band-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 20px;
}

.band-status {
  margin-top: 28px;
  font-weight: 800;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
}

.band-status:empty {
  margin-top: 0;
}

.band-sub {
  max-width: 30ch;
  margin-top: 28px;
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
}

.band-email {
  overflow-wrap: anywhere;
}

.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

/* Footer. */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 42px;
  padding-bottom: 56px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
}

.footer-name {
  font-weight: 800;
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.footer-links a {
  display: inline-block;
  padding: 12px 0;
  color: inherit;
}

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

@media (max-width: 599px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-brand {
    margin: 0 0 8px;
  }
}

/* Reveal on scroll. site.js marks only elements that start below the fold, so nothing in view is
   ever hidden, and nothing is hidden at all without JavaScript or with reduced motion. */

.reveal-pending {
  opacity: 0;
  transform: translateY(26px);
}

.reveal-pending.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1;
    transform: none;
  }

  .check-stack > *,
  .check-stack > .is-off,
  .check-fill,
  .check-cell {
    transition: none;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* Subpages: privacy, trademark, the waitlist result pages (joined, removed, waitlist-error) and
   404. The landing page uses none of these classes. The body is a column, so the footer sits at
   the bottom of short pages. */

.page-sub {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.page-sub > main {
  flex: 1 0 auto;
}

/* The footer keeps its centred .wrap width inside the column, and carries the closing rule
   across its content box, so the rule sits on the footer however short the page is. The band on
   /joined meets the footer directly, as on the landing page. */
.page-sub > .footer {
  width: 100%;
  background:
    linear-gradient(var(--rule), var(--rule)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 2px
    no-repeat;
}

.page-sub > .main-band + .footer {
  background: none;
}

.footer-links a[aria-current="page"] {
  color: var(--ink);
}

.page-head {
  padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px);
}

.page-title {
  max-width: 18ch;
  margin-left: -0.058em;
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.page-title,
.display,
.row-title,
.tile-title,
.band-title span,
.hero-title span {
  text-wrap: balance;
}

.page-lead {
  max-width: 56ch;
  margin-top: 32px;
  color: var(--lead);
  font-size: 17px;
  line-height: 28px;
}

.page-aside {
  max-width: 64ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

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

.page-actions + .page-aside {
  margin-top: 36px;
  font-size: 13px;
  line-height: 20px;
}

/* Long-form text: privacy rows and the trademark policy. */

.doc {
  padding-bottom: clamp(24px, 4vw, 56px);
}

.doc-single {
  max-width: 64ch;
  padding-top: clamp(40px, 5vw, 56px);
  color: var(--body);
  font-size: 15.5px;
  line-height: 28px;
}

.prose > * + * {
  margin-top: 16px;
}

.list-sq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-sq li {
  position: relative;
  padding-left: 22px;
}

.list-sq li::before {
  content: "";
  position: absolute;
  top: calc(0.9em - 4px);
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
}

/* The removal form on /privacy: the band's fields, bordered for paper. */

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  max-width: 560px;
}

.prose > .inline-form {
  margin-top: 24px;
}

.inline-form .field-input {
  border: 2px solid var(--muted);
}

.inline-form .field-input:hover {
  border-color: var(--ink);
}

.inline-form .btn {
  min-height: 48px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

@media (max-width: 479px) {
  .inline-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The result pages and 404. */

.status {
  padding: clamp(64px, 10vw, 144px) 0;
}

.status-code {
  margin: 0 0 24px -0.06em;
  color: var(--red);
  font-weight: 800;
  font-size: clamp(88px, 15vw, 192px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* /joined: the waitlist band from the landing page, filling the space between header and
   footer. */

.main-band {
  display: flex;
  flex-direction: column;
}

.band-page {
  flex: 1 0 auto;
}

.band-page .band-actions {
  margin-top: 36px;
}

.band-page .band-note {
  margin-top: 28px;
}

.band a.btn-outline {
  text-decoration: none;
}

/* Forced colour modes drop backgrounds: the menu icon, the pressed cell and the select arrow
   need a form that survives. */
@media (forced-colors: active) {
  .burger,
  .burger::before,
  .burger::after {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .nav-menu[open] .burger {
    background: transparent;
  }

  .check-cell.is-on {
    text-decoration: underline 3px;
    text-underline-offset: 5px;
  }

  .field-select {
    -webkit-appearance: auto;
    appearance: auto;
  }
}
