/*
 * Final hierarchy layer
 *
 * Spacing, typography, and flat background changes separate content.
 * Borders remain only where they describe a device or interactive control.
 */

.top-nav,
.site-section,
.waitlist-section-complete,
.site-footer-complete {
  border-top: 0;
  border-bottom: 0;
}

/* Restore a consistent section cadence after separating the product film. */
.product-intro .section-shell,
.product-demo-section .section-shell,
.metrics-section .section-shell,
.workflow-section-complete .section-shell,
.record-section .section-shell,
.validation-section-complete .section-shell,
.launch-section .section-shell {
  padding-block: var(--section-rhythm);
}

.product-demo-section {
  background: #0a0b0e;
}

.metrics-section {
  background: #050505;
}

/* Metric readouts use cadence rather than separators. */
.metric-rail {
  display: grid;
  row-gap: clamp(28px, 3vw, 46px);
  border-top: 0;
}

.metric-row {
  min-height: 0;
  padding-block: clamp(24px, 2.5vw, 36px);
  border-bottom: 0;
}

.metric-row::after {
  display: none;
}

/* Workflow keeps its active trace and loses every decorative rule. */
.workflow-steps {
  display: grid;
  row-gap: clamp(10px, 1.5vw, 24px);
  border-top: 0;
}

.workflow-steps::before {
  display: none;
}

.workflow-steps li {
  padding-block: clamp(34px, 4vw, 50px);
  border-bottom: 0;
}

/* Athlete history is grouped with spacing only. */
.record-points {
  display: grid;
  row-gap: 4px;
  border-top: 0;
}

.record-points li {
  min-height: 0;
  border-bottom: 0;
}

/* Validation reads as three independent arguments. */
.validation-principles {
  column-gap: clamp(54px, 6vw, 92px);
  border-top: 0;
  border-bottom: 0;
}

.validation-principles article {
  min-height: 250px;
  padding: 0;
}

.validation-principles article + article {
  border-top: 0;
  border-left: 0;
}

.validation-status-line {
  min-height: 0;
  margin-top: clamp(48px, 5vw, 72px);
  padding-block: 8px;
  border-bottom: 0;
}

.footer-bottom {
  padding-top: 0;
  border-top: 0;
}

/* Product film: its own section, with one clear heading and one real object. */
.product-demo-shell {
  display: grid;
  gap: clamp(64px, 8vw, 108px);
}

.product-demo-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  align-items: end;
  column-gap: clamp(64px, 9vw, 132px);
}

.product-demo-heading .section-lead {
  max-width: 34ch;
  margin: 0 0 4px;
}

.product-demo-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0;
}

.landscape-phone-stage {
  width: min(1120px, 100%);
  margin-inline: auto;
  transform: translate3d(0, var(--motion-y, 0), 0);
  will-change: transform;
}

.landscape-phone {
  position: relative;
  padding: clamp(9px, 1vw, 13px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: clamp(29px, 3.4vw, 48px);
  background: #111318;
  box-shadow:
    0 36px 78px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72);
  isolation: isolate;
}

.landscape-phone-button {
  position: absolute;
  z-index: -1;
  top: -4px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: #3d4148;
}

.landscape-phone-button-top {
  left: 18%;
  width: 11%;
}

.landscape-phone-button-bottom {
  left: 31%;
  width: 7%;
}

.landscape-phone-screen {
  position: relative;
  aspect-ratio: 19.5 / 9;
  overflow: hidden;
  border-radius: clamp(22px, 2.7vw, 38px);
  background: #030405;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.94);
}

.product-demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #030405;
  filter: brightness(0.86) saturate(0.94);
  transform: scaleX(-1) scale(1.018);
  transition-property: filter, transform;
  transition-duration: 600ms, 900ms;
  transition-timing-function: var(--ease-out);
}

.product-demo-stage.is-playing .product-demo-video {
  filter: brightness(0.98) saturate(1);
  transform: scaleX(-1) scale(1);
}

.product-demo-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 32%, transparent 70%, rgba(0, 0, 0, 0.42));
}

