/* Fair Shake launch site. Palette, type and layout follow docs/site/BRIEF.md. */

:root {
  /* light */
  --paper: #f4f2ec;
  --card: #ffffff;
  --sunken: #ebe8df;
  --ink: #1b1f1c;
  --ink-muted: #5c625d;
  --line: #d9d4c7;
  --line-strong: #a8a293;
  --field: #1f7a3d;
  --field-hover: #17652f;
  --field-soft: #dcefe2;
  --on-field: #ffffff;
  --pitch: #12321f;
  --pitch-text: #eef1ec;
  --chalk: rgb(255 255 255 / 0.18);
  --pencil: #f2c94c;
  --bench: #8a5a00;
  --bench-soft: #fff1cc;
  --focus: #2563eb;
  --shadow: rgb(27 31 28 / 0.1);

  /* from the app (docs/DESIGN.md) */
  --danger: #b42318;
  --danger-soft: #fde7e4;
  --napkin: #fbfaf6;

  /* the green CTA on the pitch band is the same in both schemes */
  --pitch-cta: #4cc173;
  --pitch-cta-hover: #6dd18f;
  --pitch-cta-text: #07210f;
  --pitch-muted: rgb(238 241 236 / 0.74);

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-hand: Caveat, "Comic Sans MS", cursive;

  --shadow-card: 0 1px 2px var(--shadow), 0 12px 32px -8px var(--shadow);
  --shadow-card-hover: 0 2px 4px var(--shadow), 0 18px 40px -8px var(--shadow);
  --shadow-hero: 0 1px 2px var(--shadow), 0 12px 32px -8px var(--shadow), 0 40px 80px -24px var(--shadow);

  --content: 72rem;
  --gutter: 1.25rem;
  --rhythm: clamp(5rem, 10vw, 9rem);
  --overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111513;
    --card: #1a201c;
    --sunken: #0c0f0d;
    --ink: #eef1ec;
    --ink-muted: #a3aca5;
    --line: #2d3630;
    --line-strong: #4c5a50;
    --field: #4cc173;
    --field-hover: #6dd18f;
    --field-soft: #173823;
    --on-field: #07210f;
    --pitch: #0a1f12;
    --pitch-text: #eef1ec;
    --chalk: rgb(255 255 255 / 0.12);
    --pencil: #f5c451;
    --bench: #f5c451;
    --bench-soft: #33280c;
    --focus: #7fb0ff;
    --shadow: rgb(0 0 0 / 0.45);
    --danger: #ff8a7a;
    --danger-soft: #3d1813;
    --napkin: #232a25;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }
}

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

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num,
.jersey,
.step__num,
.stamp__range,
.bar__num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw + 1rem, 3.75rem);
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.15;
}

.lead {
  font-size: clamp(1.125rem, 1vw + 0.9rem, 1.3125rem);
  line-height: 1.55;
}

.label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--field);
}

.label::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: currentColor;
}

.label--pencil {
  color: var(--pencil);
}

.section {
  padding-block: var(--rhythm);
  scroll-margin-top: 4rem;
}

.section + .section {
  padding-top: 0;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease-out);
}

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

.btn--primary {
  background: var(--field);
  color: var(--on-field);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--field-hover);
}

.btn--secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--sunken);
  border-color: var(--ink-muted);
}

.btn--sm {
  padding: 0 1rem;
  font-size: 0.9375rem;
}

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

.btn--xl {
  min-height: 56px;
  padding: 0 2rem;
  font-size: 1.125rem;
}

.btn--pitch {
  background: var(--pitch-cta);
  color: var(--pitch-cta-text);
}

.btn--pitch:hover,
.btn--pitch:focus-visible {
  background: var(--pitch-cta-hover);
}

.btn__arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease-out);
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: var(--field);
}

