/* Rally — landing page. Direction: colour chapters (seed 861038198).
   Every chapter is a full-bleed field of one of the sport's colours, butted against the next with no
   gap. One typeface (Roundo), five sizes, one 12-column grid with one pair of margins. Product
   fragments (data-ui) are set in the product's own face, Figtree. */

:root {
  --m: clamp(18px, 2.3vw, 32px); /* the one pair of page margins */
  --g: clamp(16px, 1.7vw, 24px); /* the one gutter */
  --radius: 20px; /* tiles and panels; media stay square; buttons are round like the ball */

  /* five sizes */
  --fs-display: clamp(40px, 5.5vw, 92px);
  --fs-head: clamp(34px, 4.1vw, 64px);
  --fs-lead: clamp(22px, 2.15vw, 32px);
  --fs-body: clamp(17px, 0.95rem + 0.25vw, 19px);
  --fs-small: 14px;

  --chapter-pad: clamp(88px, 9vw, 136px);
}

body {
  font-family: var(--display);
  font-size: var(--fs-body);
  line-height: 1.5;
}

.wrap {
  width: 100%;
  padding-inline: var(--m);
}

.skip-link {
  position: absolute;
  left: var(--m);
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--court);
  outline-offset: 3px;
  border-radius: 6px;
}
.ch-court :focus-visible,
.ch-night :focus-visible,
.clash.is-sorted :focus-visible {
  outline-color: var(--lime);
}

