/* Counterproof launch site. Tokens from docs/site/BRIEF.md. */

:root {
  /* light */
  --paper: #f6f4ef;
  --sheet: #ffffff;
  --sheet-sunken: #eeebe4;
  --ink: #1a1e23;
  --ink-muted: #5a636e;
  --line: #dcd7cc;
  --line-strong: #b9b2a4;
  --accent: #0079a8;
  --accent-hover: #00648c;
  --on-accent: #ffffff;
  --focus: #00a3e0;
  --cyan: #00a3e0;
  --magenta: #e0338a;
  --yellow: #f2c230;
  --stamp-red: #c22d3a;
  --stamp-green: #186a3b;
  --shadow-sheet: 0 1px 2px rgb(26 30 35 / 0.06), 0 12px 32px rgb(26 30 35 / 0.12);
  --blend-mark: multiply;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --rhythm: clamp(5rem, 12vw, 9rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111417;
    --sheet: #191d22;
    --sheet-sunken: #0c0e11;
    --ink: #ebe8e2;
    --ink-muted: #a0a8b2;
    --line: #2b3138;
    --line-strong: #434b55;
    --accent: #3cc6f5;
    --accent-hover: #6dd5f8;
    --on-accent: #04212d;
    --focus: #6dd5f8;
    --cyan: #3cc6f5;
    --magenta: #e0338a;
    --yellow: #f2c230;
    --stamp-red: #f0646f;
    --stamp-green: #7ddda2;
    --shadow-sheet: 0 2px 4px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.5);
    --blend-mark: screen;
  }
}

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

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

html,
body {
  overflow-x: clip;
}

html {
  -webkit-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-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: none;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

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

.mono,
.job-no,
.price,
.breakdown,
.proofs,
.stamp__sig {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
}

.wrap {
  width: min(72rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: calc(var(--rhythm) / 2);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--sheet);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-sheet);
}

