@font-face {
  font-family: "InterVar";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e7;
  --paper-clean: #fffdf6;
  --paper-deep: #ded8c9;
  --ink: #17332a;
  --ink-muted: #52635c;
  --asphalt: #202926;
  --green: #2d6a4f;
  --green-deep: #1e4f3a;
  --ochre: #e1b348;
  --clay: #c95e3f;
  --sky: #9fc8c0;
  --rule: #bcb8ac;
  --page-pad: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: "InterVar", "Segoe UI", system-ui, sans-serif;
  --font-data: "Cascadia Mono", Consolas, ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--asphalt);
  color: var(--paper-clean);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header,
main > section,
footer,
.legal-page {
  width: min(calc(100% - (2 * var(--page-pad))), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-mark {
  width: 39px;
  height: 39px;
  color: var(--green);
  flex: 0 0 auto;
}

.brand-mark circle:first-of-type {
  fill: var(--clay);
}

.brand-mark circle:last-of-type {
  fill: var(--ochre);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-header nav a {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
}

.header-cta {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  background: var(--asphalt);
  color: var(--paper-clean);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
}

h1 {
  max-width: 690px;
  margin-bottom: 26px;
  font-size: clamp(3.35rem, 7.25vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 0.93;
}

h3 {
  letter-spacing: -0.025em;
}

.route-label,
.section-index,
.ledger-head p,
.ledger-head > span,
.place-marker,
.example-flag,
.rank-belt-state,
.legal-updated {
  margin: 0;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  line-height: 1.3;
  text-transform: uppercase;
}

.route-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  color: var(--ink-muted);
}

.route-mark {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.route-mark i {
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.route-mark b {
  width: 26px;
  height: 2px;
  background: var(--ink);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding-block: clamp(62px, 8vw, 112px);
}

.hero-copy {
  grid-column: 1 / span 7;
  padding-right: clamp(0px, 2vw, 28px);
}

.hero-lede {
  max-width: 670px;
  margin: 0 0 32px;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 0;
  border-radius: 0;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.button:hover:not(:disabled) {
  transform: translate(-1px, -1px);
}

.button:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  background: var(--ochre);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-secondary {
  background: var(--ink);
  color: var(--paper-clean);
}

.button-light {
  background: var(--paper-clean);
  color: var(--asphalt);
}

.button-outline-light {
  border: 1px solid rgba(255, 253, 246, 0.55);
  background: transparent;
  color: var(--paper-clean);
}

.button-wide {
  width: 100%;
}

.availability-note {
  max-width: 630px;
  margin: 22px 0 0;
  padding-left: 13px;
  border-left: 3px solid var(--clay);
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

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

.hero-ledger {
  grid-column: 8 / -1;
  position: relative;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 2px solid var(--ink);
  background: var(--paper-clean);
  box-shadow: 9px 9px 0 var(--sky);
}

.hero-ledger::before {
  content: "";
  position: absolute;
  top: -2px;
  right: 22px;
  width: 48px;
  height: 8px;
  background: var(--clay);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--rule);
}

.ledger-head strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.12;
}

.ledger-head > span {
  align-self: start;
  padding: 7px 9px;
  background: var(--ochre);
  white-space: nowrap;
}

.elevation-line {
  width: 100%;
  height: auto;
  margin: 25px 0 12px;
  overflow: visible;
}

.elevation-grid {
  fill: none;
  stroke: rgba(23, 51, 42, 0.13);
  stroke-width: 1;
}

.elevation-path {
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.elevation-points circle {
  fill: var(--ochre);
  stroke: var(--ink);
  stroke-width: 3;
}

.sample-riders {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sample-riders li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}

.place-marker {
  color: var(--clay);
}

.sample-riders strong,
.sample-riders small {
  display: block;
}

.sample-riders small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.sample-riders li > b {
  font-family: var(--font-data);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.ledger-foot {
  margin: 17px 0 0;
  padding: 15px 0 0;
  border-top: 2px solid var(--ink);
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.section-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading .section-index {
  grid-column: 1 / span 3;
  align-self: start;
  padding-top: 9px;
  color: var(--green);
}

.section-heading h2 {
  grid-column: 4 / span 6;
  margin-bottom: 0;
}

.section-heading > p:last-child {
  grid-column: 10 / -1;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.section-heading.compact h2 {
  grid-column: 4 / -1;
  max-width: 900px;
}

.calculator-section {
  padding-block: clamp(76px, 10vw, 132px);
  border-top: 2px solid var(--ink);
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(340px, 0.77fr);
  border: 2px solid var(--ink);
  background: var(--paper-clean);
  box-shadow: 10px 10px 0 var(--paper-deep);
}

#league-form {
  min-width: 0;
  padding: clamp(20px, 3.4vw, 42px);
}

.calculator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 21px;
  border-bottom: 2px solid var(--ink);
}

.calculator-toolbar > div:first-child {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  column-gap: 10px;
}

.calculator-toolbar strong,
.calculator-toolbar small {
  grid-column: 2;
}

.calculator-toolbar small {
  margin-top: 3px;
  color: var(--ink-muted);
}

.status-dot {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quiet-button {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

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

.ride-columns,
.rider-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(170px, 1fr) minmax(170px, 1fr);
  gap: 16px;
}

.ride-columns {
  padding: 24px 0 10px;
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.riders {
  border-top: 1px solid var(--rule);
}

.rider-row {
  min-width: 0;
  margin: 0;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
}

.rider-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 32px;
  align-items: end;
  gap: 9px;
}

.rider-number {
  align-self: center;
  color: var(--clay);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 750;
}

.rider-row label {
  min-width: 0;
}

.rider-row label > span,
.updates label,
.legal-page label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.rider-row input,
.updates input {
  width: 100%;
  min-height: 45px;
  padding: 10px 11px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper-clean);
  color: var(--ink);
}

.rider-row input:focus,
.updates input:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ochre);
  outline-offset: 1px;
}

.remove-rider {
  width: 32px;
  height: 45px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.remove-rider:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.week-inputs {
  display: grid;
  grid-template-columns: minmax(62px, 0.65fr) minmax(96px, 1.35fr);
  gap: 8px;
}

.calculator-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}

.form-error {
  min-height: 1.4em;
  margin: 15px 0 0;
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 700;
}

.results {
  min-width: 0;
  padding: clamp(20px, 3.4vw, 42px);
  background: var(--asphalt);
  color: var(--paper-clean);
}

.results-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(255, 253, 246, 0.24);
}

.results-heading h3 {
  margin: 7px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1;
}

.section-index.inverse {
  color: var(--sky);
}

.example-flag {
  align-self: start;
  padding: 7px 9px;
  background: var(--ochre);
  color: var(--ink);
  white-space: nowrap;
}

.score-key {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 17px 0 5px;
  color: rgba(255, 253, 246, 0.72);
  font-size: 0.72rem;
}

.score-key b {
  color: var(--ochre);
  font-family: var(--font-data);
}

.result-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 0 21px;
  border-bottom: 1px solid rgba(255, 253, 246, 0.24);
}

.result-rank {
  color: var(--ochre);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 750;
}

.result-person strong,
.result-person small,
.result-score b,
.result-score small {
  display: block;
}

.result-person strong {
  font-size: 0.98rem;
}

.result-person small {
  margin-top: 4px;
  color: rgba(255, 253, 246, 0.66);
  font-size: 0.7rem;
  line-height: 1.35;
}

.result-score {
  text-align: right;
}

.result-score b {
  font-family: var(--font-data);
  font-size: 1.85rem;
}

.result-score small {
  margin-top: 3px;
  color: var(--sky);
  font-size: 0.65rem;
}

.result-meter {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 253, 246, 0.13);
  overflow: hidden;
}

.result-meter i {
  display: block;
  width: var(--score-width);
  height: 100%;
  background: var(--ochre);
  transition: width 320ms ease-out;
}

.result-explainer {
  margin: 21px 0 0;
  color: rgba(255, 253, 246, 0.74);
  font-size: 0.78rem;
  line-height: 1.52;
}

.recap-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.recap-actions .button {
  min-height: 43px;
  padding: 11px 14px;
  font-size: 0.78rem;
}

.recap-status {
  min-height: 1.35em;
  margin: 12px 0 0;
  color: var(--sky);
  font-size: 0.76rem;
}

.formula-section {
  padding-block: clamp(76px, 10vw, 132px);
  border-top: 2px solid var(--ink);
}

.formula-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.12fr);
  align-items: stretch;
  border: 2px solid var(--ink);
  background: var(--paper-clean);
}