.text-link:active {
  color: var(--field);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.logo {
  flex: none;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* ---------- 1. Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-top: 4px solid var(--field);
  background: rgb(from var(--paper) r g b / 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.2s;
}

html:not(.js) .site-header::after,
.site-header.is-scrolled::after {
  opacity: 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__links {
  display: flex;
  gap: 0.25rem;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: var(--ink);
  background: var(--sunken);
}

.site-nav__links a:active {
  color: var(--field);
}

@media (max-width: 719.98px) {
  .site-nav__links {
    display: none;
  }
}

/* ---------- 2. Hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--rhythm);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    min-height: min(calc(100svh - 68px - 4.5rem), 860px);
  }
}

.eyebrow {
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--field);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw + 1rem, 6.5rem);
  letter-spacing: -0.01em;
  line-height: 0.95;
}

@media (min-width: 720px) {
  .hero__title .line {
    display: block;
  }
}

/* in the two-column hero, keep each sentence on one line */
@media (min-width: 1024px) {
  .hero__title {
    font-size: min(6.5rem, 5.4vw);
  }

  .hero__title .line {
    white-space: nowrap;
  }
}

.underlined {
  position: relative;
  display: inline-block;
}

.pencil-line {
  position: absolute;
  left: -2%;
  bottom: -0.2em;
  width: 104%;
  height: 0.2em;
  overflow: visible;
  fill: none;
  stroke: var(--pencil);
  stroke-width: 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.pencil-line path {
  stroke-dasharray: 1;
}

.hero__sub {
  max-width: 34rem;
  margin-top: 1.75rem;
  color: var(--ink-muted);
}

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

.reassure {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* the clipboard */

.hero__visual {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

@media (max-width: 719.98px) {
  .hero__visual {
    max-width: none;
  }
}

.clipboard {
  position: relative;
  padding: 2.25rem 1.25rem 1.5rem;
  border-radius: 20px;
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.03) 0 10px, transparent 10px 20px),
    var(--field);
  box-shadow: var(--shadow-card);
}

@media (max-width: 719.98px) {
  .clipboard {
    padding: 1.75rem 8px 8px;
  }
}

.clipboard__clip {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 34%;
  height: 34px;
  border-radius: 999px;
  background: var(--ink);
  translate: -50% 0;
  box-shadow: 0 4px 10px var(--shadow);
}

.clipboard__clip::after {
  content: "";
  position: absolute;
  inset: 11px 28%;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  .clipboard__clip {
    background: #c9cec9;
  }
}

.sheet {
  position: relative;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-hero);
  rotate: -1.5deg;
}

@media (max-width: 719.98px) {
  .sheet {
    padding: 1rem 0.75rem 1.25rem;
    rotate: -0.75deg;
  }
}

.sheet__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sheet__meta {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.sheet-grid {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.sheet-grid th,
.sheet-grid td {
  position: relative;
  padding: 0.4rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.sheet-grid thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: var(--sunken);
}

.sheet-grid thead th:first-child {
  width: 3.75rem;
  border-radius: 6px 0 0 6px;
}

.sheet-grid thead th:last-child {
  border-radius: 0 6px 6px 0;
}

.sheet-grid tbody th {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.sheet-grid .bench-row > * {
  background: var(--bench-soft);
  color: var(--bench);
  font-weight: 600;
  border-bottom: 0;
}

.sheet-grid .col-more {
  display: none;
}

@media (max-width: 719.98px) {
  .sheet-grid .col-p3,
  .sheet-grid .col-p4 {
    display: none;
  }

  .sheet-grid .col-more {
    display: table-cell;
    width: 5.5rem;
    color: var(--ink-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: none;
  }
}

/* each cell starts sunken and fills in (overlay fades out) */
.sheet-grid td::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sunken);
  opacity: 0;
  pointer-events: none;
}

.annotation {
  position: absolute;
  top: -4.25rem;
  right: -1.5rem;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--ink);
  rotate: 4deg;
  white-space: nowrap;
}

.annotation__arrow {
  position: absolute;
  top: 1.25rem;
  left: -3.25rem;
  width: 3.5rem;
  height: 3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 719.98px) {
  .annotation {
    display: none;
  }
}

@media (min-width: 720px) {
  /* make room above the board for the pencil note */
  .hero__visual {
    padding-top: 3.5rem;
  }
}

/* the FAIR stamp */

.stamp {
  --size: 84px;
  display: grid;
  place-content: center;
  justify-items: center;
  width: var(--size);
  height: var(--size);
  border: 3px solid var(--pencil);
  border-radius: 50%;
  color: var(--ink);
  background: rgb(from var(--pencil) r g b / 0.12);
  rotate: -8deg;
  box-shadow: inset 0 0 0 3px rgb(from var(--pencil) r g b / 0.35);
}

.stamp__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(var(--size) * 0.33);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stamp__range {
  font-size: calc(var(--size) * 0.12);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stamp--hero {
  position: absolute;
  right: -1.25rem;
  bottom: -3rem;
  background: var(--card);
}

@media (max-width: 719.98px) {
  .stamp--hero {
    right: -0.25rem;
  }
}

/* hero load sequence */

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

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes unfill {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    scale: 1.25;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title .line {
    animation: rise-in 0.45s var(--ease-out) both;
  }

  .hero__title .line:nth-child(2) {
    animation-delay: 80ms;
  }

  .hero__title .line:nth-child(3) {
    animation-delay: 160ms;
  }

  .pencil-line path {
    animation: draw 0.6s ease-in-out 0.45s both;
  }

  .sheet-grid td::before {
    animation: unfill 0.2s ease-out both;
    animation-delay: calc(0.7s + var(--c, 0) * 120ms + var(--r, 0) * 40ms);
  }

  .sheet-grid td:nth-child(3) {
    --c: 1;
  }
  .sheet-grid td:nth-child(4) {
    --c: 2;
  }
  .sheet-grid td:nth-child(5) {
    --c: 3;
  }
  .sheet-grid tr:nth-child(2) {
    --r: 1;
  }
  .sheet-grid tr:nth-child(3) {
    --r: 2;
  }
  .sheet-grid tr:nth-child(4) {
    --r: 3;
  }
  .sheet-grid tr:nth-child(5) {
    --r: 4;
  }
  .sheet-grid tr:nth-child(6) {
    --r: 5;
  }
  .sheet-grid tr:nth-child(7) {
    --r: 6;
  }
  .sheet-grid tr:nth-child(8) {
    --r: 7;
  }

  .stamp--hero {
    animation: stamp-in 0.26s var(--overshoot) 1.55s both;
  }
}

/* ---------- Reveal on scroll (opted in by JS) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    transition:
      opacity 0.4s var(--ease-out),
      transform 0.4s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 100ms);
  }

  .js .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ---------- 3. Napkin ---------- */

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.split__copy {
  max-width: 30rem;
}

.split__copy h2 {
  margin-bottom: 1.5rem;
}

.split__copy p + p {
  margin-top: 1rem;
}

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

.napkin {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  background: var(--napkin);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  rotate: 2deg;
}

@media (min-width: 900px) {
  .napkin {
    max-width: 420px;
  }
}

.napkin::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed var(--line);
  border-radius: 2px;
}

.napkin__svg {
  position: relative;
  width: 100%;
  height: 100%;
}

.napkin__writing {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 31px;
  fill: var(--ink);
}

.napkin .draw {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.napkin .draw--red {
  stroke: var(--danger);
}

@media (prefers-reduced-motion: no-preference) {
  .js .napkin .draw {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.5s ease-in-out;
  }

  .js .napkin.is-visible .draw {
    stroke-dashoffset: 0;
  }

  .js .napkin .draw:nth-of-type(2) {
    transition-delay: 0.15s;
  }
  .js .napkin .draw:nth-of-type(3) {
    transition-delay: 0.3s;
  }
  .js .napkin .draw:nth-of-type(4) {
    transition-delay: 0.45s;
  }

  /* the napkin itself does not rise, only its strokes draw */
  .js .napkin.reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 4. How it works ---------- */

.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step,
.feature,
.period-card {
  position: relative;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

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

.step:nth-child(2) {
  --i: 1;
}
.step:nth-child(3) {
  --i: 2;
}

@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 2rem;
    border-top: 2px dashed var(--line-strong);
  }
}

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

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--field);
}

.step h3 {
  margin-bottom: 0.375rem;
}

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

.fragment {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  min-height: 9.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}

.frag-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
}

.jersey {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--field);
  color: var(--on-field);
  font-size: 0.75rem;
  font-family: var(--font-body);
}

.chip {
  justify-self: start;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.chip--danger {
  margin-left: 2.375rem;
  background: var(--danger-soft);
  color: var(--danger);
}

.segmented {
  display: flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--sunken);
  font-size: 0.8125rem;
  font-weight: 600;
}

.segmented span {
  flex: 1;
  padding: 0.4rem 0;
  border-radius: 8px;
  text-align: center;
  color: var(--ink-muted);
}

.segmented .is-on {
  background: var(--field);
  color: var(--on-field);
}

.frag-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.frag-line--start {
  justify-content: flex-start;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.switch {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--field);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: calc(1.25rem - 6px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--on-field);
}

.fake-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 600;
}