.landscape-dynamic-island {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: clamp(8px, 1vw, 13px);
  width: clamp(15px, 1.7vw, 23px);
  height: clamp(72px, 8vw, 112px);
  border-radius: 999px;
  background: #020202;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transform: translateY(-50%);
}

.product-demo-toggle {
  position: relative;
  z-index: 7;
  inset: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  height: auto;
  min-height: 46px;
  padding: 9px 15px 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  background: #08090b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.015em;
  transition-property: background-color, border-color, transform;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.product-demo-toggle:hover,
.product-demo-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: #111318;
  transform: translateY(-2px);
}

.product-demo-toggle-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #060708;
  background: white;
}

.product-demo-toggle-icon i {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #060708;
  transform: translateX(1px);
  transition-property: width, height, border, transform, opacity;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.product-demo-toggle-icon i:last-child {
  opacity: 0;
}

.product-demo-stage.is-playing .product-demo-toggle-icon i {
  width: 3px;
  height: 9px;
  border: 0;
  background: #060708;
  transform: translateX(-3px);
}

.product-demo-stage.is-playing .product-demo-toggle-icon i:last-child {
  opacity: 1;
  transform: translateX(3px);
}

.product-demo-progress {
  position: absolute;
  z-index: 6;
  right: clamp(24px, 3vw, 44px);
  bottom: clamp(16px, 1.8vw, 25px);
  left: clamp(24px, 3vw, 44px);
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.product-demo-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: white;
  transform: scaleX(var(--demo-progress, 0));
  transform-origin: left;
}

.product-demo-stage.has-video-error .product-demo-toggle {
  display: none;
}

@media (max-width: 980px) {
  .section-header-split,
  .validation-header,
  .launch-layout,
  .product-demo-heading {
    grid-template-columns: 1fr;
    row-gap: clamp(44px, 7vw, 68px);
  }

  .product-demo-heading .section-lead {
    max-width: 58ch;
  }

  .metric-rail {
    row-gap: 22px;
  }

  .workflow-steps {
    row-gap: 8px;
  }

  .validation-principles {
    row-gap: clamp(56px, 8vw, 82px);
  }

  .validation-principles article {
    min-height: 0;
    padding: 0;
  }

  .validation-principles article + article {
    border-top: 0;
  }
}

@media (max-width: 820px) {
  .metric-rail {
    row-gap: 16px;
  }

  .metric-row {
    padding-block: 24px;
  }

  .workflow-steps li {
    padding-block: 32px;
  }

  .validation-principles {
    row-gap: 58px;
  }

  .validation-status-line {
    margin-top: 46px;
  }

  .footer-bottom {
    margin-top: 28px;
  }

  .landscape-phone-stage {
    transform: none;
  }
}

@media (max-width: 560px) {
  .metric-rail {
    row-gap: 10px;
  }

  .metric-row {
    padding-block: 22px;
  }

  .workflow-steps {
    row-gap: 4px;
  }

  .workflow-steps li {
    padding-block: 28px;
  }

  .record-points {
    row-gap: 0;
  }

  .validation-principles {
    row-gap: 50px;
  }

  .validation-status-line {
    margin-top: 40px;
  }

  .footer-bottom {
    margin-top: 22px;
  }

  .landscape-phone {
    padding: 6px;
    border-radius: 24px;
  }

  .landscape-phone-screen {
    border-radius: 19px;
  }

  .landscape-dynamic-island {
    left: 7px;
    width: 12px;
    height: 54px;
  }

  .product-demo-toggle {
    min-height: 42px;
    padding: 8px 13px 8px 9px;
  }

  .product-demo-toggle-icon {
    width: 24px;
    height: 24px;
  }

  .product-demo-progress {
    right: 16px;
    bottom: 10px;
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landscape-phone-stage {
    transition: none;
    transform: none;
  }

  .product-demo-video {
    transition: none;
    transform: scaleX(-1);
  }

  .product-demo-toggle,
  .product-demo-toggle-icon i {
    transition: none;
    transform: none;
  }
}