.formula-strip > div {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 34px);
}

.formula-strip > div > span {
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.formula-strip > div > strong {
  margin-block: 20px;
  font-family: var(--font-data);
  font-size: clamp(2.9rem, 5.5vw, 5.2rem);
  line-height: 0.85;
}

.formula-strip > div > small {
  color: var(--ink-muted);
}

.formula-result {
  background: var(--green-deep);
  color: var(--paper-clean);
}

.formula-result > span,
.formula-result > small {
  color: var(--sky) !important;
}

.formula-operator {
  display: grid;
  place-items: center;
  padding: 10px;
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 1.25rem;
  font-weight: 800;
}

.principle-ledger {
  margin-top: 48px;
  border-top: 2px solid var(--ink);
}

.principle-ledger article {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--rule);
}

.principle-ledger article > span {
  color: var(--clay);
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 750;
}

.principle-ledger h3 {
  margin-bottom: 7px;
  font-size: 1.25rem;
}

.principle-ledger p {
  max-width: 780px;
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

.formula-caveat {
  max-width: 800px;
  margin: 24px 0 0 100px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.division-section {
  width: 100%;
  max-width: none;
  padding-block: clamp(70px, 9vw, 118px);
  background: var(--asphalt);
  color: var(--paper-clean);
  overflow: hidden;
}

.division-heading,
.rank-belt {
  width: min(calc(100% - (2 * var(--page-pad))), var(--max));
  margin-inline: auto;
}

.division-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.club-sigil {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.club-sigil img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.division-heading h2 {
  max-width: 760px;
  margin-top: 10px;
}

.division-heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 253, 246, 0.72);
  line-height: 1.55;
}

.rank-belt {
  position: relative;
  margin-top: 55px;
  padding-bottom: 38px;
  border-top: 1px solid rgba(255, 253, 246, 0.32);
  border-bottom: 1px solid rgba(255, 253, 246, 0.32);
  cursor: pointer;
  overflow: hidden;
}

.rank-belt-track {
  width: max-content;
  display: flex;
  animation: rank-scroll 34s linear infinite;
}

.rank-belt.is-paused .rank-belt-track {
  animation-play-state: paused;
}

.ranks {
  display: flex;
  align-items: end;
  gap: 22px;
  margin: 0;
  padding: 27px 11px 22px;
  list-style: none;
}

.ranks li {
  width: 118px;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.ranks img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.ranks span {
  color: var(--paper-clean);
  font-family: var(--font-data);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.rank-belt-state {
  position: absolute;
  right: 0;
  bottom: 11px;
  color: var(--sky);
}

@keyframes rank-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.privacy-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 60px;
  padding: clamp(72px, 9vw, 118px) max(var(--page-pad), calc((100vw - var(--max)) / 2));
  background: var(--green-deep);
  color: var(--paper-clean);
}

.privacy-route {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.privacy-route span {
  width: 15px;
  height: 15px;
  border: 3px solid var(--ochre);
  background: transparent;
}

.privacy-route span:last-child {
  background: var(--ochre);
}

.privacy-route i {
  width: 100%;
  height: 3px;
  background: var(--ochre);
}

.privacy-section h2 {
  max-width: 590px;
  margin-top: 12px;
}

.privacy-copy {
  align-self: end;
}

.privacy-copy p,
.privacy-copy li {
  color: rgba(255, 253, 246, 0.78);
  line-height: 1.55;
}

.privacy-copy ul {
  margin: 22px 0;
  padding-left: 20px;
}

.privacy-copy a {
  color: var(--ochre);
  font-weight: 800;
}

.founder-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-block: clamp(76px, 10vw, 132px);
}

.founder-offer,
.updates {
  padding: clamp(27px, 5vw, 58px);
}

.founder-offer {
  background: var(--asphalt);
  color: var(--paper-clean);
}

.founder-offer h2,
.updates h2 {
  margin-top: 18px;
  font-size: clamp(2.45rem, 4.5vw, 4.2rem);
}

.founder-offer > p:not(.section-index, .payment-note) {
  color: rgba(255, 253, 246, 0.72);
  line-height: 1.55;
}

.offer-list {
  margin: 30px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 253, 246, 0.26);
}

.offer-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 253, 246, 0.26);
}