.fake-btn--primary {
  border-color: transparent;
  background: var(--field);
  color: var(--on-field);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--field-soft);
  color: var(--field);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Pitch bands (5 and 9) ---------- */

.band {
  position: relative;
  isolation: isolate;
  padding-block: var(--rhythm);
  background: var(--pitch);
  color: var(--pitch-text);
  overflow-x: clip;
}

.band + .section {
  padding-top: var(--rhythm);
}

.band h2 {
  color: var(--pitch-text);
}

.chalk {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--chalk);
  stroke-width: 2;
}

.chalk * {
  vector-effect: non-scaling-stroke;
}

/* ---------- 5. Proof ---------- */

.proof {
  scroll-margin-top: 4rem;
}

.proof__head h2 {
  max-width: 20ch;
}

.proof__intro {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--pitch-muted);
}

/* pinned sequence: only when JS opts in at desktop */
.proof__track {
  display: none;
}

.proof.is-sequenced .proof__track {
  display: block;
  height: 320vh;
  margin-top: 2rem;
}

.proof.is-sequenced .proof__stack {
  display: none;
}

.proof__stage {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  height: 100vh;
  padding-top: 64px;
}

.proof__panels {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.proof__sheet {
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-hero);
}

.proof__sheet h3,
.minutes h3 {
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.125rem;
}

