.product-page {
  --product-gutter: 48px;
  --product-space: clamp(64px, 7vw, 108px);
  --device-shadow: 0 22px 45px #25272429, 0 3px 9px #25272424;
  --studio: #1a1b19;
}

.product-page :is(.button, .text-link) {
  font-size: 13px;
}

.product-page .product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 60px);
  width: min(1320px, calc(100% - 2 * var(--product-gutter)));
  min-height: max(570px, calc(100svh - 88px));
  margin-inline: auto;
  padding: 12px 0 24px;
}

.workout-opening {
  align-self: center;
  padding-block: 36px;
}

.workout-opening h1 {
  font-size: clamp(42px, 4.65vw, 76px);
  font-weight: 600;
  letter-spacing: -.063em;
  line-height: 1;
}

.workout-opening em {
  color: #a33c19;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.workout-opening > p {
  max-width: 42ch;
  margin-top: 22px;
  font-size: clamp(15px, 1.2vw, 17px);
  text-wrap: pretty;
}

.workout-opening .actions {
  gap: 8px 24px;
  margin-top: 22px;
}

.workout-hero-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: 28px;
  border-radius: 8px;
  background:
    linear-gradient(142deg, transparent 53%, #c35a292e 53.15%, transparent 53.4%),
    linear-gradient(142deg, transparent 34%, #a7492838 46%, #ed6b2942 53%, transparent 72%),
    radial-gradient(ellipse at 62% 45%, #553729, transparent 72%),
    var(--studio);
}

.workout-composition {
  width: 100%;
}

.workout-device {
  position: relative;
  margin-inline: auto;
  padding: 5px;
  border: 1px solid #454641;
  border-radius: 25px;
  background: var(--dark);
  box-shadow: var(--device-shadow);
}

.workout-hero-visual .workout-device {
  width: min(72%, clamp(205px, 33svh, 315px));
  border-color: #867060;
  box-shadow: 0 38px 55px #0c0907b8, 0 4px 14px #0c0907a6;
}

/* The window removes the prototype's presentation canvas, keeping the app viewport intact. */
.workout-capture {
  --source-w: 1170;
  --source-h: 2532;
  --crop-x: 0;
  --crop-y: 0;
  --crop-w: var(--source-w);
  --crop-h: var(--source-h);
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--crop-w) / var(--crop-h);
  border-radius: 19px;
  background: var(--paper);
}

.workout-capture > img {
  position: absolute;
  top: calc(-100% * var(--crop-y) / var(--crop-h));
  left: calc(-100% * var(--crop-x) / var(--crop-w));
  width: calc(100% * var(--source-w) / var(--crop-w));
  height: calc(100% * var(--source-h) / var(--crop-h));
  max-width: none;
}

.product-page #demonstracao {
  padding-block: var(--product-space);
  border-top: 1px solid var(--line);
}

.workout-demo {
  position: relative;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.workout-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(30px, 5.2vw, 78px);
}

.workout-demo-intro h2,
.workout-personal-copy h2 {
  max-width: 14ch;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1;
  text-wrap: balance;
}

.workout-demo-intro > p,
.workout-personal-copy > p {
  max-width: 43ch;
  margin-top: 20px;
  font-size: 16px;
  text-wrap: pretty;
}

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

.workout-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 440px;
  margin-top: 28px;
}