.skip:focus {
  top: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  background-color: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.btn:hover {
  background-color: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

/* ---------- Logo ---------- */

.mark {
  height: 28px;
  width: 28px;
  flex: none;
  color: var(--ink);
}

.mark--lg {
  height: 40px;
  width: 40px;
}

.mark__m {
  mix-blend-mode: var(--blend-mark);
  transition: transform 240ms var(--ease);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  color: var(--ink);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background-color: color-mix(in srgb, var(--sheet) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: box-shadow 200ms ease;
}

.js .topbar:not(.is-scrolled) {
  box-shadow: inset 0 -1px 0 transparent;
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}

.brand:hover .mark__m,
.brand:focus-visible .mark__m {
  transform: translate(-1.25px, 1.25px);
}

.topbar__nav {
  display: flex;
  gap: 0.25rem;
  margin-inline: auto;
}

.topbar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.topbar__nav a:hover {
  color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 8%, transparent);
}

.topbar__nav a:active {
  background-color: color-mix(in srgb, var(--accent) 14%, transparent);
}

.topbar__cta-short {
  display: none;
}

@media (max-width: 759px) {
  .topbar__nav {
    display: none;
  }

  .topbar__cta {
    margin-left: auto;
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .topbar__cta-long {
    display: none;
  }

  .topbar__cta-short {
    display: inline;
  }
}

/* ---------- Tickets (printed paper: light in both themes) ---------- */

.ticket {
  --sheet: #ffffff;
  --ink: #1a1e23;
  --ink-muted: #5a636e;
  --line: #dcd7cc;
  --line-strong: #b9b2a4;
  --stamp-red: #c22d3a;
  --stamp-green: #186a3b;
  --accent: #0079a8;
  --on-accent: #ffffff;
  position: relative;
  background: var(--sheet);
  color: var(--ink);
  color-scheme: light;
  border-radius: 6px;
  box-shadow: var(--shadow-sheet);
  padding: 1.25rem 1.25rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
}

.job-no {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.ticket__customer {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  padding: 0.65rem 0 0.4rem;
}

.badge {
  --fg: #46505c;
  --bg: #edeef0;
  --edge: #8a929c;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--edge);
}

.badge[data-status="awaiting"] {
  --fg: #8a4b00;
  --bg: #fff1d6;
  --edge: #e59a1a;
}

.badge[data-status="changes"] {
  --fg: #a1135a;
  --bg: #fde6f1;
  --edge: #e0338a;
}

.badge[data-status="approved"] {
  --fg: #186a3b;
  --bg: #ddf4e5;
  --edge: #2fa560;
}

.badge[data-status="printing"] {
  --fg: #005f85;
  --bg: #dcf1fa;
  --edge: #00a3e0;
}

.badge[data-status="ready"] {
  --fg: #4b3aa8;
  --bg: #ebe7fc;
  --edge: #7a66e0;
}

.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #8a929c;
  vertical-align: 0.05em;
}

.dot--pending {
  background: #e59a1a;
}

.dot--changes {
  background: #e0338a;
}

.dot--approved {
  background: #2fa560;
}

.specs > div,
.price > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--line);
}

.specs dt,
.price dt {
  color: var(--ink-muted);
}

.specs dd {
  font-weight: 500;
  text-align: right;
}

.price {
  margin-top: 0.75rem;
}

.price > div {
  border-bottom: 0;
  padding: 0.12rem 0;
}

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

.price dd {
  text-align: right;
}

.price .price__total {
  margin-top: 0.3rem;
  padding-top: 0.4rem;
  border-top: 2px solid var(--ink);
  font-weight: 600;
  font-size: 1rem;
}

.price__total dt {
  color: var(--ink);
}

.ticket__proof {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.8rem;
}

.proofs {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.proofs li {
  padding: 0.35rem 0;
  border-top: 1px dashed var(--line);
}

.proofs li:first-child {
  border-top: 0;
}

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

.proofs__comment {
  display: block;
  padding-left: 1rem;
  color: var(--ink-muted);
  font-family: var(--font-text);
  font-size: 0.82rem;
}

/* Stamp */

.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  padding: 0.35em 0.75em;
  border: 3px double var(--stamp-red);
  border-radius: 6px;
  color: var(--stamp-red);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0.88;
  mix-blend-mode: multiply;
  filter: url(#ink-edge);
  transform: rotate(-8deg);
}

.stamp--green {
  border-color: var(--stamp-green);
  color: var(--stamp-green);
}

.stamp__sig {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  text-align: center;
}

@media (prefers-reduced-data: reduce) {
  .stamp {
    filter: none;
  }
}

.stamp-slot {
  display: flex;
  justify-content: center;
  padding: 0.9rem 0 0.5rem;
}

/* Checks */

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.checks li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.checks i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background-color: #ffffff;
  transition: background-color 120ms ease;
}

.checks i::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 0.5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.4);
  transition:
    opacity 120ms ease,
    transform 120ms var(--ease);
}

.checks.is-ticked i,
.flow[data-step="4"] .checks i,
.flow[data-step="5"] .checks i {
  border-color: #2fa560;
  background-color: #2fa560;
}

.checks.is-ticked i::after,
.flow[data-step="4"] .checks i::after,
.flow[data-step="5"] .checks i::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

/* Start printing mock button */

.press-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.press-btn__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background-color: var(--ink-muted);
  color: #ffffff;
  font-family: var(--font-text);
  font-weight: 600;
  opacity: 0.4;
  transition:
    background-color 200ms ease,
    opacity 200ms ease;
}

.press-btn__note {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.lock {
  width: 16px;
  height: 16px;
}

.lock__shackle {
  transform-origin: 11px 7.5px;
  transition: transform 200ms var(--ease);
}

.press-btn.is-open .press-btn__btn,
.flow[data-step="5"] .press-btn__btn {
  background-color: var(--accent);
  color: var(--on-accent);
  opacity: 1;
}

.press-btn.is-open .lock__shackle,
.flow[data-step="5"] .lock__shackle {
  transform: translateY(-1.5px) rotate(32deg);
}

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

.hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) calc(var(--rhythm) / 2);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__copy h1 {
  max-width: 12ch;
}

.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms var(--ease);
}

.link-arrow:hover svg {
  transform: translate(2px, 2px);
}

.link-arrow:active {
  color: var(--accent-hover);
}

.fine {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 30rem;
}

.hero__art {
  --px: 0;
  --py: 0;
  position: relative;
  overflow: clip;
  padding: 2.25rem 0.75rem 2.75rem;
}

.plane--back {
  translate: calc(var(--px) * 6px) calc(var(--py) * 6px);
}

.plane--mid {
  translate: calc(var(--px) * 10px) calc(var(--py) * 10px);
}