.proof-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.875rem;
}

.proof-grid th,
.proof-grid td {
  position: relative;
  height: 2.375rem;
  padding: 0.2rem 0.3rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.proof-grid thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--sunken);
}

.proof-grid thead th:first-child {
  width: 4.25rem;
}

.proof-grid tbody th {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.proof-grid .bench-row > * {
  height: auto;
  border-bottom: 0;
  padding-block: 0.4rem;
}

.cell-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--field-soft);
  font-weight: 600;
}

.cell-chip--bench {
  margin: 1px 0;
  background: var(--bench-soft);
  color: var(--bench);
}

/* the empty-cell dash */
.proof-grid td::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.6rem;
  width: 1.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.2s;
}

.proof.is-sequenced .proof-grid td::before {
  opacity: 1;
}

.proof.is-sequenced .proof-grid .cell-chip {
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
  transition-delay: calc(var(--r, 0) * 30ms);
}

.proof-grid tr:nth-child(2) {
  --r: 1;
}
.proof-grid tr:nth-child(3) {
  --r: 2;
}
.proof-grid tr:nth-child(4) {
  --r: 3;
}
.proof-grid tr:nth-child(5) {
  --r: 4;
}
.proof-grid tr:nth-child(6) {
  --r: 5;
}
.proof-grid tr:nth-child(7) {
  --r: 6;
}
.proof-grid tr:nth-child(8) {
  --r: 7;
}

.proof[data-step="1"] [data-p="1"] .cell-chip,
.proof[data-step="2"] :is([data-p="1"], [data-p="2"]) .cell-chip,
.proof[data-step="3"] :is([data-p="1"], [data-p="2"], [data-p="3"]) .cell-chip,
.proof[data-step="4"] [data-p] .cell-chip {
  opacity: 1;
  transform: none;
}