.offer-list span {
  color: var(--ochre);
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 750;
}

.payment-note {
  margin: 16px 0 0;
  color: rgba(255, 253, 246, 0.58);
  font-size: 0.74rem;
  line-height: 1.5;
}

.updates {
  border: 2px solid var(--ink);
  border-left: 0;
  background: var(--paper-clean);
}

.updates > p:not(.section-index) {
  max-width: 500px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.updates form {
  margin-top: 30px;
}

.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.email-row input {
  min-height: 50px;
}

.consent-copy {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: var(--green);
}

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

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

.faq {
  padding-block: clamp(70px, 9vw, 118px);
  border-top: 2px solid var(--ink);
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  position: relative;
  padding: 22px 52px 22px 0;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 17px;
  font-family: var(--font-data);
  font-size: 1.4rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 820px;
  margin: -5px 0 24px;
  color: var(--ink-muted);
  line-height: 1.6;
}

footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 2px solid var(--ink);
}

footer p {
  color: var(--ink-muted);
  font-size: 0.84rem;
}

footer > div {
  display: flex;
  gap: 20px;
}

footer > div a {
  font-size: 0.8rem;
  font-weight: 750;
}

.footer-brand .brand-mark {
  width: 31px;
  height: 31px;
}

.founder-dialog {
  width: min(calc(100% - 32px), 680px);
  max-height: min(88vh, 780px);
  padding: clamp(24px, 5vw, 46px);
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper-clean);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--ochre);
  overflow: auto;
}

