/* Alternating feature rows with a wider comparison view for match analysis. */
.feature-ladder {
  display: grid;
  gap: 86px;
  margin-top: 68px;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5.5vw, 78px);
  align-items: center;
  min-width: 0;
}
.feature-copy {
  min-width: 0;
  width: 100%;
  max-width: 360px;
  justify-self: center;
  text-align: left;
}
.feature-row:nth-child(odd) .feature-copy {
  grid-column: 1;
  grid-row: 1;
}
.feature-row:nth-child(odd) .feature-panel {
  grid-column: 2;
  grid-row: 1;
}
.feature-row:nth-child(even) .feature-copy {
  grid-column: 2;
  grid-row: 1;
}
.feature-row:nth-child(even) .feature-panel {
  grid-column: 1;
  grid-row: 1;
}
.feature-emphasis {
  color: var(--purple);
}
.feature-copy h3 {
  margin: 0;
  color: var(--night);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.2px;
}
.feature-copy p {
  margin: 18px 0 0;
  max-width: 33ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.feature-ladder .feature-panel {
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 28px 24px;
  border-radius: 20px;
  background: #f6f4fa;
}
.feature-ladder .feature-panel > * {
  min-width: 0;
  flex-shrink: 0;
}
.trim-art,
.shotmap-card {
  background: #fff;
  border: 1px solid #eeebf1;
  border-radius: 12px;
  overflow: hidden;
}
.trim-art .mini-heading {
  padding: 18px 20px;
}
.trim-still {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #32755f;
}
.trim-timelines {
  display: grid;
  gap: 17px;
  padding: 19px 20px 21px;
}
.trim-track-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trim-track-label strong {
  font-size: 11px;
  font-weight: 500;
  color: var(--purple);
}
.trim-original-track,
.trim-points-track {
  height: 12px;
  border-radius: 2px;
}
.trim-original-track {
  position: relative;
  background: #eeeaf5;
}
.trim-original-track > span {
  position: absolute;
  left: var(--clip-start);
  width: calc(var(--clip-length) * 1%);
  height: 100%;
  border-inline: 1px solid #8c71ed;
  background: #c5b6f9;
}
.trim-points-track {
  display: flex;
  gap: 2px;
  width: 35.35%;
}
.trim-points-track > span {
  flex: var(--clip-length);
  min-width: 0;
  border-radius: 1px;
  background: var(--purple);
}
.feature-row.feature-row-analytics {
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  gap: clamp(40px, 4vw, 56px);
}
.feature-row-analytics .feature-copy h3 {
  font-size: 32px;
  letter-spacing: -1px;
}
.feature-row-analytics .feature-copy p {
  font-size: 14px;
}
.feature-ladder .feature-panel.record-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  max-width: 660px;
  padding: 22px 20px;
  gap: 16px;
  align-items: stretch;
  justify-content: normal;
  justify-self: center;
}
.shotmap-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 16px 22px;
}
.shotmap-heading {
  align-items: baseline;
  gap: 8px;
}
.shotmap-heading h4 {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.65px;
  line-height: 1.15;
}
.shotmap-heading > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}
.shotmap-plot {
  position: relative;
  flex: 1;
  min-height: 260px;
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  background: #3b7a57;
}
.shotmap-court {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: none;
}
.shotmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}
.shotmap-legend > span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.shotmap-legend i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #718323;
}
.shotmap-legend .shotmap-key-estimated {
  background: transparent;
  border: 1px solid #718323;
}
.community-art {
  display: grid;
  gap: 16px;
  padding: 0;
}
.timeline-surface {
  padding: 18px 18px 21px;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}
.timeline-header h4 {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.25px;
}
.timeline-plan-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.timeline-calendar,
.timeline-chevron {
  display: block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.timeline-calendar {
  width: 16px;
  height: 16px;
}
.timeline-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.timeline-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #fffffff2;
  font-size: 10px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.timeline-day strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid transparent;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
}
.timeline-day > small {
  min-height: 11px;
  font-size: 11px;
  font-weight: 600;
  line-height: 11px;
  white-space: nowrap;
}
.timeline-day-played strong {
  background: #ffffff29;
}
.timeline-day-today > span {
  font-weight: 600;
}
.timeline-day-today strong {
  border-color: #fff;
}
.timeline-day-upcoming strong {
  background: #dfff4f;
  color: #15131f;
  border-color: #15131f8c;
}
.timeline-next {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 12px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
}
.timeline-sport-emoji {
  font-size: 20px;
  line-height: 1;
  text-align: center;
}
.timeline-next-details {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.timeline-next strong {
  font-size: 14px;
  font-weight: 600;
}
.timeline-next-details > span {
  color: #fffffff2;
  font-size: 14px;
}
.timeline-match-details {
  padding: 23px;
  border: 1px solid #eeebf1;
  border-radius: 12px;
  background: #fff;
}
.invite-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.invite-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--night);
}
.timeline-match-details h4 {
  margin: 11px 0 7px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.7px;
}
.timeline-match-details > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.timeline-match-details .match-going {
  gap: 12px;
  margin-top: 22px;
}
.timeline-match-details .mini-avatar {
  width: 36px;
  height: 36px;
  font-size: 10px;
}
.timeline-match-details .match-going > span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.timeline-match-details .match-going strong {
  color: var(--purple);
}