/* ---------- type ---------- */
.display,
.hero-title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.day-title,
.demo-title,
.price-title,
.faq-title,
.slips-title,
.start-title,
.pair-heading {
  font-size: var(--fs-head);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.statement,
.clash-title,
.day-block h3,
.plan h3 {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.body {
  font-size: var(--fs-body);
  line-height: 1.5;
  max-width: 54ch;
  text-wrap: pretty;
}

/* ---------- buttons: round, like the ball ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: scale var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active {
  scale: 0.97;
}
.btn-lg {
  height: 58px;
  padding: 0 30px;
}
.btn-sm {
  height: 42px;
  padding: 0 18px;
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-paper {
  background: var(--paper);
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-lime:hover {
    background: var(--ink);
    color: var(--lime);
  }
  .btn-ink:hover {
    background: var(--night-2);
  }
  .btn-paper:hover {
    background: var(--ink);
    color: var(--paper);
  }
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--lime-deep);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover {
    text-decoration-color: currentColor;
  }
}

/* ---------- chapters ---------- */
.ch {
  position: relative;
  padding-block: var(--chapter-pad);
}
.ch-night {
  background: var(--night);
  color: var(--paper);
}
.ch-court {
  background: var(--court);
  color: var(--paper);
}
.ch-orange {
  background: var(--orange);
  color: var(--ink);
}
.ch-concrete {
  background: var(--concrete);
  color: var(--ink);
}

/* ---------- opening: bar + hero ---------- */
.opening {
  position: relative;
  overflow: clip;
  background: var(--paper);
}
.bar {
  position: relative;
  z-index: 3;
}
.bar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
}
.bar-logo {
  font-size: 32px;
}
.bar-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.bar-nav a {
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.bar-nav a:hover {
  text-decoration-line: underline;
}
.bar-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 84px);
  display: flex;
  align-items: center;
  padding-block: 32px 96px;
}
/* the ball: Rally's own mark, at about 120vh, cropped by the top, right and bottom edges */
.hero-ball {
  position: absolute;
  z-index: 0;
  width: min(124vh, 86vw);
  height: auto;
  aspect-ratio: 1;
  left: 86%;
  top: 93%;
  translate: -50% -50%;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-title {
  max-width: 13.2em;
}
.hero-title .line {
  display: block;
}
.hero-lede {
  max-width: 36ch;
  margin-top: 40px;
  font-size: var(--fs-body);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.hero-meta {
  margin-top: 22px;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------- the 6 pm rush ---------- */
.rush-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  row-gap: clamp(56px, 6vw, 96px);
  align-items: end;
}
.rush-title {
  grid-column: 1 / 8;
  color: var(--lime);
}
.rush-text {
  grid-column: 8 / 13;
  display: grid;
  gap: 20px;
}
.rush-film {
  grid-column: 1 / -1;
  overflow: clip;
}
.rush-video {
  width: 100%;
  height: auto;
  aspect-ratio: 854 / 368;
  object-fit: cover;
  background: #6b4a2c;
  filter: grayscale(1) contrast(1.06);
}
.rush-film figcaption {
  max-width: 60ch;
  margin-top: 14px;
  font-size: var(--fs-small);
}

/* ---------- the double booking: one control, blown up ---------- */
.clash {
  min-height: 92svh;
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
  transition: background-color 520ms ease, color 520ms ease;
}
.clash:has(input[value="6"]:checked) {
  background: var(--court);
  color: var(--paper);
}
.clash-copy {
  position: relative;
  z-index: 1;
  max-width: calc(36% + var(--m));
}
.clash-copy .body {
  margin-top: 20px;
}
.clash-title {
  max-width: 17em;
}

/* the product's own conflict card, built in em and raised to poster size */
.clash-ui {
  --u: clamp(15px, min(4.3vh, 2.85vw), 46px);
  position: absolute;
  left: 41%;
  right: calc(-1 * var(--u) * 3);
  bottom: calc(-1 * var(--u) * 0.9);
  z-index: 0;
  padding: 1.05em 4.3em 1.9em 1.3em;
  border-radius: 0.42em 0 0 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: var(--u);
  line-height: 1.25;
}
.cu-title {
  font-family: var(--display);
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.cu-sub {
  margin-top: 0.4em;
  max-width: 24em;
  font-size: 0.62em;
  color: var(--muted);
}
.cu-seg {
  margin: 0.95em 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.cu-seg legend {
  padding: 0;
  margin-bottom: 0.32em;
  font-size: 0.62em;
  font-weight: 600;
}
.cu-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 9.6em;
  padding: 0.12em;
  border-radius: 0.36em;
  background: #e7ebe6;
}
.cu-track label {
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.cu-track input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.cu-track span {
  display: grid;
  place-items: center;
  height: 1.9em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: color 300ms ease;
}
.cu-track input[value="3"]:checked + span {
  color: #c4242a;
}
.cu-track input:focus-visible + span {
  outline: 0.08em solid var(--court);
  outline-offset: 0.08em;
  border-radius: 0.3em;
}
.cu-thumb {
  position: absolute;
  z-index: 0;
  top: 0.12em;
  bottom: 0.12em;
  left: 0.12em;
  width: calc(50% - 0.12em);
  border-radius: 0.28em;
  background: var(--paper);
  border: 0.06em solid #c4242a;
  transition: translate 420ms var(--ease-out), border-color 420ms ease;
}
.clash-ui:has(input[value="6"]:checked) .cu-thumb {
  translate: 100% 0;
  border-color: var(--ink);
}
.cu-status {
  margin-top: 0.62em;
  max-width: 24em;
  font-size: 0.62em;
  font-weight: 500;
}
.cu-done {
  display: none;
}
.clash-ui:has(input[value="6"]:checked) .cu-done {
  display: inline;
}
.clash-ui:has(input[value="6"]:checked) .cu-open {
  display: none;
}
.cu-open,
.cu-done {
  transition: opacity 300ms ease;
}

/* ---------- two late changes, two fields ---------- */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pair-panel {
  position: relative;
  min-height: max(92svh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px var(--m) 32px;
}
.pair-wait {
  background: var(--lime);
}
.pair-coach {
  background: var(--concrete);
  padding-left: calc(var(--g) / 2);
}
.pair-wait {
  padding-right: calc(var(--g) / 2);
}
.pair-heading {
  position: absolute;
  z-index: 2;
  top: 40px;
  left: var(--m);
  max-width: 7.5em;
}
.pair-obj {
  position: absolute;
  z-index: 0;
  top: clamp(132px, 13vw, 176px);
  font-family: var(--ui);
  font-size: clamp(14px, 1.42vw, 22px);
}
.pair-wait .pair-obj {
  left: var(--m);
  right: calc(var(--g) / 2);
}
.pair-coach .pair-obj {
  left: calc(var(--g) / 2);
  right: var(--m);
}
.pair-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.pair-foot h3 {
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.pair-foot p {
  margin-top: 10px;
  max-width: 40ch;
}
.pair-foot .btn {
  flex: none;
}

/* product fragments: the app's own panels, set in Figtree */
.ui-card {
  max-width: 34em;
  padding: 1.1em 1.25em 1.2em;
  border-radius: 0.6em;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.35;
}
.ui-kicker {
  font-size: 0.72em;
  color: var(--muted);
}
.ui-h {
  margin-top: 0.15em;
  font-size: 1.12em;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.ui-text {
  margin-top: 0.6em;
  font-size: 0.86em;
}
.ui-row,
.ui-choice {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  margin-top: 0.75em;
  padding: 0.75em 0.8em;
  border: 1px solid #e3e7e2; /* taste-skill-ignore: a row of the product's own list, inside data-ui */
  border-radius: 0.45em;
  font-size: 0.86em;
}
.ui-choice.is-on {
  border-color: var(--ink);
}
.ui-row p + p,
.ui-choice p + p {
  margin-top: 0.2em;
}
.ui-sub {
  font-size: 0.88em;
  color: var(--muted);
}
.ui-note,
.ui-ok {
  display: inline-block;
  margin-top: 0.45em !important;
  padding: 0.25em 0.55em;
  border-radius: 0.3em;
  font-size: 0.88em;
  font-weight: 600;
}
.ui-note {
  background: #eef1ed;
}
.ui-ok {
  background: #dcfae5;
  color: #04250e;
}
.ui-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  font-size: 0.82em;
  font-weight: 650;
}
.ui-av-a {
  background: #e3ecfa;
  color: #1f4fa6;
}
.ui-av-b {
  background: #fde6dc;
  color: #8a2f0c;
}
.ui-av-c {
  background: #e7f2c2;
  color: #3b4a07;
}
.ui-av-d {
  background: #e4ece7;
  color: #23423a;
}
.ui-radio {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.55em;
  border: 2px solid #9aa39e;
  border-radius: 50%;
}
.ui-choice.is-on .ui-radio {
  border: 0.33em solid var(--ink);
}
.ui-tag-ok,
.ui-tag-warn {
  margin-left: 0.3em;
  padding: 0.12em 0.45em;
  border-radius: 0.3em;
  font-size: 0.82em;
  font-style: normal;
  font-weight: 600;
}
.ui-tag-ok {
  background: #dcfae5;
  color: #04250e;
}
.ui-tag-warn {
  background: #fffbeb;
  color: #92400e;
}
.ui-btn {
  display: inline-block;
  margin-top: 0.9em;
  padding: 0.55em 0.9em;
  border-radius: 0.4em;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.86em;
  font-weight: 600;
}
.ui-foot {
  margin-top: 0.75em;
  font-size: 0.8em;
  color: var(--muted);
}

/* ---------- the whole day: held heading, passing rows ---------- */
.day-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  align-items: start;
}
.day-head {
  grid-column: 1 / 6;
  position: sticky;
  top: 40px;
}
.day-title {
  max-width: 8em;
}
.day-head .body {
  margin-top: 24px;
  max-width: 34ch;
}
.day-clock {
  margin-top: clamp(40px, 5vw, 72px);
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.day-clock b {
  display: block;
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .day-clock.is-ticking b,
  .day-clock.is-ticking span {
    animation: tick 520ms var(--ease-out);
  }
}
@keyframes tick {
  from {
    opacity: 0;
    translate: 0 0.3em;
  }
}
.day-clock span {
  display: block;
  margin-top: 14px;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--paper);
}
.day-blocks {
  grid-column: 7 / 13;
  display: grid;
  gap: clamp(72px, 7vw, 100px);
}
.day-block h3 {
  margin-bottom: 22px;
}
.day-row {
  display: grid;
  grid-template-columns: clamp(170px, 15vw, 220px) minmax(0, 1fr);
  gap: var(--g);
  align-items: start;
}
.day-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  background: var(--court-deep);
}
.day-block.flip .day-row {
  grid-template-columns: minmax(0, 1fr) clamp(170px, 15vw, 220px);
}
.day-block.flip .day-row img {
  order: 2;
}
.day-row ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.day-row li {
  line-height: 1.4;
}

/* ---------- live demo ---------- */
.demo-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}
.demo-title {
  grid-column: 1 / 7;
}
.demo-head .body {
  grid-column: 7 / 11;
}
.demo-head .btn {
  grid-column: 11 / 13;
  justify-self: end;
}
.demo-frame {
  display: block;
  overflow: hidden;
  background: #f1f4f0;
  text-decoration: none;
}
.demo-viewport {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
}
.demo-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.demo-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

/* ---------- slips from the front desk ---------- */
.slips {
  overflow: hidden;
  padding-bottom: 0;
}
.slip-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(48px, 5vw, 72px);
}
.slip {
  --tear: 10px;
  position: relative;
  flex: none;
  width: clamp(280px, 25vw, 360px);
  padding: 44px 40px 56px;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(
    0 var(--tear), 5% 0, 10% var(--tear), 15% 0, 20% var(--tear), 25% 0, 30% var(--tear), 35% 0, 40% var(--tear),
    45% 0, 50% var(--tear), 55% 0, 60% var(--tear), 65% 0, 70% var(--tear), 75% 0, 80% var(--tear), 85% 0,
    90% var(--tear), 95% 0, 100% var(--tear),
    100% calc(100% - var(--tear)), 95% 100%, 90% calc(100% - var(--tear)), 85% 100%, 80% calc(100% - var(--tear)),
    75% 100%, 70% calc(100% - var(--tear)), 65% 100%, 60% calc(100% - var(--tear)), 55% 100%,
    50% calc(100% - var(--tear)), 45% 100%, 40% calc(100% - var(--tear)), 35% 100%, 30% calc(100% - var(--tear)),
    25% 100%, 20% calc(100% - var(--tear)), 15% 100%, 10% calc(100% - var(--tear)), 5% 100%, 0 calc(100% - var(--tear))
  );
}
.slip figcaption {
  display: grid;
  gap: 4px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  text-align: center;
  font-size: var(--fs-small);
}
.slip figcaption strong {
  font-size: var(--fs-body);
  font-weight: 600;
}
.slip blockquote p {
  font-size: var(--fs-body);
  line-height: 1.5;
}
.slip-1 {
  min-height: 440px;
  rotate: -4deg;
  margin-top: 40px;
  z-index: 1;
}
.slip-2 {
  min-height: 380px;
  rotate: 2deg;
  margin-left: -26px;
  z-index: 2;
}
.slip-3 {
  min-height: 420px;
  rotate: 5deg;
  margin-left: -26px;
  margin-top: 70px;
  margin-bottom: -60px;
  z-index: 3;
}

/* ---------- pricing: plans that step up ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 8px;
}
.price-head {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: start;
  padding-bottom: 40px;
}
.price-head .body {
  margin-top: 18px;
}
.plan {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  align-self: end;
}
.plan-club {
  grid-column: 1;
  grid-row: 2;
  min-height: 500px;
  background: var(--concrete);
  --strip: var(--concrete-deep);
}
.plan-pro {
  grid-column: 2;
  grid-row: 2;
  min-height: 600px;
  background: var(--lime);
  --strip: var(--lime-deep);
}
.plan-network {
  grid-column: 3;
  grid-row: 1 / 3;
  min-height: 700px;
  background: var(--court);
  color: var(--paper);
  --strip: var(--court-deep);
}
.plan-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 32px;
}
.plan h3 {
  font-weight: 600;
}
.plan-for {
  margin-top: 6px;
}
.plan-price {
  margin-top: 18px;
  font-variant-numeric: tabular-nums;
}
.plan-price .amt {
  font-size: var(--fs-head);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price .per {
  font-size: var(--fs-body);
  margin-left: 4px;
}
.plan ul {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.plan-courts {
  width: auto;
  height: 46px;
  margin-top: auto;
  padding-top: 28px;
  box-sizing: content-box;
  align-self: flex-start;
}
.plan-club .plan-courts {
  height: 22px;
}
.plan-courts .crt rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.plan-courts .crt path {
  stroke: currentColor;
  stroke-width: 1.6;
}
.plan-cta {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 28px;
  background: var(--strip);
  color: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.plan-network .plan-cta {
  color: var(--paper);
}
@media (hover: hover) and (pointer: fine) {
  .plan-cta:hover {
    background: var(--ink);
    color: var(--paper);
  }
  .plan-network .plan-cta:hover {
    background: var(--lime);
    color: var(--ink);
  }
}

/* ---------- questions ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  align-items: start;
}
.faq-title {
  grid-column: 1 / 6;
  position: sticky;
  top: 96px;
  max-width: 9em;
}
.faq-list {
  grid-column: 6 / 13;
  display: grid;
  gap: 8px;
}
.faq-list details {
  border-radius: var(--radius);
  background: #dde1da;
  transition: background-color var(--t-ui) ease;
}
.faq-list details[open] {
  background: var(--lime);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px 28px;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.plus {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7.5px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: rotate var(--t-ui) var(--ease-out);
}
.plus::after {
  rotate: 90deg;
}
details[open] .plus::after {
  rotate: 0deg;
}
.faq-a > div {
  padding: 0 28px 26px;
}
.faq-a p {
  max-width: 54ch;
}

/* ---------- start ---------- */
.start-grid {
  display: grid;
  gap: clamp(40px, 4vw, 56px);
}
.start-title {
  font-size: var(--fs-display);
  max-width: 12em;
  color: var(--lime);
}
.signup {
  display: grid;
  gap: 18px;
}
.signup-line {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.015em;
}
.signup-line input,
.signup-go {
  height: 1.55em;
  border: 0;
  border-radius: 999px;
  font: inherit;
  vertical-align: baseline;
}
.signup-line input {
  width: 11em;
  max-width: 100%;
  margin: 0 0.15em;
  padding: 0 0.6em;
  background: var(--night-2);
  color: var(--paper);
}
.signup-line input::placeholder {
  color: #a9b6b0;
}
.signup-line input[aria-invalid="true"] {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.signup-go {
  padding: 0 0.8em;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  transition: scale var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.signup-go:active {
  scale: 0.97;
}
.signup-go[disabled] {
  background: var(--concrete);
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .signup-go:not([disabled]):hover {
    background: var(--paper);
  }
}
.signup-note {
  font-size: var(--fs-small);
  color: #c6d0cb;
}
.signup-note.ok {
  color: var(--lime);
  font-size: var(--fs-body);
}

/* ---------- footer: the last two rows of the board ---------- */
.foot {
  padding-block: var(--g) var(--g);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}
.tile {
  border-radius: var(--radius);
  padding: 24px;
  background: #eef0ec;
  text-decoration: none;
}
.tile-say {
  grid-column: 1 / 5;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.foot-say {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 14em;
}
.foot-legal {
  font-size: var(--fs-small);
}
.tile-nav {
  grid-column: 5 / 8;
  display: grid;
  align-content: start;
  gap: 8px;
}
.tile-nav a {
  text-decoration: none;
  width: fit-content;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.tile-nav a:hover {
  text-decoration-line: underline;
}
.tile-credits {
  grid-column: 8 / 13;
}
.tile-credits h3 {
  font-size: var(--fs-body);
  font-weight: 600;
}
.tile-credits a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.tile-credits p {
  max-width: 34em;
  margin-top: 8px;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.tile-mark {
  grid-column: 1 / 9;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  background: var(--night);
  color: var(--paper);
  font-size: clamp(64px, 11vw, 168px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.tile-mark .logo-mark {
  width: 0.82em;
  height: 0.82em;
  transition: rotate 900ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile-mark:hover .logo-mark {
    rotate: 72deg;
  }
}
.tile-go {
  grid-column: 9 / 13;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--lime);
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.tile-go svg {
  align-self: flex-end;
  width: 56px;
  height: 56px;
  transition: translate var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile-go:hover {
    background: var(--ink);
    color: var(--lime);
  }
  .tile-go:hover svg {
    translate: 6px -6px;
  }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .bar-nav {
    gap: 20px;
  }
  .rush-title {
    grid-column: 1 / -1;
  }
  .rush-text {
    grid-column: 1 / 11;
  }
  .demo-title {
    grid-column: 1 / -1;
  }
  .demo-head .body {
    grid-column: 1 / 9;
  }
  .demo-head .btn {
    grid-column: 9 / 13;
  }
  .day-head {
    grid-column: 1 / 6;
  }
  .day-blocks {
    grid-column: 6 / 13;
  }
  .clash {
    min-height: 0;
    padding-bottom: 0;
  }
  .clash-ui {
    --u: 3.7vw;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 56px calc(-1 * var(--m)) 0 22%;
    padding-right: 1.3em;
  }
  .clash-copy {
    max-width: 62%;
  }
}

@media (max-width: 900px) {
  .bar-nav,
  .bar-cta {
    display: none;
  }
  .bar-menu {
    display: block;
    position: relative;
    margin-left: auto;
  }
  .bar-menu summary {
    list-style: none;
    padding: 10px 2px;
    font-size: var(--fs-body);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
    text-decoration-color: var(--lime-deep);
  }
  .bar-menu summary::-webkit-details-marker {
    display: none;
  }
  .bar-menu nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    min-width: 200px;
    padding: 10px;
    border-radius: 16px;
    background: var(--ink);
  }
  .bar-menu nav a {
    padding: 12px 14px;
    color: var(--paper);
    text-decoration: none;
    font-size: var(--fs-body);
  }

  .pair {
    grid-template-columns: 1fr;
  }
  .pair-panel,
  .pair-coach,
  .pair-wait {
    min-height: 0;
    padding: 32px var(--m);
  }
  .pair-heading {
    position: static;
    margin-bottom: 28px;
    max-width: 10em;
  }
  .pair-obj,
  .pair-wait .pair-obj,
  .pair-coach .pair-obj {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin-bottom: 32px;
    font-size: clamp(14px, 2.4vw, 20px);
  }
  .pair-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .day-head {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 64px;
  }
  .day-clock {
    display: none;
  }
  .day-blocks {
    grid-column: 1 / -1;
  }

  .slip-row {
    flex-direction: column;
    align-items: stretch;
  }
  .slip {
    width: 80%;
    min-height: 0 !important;
    margin: 0 !important;
  }
  .slip-1 {
    rotate: -2deg;
  }
  .slip-2 {
    rotate: 2deg;
    align-self: flex-end;
    margin-top: -24px !important;
  }
  .slip-3 {
    rotate: -3deg;
    margin-top: -24px !important;
    margin-bottom: -40px !important;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }
  .price-head,
  .plan-club,
  .plan-pro,
  .plan-network {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
  }

  .faq-title {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 36px;
    max-width: 12em;
  }
  .faq-list {
    grid-column: 1 / -1;
  }

  .tile-say,
  .tile-nav,
  .tile-credits {
    grid-column: span 6;
  }
  .tile-credits {
    grid-column: 1 / -1;
  }
  .tile-mark,
  .tile-go {
    grid-column: 1 / -1;
    min-height: 200px;
  }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root {
    --fs-display: 8.4vw;
    --fs-head: 30px;
    --fs-lead: 22px;
  }
  .bar-inner {
    height: 68px;
  }
  .bar-logo {
    font-size: 28px;
  }
  .hero {
    min-height: calc(100svh - 68px);
    align-items: flex-start;
    padding-block: 6svh 54vw;
  }
  .hero-ball {
    width: 128vw;
    left: 50%;
    top: auto;
    bottom: -58vw;
    translate: -50% 0;
  }
  .hero-lede {
    margin-top: 28px;
    font-size: 17px;
  }
  .hero-actions {
    margin-top: 28px;
  }

  .rush-title,
  .rush-text {
    grid-column: 1 / -1;
  }
  .rush-video {
    aspect-ratio: 4 / 3;
  }

  .clash {
    min-height: 0;
    padding-bottom: 0;
  }
  .clash-copy {
    max-width: none;
  }
  .clash-ui {
    --u: 5.6vw;
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    margin: 48px calc(-1 * var(--m)) 0 var(--m);
    padding: 1em 1em 1.6em;
    border-radius: 0.42em 0 0 0;
  }
  .cu-sub,
  .cu-status {
    font-size: 0.7em;
  }
  .cu-track {
    width: 10.2em;
  }

  .day-row,
  .day-block.flip .day-row {
    grid-template-columns: 1fr;
  }
  .day-row img,
  .day-block.flip .day-row img {
    order: 0;
    aspect-ratio: 4 / 3;
  }

  .demo-head .body,
  .demo-head .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .slip {
    width: 86%;
  }

  .faq-list summary {
    min-height: 64px;
    padding: 14px 20px;
  }
  .faq-a > div {
    padding: 0 20px 22px;
  }

  .signup-line input {
    display: block;
    width: 100%;
    margin: 0.3em 0;
  }

  .tile-say,
  .tile-nav {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

/* ---------- motion: everything visible without script; travel only when motion is welcome ---------- */
.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.lines [data-line] {
  display: block;
}
.shutter {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] {
    transform: translateY(105%);
    animation: line-up 900ms var(--ease-expo) forwards;
    animation-delay: calc(120ms + var(--i) * 100ms);
  }
  .js .hero [data-load] {
    opacity: 0;
    translate: 0 14px;
    animation: rise 560ms var(--ease-out) forwards;
    animation-delay: var(--d);
  }
  .js .hero-ball {
    scale: 0.86;
    opacity: 0;
    animation: ball-in 1200ms var(--ease-expo) 60ms forwards;
  }
  /* the ball turns as the page leaves the opening */
  @supports (animation-timeline: scroll()) {
    .js .hero-ball {
      animation: ball-in 1200ms var(--ease-expo) 60ms forwards, ball-roll linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 110vh;
    }
  }

  /* entrances on wider screens; a phone gets its content without the travel */
}
@media (prefers-reduced-motion: no-preference) and (min-width: 641px) {
  .js [data-reveal] {
    opacity: 0;
    translate: 0 26px;
    transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-expo);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    translate: none;
  }
  .js .day-block[data-reveal] img {
    scale: 1.08;
    transition: scale 1400ms var(--ease-soft);
  }
  .js .day-block.is-in img {
    scale: 1;
  }

  .js .shutter {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 900ms var(--ease-in-out);
  }
  .js .shutter .demo-viewport {
    scale: 1.12;
    transition: scale 1500ms var(--ease-soft);
  }
  .js .shutter.is-in {
    clip-path: inset(0);
  }
  .js .shutter.is-in .demo-viewport {
    scale: 1;
  }

  .js .slip {
    opacity: 0;
    translate: 0 120px;
    transition: opacity 600ms var(--ease-out), translate 1000ms var(--ease-expo);
  }
  .js .slip-row.is-in .slip {
    opacity: 1;
    translate: none;
  }
  .js .slip-row.is-in .slip-2 {
    transition-delay: 90ms;
  }
  .js .slip-row.is-in .slip-3 {
    transition-delay: 180ms;
  }

  .faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 320ms var(--ease-out);
  }
  .faq-a > div {
    overflow: hidden;
  }
  details[open] .faq-a {
    grid-template-rows: 1fr;
  }
}

@keyframes line-up {
  to {
    transform: none;
  }
}
@keyframes rise {
  to {
    opacity: 1;
    translate: none;
  }
}
@keyframes ball-in {
  to {
    scale: 1;
    opacity: 1;
  }
}
@keyframes ball-roll {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 64deg;
  }
}