.proof[data-step="1"] td[data-p="1"]::before,
.proof[data-step="2"] td:is([data-p="1"], [data-p="2"])::before,
.proof[data-step="3"] td:is([data-p="1"], [data-p="2"], [data-p="3"])::before,
.proof[data-step="4"] td[data-p]::before {
  opacity: 0;
}

.proof.is-sequenced[data-step="1"] thead th[data-p="1"],
.proof.is-sequenced[data-step="2"] thead th[data-p="2"],
.proof.is-sequenced[data-step="3"] thead th[data-p="3"],
.proof.is-sequenced[data-step="4"] thead th[data-p="4"] {
  background: var(--field);
  color: var(--on-field);
}

/* minutes panel */

.minutes {
  position: relative;
}

.bars {
  display: grid;
  gap: 0.5rem;
}

.bar {
  --m: 0;
  --s: 0;
  display: grid;
  grid-template-columns: 6rem 1fr 6.75rem;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.bar__who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.bar .jersey {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.6875rem;
  background: var(--pitch-text);
  color: var(--pitch);
}

.bar__track {
  position: relative;
  height: 0.875rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
}

.bar__fill {
  display: block;
  width: calc(var(--m) / 48 * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--pitch-cta);
  transition: width 0.4s ease-out;
}

.bar__track::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--pencil);
  opacity: 0;
}

.bar__num {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.bar__min {
  counter-reset: m var(--m);
}

.bar__min::before {
  content: counter(m) " min";
}

.bar__sat {
  counter-reset: s var(--s);
  color: var(--pencil);
  font-size: 0.8125rem;
}

.bar__sat::before {
  content: "sat ×" counter(s);
}

.bar__sat-static {
  color: var(--pencil);
  font-size: 0.8125rem;
}

.proof[data-step="0"] .bar__sat {
  visibility: hidden;
}

.proof[data-step="1"] .bar {
  --m: var(--m1);
  --s: var(--s1);
}
.proof[data-step="2"] .bar {
  --m: var(--m2);
  --s: var(--s2);
}
.proof[data-step="3"] .bar {
  --m: var(--m3);
  --s: var(--s3);
}
.proof[data-step="4"] .bar {
  --m: var(--m4);
  --s: var(--s4);
}

@keyframes pulse {
  50% {
    opacity: 0.85;
  }
}

.proof[data-step="1"] .bar[data-bench~="1"] .bar__track::after,
.proof[data-step="2"] .bar[data-bench~="2"] .bar__track::after,
.proof[data-step="3"] .bar[data-bench~="3"] .bar__track::after,
.proof[data-step="4"] .bar[data-bench~="4"] .bar__track::after {
  animation: pulse 0.8s ease-in-out;
}

.minutes .stamp {
  --size: 120px;
  position: absolute;
  bottom: -5.5rem;
  right: 0;
  color: var(--pitch-text);
  background: rgb(from var(--pitch) r g b / 0.85);
}

.minutes__summary {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--chalk);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.proof.is-sequenced .minutes .stamp {
  opacity: 0;
  scale: 1.4;
  transition:
    opacity 0.15s,
    scale 0.3s var(--overshoot);
}

.proof.is-sequenced .minutes__summary {
  opacity: 0;
  transition: opacity 0.4s 0.2s;
}

.proof.is-sequenced[data-step="4"] .minutes .stamp,
.proof.is-sequenced[data-step="4"] .minutes__summary {
  opacity: 1;
  scale: 1;
}

.proof__rail {
  position: absolute;
  top: 50%;
  left: max(1rem, calc((100vw - var(--content)) / 2 - 3rem));
  display: grid;
  gap: 1rem;
  translate: 0 -50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pitch-muted);
}

.proof__rail li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.proof__rail li::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 2px solid var(--pencil);
  transition: background-color 0.2s;
}

.proof[data-step="1"] .proof__rail li:nth-child(1)::before,
.proof[data-step="2"] .proof__rail li:nth-child(2)::before,
.proof[data-step="3"] .proof__rail li:nth-child(3)::before,
.proof[data-step="4"] .proof__rail li:nth-child(4)::before {
  background: var(--pencil);
}

