/* Ryzenith app identity. Source and reference lock: docs/ryzenith-microsite-research.md. */
:root {
  color-scheme: dark;
  --bg: #000;
  --raised: #0e0f12;
  --panel: #17191d;
  --line: #26292f;
  --text: #fff;
  --muted: #c0c4cc;
  --quiet: #949aa4;
  --accent: #c8ff00;
  --gutter: clamp(22px, 5vw, 80px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button,
input {
  font: inherit;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
p {
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 620;
  text-wrap: balance;
}
h1 {
  font-size: clamp(48px, 6.5vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(34px, 4.7vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
::selection {
  background: var(--accent);
  color: #000;
}
a:focus-visible,
summary:focus-visible,
video:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
main:focus {
  outline: none;
}
[id] {
  scroll-margin-top: 148px;
}
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 112px var(--gutter);
}
.eyebrow {
  font:
    600 11px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.13em;
  color: var(--quiet);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.lead {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.55;
  max-width: 42ch;
}
.note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--quiet);
  max-width: 56ch;
  margin-top: 22px;
  margin-bottom: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1000;
  background: var(--accent);
  color: #000;
  padding: 16px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
/* Two clear destinations: the independent product and the studio behind it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
}
.studio-bar {
  max-width: 1440px;
  margin: auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #17191d;
  min-height: 44px;
  font-size: 11px;
  color: var(--quiet);
}
.studio-bar > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
}
.nav {
  max-width: 1440px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}
.brand img {
  width: 180px;
  height: 54px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-left: auto;
}
.nav-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.nav a[aria-current="page"],
.nav-links > a:hover,
.studio-bar > a:hover {
  color: var(--accent);
}
.nav-beta {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  min-height: 56px;
  padding: 16px 24px;
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover,
.nav-beta:hover {
  background: #d8ff33;
}
.button:hover {
  transform: translateY(-2px);
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 34px;
}
.text-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
}
.text-link {
  border-bottom: 1px solid #50545a;
  padding: 6px 0;
}
.text-link:hover,
.secondary-link:hover {
  color: var(--accent);
}
.text-link span,
.secondary-link span {
  transition: transform 0.2s;
}
.text-link:hover span,
.secondary-link:hover span {
  transform: translate(2px, -2px);
}
/* Actual phone captures keep their native aspect ratio and untouched UI. */
.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 62px;
  padding-bottom: 86px;
  min-height: 760px;
}
.hero-copy {
  padding: 30px 0;
}
.hero-copy > .eyebrow {
  color: var(--accent);
}
.hero-media {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.app-screen {
  width: 100%;
  max-width: 300px;
  position: relative;
}
.app-screen > img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid #34383f;
  background: #000;
  box-shadow: 0 30px 70px #0005;
}
.app-screen figcaption {
  font-size: 11px;
  line-height: 1.5;
  color: var(--quiet);
  margin-top: 18px;
  text-align: center;
}
.hero-phones {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 580px;
  min-width: 0;
  width: 100%;
  padding-bottom: 38px;
}
.hero-phones .app-screen {
  min-width: 0;
  flex: 1;
}
.hero-phones .app-screen:first-child {
  margin-top: 70px;
}
.hero-phones .app-screen:last-child {
  margin-top: 0;
}
.hero-media > .app-screen {
  max-width: 285px;
}
.proof-strip {
  padding: 24px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-size: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  border-bottom: 1px solid var(--line);
}
.section-copy {
  max-width: 520px;
}
.screen-stage {
  padding: 48px 24px;
  min-width: 0;
  display: flex;
  justify-content: center;
  background: var(--raised);
  border-radius: 4px;
}
.screen-stage > .app-screen {
  max-width: 285px;
}
.reverse .section-copy {
  grid-column: 2;
  grid-row: 1;
}
.reverse .screen-stage {
  grid-column: 1;
  grid-row: 1;
}
.feature-list {
  margin: 36px 0;
}
.feature-list > div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feature-list dt {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}
.feature-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.photo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.photo {
  overflow: hidden;
  background: #0e0f12;
}
.photo img {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
  object-position: center 35%;
}
.photo-copy {
  max-width: 460px;
}
.demo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.demo {
  max-width: 280px;
  justify-self: center;
  width: 100%;
}
.demo video {
  width: 100%;
  aspect-ratio: 9/16;
  background: #000;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.demo figcaption,
.exercise-grid figcaption {
  font-size: 12px;
  color: var(--quiet);
  margin-top: 16px;
  line-height: 1.5;
}
.privacy-callout {
  background: var(--raised);
}
.privacy-callout .lead {
  max-width: 58ch;
}
.closing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 96px;
  padding-bottom: 96px;
}
.closing > div:last-child {
  justify-self: end;
  max-width: 370px;
}
.closing h2 {
  font-size: clamp(48px, 6vw, 84px);
}
.closing .lead {
  margin-bottom: 0;
}
.footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.footer a:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  color: var(--muted);
}
.footer a:hover {
  color: var(--accent);
}
.footer > p {
  width: 100%;
  margin: 0;
  font-size: 11px;
  color: var(--quiet);
}
/* Detail pages: short explanations next to evidence, with no simulated app UI. */
.rule-table {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.rule-table > div {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.rule-table span {
  font:
    12px ui-monospace,
    monospace;
  color: var(--accent);
}
.rule-table h3 {
  margin: 28px 0 16px;
}
.rule-table p {
  font-size: 15px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  margin-top: 60px;
}
.guide-grid > .app-screen {
  justify-self: center;
  max-width: 285px;
}
.questions {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 24px 0;
  font-size: 17px;
  line-height: 1.4;
}
summary::-webkit-details-marker {
  display: none;
}
summary > span {
  font-size: 26px;
  font-weight: 400;
  color: var(--quiet);
  flex-shrink: 0;
}
details[open] summary > span {
  transform: rotate(45deg);
  color: var(--accent);
}
details > div {
  padding: 0 36px 12px 0;
}
details p {
  font-size: 16px;
}
.narrow {
  max-width: 960px;
}
.section-heading {
  max-width: 780px;
}
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.exercise-grid video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.companion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  border-block: 1px solid var(--line);
  align-items: start;
}
.companion .feature-list {
  margin-top: 0;
}
.support-hero,
.policy-hero {
  padding-top: 90px;
  padding-bottom: 80px;
  max-width: 1100px;
}
.support-hero .note {
  max-width: 72ch;
}
.support-hero h1,
.policy-hero h1 {
  font-size: clamp(44px, 6.5vw, 88px);
}
.policy {
  max-width: 1100px;
  padding-top: 0;
}
.policy > section {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 38px 0;
}
.policy h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.2;
}
.policy-number {
  font:
    12px/1.5 ui-monospace,
    monospace;
  color: var(--quiet);
  padding-top: 5px;
}
.policy p {
  max-width: 70ch;
  font-size: 16px;
}
.policy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (min-width: 821px) and (max-width: 1100px) {
  .nav {
    gap: 18px;
  }
  .nav-links {
    gap: 16px;
  }
  .brand img {
    width: 145px;
    height: 48px;
  }
  .nav-beta {
    padding-inline: 12px;
  }
  .hero {
    gap: 32px;
  }
  .hero-phones {
    gap: 12px;
  }
  .split,
  .photo-section,
  .demo-section,
  .guide-grid,
  .companion {
    gap: 52px;
  }
}
@media (max-width: 820px) {
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .studio-bar {
    min-height: 36px;
  }
  .studio-bar > a {
    min-height: 44px;
  }
  .studio-bar > span {
    font-size: 10px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
    padding-top: 4px;
  }
  .brand img {
    width: 155px;
    height: 52px;
  }
  .nav-beta {
    min-height: 44px;
  }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    justify-content: flex-start;
    margin: 4px 0 0;
    gap: 24px;
    border-top: 1px solid var(--line);
  }
  .nav-links > a {
    min-height: 44px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 42px;
    padding-top: 54px;
    padding-bottom: 56px;
  }
  .hero-copy {
    padding: 0;
    max-width: 580px;
  }
  .hero-copy .lead {
    max-width: 42ch;
  }
  .hero-media {
    max-width: 540px;
    width: 100%;
    justify-self: center;
  }
  .hero-phones {
    max-width: 500px;
    gap: 20px;
  }
  .hero-media > .app-screen {
    max-width: 275px;
  }
  .proof-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 11px;
    gap: 18px;
  }
  .split,
  .photo-section,
  .demo-section,
  .companion,
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .section-copy,
  .photo-copy {
    max-width: 600px;
  }
  .reverse .section-copy,
  .reverse .screen-stage {
    grid-column: auto;
    grid-row: auto;
  }
  .screen-stage {
    padding: 32px 20px;
  }
  .screen-stage > .app-screen {
    max-width: 260px;
  }
  .photo-section .photo {
    order: 2;
  }
  .photo img {
    max-height: 600px;
  }
  .closing {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .closing > div:last-child {
    justify-self: start;
    max-width: 480px;
  }
  .rule-table {
    grid-template-columns: 1fr 1fr;
    margin-top: 32px;
  }
  .guide-grid {
    margin-top: 36px;
  }
  .exercise-grid {
    gap: 18px;
    grid-template-columns: 1fr;
  }
  .exercise-grid figure {
    max-width: 480px;
    width: 100%;
    margin: auto;
  }
  .support-hero,
  .policy-hero {
    padding-top: 60px;
  }
  .policy > section {
    grid-template-columns: 28px 1fr;
    gap: 14px;
  }
  .policy h2 {
    font-size: 23px;
  }
  .footer {
    padding-block: 28px;
  }
  .footer-links {
    gap: 2px 20px;
  }
  .footer > p {
    margin-top: 0;
  }
  [id] {
    scroll-margin-top: 164px;
  }
}
@media (max-width: 600px) {
  .hero-phones {
    justify-content: center;
    padding-bottom: 0;
  }
  .hero-phones .app-screen:first-child {
    display: none;
  }
  .hero-phones .app-screen:last-child {
    flex: 0 1 285px;
  }
  .hero-phones .app-screen > img {
    border-radius: 26px;
  }
  .hero-phones figcaption {
    font-size: 11px;
  }
}
@media (max-width: 430px) {
  h1 {
    font-size: 49px;
  }
  .hero-phones {
    gap: 12px;
    padding-bottom: 0;
  }
  .hero-phones .app-screen:first-child {
    margin-top: 50px;
  }
  .hero-phones .app-screen > img {
    border-radius: 15px;
  }
  .hero-phones figcaption {
    font-size: 9px;
  }
  .hero .actions {
    gap: 16px;
  }
  .button {
    gap: 24px;
  }
  .nav-beta {
    font-size: 11px;
    padding: 0 12px;
  }
  .brand img {
    width: 140px;
    height: 46px;
  }
  .studio-bar > span {
    max-width: 140px;
  }
  .rule-table {
    grid-template-columns: 1fr;
  }
  .policy-number {
    display: none;
  }
  .policy > section {
    grid-template-columns: 1fr;
  }
  .proof-strip {
    column-gap: 16px;
  }
  .footer-links {
    width: 100%;
  }
  .app-screen > img {
    border-radius: 24px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.65s both;
  }
  .hero-media {
    animation: rise 0.8s 0.08s both;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Sculpted hardware is the hero's decorative signature, separate from app UI. */
.brand .wordmark {
  width: 180px;
  height: 66px;
  display: block;
  overflow: hidden;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-copy,
.hero-media {
  position: relative;
  z-index: 2;
}
.plate-field {
  position: absolute;
  inset: 0 0 0 auto;
  width: 76%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  opacity: 0.9;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 24%, #000 62%);
}
.plate-canvas,
.plate-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.plate-fallback {
  opacity: 0.8;
}
.plate-canvas {
  opacity: 0;
}
.field-ready .plate-canvas {
  opacity: 1;
}
.field-ready .plate-fallback {
  visibility: hidden;
}
.motion-toggle {
  position: absolute;
  bottom: 22px;
  right: var(--gutter);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-height: 44px;
  border: 1px solid #39412b;
  border-radius: 6px;
  padding: 0 13px;
  background: #080b06;
  color: #c5cbb9;
  font-family: inherit;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}
.motion-toggle[hidden] {
  display: none;
}
.motion-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.motion-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.motion-paused .hero-copy,
.motion-paused .hero-media {
  animation: none;
}
.screen-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 65%, #1b2110 0%, #0e0f12 65%);
}
.screen-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 85%;
  aspect-ratio: 1;
  top: 18%;
  left: 8%;
  border: 1px solid #758f3338;
  border-radius: 50%;
  box-shadow:
    0 0 0 32px #c8ff0005,
    0 0 0 64px #c8ff0003;
}
.screen-stage::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 1px;
  top: 24px;
  left: 24px;
  background: var(--accent);
  opacity: 0.65;
}
.rule-table > div {
  position: relative;
}
.rule-table > div::before {
  content: "";
  position: absolute;
  height: 2px;
  width: 28px;
  background: var(--accent);
  top: -1px;
  left: 0;
  transition: width 0.25s ease-out;
}
.rule-table > div:hover::before {
  width: 100%;
}
.button:active,
.nav-beta:active {
  transform: translateY(0) scale(0.98);
}
@media (min-width: 821px) and (max-width: 1100px) {
  .brand .wordmark {
    width: 145px;
    height: 60px;
  }
}
@media (max-width: 820px) {
  .brand .wordmark {
    width: 145px;
    height: 56px;
  }
  .plate-field {
    inset: auto 0 15px;
    width: 100%;
    height: 700px;
    opacity: 0.7;
    mask-image: linear-gradient(0deg, #000 85%, transparent);
  }
  .hero {
    padding-bottom: 100px;
  }
  .motion-toggle {
    bottom: 20px;
  }
}
@media (max-width: 430px) {
  .brand .wordmark {
    width: 132px;
    height: 50px;
  }
  .plate-field {
    height: 650px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plate-field .plate-fallback {
    visibility: visible;
  }
  .plate-field .plate-canvas {
    opacity: 0;
  }
  .motion-toggle {
    display: none;
  }
}

/* Each detail hero earns its own treatment; exercise motion belongs to the lift. */
.hero[data-hero="exercise"] {
  grid-template-columns: 0.95fr 1.1fr;
  gap: 30px;
}
.exercise-hero {
  width: 100%;
  max-width: 570px;
}
.exercise-hero video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #000;
}
.exercise-hero figcaption {
  font-size: 11px;
  color: var(--quiet);
  text-align: center;
  margin-top: 18px;
}
.hero[data-hero="duo"] .hero-media {
  padding-right: 25px;
}
.device-duo {
  width: 100%;
  max-width: 480px;
  position: relative;
  padding: 0 125px 65px 0;
  isolation: isolate;
}
.iphone-shell {
  position: relative;
  width: 100%;
  max-width: 290px;
  border: 4px solid #353a40;
  border-radius: 37px;
  background: #000;
  padding: 5px;
  box-shadow:
    inset 0 0 0 1px #8b9097,
    16px 25px 50px #0008;
}
.iphone-shell img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}
.iphone-shell::before {
  content: "";
  position: absolute;
  right: -7px;
  top: 23%;
  width: 3px;
  height: 45px;
  border-radius: 3px;
  background: #676d74;
}
.watch-hardware {
  --watch-width: 210px;
  position: absolute;
  right: 0;
  bottom: 110px;
  width: var(--watch-width);
  height: 320px;
  filter: drop-shadow(0 18px 25px #000b);
  container-type: inline-size;
}
.watch-band {
  position: absolute;
  width: 60%;
  height: 100%;
  left: 20%;
  border-radius: 36px;
  background: repeating-linear-gradient(0deg, #111513 0 5px, #1c211b 6px 7px);
  box-shadow: inset 1px 0 2px #71766970;
}
.watch-case {
  position: absolute;
  inset: 38px 0;
  border-radius: 49px;
  border: 5px solid #777b71;
  box-shadow:
    inset 0 0 0 3px #252826,
    0 0 0 1px #a3a697;
  background: #000;
  padding: 19px 15px 15px;
}
.watch-case::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 43px;
  width: 8px;
  height: 28px;
  border-radius: 4px;
  background: repeating-linear-gradient(0deg, #777 0 2px, #444 2px 3px);
  border-right: 2px solid #aaa;
}
.watch-ui {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.watch-status {
  font-size: 10px;
  font-size: 4.8cqi;
  text-align: center;
  color: var(--muted);
  margin-bottom: 3px;
}
.watch-exercise {
  font-size: 19px;
  font-size: 9cqi;
  font-weight: 650;
  line-height: 1.1;
}
.watch-meta {
  font-size: 12px;
  font-size: 5.7cqi;
  color: var(--muted);
  line-height: 1.3;
}
.watch-target {
  font-size: 18px;
  font-size: 8.6cqi;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.watch-log {
  display: block;
  padding: 7px 4px;
  border-radius: 10px;
  background: var(--accent);
  color: black;
  text-align: center;
  font-size: 13px;
  font-size: 6.2cqi;
  font-weight: 650;
  margin-top: 2px;
}
.watch-refresh {
  font-size: 10px;
  font-size: 4.8cqi;
  text-align: center;
  color: var(--muted);
  margin-top: auto;
  padding-top: 4px;
}
.watch-rest {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  font-size: 5.7cqi;
  color: var(--muted);
}
.watch-rest b {
  color: white;
  font-size: 19px;
  font-size: 9cqi;
  font-variant-numeric: tabular-nums;
}
.watch-phase {
  color: var(--accent);
  font-size: 12px;
  font-size: 5.7cqi;
  font-weight: 600;
}
.watch-countdown {
  font-size: 28px;
  font-size: 13.3cqi;
  line-height: 1.15;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.device-duo > figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  font-size: 11px;
  color: var(--quiet);
  line-height: 1.5;
  text-align: center;
}
.screen-stage:has(.device-duo) {
  padding-inline: 30px;
}
.hardware-phones .app-screen > img {
  border: 5px solid #353a40;
  outline: 1px solid #727983;
  outline-offset: -2px;
  border-radius: 35px;
  padding: 4px;
  box-shadow: 12px 24px 60px #0009;
}
.watch-states {
  background: var(--raised);
}
.watch-state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
}
.watch-stage {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}
.watch-stage .watch-hardware {
  position: relative;
  right: auto;
  bottom: auto;
}
.watch-state-grid h3 {
  font-size: 19px;
  margin-bottom: 14px;
}
.watch-state-grid p {
  font-size: 15px;
}
@media (min-width: 821px) and (max-width: 1100px) {
  .nav-links {
    gap: 14px;
  }
  .nav {
    gap: 20px;
  }
}
@media (max-width: 820px) {
  .hero[data-hero="exercise"] {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .hero[data-hero="duo"] .hero-media {
    padding-right: 0;
  }
  .device-duo {
    max-width: 430px;
    padding-right: 115px;
  }
  .watch-state-grid {
    gap: 25px;
  }
  .watch-state-grid .watch-hardware {
    --watch-width: 180px;
    height: 290px;
  }
  .watch-state-grid .watch-case {
    padding: 17px 12px 12px;
    border-radius: 42px;
  }
}
@media (max-width: 600px) {
  .watch-state-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .watch-state-grid figure {
    max-width: 360px;
    margin: auto;
    width: 100%;
  }
  .watch-state-grid .watch-hardware {
    --watch-width: 240px;
    height: 360px;
  }
  .watch-state-grid .watch-case {
    padding: 22px 20px;
    border-radius: 55px;
  }
  .watch-stage {
    min-height: 360px;
    margin-bottom: 20px;
  }
  .hardware-phones .app-screen:first-child {
    display: block;
    margin-top: 45px;
  }
  .hardware-phones .app-screen:last-child {
    flex: 1;
  }
  .hardware-phones .app-screen > img {
    border-width: 3px;
    border-radius: 22px;
    padding: 3px;
  }
}
@media (max-width: 430px) {
  .device-duo {
    padding-right: 75px;
    padding-bottom: 60px;
  }
  .watch-hardware {
    --watch-width: 155px;
    height: 245px;
    bottom: 100px;
    right: 0;
  }
  .watch-case {
    inset: 27px 0;
    padding: 13px 11px 10px;
    border-width: 4px;
    border-radius: 37px;
  }
  .watch-ui {
    height: 100%;
    gap: 3px;
  }
  .watch-log {
    padding: 5px 3px;
    border-radius: 7px;
  }
  .watch-band {
    border-radius: 25px;
  }
  .screen-stage:has(.device-duo) {
    padding-inline: 14px;
  }
  .iphone-shell {
    border-radius: 28px;
  }
  .iphone-shell img {
    border-radius: 20px;
  }
}

/* Gym photography carries atmosphere; native screens remain product evidence. */
.proof-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.feature-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.training-photo {
  position: relative;
  isolation: isolate;
  max-width: 1440px;
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--raised);
  overflow: hidden;
}
.training-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
}
.training-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #0e0f12ed 0%,
    #0e0f12bd 30%,
    #0e0f1220 65%,
    #0e0f1200 100%
  );
  z-index: -1;
}
.training-photo-copy {
  padding: 90px var(--gutter);
  width: 60%;
}
.training-photo .eyebrow {
  color: var(--accent);
}
.training-photo h2 {
  font-size: clamp(40px, 5.3vw, 76px);
  max-width: 12ch;
}
.training-photo p:not(.eyebrow) {
  max-width: 30ch;
  color: #e0e2e5;
}
.training-photo .text-link {
  color: var(--accent);
}
.photo-edge {
  position: absolute;
  right: 28px;
  bottom: 28px;
  font:
    10px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.16em;
  color: #e4e7e8;
}
.training-photo.compact {
  min-height: 540px;
}
.equipment-rack {
  display: flex;
  gap: 10px;
  margin: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.equipment-rack figure {
  flex: 1;
  min-width: 0;
}
.equipment-art {
  mix-blend-mode: lighten;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.equipment-rack figcaption {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}
.section-art {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 0 26px -8px;
}
.photo-section {
  background: var(--raised);
}
.photo-section .equipment-rack {
  border-color: #34383f;
}
@media (max-width: 820px) {
  .training-photo,
  .training-photo.compact {
    min-height: 720px;
    align-items: flex-end;
  }
  .training-photo > img {
    object-position: 66% top;
  }
  .training-photo::before {
    background: linear-gradient(
      0deg,
      #0e0f12 0%,
      #0e0f12eb 18%,
      #0e0f1260 48%,
      #0e0f1200 72%
    );
  }
  .training-photo-copy {
    width: 100%;
    padding: 280px var(--gutter) 68px;
  }
  .training-photo h2 {
    max-width: 15ch;
  }
  .photo-edge {
    right: auto;
    left: var(--gutter);
    bottom: 20px;
    font-size: 9px;
  }
  .section-art {
    width: 90px;
    height: 90px;
  }
}
@media (max-width: 430px) {
  .training-photo,
  .training-photo.compact {
    min-height: 690px;
  }
  .training-photo > img {
    height: 470px;
    object-position: 67% top;
  }
  .training-photo::before {
    height: 470px;
    background: linear-gradient(0deg, #0e0f12 0%, #0e0f12bb 18%, #0e0f1200 58%);
  }
  .training-photo-copy {
    padding-top: 320px;
  }
  .training-photo h2 {
    font-size: 40px;
  }
  .proof-strip > span {
    gap: 8px;
  }
  .feature-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
}

/* iPhone Duo is one continuous inner display with a central book hinge. */
.fold-feature {
  background: var(--raised);
  border-block: 1px solid var(--line);
}
.fold-feature-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 48px;
}
.fold-feature-heading .eyebrow,
.fold-page-hero > .eyebrow {
  color: var(--accent);
}
.fold-feature-heading h2 {
  margin-bottom: 0;
}
.foldable {
  width: 100%;
  max-width: 1050px;
  margin: auto;
}
.fold-controls {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fold-controls legend {
  float: left;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  margin-right: 20px;
  line-height: 44px;
}
.fold-controls label {
  position: relative;
  display: block;
  cursor: pointer;
}
.fold-controls input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.fold-controls label > span {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 86px;
  padding: 10px 16px;
  border: 1px solid #3a3f44;
  border-radius: 30px;
  color: var(--muted);
  font-size: 13px;
}
.fold-controls input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.fold-controls input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.fold-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5;
  perspective: 1600px;
  display: grid;
  place-items: center;
}
.fold-device {
  text-align: left;
  position: relative;
  display: flex;
  width: 94%;
  aspect-ratio: 1.421;
  transform-style: preserve-3d;
  container-type: inline-size;
  color: #fff;
  transition:
    opacity 0.35s,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.fold-half {
  width: 50%;
  height: 100%;
  padding: 8px;
  background: linear-gradient(
    115deg,
    #969a9e 0%,
    #3a3e43 10%,
    #141719 52%,
    #73797e 95%
  );
  border: 1px solid #91979b;
  box-shadow:
    inset 0 0 0 2px #151719,
    0 30px 35px #0007;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  backface-visibility: hidden;
}
.fold-left {
  transform-origin: right center;
  border-radius: 36px 7px 7px 36px;
  padding-right: 1px;
}
.fold-right {
  transform-origin: left center;
  border-radius: 7px 36px 36px 7px;
  padding-left: 1px;
}
.fold-inner {
  height: 100%;
  width: 100%;
  display: flex;
  overflow: hidden;
  background: #000;
  font-size: 1.5cqi;
  line-height: 1.4;
}
.fold-left .fold-inner {
  border-radius: 28px 0 0 28px;
}
.fold-right .fold-inner {
  border-radius: 0 28px 28px 0;
}
.fold-hinge {
  position: absolute;
  top: 1%;
  bottom: 1%;
  width: 4px;
  left: calc(50% - 2px);
  background: linear-gradient(90deg, #0009, #92999e66, #0009);
  pointer-events: none;
}
.foldable:has(input[value="angled"]:checked) .fold-left {
  transform: rotateY(23deg);
}
.foldable:has(input[value="angled"]:checked) .fold-right {
  transform: rotateY(-23deg);
}
.foldable:has(input[value="closed"]:checked) .fold-device {
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94);
}
.fold-sidebar {
  width: 36%;
  background: #0e0f12;
  padding: 4cqi 1.2cqi 2cqi;
  display: flex;
  flex-direction: column;
  gap: 1.6cqi;
  flex-shrink: 0;
}
.fold-app-name {
  font-size: 1.7cqi;
  font-weight: 650;
  margin-bottom: 1.6cqi;
}
.fold-sidebar > span:not(.fold-app-name) {
  padding: 0.9cqi;
  border-radius: 0.7cqi;
  color: var(--muted);
}
.fold-sidebar > .selected {
  background: #c8ff001c;
  color: var(--accent) !important;
}
.fold-list {
  flex: 1;
  min-width: 0;
  padding: 4cqi 1.4cqi 2cqi;
}
.fold-list > strong {
  font-size: 2.7cqi;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 1.8cqi;
}
.fold-search {
  display: block;
  padding: 1cqi;
  border-radius: 0.8cqi;
  background: #202329;
  color: #c0c4cc;
  font-size: 1.3cqi;
  white-space: nowrap;
}
.fold-filter {
  display: flex;
  gap: 1cqi;
  color: var(--accent);
  padding: 1.5cqi 0.2cqi;
  font-size: 1.3cqi;
}
.fold-filter > span {
  color: var(--muted);
}
.fold-row {
  display: flex;
  align-items: center;
  gap: 0.8cqi;
  padding: 1cqi 0.5cqi;
  border-bottom: 1px solid #26292f;
  font-size: 1.35cqi;
}
.fold-row.selected {
  background: #c8ff0015;
  border-radius: 0.7cqi;
}
.fold-row img {
  width: 4.8cqi;
  height: 4.8cqi;
  object-fit: contain;
  flex-shrink: 0;
}
.fold-row small {
  display: block;
  color: var(--muted);
  font-size: 1.1cqi;
  margin-top: 0.4cqi;
}
.fold-detail {
  width: 100%;
  padding: 4cqi 2.4cqi;
}
.fold-detail-title {
  font-size: 2.8cqi;
  line-height: 1.15;
  letter-spacing: -0.025em;
  display: block;
  margin-bottom: 3cqi;
}
.fold-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6cqi;
}
.fold-summary > img {
  width: 100%;
  align-self: start;
}
.fold-summary > div {
  display: flex;
  flex-direction: column;
  gap: 1.7cqi;
}
.fold-summary small {
  display: block;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 1cqi;
  letter-spacing: 0.04em;
}
.fold-summary span {
  display: block;
  margin-top: 0.4cqi;
  font-size: 1.35cqi;
}
.fold-summary > div > div:nth-child(3) span {
  color: var(--accent);
}
.fold-related {
  display: flex;
  flex-direction: column;
  gap: 1cqi;
  margin-top: 3.4cqi;
  color: var(--muted);
  font-size: 1.35cqi;
}
.fold-related small {
  font-size: 1.1cqi;
  letter-spacing: 0.07em;
}
.fold-technique {
  display: block;
  margin-top: 3.6cqi;
  color: var(--accent);
  font-size: 1.5cqi;
  font-weight: 600;
}
.fold-cover {
  text-align: left;
  position: absolute;
  width: 43%;
  max-height: 96%;
  aspect-ratio: 466/678;
  border: 7px solid #454a50;
  border-radius: 35px;
  box-shadow:
    inset 0 0 0 2px #9ba0a4,
    12px 18px 0 -5px #171a1e,
    14px 19px 0 -5px #777d83,
    0 25px 40px #0009;
  background: #000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94);
  transition:
    opacity 0.35s,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  container-type: inline-size;
}
.foldable:has(input[value="closed"]:checked) .fold-cover {
  text-align: left;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.fold-cover-island {
  position: absolute;
  width: 23%;
  height: 3%;
  background: #191b1d;
  border-radius: 20px;
  top: 2.6%;
  left: 38.5%;
}
.fold-cover-time {
  position: absolute;
  top: 2%;
  left: 6%;
  font-size: 3cqi;
}
.fold-cover-content {
  padding: 7% 2% 0;
}
.fold-cover .fold-sidebar {
  display: none;
}
.fold-cover .fold-list {
  padding: 7cqi 4cqi;
}
.fold-cover .fold-list > strong {
  font-size: 7cqi;
  margin-bottom: 4cqi;
}
.fold-cover .fold-search {
  font-size: 3.5cqi;
  padding: 2.5cqi;
  border-radius: 2cqi;
}
.fold-cover .fold-filter {
  font-size: 3.5cqi;
  padding: 4cqi 0;
}
.fold-cover .fold-row {
  font-size: 3.7cqi;
  padding: 3cqi 1cqi;
  gap: 3cqi;
}
.fold-cover .fold-row img {
  width: 12cqi;
  height: 12cqi;
}
.fold-cover .fold-row small {
  font-size: 3cqi;
}
.fold-cover-tabs {
  display: flex;
  justify-content: space-around;
  position: absolute;
  bottom: 3%;
  left: 4%;
  right: 4%;
  font-size: 3cqi;
  color: var(--muted);
}
.fold-cover-tabs b {
  color: var(--accent);
}
.foldable > figcaption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--quiet);
  text-align: center;
  margin-top: 30px;
}
.fold-feature > .note {
  text-align: center;
  margin: 20px auto 0;
}
.fold-page-hero {
  text-align: center;
  padding-top: 70px;
}
.fold-page-hero h1 {
  font-size: clamp(52px, 7vw, 100px);
}
.fold-page-hero > .lead {
  max-width: 46ch;
  margin: 0 auto 50px;
}
.fold-page-hero > .note {
  margin: 22px auto 0;
}
.fold-explanation {
  row-gap: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}
.fold-explanation > .eyebrow,
.fold-explanation > h2,
.fold-explanation > .lead {
  grid-column: 1;
}
.fold-explanation .feature-list {
  grid-column: 2;
  grid-row: 1 / 4;
  margin: 0;
}
@media (min-width: 821px) and (max-width: 1200px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin: 0;
    border-top: 1px solid var(--line);
  }
  .nav-beta {
    margin-left: auto;
  }
}
@media (max-width: 820px) {
  .fold-feature-heading,
  .fold-explanation {
    row-gap: 0;
    display: block;
  }
  .fold-feature-heading h2 {
    margin-bottom: 25px;
  }
  .fold-controls legend {
    float: none;
    width: 100%;
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.5;
  }
  .fold-controls {
    flex-wrap: wrap;
  }
  .fold-half {
    padding: 5px;
    border-radius: 20px;
  }
  .fold-left {
    padding-right: 1px;
    border-radius: 20px 4px 4px 20px;
  }
  .fold-right {
    padding-left: 1px;
    border-radius: 4px 20px 20px 4px;
  }
  .fold-left .fold-inner {
    border-radius: 14px 0 0 14px;
  }
  .fold-right .fold-inner {
    border-radius: 0 14px 14px 0;
  }
  .fold-cover {
    text-align: left;
    border-width: 4px;
    border-radius: 20px;
  }
  .foldable > figcaption {
    font-size: 11px;
    margin-top: 28px;
  }
  .fold-explanation .feature-list {
    margin-top: 35px;
  }
}
@media (max-width: 430px) {
  .fold-controls label > span {
    min-width: 72px;
    padding-inline: 14px;
  }
  .fold-half {
    padding: 3px;
  }
  .fold-left {
    padding-right: 1px;
    border-radius: 13px 3px 3px 13px;
  }
  .fold-right {
    padding-left: 1px;
    border-radius: 3px 13px 13px 3px;
  }
  .fold-left .fold-inner {
    border-radius: 9px 0 0 9px;
  }
  .fold-right .fold-inner {
    border-radius: 0 9px 9px 0;
  }
  .fold-cover {
    text-align: left;
    border-radius: 14px;
    border-width: 3px;
  }
  .fold-cover-content {
    padding-top: 4%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fold-device,
  .fold-half,
  .fold-cover {
    text-align: left;
    transition: none;
  }
}

/* Duo scenes: current Library, plus explicitly labeled workout research concepts. */
.duo-story-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding-block: 65px 40px;
  background: radial-gradient(
    ellipse at 76% 64%,
    #1c2115 0%,
    #0b0d0c 26%,
    #000 65%
  );
}
.duo-story-copy {
  padding-bottom: 65px;
}
.duo-story-copy h1 {
  font-size: clamp(48px, 5.3vw, 80px);
}
.duo-story-copy .eyebrow {
  color: var(--accent);
}
.duo-story-copy .lead {
  max-width: 33ch;
  font-size: clamp(17px, 1.45vw, 21px);
}
.duo-chapters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 32px;
}
.duo-chapters a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-size: 14px;
}
.duo-chapters a:hover {
  color: var(--accent);
}
.duo-chapters span {
  color: var(--quiet);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.duo-story-copy .motion-toggle {
  position: static;
  margin-top: 24px;
}
.duo-tabletop {
  width: 100%;
  min-width: 0;
}
.tabletop-controls {
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tabletop-controls legend {
  float: none;
  text-align: center;
  width: 100%;
  margin: 0 0 6px;
  line-height: 1.5;
}
.tabletop-controls label > span {
  min-width: 100px;
}
.tabletop-stage {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
}
.tabletop-device {
  position: absolute;
  top: 2%;
  left: 12%;
  width: 76%;
  container-type: inline-size;
  perspective: 1400px;
  color: #fff;
}
.tabletop-upper,
.tabletop-base {
  width: 100%;
  aspect-ratio: 669 / 475;
  padding: 6px;
  background: linear-gradient(
    115deg,
    #969a9e,
    #34383b 12%,
    #151719 60%,
    #70767a
  );
  border: 1px solid #7d858a;
  box-shadow:
    inset 0 0 0 2px #141618,
    0 20px 40px #0008;
  position: relative;
}
.tabletop-upper {
  border-radius: 32px 32px 5px 5px;
  transform-origin: center bottom;
  transform: rotateX(-8deg);
  padding-bottom: 2px;
  z-index: 1;
}
.tabletop-base {
  border-radius: 5px 5px 32px 32px;
  transform-origin: center top;
  transform: rotateX(55deg);
  padding-top: 2px;
  box-shadow:
    inset 0 0 0 2px #141618,
    0 14px 0 -5px #42484d,
    0 28px 38px #000b;
}
.tabletop-base::before {
  content: "";
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, #272b2e, #838b90, #272b2e);
  top: -2px;
  left: 3%;
  right: 3%;
}
.tabletop-screen {
  height: 100%;
  overflow: hidden;
  background: #000;
}
.tabletop-upper .tabletop-screen {
  border-radius: 26px 26px 0 0;
}
.tabletop-base .tabletop-screen {
  border-radius: 0 0 26px 26px;
  padding: 4cqi 5cqi;
  background: #101215;
}
.tabletop-status {
  display: flex;
  justify-content: space-between;
  padding: 3cqi 4cqi 1cqi;
  align-items: center;
  font-size: 1.8cqi;
}
.tabletop-status b {
  font-size: 2.2cqi;
  font-weight: 550;
}
.tabletop-status > span:last-child {
  color: var(--accent);
}
.duo-rest {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 3cqi 0;
}
.duo-rest-next {
  font-size: 2.4cqi;
  font-weight: 600;
}
.duo-rest-prescription {
  font-size: 1.8cqi;
  color: var(--muted);
  margin-top: 0.7cqi;
}
.duo-timer {
  width: 38cqi;
  height: 38cqi;
  position: relative;
  margin: 1cqi 0;
}
.duo-timer svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #343932;
  stroke-width: 3;
}
.duo-timer .duo-timer-arc {
  stroke: var(--accent);
  stroke-dasharray: 75 100;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}
.duo-timer > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.duo-timer b {
  font-size: 12cqi;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.duo-timer span {
  color: var(--muted);
  font-size: 2cqi;
  letter-spacing: 0.1em;
  margin-top: 2cqi;
}
.duo-skip {
  background: #232722;
  color: var(--accent);
  padding: 1.4cqi 11cqi;
  border-radius: 1.7cqi;
  font-size: 2cqi;
}
.tabletop-working {
  display: none;
  align-items: center;
  height: 85%;
}
.tabletop-working img {
  width: 58%;
  height: 100%;
  object-fit: contain;
}
.tabletop-working > div {
  display: flex;
  flex-direction: column;
  gap: 2.5cqi;
  padding-right: 3cqi;
}
.tabletop-working span {
  color: var(--accent);
  font-size: 1.5cqi;
  letter-spacing: 0.06em;
}
.tabletop-working strong {
  font-size: 4.2cqi;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.tabletop-working b {
  font-size: 3cqi;
}
.tabletop-working small {
  color: var(--muted);
  font-size: 2cqi;
}
.duo-tabletop:has(input[value="set"]:checked) .tabletop-rest {
  display: none;
}
.duo-tabletop:has(input[value="set"]:checked) .tabletop-working {
  display: flex;
}
.duo-set-heading {
  display: flex;
  justify-content: space-between;
  gap: 2cqi;
  align-items: center;
}
.duo-set-heading strong {
  font-size: 3.6cqi;
  letter-spacing: -0.03em;
}
.duo-set-heading > span {
  color: var(--quiet);
  font-size: 2.2cqi;
  white-space: nowrap;
}
.duo-target {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.6cqi 0;
}
.duo-target b {
  font-size: 5.5cqi;
  font-weight: 550;
}
.duo-target small {
  font-size: 3.3cqi;
  color: var(--muted);
}
.duo-target > span {
  color: var(--accent);
  font-size: 4cqi;
}
.duo-set-history {
  display: flex;
  flex-direction: column;
  gap: 1.1cqi;
  font-size: 2.5cqi;
}
.duo-set-history > span {
  display: grid;
  grid-template-columns: 6cqi 1fr 7cqi;
  padding: 1.8cqi 2cqi;
  align-items: center;
  border-radius: 1cqi;
  color: var(--quiet);
}
.duo-set-history b {
  font-weight: 450;
  color: var(--muted);
}
.duo-set-history i {
  font-style: normal;
  text-align: right;
  font-size: 2cqi;
}
.duo-set-history .current {
  background: #c8ff0010;
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.duo-set-history .current b {
  color: #fff;
}
.duo-log {
  display: flex;
  justify-content: center;
  gap: 3cqi;
  margin-top: 2.7cqi;
  padding: 2.4cqi;
  border-radius: 2cqi;
  background: var(--accent);
  color: #080a00;
  font-size: 3cqi;
  font-weight: 650;
}
.duo-tabletop > figcaption,
.duo-wide-workout > figcaption {
  text-align: center;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.65;
  margin-top: 12px;
}
.duo-status {
  display: block;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.duo-explainer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--line);
}
.duo-explainer > div {
  max-width: 620px;
}
.duo-explainer > .duo-status {
  margin-top: 10px;
}
.duo-explainer p:last-child {
  margin-bottom: 0;
}
.duo-workout-section {
  background: var(--raised);
  border-block: 1px solid var(--line);
}
.duo-library-section {
  padding-bottom: 60px;
}
.duo-wide-workout {
  width: 100%;
  max-width: 1050px;
  margin: auto;
}
.workout-wide-device {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1.421;
  border: 2px solid #7c8389;
  padding: 8px;
  background: linear-gradient(130deg, #737a80, #1a1c1f 30%, #52585c);
  border-radius: 34px;
  box-shadow:
    inset 0 0 0 2px #111,
    0 20px 55px #0006;
}
.workout-wide-ui {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
}
.workout-wide-list {
  width: 35%;
  flex-shrink: 0;
  background: #101215;
  padding: 4cqi 1.8cqi;
}
.duo-screen-kicker {
  color: var(--quiet);
  font-size: 1cqi;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.2cqi;
}
.workout-wide-list > strong {
  font-size: 2.7cqi;
  letter-spacing: -0.04em;
}
.duo-workout-count {
  display: block;
  font-size: 1.1cqi;
  color: var(--muted);
  margin: 1cqi 0 4cqi;
}
.workout-wide-row {
  display: flex;
  align-items: center;
  gap: 0.9cqi;
  padding: 1.5cqi 0.6cqi;
  margin-bottom: 0.6cqi;
  border-bottom: 1px solid var(--line);
  border-radius: 0.6cqi;
}
.workout-wide-row.selected {
  background: #c8ff0017;
  box-shadow: inset 2px 0 var(--accent);
}
.workout-wide-row img {
  width: 5.5cqi;
  height: 5.5cqi;
  object-fit: contain;
}
.workout-wide-row b {
  display: block;
  font-size: 1.4cqi;
  font-weight: 550;
}
.workout-wide-row span {
  display: block;
  font-size: 1.1cqi;
  color: var(--muted);
  margin-top: 0.5cqi;
}
.workout-wide-row i {
  color: var(--accent);
  font-size: 1.1cqi;
  font-style: normal;
  margin-left: auto;
}
.duo-add-exercise {
  color: var(--accent);
  display: block;
  font-size: 1.4cqi;
  padding: 2cqi 1cqi;
}
.workout-wide-current {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 3.5cqi 2.6cqi 2cqi;
  display: flex;
  flex-direction: column;
}
.workout-wide-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.6cqi;
  gap: 1cqi;
}
.workout-wide-top > span:last-child {
  color: var(--accent);
  font-size: 1cqi;
}
.workout-wide-current video {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  margin-block: 0.8cqi;
}
.workout-wide-entry {
  background: #181a1e;
  padding: 1.6cqi 2cqi;
  border-radius: 1.8cqi;
}
.workout-wide-entry .duo-set-heading strong {
  font-size: 1.7cqi;
}
.workout-wide-entry .duo-set-heading > span {
  font-size: 1.2cqi;
}
.workout-wide-entry .duo-target {
  padding: 1.3cqi 0 0.5cqi;
}
.workout-wide-entry .duo-target b {
  font-size: 2.7cqi;
}
.workout-wide-entry .duo-target small {
  font-size: 1.5cqi;
}
.workout-wide-entry .duo-target > span {
  font-size: 2cqi;
}
.workout-wide-entry .duo-set-history {
  display: none;
}
.workout-wide-entry .duo-log {
  font-size: 1.4cqi;
  padding: 1cqi;
  margin-top: 1cqi;
  border-radius: 0.8cqi;
}
.workout-wide-crease {
  position: absolute;
  left: calc(50% - 2px);
  top: 1.5%;
  bottom: 1.5%;
  width: 4px;
  background: linear-gradient(90deg, #0004, #ffffff06, #0004);
  pointer-events: none;
}
.duo-wide-workout > figcaption {
  margin-top: 28px;
}
@media (max-width: 820px) {
  .duo-story-hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
    gap: 30px;
  }
  .duo-story-copy {
    padding-bottom: 0;
  }
  .duo-story-copy h1 {
    font-size: clamp(48px, 8vw, 70px);
  }
  .duo-story-copy .lead {
    max-width: 42ch;
  }
  .duo-chapters {
    margin-top: 18px;
  }
  .duo-tabletop {
    max-width: 620px;
    margin: auto;
  }
  .duo-explainer {
    display: block;
  }
  .duo-explainer > .duo-status {
    margin-bottom: 25px;
  }
  .tabletop-upper {
    border-radius: 24px 24px 4px 4px;
    padding: 4px 4px 1px;
  }
  .tabletop-base {
    border-radius: 4px 4px 24px 24px;
    padding: 1px 4px 4px;
  }
  .tabletop-upper .tabletop-screen {
    border-radius: 19px 19px 0 0;
  }
  .tabletop-base .tabletop-screen {
    border-radius: 0 0 19px 19px;
  }
  .workout-wide-device {
    border-radius: 20px;
    padding: 4px;
  }
  .workout-wide-ui {
    border-radius: 14px;
  }
}
@media (max-width: 430px) {
  .tabletop-upper {
    border-radius: 18px 18px 3px 3px;
  }
  .tabletop-base {
    border-radius: 3px 3px 18px 18px;
  }
  .tabletop-upper .tabletop-screen {
    border-radius: 13px 13px 0 0;
  }
  .tabletop-base .tabletop-screen {
    border-radius: 0 0 13px 13px;
  }
  .duo-tabletop > figcaption,
  .duo-wide-workout > figcaption {
    font-size: 11px;
  }
}