/* The stamp sits inside the ticket, so it adds the last 4px of its 14px. */
.plane--front {
  translate: calc(var(--px) * 4px) calc(var(--py) * 4px);
}

.press-sheet {
  position: absolute;
  top: 2.25rem;
  bottom: 3rem;
  left: 2rem;
  right: 32%;
  background: var(--sheet);
  color: var(--ink-muted);
  border-radius: 4px;
  box-shadow: var(--shadow-sheet);
  transform: rotate(-2deg);
}

.crop {
  position: absolute;
  width: 14px;
  height: 14px;
}

.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: var(--ink-muted);
}

.crop::before {
  width: 14px;
  height: 1px;
}

.crop::after {
  width: 1px;
  height: 14px;
}

/* Two 14px hairlines per corner, 10px outside it. */
.crop--tl {
  left: -24px;
  top: -24px;
}
.crop--tl::before {
  bottom: -10px;
  left: 0;
}
.crop--tl::after {
  right: -10px;
  top: 0;
}
.crop--tr {
  right: -24px;
  top: -24px;
}
.crop--tr::before {
  bottom: -10px;
  right: 0;
}
.crop--tr::after {
  left: -10px;
  top: 0;
}
.crop--bl {
  left: -24px;
  bottom: -24px;
}
.crop--bl::before {
  top: -10px;
  left: 0;
}
.crop--bl::after {
  right: -10px;
  bottom: 0;
}
.crop--br {
  right: -24px;
  bottom: -24px;
}
.crop--br::before {
  top: -10px;
  right: 0;
}
.crop--br::after {
  left: -10px;
  bottom: 0;
}

.reg {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  color: var(--ink-muted);
}

.reg--top {
  top: 6px;
}

.reg--bottom {
  bottom: 22px;
}

.press-sheet__pages {
  position: absolute;
  inset: 32px 18px 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px dashed var(--line);
}

.page {
  justify-content: center;
}

.page__img {
  flex: none;
  height: 42%;
  min-height: 30px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--yellow) 28%, transparent);
}

.page__img--b {
  background: color-mix(in srgb, var(--cyan) 22%, transparent);
}

.page__bar {
  height: 5px;
  width: 80%;
  border-radius: 2px;
  background: var(--line);
}

.page__bar--h {
  height: 9px;
  width: 60%;
  background: var(--line-strong);
}

.page__bar--s {
  width: 45%;
}

.colour-bar {
  position: absolute;
  left: 50%;
  bottom: 6px;
  display: flex;
  translate: -50% 0;
}

.colour-bar i {
  width: 14px;
  height: 10px;
  background: var(--c);
}

.colour-bar i.tint {
  background: color-mix(in srgb, var(--c) 50%, #ffffff);
}

.hero-ticket {
  margin-left: 38%;
  width: 60%;
  transform: rotate(1.5deg);
}

.stamp-anchor {
  position: relative;
  margin-top: 0.25rem;
}

.stamp--hero {
  position: absolute;
  left: 6%;
  top: 46%;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 6fr 6fr;
    min-height: min(88vh, 860px);
  }

  .hero__copy h1 {
    font-size: clamp(3.25rem, 5vw, 4.5rem);
    max-width: none;
    text-wrap: balance;
  }
}

@media (max-width: 959px) {
  .hero__art {
    padding: 1.75rem 0.5rem 1.25rem;
  }

  .press-sheet {
    position: relative;
    inset: auto;
    width: calc(100% - 2.75rem);
    margin-inline: auto;
    aspect-ratio: 3 / 2;
    max-height: 340px;
  }

  .hero-ticket {
    margin: -22% 0 0 12%;
    width: 88%;
  }
}

/* Load motion, once, between 0.35s and 1.1s. Base styles are the final state. */
@media (prefers-reduced-motion: no-preference) {
  .press-sheet {
    animation: sheet-in 400ms var(--ease) 350ms both;
  }

  .hero-ticket {
    animation:
      ticket-in 600ms var(--ease) 350ms both,
      ticket-hit 120ms linear 980ms;
  }

  .stamp--hero {
    animation: stamp-land 180ms ease-in 800ms both;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
  }
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(4deg);
  }
}

@keyframes ticket-hit {
  0%,
  100% {
    transform: rotate(1.5deg);
  }
  50% {
    transform: translateY(2px) rotate(1.5deg);
  }
}