.workout-controls label {
  position: relative;
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 4px 6px;
  border-radius: 4px 4px 0 0;
  border-bottom: 2px solid var(--line);
  color: var(--ink);
  text-align: center;
  line-height: 1.25;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.workout-controls label:hover {
  background: var(--sage);
}

.workout-controls label:has(#passo-rotina:checked),
.workout-controls label:has(#passo-series:checked),
.workout-controls label:has(#passo-historico:checked) {
  border-bottom-color: var(--focus);
  font-weight: 600;
}

.workout-choice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

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

.workout-step {
  display: none;
  min-height: 540px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  padding: clamp(20px, 3vw, 44px);
  border: 1px solid #d9d8cf;
  border-radius: 8px;
  background: #edede7;
}

.workout-demo:has(#passo-rotina:checked) #tela-rotina,
.workout-demo:has(#passo-series:checked) #tela-series,
.workout-demo:has(#passo-historico:checked) #tela-historico {
  display: grid;
  animation: workout-panel-in 240ms ease-out both;
}

@keyframes workout-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.workout-step h3 {
  font-size: clamp(25px, 2.45vw, 36px);
  line-height: 1.08;
  text-wrap: balance;
}

.workout-step p {
  max-width: 29ch;
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  text-wrap: pretty;
}

.workout-step .workout-device {
  width: min(100%, 218px);
}

.workout-capture--solo {
  --source-w: 1400;
  --source-h: 1800;
  --crop-x: 310;
  --crop-w: 779;
}

.workout-capture--records {
  --source-w: 390;
  --source-h: 844;
}

.workout-personal {
  border-block: 1px solid #dbdad1;
  background: #efeee6;
  padding-block: var(--product-space);
}

.workout-personal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.workout-personal-copy {
  grid-column: 2;
  grid-row: 1;
}

.workout-personal-copy h2 em {
  display: inline-block;
}

.workout-personal-label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #a33c19;
}

.workout-personal-visual {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-items: center;
  min-height: 610px;
  padding: 32px;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 18%, #4b362b, transparent 78%), var(--studio);
}

.workout-personal-visual .workout-device {
  width: min(100%, 255px);
  border-color: #686961;
}

.workout-float {
  position: absolute;
  top: var(--float-top);
  left: var(--float-center, 50%);
  translate: -50% 0;
  width: min(var(--float-width), calc(100% + var(--float-overhang, 64px)));
  max-width: none;
  height: auto;
}

.workout-float--proximo-treino {
  --float-width: 123%;
  --float-top: 14%;
}

.workout-float--rotina {
  --float-width: 130%;
  --float-top: 8%;
}

.workout-float--series {
  --float-width: 123%;
  --float-top: 41%;
}

.workout-float--recorde {
  --float-width: 125%;
  --float-top: 16%;
}

.workout-personal-visual .workout-float {
  --float-overhang: 56px;
}

.workout-float--ciclo-data {
  --float-width: 132%;
  --float-top: 22%;
  --float-center: 47%;
}

.workout-float--ciclo-oito-semanas {
  --float-width: 126%;
  --float-top: 47.5%;
  --float-center: 54%;
}

.workout-personal-copy h3 {
  margin-top: 24px;
  font-size: clamp(20px, 2vw, 27px);
}

.workout-personal-copy h3 + p { margin-top: 8px; }

.workout-personal-copy .text-link {
  margin-top: 22px;
}

.workout-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
  align-items: end;
  gap: 26px 54px;
  padding-block: clamp(64px, 7vw, 100px);
}

.workout-closing h2 {
  font-size: clamp(38px, 4.5vw, 66px);
}

.workout-closing p {
  max-width: 39ch;
  font-size: 14px;
}

.product-page :is(.footer-main > div, .footer-bottom) {
  font-size: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .workout-opening[data-enter] {
    animation: workout-enter 360ms ease-out both;
  }

  .workout-float--proximo-treino {
    animation: workout-lift 580ms 120ms cubic-bezier(.2, .7, .2, 1) both;
  }
}

@keyframes workout-lift {
  from { opacity: 0; transform: translateY(9%) scale(.86); }
  24% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

@keyframes workout-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .product-page { --product-gutter: 32px; }

  .workout-step {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
  }

  .workout-step .workout-device { width: min(100%, 190px); }
}

@media (max-width: 720px) {
  .product-page {
    --product-gutter: 20px;
    --product-space: 56px;
  }

  .product-page .product-hero,
  .workout-demo-layout,
  .workout-personal-layout,
  .workout-closing {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .product-page .product-hero {
    gap: 25px;
    padding-block: 20px 24px;
  }

  .workout-opening { padding: 0; }

  .workout-opening h1 { font-size: clamp(34px, 9.35vw, 58px); }

  .workout-opening > p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .workout-opening .actions { gap: 8px 16px; margin-top: 17px; }

  .product-page .button { gap: 15px; padding-inline: 14px; }

  .workout-opening .text-link { gap: 8px; }

  .workout-hero-visual { padding-block: 24px 30px; }

  .workout-hero-visual .workout-device {
    width: clamp(164px, 53%, 232px);
  }

  .workout-demo-layout,
  .workout-personal-layout { gap: 24px; }

  .workout-controls { margin-top: 20px; }

  .workout-step { min-height: 0; gap: 22px; }

  .workout-step .workout-device { width: min(100%, 207px); }

  .workout-personal-copy,
  .workout-personal-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .workout-personal-visual { min-height: 0; padding: 25px; }

  .workout-personal-visual .workout-device { width: min(100%, 214px); }

  .workout-personal-visual .workout-float {
    --float-overhang: 48px;
    --float-center: 50%;
  }

  .product-page .footer-main > div { gap: 4px 16px; }
}

@media (max-width: 365px) {
  .workout-opening .actions { gap: 6px 12px; }
  .workout-opening .actions :is(.button, .text-link) { font-size: 12px; }
  .workout-opening .actions .button { gap: 10px; padding-inline: 12px; }
}


/* The Solo preview follows the same phone dimensions as the other hero composition. */
.solo-preview { position: relative; }
.solo-device { container-type: inline-size; }

.solo-screen {
  --solo-screen-gutter: 4.5cqw;
  --solo-card-gutter: 4.6cqw;
  display: flex;
  flex-direction: column;
  min-height: 216.4cqw;
  border-radius: 19px;
  background: #f8f7f4;
  color: #202426;
  font-size: 4.15cqw;
  line-height: 1.35;
}

.solo-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 13.4cqw;
  padding-inline: var(--solo-screen-gutter);
}

.solo-brand { display: block; width: 18.5cqw; overflow: hidden; }
.solo-brand img { width: 121.7%; max-width: none; height: auto; margin-left: -19.8%; }
.solo-toolbar > svg { width: 4.8cqw; height: 4.8cqw; }
.solo-toolbar > svg:last-child { justify-self: end; }

.solo-home-content { padding: 0 var(--solo-screen-gutter) 4cqw; }

.solo-greeting {
  margin: 4.2cqw 0 6.3cqw;
  color: inherit;
  font-size: 6.75cqw;
  font-weight: 800;
  letter-spacing: -.045em;
}

.solo-preview .workout-float--proximo-treino {
  position: relative;
  z-index: 1;
  top: auto;
  --float-width: 126%;
  overflow: hidden;
  border: 1px solid #3e3936;
  border-radius: 7px;
  background: #232729;
  color: white;
  box-shadow: 0 10px 24px #100b0985, 0 3px 6px #100b0970;
}

.solo-stage {
  position: relative;
  isolation: isolate;
  min-height: 42cqw;
  overflow: hidden;
  padding: 4cqw var(--solo-card-gutter);
}

.solo-stage::before {
  position: absolute;
  z-index: -1;
  right: -12cqw;
  bottom: -27cqw;
  width: 58cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f1efe9;
  content: "";
}

.solo-kicker {
  position: relative;
  z-index: 1;
  color: #e8e4dc;
  font: 700 3.35cqw/1.25 ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.solo-stage h2 {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 2cqw;
  color: inherit;
  font-size: 7.8cqw;
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.045em;
}

.solo-athlete {
  position: absolute;
  right: .8cqw;
  bottom: 1.15cqw;
  width: 40cqw;
  height: auto;
}

.solo-ecg {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 9cqw;
}

.solo-ecg path {
  stroke: var(--accent);
  stroke-width: clamp(1px, .66cqw, 2px);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solo-workout-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8cqw 2cqw;
  padding: 3.4cqw var(--solo-card-gutter);
}

.solo-meta { color: #eeeae4; }
.solo-meta strong { color: white; }
.solo-routine { grid-column: 1 / -1; color: #c8c9c7; font-size: 3.45cqw; }

.solo-muscles {
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  padding-inline-end: .6cqw;
  font-size: 3.65cqw;
  font-weight: 700;
}

.solo-muscles::after,
.solo-insight::after {
  width: 1.45cqw;
  height: 1.45cqw;
  flex: none;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  rotate: 45deg;
  content: "";
}

.solo-start {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 1.3cqw;
  min-height: 12.4cqw;
  margin-top: 2.6cqw;
  border-radius: 2.5cqw;
  background: var(--accent);
  color: #181a18;
  font-size: 4.6cqw;
  font-weight: 750;
}

.solo-start svg { width: 4.7cqw; height: 4.7cqw; }

.solo-week { margin-block: 6.7cqw 6cqw; }
.solo-week h3 { max-width: 82%; color: #3e474d; font-size: 6.35cqw; font-weight: 750; line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
.solo-week h3 strong { margin-inline-end: .12em; color: #202426; white-space: nowrap; }

.solo-week ol {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 5.2cqw 0 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.solo-day:nth-child(-n+3)::after {
  grid-area: 3 / 1;
  width: 100%;
  height: 1px;
  align-self: center;
  justify-self: start;
  translate: 50% 0;
  background: #8b8f89;
  content: "";
}

.solo-day { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.15cqw; }
.solo-day > span:first-child { text-transform: uppercase; font-size: 3.35cqw; font-weight: 650; }
.solo-day--hoje { color: #a3360f; }
.solo-day--futuro { color: #666963; }
.solo-day-marker {
  position: relative;
  z-index: 1;
  display: grid;
  grid-area: 3 / 1;
  width: 5.7cqw;
  height: 5.7cqw;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #f8f7f4;
  font-size: 3.6cqw;
}
.solo-day--feito .solo-day-marker { background: #25292b; color: white; }
.solo-day--futuro .solo-day-marker { border-style: dashed; border-color: #b9b8b1; }
.solo-day--hoje .solo-day-marker::before { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #b84412; content: ""; }
.solo-day small { min-height: 3.5cqw; margin-top: 2.1cqw; color: #555650; font-size: 2.75cqw; white-space: nowrap; }

.solo-insights { overflow: hidden; border-radius: 6px; background: #efeee9; }

.solo-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5cqw;
  min-height: 16.5cqw;
  padding: 2.25cqw 3cqw 2.25cqw 2.25cqw;
}

.solo-insight + .solo-insight { border-top: 1px solid #dddcd5; }
.solo-insights small { display: block; margin-top: .5cqw; color: #4b524e; font-size: 3.05cqw; }

.solo-insight-icon {
  display: grid;
  place-content: center;
  justify-items: center;
  width: 11cqw;
  height: 11cqw;
  border-radius: 5px;
  background: #fff;
}

.solo-insight-icon svg { width: 6cqw; height: 6cqw; }
.solo-insight-icon strong { font-size: 5.1cqw; line-height: 1; }

.solo-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: auto 0 0;
  padding: 0 2cqw;
  border-top: 1px solid #dedbd2;
  border-radius: 0 0 19px 19px;
  list-style: none;
}

.solo-nav li {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .75cqw;
  min-height: 13cqw;
  font-size: 3.05cqw;
}

.solo-nav li:first-child { color: #a3360f; font-weight: 650; }
.solo-nav svg { width: 5.1cqw; height: 5.1cqw; }

.solo-preview figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  place-items: center;
  min-height: 27px;
  color: #f7f6f0;
  font-size: 11px;
}

.solo-motion {
  position: absolute;
  inset: 0 10px 0 auto;
  display: grid;
  width: 30px;
  place-items: center;
  color: #e8e4dc;
}

.solo-motion input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.solo-motion:has(input:focus-visible) { outline: 2px solid var(--editorial-accent); outline-offset: -2px; }
.solo-motion svg { width: 14px; height: 14px; }
.solo-motion svg:last-child,
.solo-motion:has(input:checked) svg:first-of-type { display: none; }
.solo-motion:has(input:checked) svg:last-child { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .solo-ecg path { stroke-dasharray: 1; animation: solo-ecg-sweep 2.8s ease-in-out infinite alternate; }
  .solo-day--hoje .solo-day-marker::before { animation: solo-today-pulse 1.6s ease-out infinite; }
  .solo-preview:has(.solo-motion input:checked) :is(.solo-ecg path, .solo-day-marker::before) { animation-play-state: paused; }
}

@keyframes solo-ecg-sweep { 0%, 8% { stroke-dashoffset: .73; } 94%, 100% { stroke-dashoffset: 0; } }
@keyframes solo-today-pulse {
  0% { box-shadow: 0 0 0 0 #e55d1eb0; }
  70%, 100% { box-shadow: 0 0 0 5px #e55d1e00; }
}

@media (prefers-reduced-motion: reduce) { .solo-motion { display: none; } }
