/* FitHala home refinements: responsive app promo + anatomical performance map. */

.app-shell > * {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.app-shell {
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(24px, 4vw, 62px);
}

.phones {
  width: min(100%, 570px);
  margin-inline: auto;
  isolation: isolate;
}

.phone {
  max-width: calc(50% - 4px);
}

/* Compact natural body-performance component. */
.body-card {
  min-height: 312px;
  padding: 16px;
}

.body-map-natural {
  height: 194px;
  min-height: 194px;
  margin-top: 6px;
  isolation: isolate;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(183, 255, 60, 0.07), transparent 42%),
    rgba(3, 9, 7, 0.32);
}

.body-map-natural::after { display: none; }

.body-map-natural .body-figure {
  width: 110px;
  height: 178px;
  max-width: 43%;
  overflow: visible;
  filter: none;
}

.body-map-natural .scan-rings {
  width: 144px;
  height: 144px;
  opacity: 0.38;
  border-color: rgba(183, 255, 60, 0.09);
}

.body-map-natural .scan-rings::before {
  inset: 20px;
  border-style: solid;
  opacity: 0.55;
  animation: none;
}

.body-map-natural .scan-rings::after { display: none; }

.body-map-natural .body-floor-shadow {
  fill: rgba(183, 255, 60, 0.09);
}

.body-map-natural .body-aura { opacity: 0.72; }

.body-map-natural .muscle-region {
  stroke: rgba(223, 255, 169, 0.32);
  stroke-width: 0.55;
}

.body-map-natural .region-upper { fill: rgba(183, 255, 60, 0.18); }
.body-map-natural .region-core { fill: rgba(85, 231, 166, 0.15); }
.body-map-natural .region-lower { fill: rgba(183, 255, 60, 0.12); }

.body-map-natural .body-markers circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: bodyNaturalMarker 2.2s ease-in-out infinite;
}

.body-map-natural .body-markers circle:nth-child(2) { animation-delay: 0.35s; }
.body-map-natural .body-markers circle:nth-child(3) { animation-delay: 0.7s; }

.body-map-natural .body-node {
  min-width: 50px;
  padding: 4px 6px;
  border-color: rgba(183, 255, 60, 0.12);
  border-radius: 9px;
  background: rgba(5, 13, 10, 0.94);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: none;
}

.body-map-natural .body-node small {
  font-size: 0.43rem;
  line-height: 1.25;
}

.body-map-natural .body-node b {
  font-size: 0.78rem;
  line-height: 1.25;
}

.body-map-natural .body-node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 11px;
  height: 1px;
  background: rgba(183, 255, 60, 0.38);
}

.body-map-natural .node-upper::after,
.body-map-natural .node-lower::after { right: 100%; }

.body-map-natural .node-core::after { left: 100%; }

.body-map-natural .node-upper { top: 30px; right: 6px; }
.body-map-natural .node-core { top: 82px; left: 6px; }
.body-map-natural .node-lower { right: 7px; bottom: 23px; }

.body-map-natural .scan-status {
  left: 7px;
  bottom: 6px;
  gap: 5px;
  font-size: 0.44rem;
}

.body-map-natural .scan-status i {
  width: 4px;
  height: 4px;
  animation: none;
}

.body-card .body-score { padding-top: 7px; }

@keyframes bodyNaturalMarker {
  0%, 100% { transform: scale(0.9); opacity: 0.68; }
  50% { transform: scale(1.25); opacity: 1; }
}
@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 42px 30px 0;
    text-align: center;
  }

  .app-shell h2,
  .app-shell p {
    margin-inline: auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .phones {
    width: min(100%, 540px);
    height: 455px;
    margin-top: 8px;
  }

  .phone {
    width: clamp(184px, 39vw, 220px);
    height: clamp(410px, 78vw, 470px);
  }

  .phone.two {
    left: 5%;
    right: auto;
    inset-inline-start: auto;
    top: 0;
  }

  .phone.one {
    right: 5%;
    left: auto;
    inset-inline-end: auto;
    top: 38px;
  }
}

