/* Swiss Grid: off-white page, black type, one red accent, one typeface. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-opsz-normal.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;
}

:root {
  --paper: #fafaf8;
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #3a3a37;
  --muted: #5a5a57;
  --placeholder: #767672;
  --line: #e3e3df;
  --accent: #d7261e;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

/* Hover colours only where a pointer can hover: on touch screens they would stick after a tap. */
@media (hover: hover) {
  a:hover {
    color: var(--accent);
  }

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

  .button-primary:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
  }

  .button-outline:hover {
    background: var(--ink);
    color: var(--white);
  }
}

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

[hidden] {
  display: none !important;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--white);
}

/* Header and footer */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.site-nav a:not(.button) {
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Buttons and forms */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-small {
  min-height: 44px;
  padding: 0 16px;
  border-width: 1px;
  font-size: 15px;
}

.button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.label-small {
  font-size: 13px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.input::placeholder {
  color: var(--placeholder);
}

.input-small {
  flex-basis: 220px;
  min-height: 44px;
  padding: 0 14px;
  border-width: 1px;
  font-size: 16px;
}

.form-status:empty {
  display: none;
}

.form-status {
  font-size: 15px;
  font-weight: 600;
}

.form-status[data-tone="error"] {
  color: var(--accent);
}

.fine {
  color: var(--muted);
  font-size: 14px;
}

/* Kept off-screen rather than display:none, so naive bots still fill it in. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Hero */

.hero {
  padding-block: clamp(64px, 9vw, 120px) clamp(64px, 8vw, 104px);
}

.eyebrow {
  margin-bottom: 32px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(52px, 8.4vw, 124px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px 64px;
  margin-top: 56px;
}

.lede {
  flex: 1 1 360px;
  max-width: 32em;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.5;
  text-wrap: pretty;
}

.signup {
  flex: 1 1 420px;
  min-width: 0;
}

/* The passport a visitor gets after signing up */

.passport {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.passport:focus {
  outline: none;
}

.passport:not([hidden]) {
  animation: arrive 0.35s ease-out;
}

.passport-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.passport-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.passport-number {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
}

.passport-title {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.passport-text {
  color: var(--ink-soft);
}

.passport-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.passport-share p {
  flex: 1 1 200px;
  color: var(--muted);
  font-size: 15px;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */

.section {
  padding-block: 64px 96px;
  border-top: 2px solid var(--ink);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 56px;
}

.h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-sub {
  max-width: 30em;
  color: var(--muted);
}

/* Flow diagram: horizontal on wide screens, vertical on narrow ones */

.flow {
  margin-bottom: 72px;
}

.flow svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.flow .flow-v {
  display: none;
  max-width: 400px;
}

@media (max-width: 879px) {
  .flow .flow-h {
    display: none;
  }

  .flow .flow-v {
    display: block;
  }
}

.flow-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.flow-line-blocked {
  stroke: var(--accent);
}

.flow-arrow {
  fill: var(--ink);
}

.flow-arrow-blocked {
  fill: var(--accent);
}

.flow-node {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2;
}

.flow-node-blocked {
  stroke: var(--accent);
}

.flow-gate {
  fill: var(--ink);
}

.flow-gate-mark {
  fill: var(--accent);
}

.flow-passed {
  fill: var(--ink);
}

.flow-icon {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.flow-icon-inverse {
  stroke: var(--white);
  stroke-width: 2.5;
}

.flow-icon-blocked {
  stroke: var(--accent);
  stroke-width: 2.5;
}

.flow-label {
  fill: var(--ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.flow-label-blocked {
  fill: var(--accent);
}

.flow-sub {
  fill: var(--muted);
  font-size: 16px;
}

.flow-dot {
  fill: var(--ink);
}

.flow-dot-blocked {
  fill: var(--accent);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 40px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.step-number {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--ink-soft);
}

.outcomes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step .outcome {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}

.step .outcome-blocked {
  color: var(--accent);
}

.outcome svg {
  flex: none;
  margin-top: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.note {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.note strong {
  color: var(--ink);
}

/* Why now */

.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 56px 80px;
  padding-block: 96px;
  border-top: 1px solid var(--line);
}

.stat {
  font-size: clamp(96px, 12vw, 176px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.stat-text {
  max-width: 17em;
  margin-top: 24px;
  font-size: 22px;
  line-height: 1.35;
}

.source {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.why-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
}

.quote {
  margin: 0;
}

.quote p {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.quote footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.gap-text {
  max-width: 30em;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

/* Closing call to action and work with us */

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-block: 96px;
  border-top: 2px solid var(--ink);
}

.closing h2 {
  max-width: 11ch;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.work {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}

.work-text {
  max-width: 34em;
}

.work-signup {
  flex: 0 1 440px;
  min-width: 0;
}

.work-thanks {
  font-size: 17px;
}

/* Plain pages: privacy notice and the no-JavaScript sign-up answer */

.page {
  max-width: 46em;
  padding-block: 64px 96px;
}

.page-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-lede {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 20px;
}

.page h2 {
  margin-top: 40px;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 650;
}

.page p,
.page ul {
  color: var(--ink-soft);
}

.page ul {
  margin: 0;
  padding-left: 1.2em;
}

.page .fine {
  margin-top: 40px;
}

.page-back {
  margin-top: 32px;
}

/* Small screens: a slim bar keeps the sign-up one tap away while the form is scrolled out of
   view. site.js shows it; without the script it never appears. */

.sticky-cta {
  display: none;
}

@media (max-width: 719px) {
  .sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(var(--gutter), env(safe-area-inset-right))
      calc(12px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    border-top: 1px solid var(--ink);
    background: var(--paper);
    visibility: hidden;
    transform: translateY(110%);
    transition:
      transform 0.25s ease,
      visibility 0s linear 0.25s;
  }

  .sticky-cta.is-visible {
    visibility: visible;
    transform: none;
    transition:
      transform 0.25s ease,
      visibility 0s;
  }

  .sticky-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
  }

  .sticky-cta .button {
    flex: none;
    min-height: 48px;
    padding: 0 20px;
  }
}

/* Phones: the form sits right under the headline so it is visible without scrolling, the
   "Work with us" link stays quiet, and sections tighten up. */
@media (max-width: 519px) {
  .site-header {
    padding-block: 14px;
  }

  .site-nav .nav-optional {
    display: none;
  }

  .site-nav .nav-work {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .hero {
    padding-block: 32px 56px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(42px, 13.4vw, 56px);
  }

  .hero-row {
    gap: 32px;
    margin-top: 28px;
  }

  .hero-row .signup {
    order: -1;
  }

  .lede {
    font-size: 17px;
  }

  .field-row .button {
    flex: 1 1 100%;
  }

  .section {
    padding-block: 48px 64px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .flow {
    margin-bottom: 48px;
  }

  .steps {
    gap: 28px;
  }

  .step {
    display: grid;
    grid-template-columns: 2.25em minmax(0, 1fr);
    align-items: baseline;
    gap: 6px 10px;
    padding-top: 16px;
  }

  .step > :not(.step-number) {
    grid-column: 2;
  }

  .step h3 {
    font-size: 22px;
  }

  .note {
    margin-top: 40px;
  }

  .why {
    gap: 48px;
    padding-block: 64px;
  }

  .closing {
    padding-block: 64px;
  }

  .closing .button {
    flex: 1 1 100%;
  }

  .work-signup {
    flex-basis: 100%;
  }
}

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

  .passport:not([hidden]) {
    animation: none;
  }

  .flow-dot {
    display: none;
  }

  .sticky-cta,
  .sticky-cta.is-visible {
    transition: none;
  }
}