@keyframes stamp-land {
  from {
    opacity: 0;
    transform: rotate(-8deg) scale(1.25);
  }
}

/* ---------- The problem ---------- */

.problem__grid {
  display: grid;
  gap: 3rem;
}

.problem__copy {
  max-width: 40rem;
}

.problem__copy h2 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
}

.problem__copy p {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.problem__copy h2 + p {
  margin-top: 1.75rem;
}

.evidence {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0.25rem;
}

.frag {
  --r: 0deg;
  flex: none;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--sheet);
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  transform: rotate(var(--r));
  transition:
    opacity 400ms ease,
    transform 400ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.frag--email {
  --r: -3deg;
  --i: 0;
  display: flex;
  flex-direction: column;
  width: 11.5rem;
}

.frag__meta {
  font-size: 0.72rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
  margin-bottom: 0.3rem;
}

.frag--note {
  --r: 4deg;
  --i: 1;
  width: 7.5rem;
  margin: 1.5rem 0 0 -1.25rem;
  background: color-mix(in srgb, var(--yellow) 22%, var(--sheet));
  border-color: color-mix(in srgb, var(--yellow) 45%, var(--line));
}

.frag--slip {
  --r: -6deg;
  --i: 2;
  margin: 0.5rem 0 0 -0.75rem;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 88% 100%, 72% 84%, 55% 100%, 38% 86%, 20% 100%, 0 84%);
  padding-bottom: 1.1rem;
}

.js .evidence:not(.is-in) .frag {
  opacity: 0;
  transform: translateY(8px) rotate(var(--r));
}

@media (min-width: 960px) {
  .problem__grid {
    grid-template-columns: 40rem 1fr;
    align-items: center;
  }

  .evidence {
    position: relative;
    height: 260px;
  }

  .evidence .frag {
    position: absolute;
    margin: 0;
  }

  .frag--email {
    left: 8%;
    top: 10px;
  }

  .frag--note {
    left: 46%;
    top: 92px;
  }

  .frag--slip {
    left: 18%;
    top: 160px;
  }
}

/* ---------- How a job moves ---------- */

.how {
  padding-bottom: var(--rhythm);
}

.how__intro {
  max-width: 40rem;
}

.how__intro p {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.steps {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  counter-reset: none;
}

.step {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.step__copy p {
  margin-top: 0.6rem;
  color: var(--ink-muted);
  max-width: 32rem;
}

.step__copy h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
}

.mini {
  max-width: 24rem;
  width: 100%;
  transform: rotate(-0.6deg);
}

.mini .stamp-slot {
  padding-top: 1rem;
}

@media (min-width: 760px) {
  .step {
    grid-template-columns: 1fr minmax(0, 22rem);
    gap: 3rem;
  }
}

.how__stage {
  display: none;
}

@media (min-width: 960px) {
  .how.is-enhanced .how__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 4vw, 4rem);
  }

  .how.is-enhanced .steps {
    gap: 0;
    margin-top: 0;
  }

  .how.is-enhanced .step {
    display: flex;
    min-height: 70vh;
  }

  .how.is-enhanced .mini {
    display: none;
  }

  .how.is-enhanced .step:not(.is-active) .step__copy {
    color: var(--ink-muted);
    opacity: 0.55;
  }

  .how.is-enhanced .step__copy {
    transition:
      color 240ms ease,
      opacity 240ms ease;
  }

  .how.is-enhanced .how__stage {
    display: block;
  }
}

.how__pin {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.flow {
  width: min(100%, 36rem);
  transform: rotate(0.8deg);
}

.flow__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.flow .price {
  margin-top: 0;
}

.flow__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.flow .stamp-slot {
  position: relative;
  width: 17rem;
  height: 6rem;
  padding: 0;
}

.flow .stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  transition:
    opacity 180ms ease-in,
    transform 180ms ease-in;
}

.flow .stamp--green {
  width: 16rem;
}

/* Which parts of the sticky ticket show at each step */
.flow[data-step="1"] .when:not(.s1),
.flow[data-step="2"] .when:not(.s2),
.flow[data-step="3"] .when:not(.s3),
.flow[data-step="4"] .when:not(.s4),
.flow[data-step="5"] .when:not(.s5) {
  display: none;
}