@media (max-width: 1199px) {
  .feature-row.feature-row-analytics {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .feature-row-analytics:nth-child(n) .feature-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 500px;
  }
  .feature-row-analytics:nth-child(n) .feature-panel {
    grid-column: 1;
    grid-row: 2;
  }
  .feature-row-analytics .feature-copy h3 {
    font-size: 34px;
  }
}
@media (max-width: 1100px) {
  .feature-ladder {
    gap: 68px;
    margin-top: 54px;
  }
  .feature-row {
    gap: 40px;
  }
  .feature-copy p {
    font-size: 14px;
  }
  .feature-ladder .feature-panel {
    padding-inline: 18px;
  }
}
@media (max-width: 900px) {
  .feature-ladder .feature-panel.record-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 480px;
    justify-self: center;
  }
  .shotmap-card {
    min-height: 400px;
  }
}
@media (max-width: 800px) {
  .feature-ladder {
    gap: 62px;
    margin-top: 44px;
  }
  .feature-row {
    gap: 28px;
  }
  .feature-copy h3 {
    font-size: 27px;
    letter-spacing: -0.9px;
  }
  .feature-copy p {
    font-size: 13px;
    line-height: 1.75;
    margin-top: 15px;
  }
  .feature-ladder .feature-panel {
    padding-inline: 13px;
  }
  .shotmap-heading h4 {
    font-size: 21px;
  }
}
@media (max-width: 700px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
  .feature-row:nth-child(n) .feature-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .feature-row:nth-child(n) .feature-panel {
    grid-column: 1;
    grid-row: 2;
  }
  .feature-copy {
    max-width: 420px;
  }
  .feature-copy h3,
  .feature-row-analytics .feature-copy h3 {
    font-size: 30px;
  }
  .feature-copy p {
    max-width: 37ch;
    font-size: 14px;
  }
  .feature-ladder .feature-panel {
    max-width: 500px;
    padding-inline: 22px;
    justify-self: center;
  }
  .feature-ladder .feature-panel.record-panel {
    max-width: 480px;
  }
}
@media (max-width: 600px) {
  .feature-ladder {
    margin-top: 45px;
    gap: 54px;
  }
  .feature-copy h3,
  .feature-row-analytics .feature-copy h3 {
    font-size: 27px;
  }
  .feature-copy p,
  .feature-row-analytics .feature-copy p {
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.75;
  }
  .feature-ladder .feature-panel {
    padding: 22px 13px;
    border-radius: 16px;
  }
  .timeline-surface {
    padding: 17px 15px 20px;
  }
  .timeline-plan-label {
    font-size: 12px;
  }
  .timeline-days {
    gap: 3px;
  }
  .timeline-day {
    font-size: 9px;
  }
  .timeline-day strong {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .timeline-day > small {
    font-size: 9px;
  }
  .timeline-next strong {
    font-size: 12px;
  }
  .timeline-next-details > span {
    font-size: 11px;
  }
  .timeline-match-details {
    padding: 22px 18px;
  }
  .timeline-match-details h4 {
    font-size: 22px;
  }
  .timeline-match-details .mini-avatar {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }
  .timeline-match-details .match-going > span {
    font-size: 9px;
  }
  .shotmap-card {
    min-height: 380px;
  }
  .shotmap-plot {
    min-height: 260px;
  }
}
@media (max-width: 360px) {
  .feature-copy h3,
  .feature-row-analytics .feature-copy h3 {
    font-size: 25px;
  }
  .feature-ladder .feature-panel {
    padding-inline: 10px;
  }
  .trim-art .mini-heading {
    padding-inline: 14px;
    font-size: 13px;
  }
  .trim-timelines {
    padding-inline: 14px;
  }
  .timeline-surface {
    padding-inline: 12px;
  }
  .timeline-header h4 {
    font-size: 16px;
  }
  .timeline-plan-label {
    font-size: 10px;
    gap: 4px;
  }
  .timeline-calendar {
    width: 14px;
    height: 14px;
  }
  .timeline-day {
    font-size: 8px;
  }
  .timeline-day strong {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .timeline-day > small {
    font-size: 8px;
  }
  .timeline-next strong {
    font-size: 10px;
  }
  .timeline-next-details > span {
    font-size: 10px;
  }
  .timeline-match-details {
    padding-inline: 14px;
  }
  .timeline-match-details h4 {
    font-size: 20px;
  }
  .timeline-match-details .match-going {
    gap: 9px;
  }
  .timeline-match-details .mini-avatar {
    width: 28px;
    height: 28px;
    font-size: 8px;
  }
  .invite-label {
    font-size: 11px;
  }
  .invite-card-header .match-sport {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  .timeline-match-details .invite-confirmed {
    width: 21px;
    height: 21px;
  }
  .timeline-match-details .match-going > span {
    font-size: 9px;
  }
  .shotmap-card {
    padding-inline: 14px;
  }
  .shotmap-legend {
    gap: 8px 10px;
    font-size: 9px;
  }
}

.match-stats-card {
  padding: 20px 18px 22px;
  border: 1px solid #eeebf1;
  border-radius: 18px;
  background: #fff;
  color: #15131f;
}

.stats-card-heading {
  align-items: baseline;
  gap: 8px;
}

.stats-card-heading h4 {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.65px;
}

.stats-card-heading > span {
  color: #6a6878;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.match-stats-players {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.match-stats-players > :last-child {
  color: #6a6878;
}

.match-stats-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.stat-comparison {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: start;
  row-gap: 8px;
}

.stat-comparison dt {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  text-align: center;
  color: #3b3949;
  font-size: 11px;
  line-height: 1.35;
}

.stat-comparison dd {
  margin: 0;
}

.stats-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  grid-row: 1;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.35px;
}

.stats-steven {
  grid-column: 1;
  color: #15131f;
}

.stats-jordan {
  grid-column: 3;
  text-align: right;
  color: #6a6878;
}

.stats-value small {
  color: #6a6878;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.stats-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}

.stats-track {
  display: block;
  height: 5px;
  border-radius: 2px;
  overflow: hidden;
  background: transparent;
}

.stats-track > i {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
}

.stats-track-steven > i {
  margin-left: auto;
  transform-origin: right;
  background: var(--purple);
}

.stats-track-jordan > i {
  transform-origin: left;
  background: #c3c0d4;
}

.stats-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 800px) {
  .match-stats-card {
    padding: 20px 16px 22px;
    border-radius: 15px;
  }

  .stats-card-heading {
    gap: 8px;
  }

  .stats-card-heading h4 {
    font-size: 21px;
  }

  .stats-card-heading > span {
    font-size: 8px;
  }

  .match-stats-list {
    gap: 14px;
  }

  .stat-comparison {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .stat-comparison dt {
    font-size: 11px;
  }

  .stats-value {
    font-size: 19px;
  }
}

@media (max-width: 360px) {
  .match-stats-card {
    padding-inline: 16px;
  }

  .stats-card-heading h4 {
    font-size: 20px;
  }

  .stats-card-heading > span {
    font-size: 7px;
  }

  .stat-comparison {
    grid-template-columns: 39px minmax(0, 1fr) 39px;
  }
}

/* Only prepared parts are hidden. Each preview animates on its own entry. */
@media (prefers-reduced-motion: no-preference) {
  .feature-reveal-ready .feature-reveal-part {
    opacity: 0;
    transform: translateY(var(--feature-distance, 12px));
  }
  .feature-reveal-ready .feature-reveal-part.is-revealed {
    animation: feature-part-in var(--feature-duration, 520ms)
      cubic-bezier(0.22, 0.7, 0.3, 1) var(--feature-delay, 0ms) both;
  }
  .feature-reveal-ready .feature-comparison-fill {
    transform: scaleX(0);
  }
  .feature-reveal-ready .feature-comparison-fill.is-revealed {
    animation: feature-comparison-in 650ms cubic-bezier(0.22, 0.7, 0.3, 1)
      var(--feature-delay, 0ms) both;
  }
  .feature-reveal-ready .feature-trim-segment {
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: left;
  }
  .feature-reveal-ready .feature-trim-segment.is-revealed {
    animation: feature-trim-in 380ms cubic-bezier(0.22, 0.7, 0.3, 1)
      var(--feature-delay, 0ms) both;
  }
  .feature-reveal-ready .feature-day-highlight {
    opacity: 0;
    transform: scale(0.94);
  }
  .feature-reveal-ready .feature-day-highlight.is-revealed {
    animation: feature-day-in 360ms cubic-bezier(0.22, 0.7, 0.3, 1) 700ms both;
  }
  .feature-reveal-ready .feature-court-line {
    stroke-dasharray: var(--feature-line-length);
    stroke-dashoffset: var(--feature-line-length);
  }
  .feature-reveal-ready .feature-court-line.is-revealed {
    animation: feature-court-draw 900ms cubic-bezier(0.32, 0.6, 0.35, 1) 360ms
      both;
  }
  .feature-reveal-ready .feature-shot {
    opacity: 0;
  }
  .feature-reveal-ready .feature-shot.is-revealed {
    animation: feature-mark-in 300ms ease var(--feature-delay, 0ms) both;
  }
}
@keyframes feature-part-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes feature-comparison-in {
  to {
    transform: scaleX(1);
  }
}
@keyframes feature-day-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes feature-trim-in {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes feature-court-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes feature-mark-in {
  to {
    opacity: 1;
  }
}