.founder-dialog::backdrop {
  background: rgba(23, 51, 42, 0.74);
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.7rem;
  cursor: pointer;
}

.founder-dialog-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding-right: 22px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.founder-dialog-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2.5rem, 7vw, 4.3rem);
}

.founder-price {
  margin: 0;
  text-align: right;
}

.founder-price strong,
.founder-price span {
  display: block;
}

.founder-price strong {
  font-family: var(--font-data);
  font-size: 2.8rem;
}

.founder-price span {
  color: var(--ink-muted);
  font-size: 0.7rem;
}

.dialog-lede,
.founder-dialog-note {
  color: var(--ink-muted);
  line-height: 1.55;
}

.dialog-lede {
  margin: 22px 0;
}

.founder-dialog-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.founder-dialog-benefits li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}

.founder-dialog-benefits li > span {
  color: var(--clay);
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 750;
}

.founder-dialog-benefits strong,
.founder-dialog-benefits small {
  display: block;
}

.founder-dialog-benefits small {
  margin-top: 4px;
  color: var(--ink-muted);
}

.founder-dialog-note {
  margin: 20px 0;
  font-size: 0.78rem;
}

.founder-dialog-actions {
  display: grid;
  gap: 15px;
  text-align: center;
}

.text-link {
  font-size: 0.82rem;
  font-weight: 750;
}

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

.legal-page {
  min-height: calc(100vh - 212px);
  padding-block: clamp(58px, 9vw, 108px);
}