.flow .stamp--green {
  opacity: 0;
  transform: rotate(-8deg) scale(1.25);
}

.flow[data-step="4"] .stamp--red,
.flow[data-step="5"] .stamp--red {
  opacity: 0;
  transform: rotate(-12deg) scale(1.15);
  transition-duration: 220ms;
}

.flow[data-step="4"] .stamp--green,
.flow[data-step="5"] .stamp--green {
  opacity: 0.88;
  transform: rotate(-8deg) scale(1);
}

/* Step 4: the checks tick 90ms apart, then the stamps swap. */
.flow[data-step="4"] .checks li:nth-child(2) i,
.flow[data-step="4"] .checks li:nth-child(2) i::after {
  transition-delay: 90ms;
}
.flow[data-step="4"] .checks li:nth-child(3) i,
.flow[data-step="4"] .checks li:nth-child(3) i::after {
  transition-delay: 180ms;
}
.flow[data-step="4"] .checks li:nth-child(4) i,
.flow[data-step="4"] .checks li:nth-child(4) i::after {
  transition-delay: 270ms;
}
.flow[data-step="4"] .stamp--red {
  transition-delay: 380ms;
}
.flow[data-step="4"] .stamp--green {
  transition-delay: 560ms;
}

@media (prefers-reduced-motion: no-preference) {
  .flow[data-step="1"] .price > div {
    animation: line-in 220ms var(--ease) both;
  }
  .flow[data-step="1"] .price > div:nth-child(2) {
    animation-delay: 40ms;
  }
  .flow[data-step="1"] .price > div:nth-child(3) {
    animation-delay: 80ms;
  }
  .flow[data-step="1"] .price > div:nth-child(4) {
    animation-delay: 120ms;
  }
  .flow[data-step="1"] .price > div:nth-child(5) {
    animation-delay: 160ms;
  }
  .flow[data-step="1"] .price > div:nth-child(6) {
    animation-delay: 200ms;
  }
  .flow[data-step="1"] .price > div:nth-child(7) {
    animation-delay: 240ms;
  }

  .slide-in {
    animation: line-in 260ms var(--ease) both;
  }
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- Features ---------- */

.features h2 {
  max-width: 40rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 4px solid var(--edge);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(26 30 35 / 0.04);
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sheet);
}

.card p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.card--a h3 {
  font-size: 1.45rem;
}

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

  .card--a {
    grid-column: 1 / -1;
  }
}

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

  .card--a {
    grid-column: span 4;
    grid-row: span 2;
  }

  .card--b,
  .card--c,
  .card--d,
  .card--e,
  .card--f {
    grid-column: span 2;
  }
}

/* Card A: the quote widget */

.quote-widget {
  margin-top: auto;
  padding-top: 1rem;
}

