:root {
  --ink: #111113;
  --paper: #fbfbfb;
  --yellow: #f8e958;
  --purple: #e5bdf6;
  --blue: #c3c9ff;
  --phone-width: 390px;
  --phone-height: 844px;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  margin: 0;
  background: #d8d8d7;
  color: var(--ink);
}
button {
  font: inherit;
  cursor: pointer;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.stage {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #f2f2f2, #cfd0d0);
}
.stage-label,
.stage-note {
  position: absolute;
  z-index: 1;
  left: 34px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.stage-label {
  top: 34px;
}
.stage-note {
  bottom: 34px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.45;
}
.phone {
  position: relative;
  z-index: 2;
  width: var(--phone-width);
  height: var(--phone-height);
 
 
 
 
 
  transform: scale(var(--stage-scale, 1));
  transform-origin: center;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--paper);
}
.island {
  position: absolute;
  z-index: 10;
  top: 11px;
  left: 50%;
  width: 94px;
  height: 27px;
  border-radius: 16px;
  transform: translateX(-50%);
  background: #050505;
}
.status {
  position: absolute;
  z-index: 11;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 25px 0;
  font-size: 14px;
  font-weight: 700;
}
.status span {
  display: flex;
  gap: 3px;
}
.status svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.view {
  height: 100%;
  padding: 65px 21px 76px;
}
.top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.top p,
.mini {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
}
.top h1 {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.02;
  text-transform: uppercase;
}
.circle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.circle svg,
.dock svg,
.text-action svg,
.list-card svg,
.next svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.filters {
  display: flex;
  gap: 7px;
  overflow: hidden;
  margin: 25px -21px 24px;
  padding: 0 21px;
}
.filters button {
  min-width: 88px;
  height: 44px;
  border: 1px solid #c9c9c9;
  border-radius: 24px;
  background: #fff;
  text-transform: uppercase;
}
.filters .selected,
.dates .selected {
  border-color: #111;
  background: #fff;
  font-weight: 700;
}
.discover-row {
  display: grid;
  grid-template-columns: 1fr 176px;
  gap: 12px;
  align-items: center;
}
.discover-row h2 {
  margin: 9px 0;
  font-size: 27px;
  line-height: 1;
}
.text-action {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.coach-card {
  position: relative;
  height: 188px;
  overflow: hidden;
  border: 0;
  border-radius: 21px;
  background: #202020;
}
.coach-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coach-card span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.coach-card span svg {
  width: 58px;
  height: 58px;
  fill: #1119;
  stroke: #fff;
  stroke-width: 1.4;
}
.progress-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 145px;
  align-items: end;
  overflow: hidden;
  margin-top: 18px;
  border: 0;
  border-radius: 20px;
  background: #ececec;
  text-align: left;
}
.progress-card img {
  width: 48%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.progress-card div {
  display: grid;
  gap: 3px;
  padding: 18px;
}
.progress-card p,
.progress-card span {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
}
.progress-card b {
  font-size: 37px;
}
.progress-card small {
  margin-top: 5px;
  padding: 8px 11px;
  border: 1px solid #888;
  border-radius: 18px;
  font-size: 14px;
  text-transform: uppercase;
}
.list-card {
  display: flex;
  width: 100%;
  height: 70px;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  border: 0;
  border-radius: 19px;
  background: #fff;
  padding: 8px;
  text-align: left;
  box-shadow: 0 6px 18px #1111;
}
.list-card img {
  width: 55px;
  height: 54px;
  border-radius: 13px;
  object-fit: cover;
}
.list-card div {
  display: grid;
  gap: 4px;
  flex: 1;
}
.list-card span {
  font-size: 14px;
}
.activity-head h1 {
  font-size: 26px;
}
.dates {
  display: flex;
  gap: 7px;
  overflow: hidden;
  margin: 28px -21px 30px;
  padding: 0 21px;
}
.dates button {
  min-width: 49px;
  height: 49px;
  border: 1px solid #c9c9c9;
  border-radius: 50%;
  background: #fff;
  color: #969696;
}
.dates .selected {
  background: #111;
  color: #fff;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.metric {
  height: 184px;
  border: 0;
  border-radius: 27px;
  padding: 21px;
  text-align: left;
}
.metric p,
.metric span {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.metric b {
  display: block;
  margin-top: 54px;
  font-size: 42px;
  line-height: 0.8;
}
.purple {
  background: var(--purple);
}
.blue {
  background: var(--blue);
}
.stat {
  display: flex;
  align-items: end;
  gap: 9px;
  margin-top: 32px;
  text-transform: uppercase;
}
.stat b {
  font-size: 46px;
  line-height: 0.8;
}
.stat span {
  font-size: 14px;
  font-weight: 700;
}
.stat p {
  margin: 0 0 4px auto;
  font-size: 14px;
}
.bars {
  display: flex;
  height: 140px;
  align-items: end;
  justify-content: space-between;
  margin-top: 30px;
}
.bars i {
  width: 50px;
  height: 83px;
  border: 1px solid #111;
  border-radius: 26px;
  background: linear-gradient(#fff 0 46%, #111 46%);
}
.bars .tall {
  height: 140px;
  background: linear-gradient(#fff 0 43%, #111 43%);
}
.bars .high {
  height: 118px;
}
.focus {
  padding: 65px 21px 27px;
  text-align: center;
}
.focus-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.focus-top p {
  margin: 0 auto;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.focus-top .circle svg {
  transform: rotate(180deg);
}
.athlete {
  position: relative;
  height: 310px;
  margin: 8px -21px 0;
  overflow: hidden;
}
.athlete img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.tag {
  position: absolute;
  height: 40px;
  border: 1px solid #111;
  border-radius: 21px;
  background: #fff;
  padding: 0 12px;
  text-transform: uppercase;
}
.face {
  top: 96px;
  left: 25px;
}
.arms {
  top: 188px;
  right: 8px;
}
.core {
  top: 279px;
  left: 4px;
}
.legs {
  right: 19px;
  bottom: 28px;
}
.focus h1 {
  margin: 13px 0 18px;
  font-size: 23px;
  line-height: 1.12;
  text-transform: uppercase;
}
.next {
  display: flex;
  width: 100%;
  height: 60px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 30px;
  padding: 0 20px;
  background: var(--yellow);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
.dock {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 58px;
  border-radius: 29px;
  background: #fff;
  box-shadow: 0 7px 18px #1111;
}
.dock button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-size: 14px;
}
.dock button.selected {
  background: #111;
  color: #fff;
}
.dock svg {
  width: 21px;
  height: 21px;
}
#feedback {
  position: absolute;
  z-index: 13;
  right: auto;
  bottom: 82px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 40px);
  overflow: hidden;
  border-radius: 8px;
  background: #111d;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, 5px);
  transition: 0.18s;
}
#feedback.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.embed-mode body {
  width: var(--phone-width);
  min-width: var(--phone-width);
  height: var(--phone-height);
  overflow: hidden;
  transform: scale(var(--embed-scale, 1));
  transform-origin: top left;
}
.embed-mode .stage {
  display: block;
  width: var(--phone-width);
  min-height: var(--phone-height);
}
.embed-mode .phone {
  transform: none;
}
.embed-mode .stage-label,
.embed-mode .stage-note {
  display: none;
}

/* Modern iPhone canvas: 390 x 844 logical pixels (19.5:9). */
.view {
  overflow: hidden;
  padding: 66px 20px 100px;
}
.top {
  min-height: 44px;
  align-items: center;
}
.top > div {
  min-width: 0;
}
.top h1 {
  max-width: 260px;
  margin-top: 3px;
  font-size: 23px;
  line-height: 1.04;
}
.top .circle {
  flex: 0 0 44px;
  inline-size: 44px;
  block-size: 44px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  margin: 20px 0 22px;
  padding: 0;
}
.filters button {
  min-width: 0;
  height: 44px;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 14px;
  text-transform: none;
  white-space: nowrap;
}
.filters .selected {
  background: #111;
  color: #fff;
}
.discover-row {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 12px;
  height: 222px;
}
.discover-row h2 {
  margin: 7px 0 5px;
  font-size: 25px;
}
.text-action {
  min-height: 44px;
  padding: 0;
  font-weight: 700;
}
.coach-card {
  height: 222px;
  border-radius: 16px;
}
.coach-card span svg {
  inline-size: 50px;
  block-size: 50px;
}
.progress-card {
  height: 128px;
  align-items: stretch;
  margin-top: 16px;
  border-radius: 16px;
}
.progress-card img {
  width: 42%;
  object-position: center 20%;
}
.progress-card div {
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 1px 8px;
  min-width: 0;
  padding: 16px;
}
.progress-card p {
  grid-column: 1 / -1;
  color: #555;
}
.progress-card b {
  font-size: 36px;
  line-height: 1;
}
.progress-card span {
  align-self: end;
  padding-bottom: 3px;
  color: #555;
}
.progress-card small {
  grid-column: 1 / -1;
  margin-top: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}
.list-card {
  height: 68px;
  gap: 11px;
  margin-top: 12px;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  box-shadow: none;
}
.list-card img {
  inline-size: 52px;
  block-size: 52px;
  border-radius: 10px;
  object-position: center 18%;
}
.list-card div {
  gap: 1px;
}
.activity {
  padding-bottom: 100px;
}
.activity-head h1 {
  font-size: 23px;
}
.dates {
  justify-content: space-between;
  gap: 6px;
  overflow: visible;
  margin: 24px 0 28px;
  padding: 0;
}
.dates button {
  min-width: 0;
  inline-size: 44px;
  block-size: 44px;
}
.metric-grid {
  gap: 10px;
}
.metric {
  height: 190px;
  padding: 20px;
  border-radius: 20px;
}
.metric b {
  margin-top: 62px;
  font-size: 42px;
}
.stat {
  margin-top: 32px;
}
.stat b {
  font-size: 41px;
}
.bars {
  height: 170px;
  margin-top: 25px;
}
.bars i {
  inline-size: 43px;
  height: 104px;
  border-radius: 22px;
}
.bars .tall {
  height: 170px;
}
.bars .high {
  height: 142px;
}
.focus {
  padding: 66px 20px 100px;
}
.athlete {
  height: 386px;
  margin: 14px 0 0;
  border-radius: 16px;
  background: #f0f0f0;
}
.athlete img {
  object-position: center 22%;
}
.tag {
  height: 44px;
  border-radius: 10px;
  padding: 0 11px;
  font-size: 14px;
}
.face {
  top: 96px;
  left: 12px;
}
.arms {
  top: 182px;
  right: 12px;
}
.core {
  top: 265px;
  left: 12px;
}
.legs {
  right: 12px;
  bottom: 24px;
}
.focus h1 {
  margin: 20px 0 22px;
  font-size: 23px;
}
.next {
  height: 60px;
  border-radius: 18px;
  text-transform: none;
}
.dock {
  right: 18px;
  bottom: 17px;
  left: 18px;
  height: 72px;
  padding: 6px;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  box-shadow: 0 7px 18px #1111;
}
.dock button {
  min-width: 0;
  grid-template-rows: 24px 20px;
  align-content: center;
  gap: 2px;
  margin: 0 2px;
  border-radius: 14px;
  font-size: 14px;
}
.dock button.selected {
  background: #111;
}
.dock svg {
  width: 19px;
  height: 19px;
}
@media (max-width: 699px) {
  .stage-label,
  .stage-note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