@media (max-width: 560px) {
  .app-promo .container {
    width: calc(100% - 18px);
  }

  .app-shell {
    min-height: 0;
    padding: 32px 16px 0;
    border-radius: 28px;
  }

  .app-shell::before {
    width: 430px;
    height: 430px;
    inset-inline-end: -210px;
    top: auto;
    bottom: -170px;
  }

  .app-shell h2 {
    font-size: clamp(2.15rem, 12vw, 3rem);
    letter-spacing: -0.045em;
  }

  .app-shell p {
    margin: 16px auto 22px;
    font-size: 0.82rem;
    line-height: 1.85;
  }

  .store-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 330px);
    margin-inline: auto;
  }

  .store {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    text-align: start;
  }

  .platform-note {
    padding-inline: 8px;
    font-size: 0.68rem !important;
  }

  .phones {
    width: 100%;
    height: clamp(338px, 106vw, 405px);
    margin-top: 4px;
  }

  .phone {
    width: clamp(142px, 43vw, 176px);
    height: clamp(326px, 96vw, 395px);
    max-width: none;
    border-width: 7px;
    border-radius: 34px;
  }

  .phone-screen {
    padding: 16px 10px;
    border-radius: 27px;
  }

  .phone-notch {
    width: 56px;
    height: 16px;
  }

  .phone.two {
    left: 1%;
    top: 0;
    transform: rotate(-4deg);
  }

  .phone.one {
    right: 1%;
    top: 36px;
    transform: rotate(4deg);
  }

  .phone-top {
    font-size: 0.53rem;
  }

  .phone-top b {
    font-size: 0.72rem;
  }

  .phone-hero {
    height: clamp(96px, 31vw, 122px);
    margin-top: 13px;
    border-radius: 16px;
  }

  .phone-hero span {
    font-size: 0.54rem;
  }

  .phone-row {
    gap: 6px;
    margin-top: 8px;
  }

  .phone-tile {
    min-height: 55px;
    padding: 7px 4px;
    border-radius: 12px;
  }

  .phone-tile b { font-size: 1rem; }
  .phone-tile span { font-size: 0.48rem; }
  .phone-bars { height: 80px; gap: 5px; }
}

@media (max-width: 370px) {
  .app-shell { padding-inline: 12px; }
  .phones { height: 330px; }
  .phone { width: 145px; height: 320px; }
  .phone.two { left: -2px; }
  .phone.one { right: -2px; top: 30px; }
}

@media (max-width: 430px) {
  .body-card {
    min-height: 300px;
    padding: 15px;
  }

  .body-map-natural {
    height: 184px;
    min-height: 184px;
  }

  .body-map-natural .body-figure {
    width: 102px;
    height: 168px;
    max-width: 42%;
  }

  .body-map-natural .scan-rings {
    width: 132px;
    height: 132px;
  }

  .body-map-natural .body-node {
    min-width: 47px;
    padding: 4px 5px;
  }

  .body-map-natural .body-node::after { width: 8px; }
  .body-map-natural .node-upper { top: 28px; right: 3px; }
  .body-map-natural .node-core { top: 78px; left: 3px; }
  .body-map-natural .node-lower { right: 3px; bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .body-map-natural .body-markers circle { animation: none !important; }
}

/* Uploaded brand logo sizing. */
.logo .brand-logo-image {
  display: block;
  width: auto;
  max-width: 190px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.navbar .logo .brand-logo-image {
  max-height: 65px;
}

.auth-brand .brand-logo-image {
  display: block;
  width: auto;
  max-width: 190px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.footer-brand .logo .brand-logo-image {
  max-height: 50px;
}

@media (max-width: 760px) {
  .navbar .logo .brand-logo-image {
    max-width: 132px;
    max-height: 36px;
  }

  .auth-brand .brand-logo-image {
    max-width: 164px;
    max-height: 46px;
  }
}