.legal-page h1 {
  max-width: 870px;
}

.legal-lede {
  max-width: 700px;
  margin: 0 0 46px;
  color: var(--ink-muted);
  font-size: 1.15rem;
  line-height: 1.58;
}

.legal-page section {
  max-width: 850px;
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.legal-page section h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.legal-page section p,
.legal-page section ul {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.62;
}

.legal-page section ul {
  padding-left: 20px;
}

.legal-updated {
  margin: 28px 0;
  color: var(--ink-muted);
}

@media (max-width: 980px) {
  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-ledger {
    grid-column: 1;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-ledger {
    width: min(100%, 720px);
    margin-top: 24px;
  }

  .section-heading .section-index {
    grid-column: 1 / span 3;
  }

  .section-heading h2,
  .section-heading.compact h2 {
    grid-column: 4 / -1;
  }

  .section-heading > p:last-child {
    grid-column: 4 / -1;
    margin-top: -4px;
  }

  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .results {
    min-height: 480px;
  }

  .ride-columns,
  .rider-row {
    grid-template-columns: minmax(160px, 1.05fr) minmax(160px, 1fr) minmax(160px, 1fr);
  }

  .formula-strip {
    grid-template-columns: 1fr;
  }

  .formula-strip > div {
    min-height: 150px;
  }

  .formula-operator {
    min-height: 42px;
  }

  .privacy-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .founder-section {
    grid-template-columns: 1fr;
  }

  .updates {
    border: 2px solid var(--ink);
    border-top: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 72px;
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    margin-left: auto;
    padding-inline: 11px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  h2 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .hero {
    padding-block: 52px 70px;
  }

  .hero-actions,
  .calculator-actions,
  .recap-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .calculator-actions .button,
  .recap-actions .button {
    width: 100%;
  }

  .hero-ledger {
    padding: 19px;
    box-shadow: 6px 6px 0 var(--sky);
  }

  .ledger-head {
    align-items: start;
    flex-direction: column;
  }

  .ledger-head > span {
    white-space: normal;
  }

  .sample-riders li {
    grid-template-columns: 31px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .section-index {
    margin-bottom: 14px;
  }

  .section-heading > p:last-child {
    margin-top: 18px;
  }

  .calculator-shell {
    box-shadow: 6px 6px 0 var(--paper-deep);
  }

  #league-form,
  .results {
    padding: 19px;
  }

  .calculator-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ride-columns {
    display: none;
  }

  .riders {
    border-top: 0;
  }

  .rider-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .rider-identity {
    grid-template-columns: 28px minmax(0, 1fr) 32px;
  }

  .week-inputs {
    padding-left: 37px;
  }

  .week-inputs::before {
    grid-column: 1 / -1;
    color: var(--ink-muted);
    font-family: var(--font-data);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .baseline-inputs::before {
    content: "Usual week";
  }

  .current-inputs::before {
    content: "This week";
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .result-person small {
    max-width: 150px;
  }

  .formula-strip > div {
    min-height: 135px;
  }

  .principle-ledger article {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .formula-caveat {
    margin-left: 65px;
  }

  .division-heading {
    grid-template-columns: 1fr;
  }

  .club-sigil {
    width: 110px;
    height: 110px;
  }

  .club-sigil img {
    width: 64px;
    height: 64px;
  }

  .ranks li {
    width: 100px;
  }

  .ranks img {
    width: 68px;
    height: 68px;
  }

  .privacy-section {
    padding-inline: var(--page-pad);
  }

  .founder-offer,
  .updates {
    padding: 23px;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-block: 28px;
  }

  footer p {
    margin: 0;
  }

  .founder-dialog {
    padding: 24px 19px;
    box-shadow: 6px 6px 0 var(--ochre);
  }

  .founder-dialog-heading {
    grid-template-columns: 1fr;
    padding-right: 35px;
  }

  .founder-price {
    text-align: left;
  }

  .legal-page section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