.proof__caption {
  min-height: 3.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--pitch-text);
}

/* leave room for the rail where the side margin is too narrow to hold it */
@media (max-width: 1279.98px) {
  .proof.is-sequenced .proof__panels,
  .proof.is-sequenced .proof__caption {
    padding-left: calc(var(--gutter) + 3rem);
  }
}

/* stacked layout: phone, tablet, reduced motion and no JS */

.proof__stack {
  margin-top: 2.5rem;
}

.period-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .period-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.period-card {
  color: var(--ink);
  border-color: transparent;
}

.period-card:nth-child(2) {
  --i: 1;
}

.period-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--field);
}

.period-card__lead {
  margin: 0.375rem 0 0.875rem;
  font-weight: 500;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table thead th {
  background: var(--sunken);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.data-table tbody th {
  width: 4rem;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.bench-line {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--bench-soft);
  color: var(--bench);
  font-weight: 600;
}

.bench-line span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.minutes--final {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  max-width: 40rem;
}

.minutes--final .stamp {
  position: static;
  margin: 1.5rem 0 0 auto;
}

@media (max-width: 479.98px) {
  .bar {
    grid-template-columns: 4.75rem 1fr 4.25rem;
    gap: 0.5rem;
  }

  .bar__num {
    flex-direction: column;
    gap: 0;
    line-height: 1.25;
  }

  .minutes .stamp {
    --size: 96px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .bars--final:not(.is-visible) .bar__fill,
  .js .minutes--final:not(.is-visible) .bar__fill {
    width: 0;
  }

  .js .minutes--final .bar__fill {
    transition: width 0.9s var(--ease-out) 0.2s;
  }

  .js .minutes--final.is-visible .stamp {
    animation: stamp-in 0.3s var(--overshoot) 1s both;
  }
}

/* ---------- 6. Features ---------- */

.features {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature--a,
  .feature--strip {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(6, 1fr);
  }

  .feature {
    grid-column: span 2;
  }

  .feature--a {
    grid-column: span 4;
  }

  .feature--strip {
    grid-column: 1 / -1;
  }
}

.feature {
  transition:
    translate 0.2s var(--ease-out),
    box-shadow 0.2s;
}

.feature:nth-child(2) {
  --i: 0.6;
}
.feature:nth-child(3) {
  --i: 1.2;
}
.feature:nth-child(4) {
  --i: 1.8;
}
.feature:nth-child(5) {
  --i: 2.4;
}
.feature:nth-child(6) {
  --i: 3;
}

@media (prefers-reduced-motion: no-preference) {
  .js .feature.reveal {
    transition:
      opacity 0.4s var(--ease-out) calc(var(--i, 0) * 100ms),
      transform 0.4s var(--ease-out) calc(var(--i, 0) * 100ms),
      translate 0.2s var(--ease-out),
      box-shadow 0.2s;
  }

  .js .feature.reveal:not(.is-visible) {
    transform: translateY(12px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .feature:hover {
    translate: 0 -2px;
    box-shadow: var(--shadow-card-hover);
  }
}

.feature h3 {
  margin: 1rem 0 0.375rem;
}

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

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--field-soft);
  color: var(--field);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-fair {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
}

.mini-fair .data-table {
  flex: 1 1 16rem;
}

.mini-fair .data-table tbody th {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.feature--b {
  display: flex;
  flex-direction: column;
}

.mini-rule {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding: 1rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}

.feature--b p {
  margin-bottom: 1.25rem;
}

.mini-rule .chip--danger {
  margin-left: auto;
}

.mini-rule__gk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mini-rule__label {
  flex-basis: 100%;
}

.mini-rule__gk .chip {
  background: var(--field-soft);
  color: var(--field);
}

.frag-note {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

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

.feature--strip h3 {
  margin-top: 0;
}

.feature--strip .pill {
  grid-column: 2;
  justify-self: start;
}

@media (min-width: 720px) {
  .feature--strip {
    grid-template-columns: auto 1fr auto;
  }

  .feature--strip .pill {
    grid-column: auto;
  }
}

.pill {
  padding: 0.375rem 0.875rem;
  border: 1.5px solid var(--field);
  border-radius: 999px;
  color: var(--field);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 7. The real app ---------- */

.see__copy {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

.showcase {
  position: relative;
  margin-top: 3rem;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-hero);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 36px;
  padding: 0 0.875rem;
  background: var(--sunken);
  border-bottom: 1px solid var(--line);
}

.browser__dots {
  display: flex;
  gap: 6px;
}

.browser__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser__url {
  flex: 0 1 18rem;
  margin-inline: auto;
  padding: 0.125rem 1rem;
  border-radius: 999px;
  background: var(--card);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser__screen {
  aspect-ratio: 1280 / 800;
  background: var(--paper);
}

@media (max-width: 719.98px) {
  .browser__screen {
    aspect-ratio: 390 / 600;
  }
}

.browser__screen img,
.browser__screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.phone {
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 36px;
  background: var(--ink);
  box-shadow: var(--shadow-hero);
}

.phone::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 1;
  width: 28%;
  height: 14px;
  border-radius: 999px;
  background: var(--ink);
  translate: -50% 0;
}

.phone img {
  border-radius: 26px;
}

.phone--team {
  display: none;
}

.phone--card {
  position: relative;
  width: 78%;
  max-width: 320px;
  margin: -2.5rem auto 0;
}

@media (min-width: 1024px) {
  .showcase {
    padding-bottom: 48px;
  }

  .browser {
    width: 70%;
  }

  .phone {
    position: absolute;
  }

  .phone--card {
    left: 60%;
    bottom: 0;
    z-index: 2;
    width: 22%;
    max-width: none;
    margin: 0;
    translate: 0 var(--parallax, 0px);
  }

  .phone--team {
    display: block;
    top: -1rem;
    left: 77%;
    z-index: 1;
    width: 20%;
    rotate: 4deg;
  }
}

.captions {
  display: grid;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  font-weight: 500;
}

@media (min-width: 720px) {
  .captions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.captions li {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.captions .num {
  color: var(--field);
}

.try-live {
  display: none;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .try-live:not([hidden]) {
    display: inline-flex;
  }
}

/* ---------- 8. Small print ---------- */

.facts {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 720px) {
  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

.fact {
  padding-top: 1.25rem;
  border-top: 2px solid var(--field);
}

.fact h3 {
  margin-bottom: 0.5rem;
}

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

/* ---------- 9. Closing ---------- */

.closing::before,
.closing::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

/* halfway line and centre circle, centred on the headline at 40% height */
.closing::before {
  top: 40%;
  left: 0;
  right: 0;
  border-top: 2px solid var(--chalk);
}

.closing::after {
  top: 40%;
  left: 50%;
  width: min(30rem, 80vw);
  aspect-ratio: 1;
  border: 2px solid var(--chalk);
  border-radius: 50%;
  translate: -50% -50%;
}

.closing__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing h2 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6vw + 1rem, 5.5rem);
}

.closing .lead {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  color: var(--pitch-muted);
}

.closing__small {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--pitch-muted);
}

.stamp--closing {
  --size: 96px;
  margin-bottom: 1.5rem;
  color: var(--pitch-text);
  background: var(--pitch);
}

@media (min-width: 1024px) {
  .stamp--closing {
    position: absolute;
    top: -1.5rem;
    right: max(0px, calc(50% - 30rem));
    margin: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .closing__inner.reveal {
    transform: none;
  }

  .js .closing__inner.is-visible .stamp--closing {
    animation: stamp-in 0.3s var(--overshoot) 0.3s both;
  }

  .js .closing__inner:not(.is-visible) .stamp--closing {
    opacity: 0;
  }
}

/* ---------- 10. Footer ---------- */

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.site-footer__brand p {
  margin-top: 0.5rem;
  color: var(--ink-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  text-decoration-color: var(--field);
}

.site-footer__links a:active {
  color: var(--field);
}

.site-footer__small {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ---------- Reduced motion: everything in its final state ---------- */

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