.quote-widget__spec {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.segmented {
  display: flex;
  margin: 0.75rem 0 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  min-inline-size: 0;
}

.segmented label {
  position: relative;
  flex: 1;
}

.segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.segmented input:not(:disabled):hover + span {
  background-color: color-mix(in srgb, var(--accent) 10%, transparent);
}

.segmented input:active + span {
  background-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.segmented input:checked + span {
  background-color: var(--accent);
  color: var(--on-accent);
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.segmented input:disabled {
  cursor: default;
}

.segmented input:disabled:not(:checked) + span {
  color: var(--ink-muted);
}

.breakdown {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
}

.breakdown dt {
  color: var(--ink-muted);
}

.breakdown .breakdown__total {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  margin-top: -1px;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.breakdown__total dt {
  color: var(--ink);
}

.breakdown > div[hidden] {
  display: none;
}

.roll {
  display: inline-grid;
  overflow: hidden;
  vertical-align: bottom;
  text-align: right;
}

.roll > span {
  grid-area: 1 / 1;
}

/* Card art, all 72px or less */

.art {
  height: 72px;
  margin-bottom: 0.5rem;
}

.art--slips {
  position: relative;
  width: 120px;
}

.art--slips span {
  position: absolute;
  left: 18px;
  top: 6px;
  width: 52px;
  height: 62px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--sheet);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  transform-origin: 50% 100%;
}

.art--slips span:nth-child(1) {
  transform: rotate(-4deg);
}

.art--slips span:nth-child(2) {
  transform: translateX(16px) rotate(0deg);
}

.art--slips span:nth-child(3) {
  transform: translateX(32px) rotate(4deg);
  color: var(--ink);
  border-color: #e59a1a;
}

.art--checks {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 80px;
  height: auto;
  gap: 10px;
  padding-top: 8px;
}

.art--checks i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.art--checks i::after {
  left: 6.5px;
  top: 2.5px;
  width: 6px;
  height: 11px;
}

.art--mini-ticket {
  width: 110px;
  padding: 0 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.art--mini-ticket .art__bar {
  padding: 3px 6px;
  background: #c22d3a;
  color: #ffffff;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.art--mini-ticket i {
  height: 5px;
  width: 80%;
  margin-left: 8px;
  border-radius: 2px;
  background: #dcd7cc;
}

.art--mini-ticket i.short {
  width: 45%;
}

.art--rows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 180px;
}

.art--rows span {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
  padding-right: 6px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--s);
  border-radius: 4px;
  background: var(--paper);
}

.art--rows i {
  flex: 1;
  height: 4px;
  margin-left: 8px;
  border-radius: 2px;
  background: var(--line-strong);
}

.overdue {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--stamp-red);
  color: var(--sheet);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.art--lock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
}

.art--lock svg {
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
}

/* ---------- The real app ---------- */

.try {
  padding-bottom: 0;
}

.try__head {
  text-align: center;
}

.try__head h2 {
  margin-top: 0.75rem;
}

.try__head p:last-child {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--ink-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.try__band {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background: var(--sheet-sunken);
}

.device {
  max-width: 1100px;
  margin-inline: auto;
  border: 8px solid var(--ink);
  border-radius: 20px;
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
}

.device iframe {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  border: 0;
  background: var(--paper);
}

.try__after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 599px) {
  .device {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: none;
  }

  .device iframe {
    height: 640px;
  }

  .try__after .btn {
    white-space: normal;
    text-align: center;
  }
}

/* ---------- Small on purpose ---------- */

.small {
  padding-top: var(--rhythm);
}

.small__grid {
  display: grid;
  gap: 2.5rem;
}

.small__intro p {
  margin-top: 1rem;
  color: var(--ink-muted);
}

.small__list {
  display: grid;
  gap: 0 2.5rem;
}

.small__list > div {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.small__list dt {
  font-weight: 600;
}

.small__list dd {
  margin-top: 0.25rem;
  color: var(--ink-muted);
}

@media (min-width: 760px) {
  .small__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .small__grid {
    grid-template-columns: 4fr 8fr;
    gap: 4rem;
  }
}

/* ---------- Closing call to action ---------- */

.close {
  position: relative;
  margin-top: calc(var(--rhythm) / 2);
  padding-block: var(--rhythm);
  background: var(--sheet-sunken);
  text-align: center;
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  color: var(--line-strong);
}

.corner--tl {
  left: var(--gutter);
  top: 1.5rem;
}
.corner--tr {
  right: var(--gutter);
  top: 1.5rem;
}
.corner--bl {
  left: var(--gutter);
  bottom: 1.5rem;
}
.corner--br {
  right: var(--gutter);
  bottom: 1.5rem;
}

.close__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close__inner > p {
  margin: 2.5rem 0 1.5rem;
  color: var(--ink-muted);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.close-ticket {
  width: min(26rem, 100%);
  margin-top: 2.5rem;
  padding: 1.5rem;
  text-align: left;
  transform: rotate(-1deg);
}

.close-ticket .stamp-slot {
  padding: 1.75rem 0 1.5rem;
}

.close-ticket .stamp {
  font-size: 1.6rem;
  transition:
    opacity 180ms ease-in,
    transform 180ms ease-in;
}

.js .close:not(.is-in) .close-ticket .stamp {
  opacity: 0;
  transform: rotate(-8deg) scale(1.25);
}

.close-ticket__sig {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ink);
  font-size: 1rem;
}

.close-ticket__sig + p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

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

.footer {
  padding-block: 3rem 2rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.footer__row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__brand p {
  margin-top: 0.1rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__credit {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .footer__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 599px) {
  .ticket {
    padding: 1rem;
  }

  .flow__cols {
    grid-template-columns: 1fr;
  }

  .stamp--hero {
    left: 4%;
  }
}

/* ---------- Reduced motion: final states, no movement ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .plane--back,
  .plane--mid,
  .plane--front {
    translate: none;
  }
}
