/* BreatheMeter mobile homepage — matches the reference orbit composition */
@media (max-width: 800px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .shell {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .nav {
    width: calc(100% - 32px) !important;
    height: 76px !important;
  }

  .hero {
    display: flex !important;
    flex-direction: column !important;
    width: calc(100% - 32px) !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 38px 0 58px !important;
    gap: 28px !important;
    align-items: stretch !important;
  }

  .hero-copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .hero h1 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero .lead {
    width: 100% !important;
    max-width: 100% !important;
  }

  .actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 15px !important;
  }

  .actions .button {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .orbit-card {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 28px !important;
  }
}

@media (max-width: 480px) {
  .shell,
  .hero {
    width: calc(100% - 28px) !important;
  }

  .nav {
    width: calc(100% - 28px) !important;
    height: 68px !important;
  }

  .hero {
    padding-top: 30px !important;
    gap: 24px !important;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 60px) !important;
    line-height: .92 !important;
  }

  .hero .lead {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  /* Reference composition:
     - 5 free exercises on the inner orbit
     - 2 intermediate exercises on the middle orbit
     - 4 advanced exercises on the outer orbit
     - centre logo isolated from every node
  */
  .orbit-node {
    width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 2px !important;
    line-height: 1.02 !important;
    box-sizing: border-box !important;
  }

  .orbit-node strong {
    font-size: 6.5px !important;
    line-height: 1.02 !important;
    letter-spacing: -0.025em !important;
  }

  .orbit-node small {
    font-size: 5.5px !important;
    line-height: 1 !important;
    padding: 2px 4px !important;
    margin-top: 2px !important;
  }

  .orbit-node.premium span {
    font-size: 8px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
  }

  /* BEGINNER / FREE — five nodes arranged around the inner orbit. */
  .node-box {
    top: 70% !important;
  }

  .node-awareness {
    left: 22% !important;
    top: 26% !important;
  }

  .node-478 {
    right: 22% !important;
    top: 26% !important;
  }

  .node-relax {
    left: 17% !important;
    top: 54% !important;
  }

  .node-slow {
    right: 17% !important;
    top: 54% !important;
  }

  /* INTERMEDIATE — two nodes sit on the middle orbit. */
  .node-coherent {
    left: 6% !important;
    top: 38% !important;
  }

  .node-heart {
    right: 6% !important;
    top: 38% !important;
  }

  /* ADVANCED / OUTER ORBIT */
  .node-sleep {
    left: 5% !important;
  }

  .node-morning {
    right: 5% !important;
  }

  .node-alternate {
    left: 8% !important;
    top: 75% !important;
  }

  .node-meditation {
    right: 8% !important;
    top: 75% !important;
  }

  /* Centre brand */
  .orbit-centre {
    left: 50% !important;
    top: 50% !important;
    width: 110px !important;
    transform: translate(-50%, -50%) !important;
  }

  .orbit-centre img {
    width: 38px !important;
    height: 38px !important;
    margin: 0 auto 3px !important;
  }

  .orbit-centre strong {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .orbit-centre span {
    font-size: 7px !important;
    line-height: 1.1 !important;
    margin-top: 2px !important;
  }

  /* Compact tier labels, positioned in the open gaps between nodes. */
  .orbit-tier {
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 4px 9px !important;
    line-height: 1.05 !important;
    z-index: 3 !important;
  }

  .orbit-tier strong {
    font-size: 6.5px !important;
    line-height: 1 !important;
  }

  .orbit-tier span {
    font-size: 6px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
  }

  .tier-advanced {
    top: 0% !important;
  }

  .tier-intermediate {
    top: 10% !important;
  }

  .tier-beginner {
    top: 20% !important;
  }

  .orbit-caption {
    left: 50% !important;
    bottom: 5% !important;
    transform: translateX(-50%) !important;
    font-size: 8px !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }

  /* Match the reference: three clean concentric rings. */
  .ring-inner {
    width: 55% !important;
    height: 55% !important;
  }

  .ring-middle {
    width: 76% !important;
    height: 76% !important;
  }

  .ring-outer {
    width: 96% !important;
    height: 96% !important;
  }
}
