/* V6 mobile layout. Keep the approved desktop design above 900px. */
@media (max-width:900px){
  #ffl .wrap{min-width:0}
  .nav{padding-inline:12px}
  .nav>div{box-sizing:border-box;min-height:68px;height:68px;padding:6px 6px 6px 14px!important;gap:6px!important}
  .nav>a,.nav>div>a{flex-shrink:0}
  .nav nav[aria-label="Main"]{min-width:0;gap:0!important}
  .nav nav[aria-label="Main"]>a:last-child{min-height:44px!important;white-space:nowrap;padding-inline:14px!important}
  .mobile-menu{width:44px;min-width:44px;height:44px;padding:0;display:grid;place-items:center;flex-shrink:0}
  #mobile-links{max-height:calc(100svh - 100px);overflow-y:auto;overscroll-behavior:contain;margin-top:8px;padding:12px 22px}
  #mobile-links a{min-height:44px;box-sizing:border-box;padding:10px 0}

  .hero{height:auto;min-height:max(560px,calc(100svh - 60px))}
  .hero-wrap{padding-top:88px;padding-bottom:66px}
  .hero-copy{gap:18px;max-width:520px}
  .hero h1{font-size:clamp(48px,7vw,70px)}
  .hero-actions{gap:0;max-width:100%}
  .hero-actions .btn{max-width:100%;min-height:52px}
  .hero-secondary{display:inline-flex;align-items:center;min-height:44px;line-height:20px}
  .media-toggle{box-sizing:border-box;min-width:44px;min-height:44px;padding:10px 14px;line-height:18px}
  .tile>.play{box-sizing:border-box;min-height:44px;padding:10px 14px}
  .coach-sound{width:44px;height:44px;right:12px;bottom:12px;opacity:1}
  .coach-audio-hint{box-sizing:border-box;max-width:calc(100% - 80px);font-size:12px}
  .coach>.ph{touch-action:manipulation}
  .btn>.arr{flex-shrink:0}

  /* Mobile: read the text, explore the full scene, then read the benefits.
     Canvas and fallback share one fixed-height grid row; hidden canvas leaves no gap. */
  #home.home-immersive{padding:0 12px;box-sizing:border-box;color:#2A2019}
  #home .home-scroll-track{height:auto!important}
  #home .home-sticky{position:relative;top:auto;height:auto!important;min-height:0!important}
  #home .home-scene{position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto clamp(220px,62vw,460px) auto auto;border-radius:26px;background:#F3F0E9;overflow:hidden;isolation:isolate}
  #home .home-overlay-copy{position:relative;grid-area:1/1;left:auto;right:auto;top:auto;max-width:none;box-sizing:border-box;margin:0;padding:28px 26px;opacity:1!important;pointer-events:auto;gap:13px;background:linear-gradient(135deg,#ffffffbf,#fbf7f180);color:#2A2019;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  #home .home-overlay-copy .eb{background:#FFFFFF;color:#2A2019;border:1px solid #E6DCCF;align-self:flex-start}
  #home .home-overlay-copy h2{font-size:clamp(30px,5vw,40px);line-height:1.06;color:#2A2019}
  #home .home-overlay-copy p{font-size:15px;line-height:1.55;max-width:650px;color:#5F554B}
  #home .home-fallback,#home #home-panorama{position:relative;grid-area:2/1;inset:auto;width:100%;height:100%;min-height:0;max-height:100%;object-fit:cover;object-position:center;align-self:stretch}
  #home #home-panorama{touch-action:pan-y;outline-offset:-4px!important}
  #home .home-vignette{position:relative;grid-area:2/1;inset:auto;width:100%;height:100%;background:linear-gradient(0deg,#1b30270c,transparent 45%);pointer-events:none}
  #home .home-look-tools{position:relative;grid-area:3/1;left:auto;right:auto;top:auto;bottom:auto;padding:12px 18px;gap:8px;justify-content:space-between;align-items:center;background:#F3F0E9}
  #home .home-look-tools span{font-size:12px;line-height:18px;padding:0;border:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;color:#5F554B}
  #home .home-look-tools button{box-sizing:border-box;min-height:44px;padding:10px 14px;font-size:12px;line-height:20px;background:#FFFFFFB8;color:#2A2019}
  #home .home-benefits{position:relative;grid-area:4/1;left:auto;right:auto;top:auto;bottom:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 18px 20px;margin:0;gap:10px;opacity:1!important;pointer-events:auto}
  #home .home-benefits>div{display:block;padding:17px 18px;border-radius:18px;background:#FFFFFFA8;border:1px solid #FFFFFF;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:none}
  #home .home-benefits h3{font-size:18px;line-height:1.25;margin:0 0 8px;color:#2A2019}
  #home .home-benefits p{font-size:13px;line-height:1.5;color:#5F554B;margin:0}

  .membership-benefits{width:100%;box-sizing:border-box}
  #start>.wrap>.rv.d2{width:100%}
  #start>.wrap>.rv.d2>div{flex:1 1 220px;min-width:min(220px,100%)!important;max-width:360px;box-sizing:border-box}
  #start>.wrap>.rv.d3{width:100%}
  #start>.wrap>.rv.d3>.btn{max-width:100%;font-size:15px;line-height:22px}
  .together-feature .media-toggle{top:12px;right:12px;bottom:auto}
  #heart .heart-reading-label{min-width:0}
  #heart .heart-shot figcaption{flex-wrap:wrap;gap:6px 12px}
  details.fq>summary{min-height:44px;box-sizing:border-box}
}
@media (max-width:700px){
  #coaches .cols3.stagger{grid-template-columns:minmax(0,1fr);gap:38px}
  #coaches .coach{max-width:460px;width:100%;margin-inline:auto}
  #coaches .coach>.ph{aspect-ratio:4/4.6;max-height:none}
  #coaches .coach figcaption>span:first-child{font-size:32px!important}
  #coaches .coach figcaption>span:last-child{font-size:16px;line-height:1.55}
  #home .home-benefits{grid-template-columns:minmax(0,1fr)}
  #home .home-benefits>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;padding:16px}
  #home .home-benefits h3{margin:0;font-size:17px}
  #home .home-benefits p{font-size:13px;line-height:1.5}
}
@media (max-width:560px){
  .nav img{max-width:96px;height:auto!important}
  .nav nav[aria-label="Main"]>a:last-child{padding-inline:10px!important;font-size:12px}
  .hero-wrap{padding:76px 20px 56px}
  .hero-copy{gap:14px}
  .hero h1{font-size:clamp(38px,12vw,54px);line-height:.98}
  .hero-description{font-size:15px;line-height:1.5;max-width:300px}
  .hero .btn{font-size:14px;line-height:20px;padding:0 8px 0 18px;gap:10px;min-height:52px}
  .hero-secondary{font-size:12px;min-height:44px}
  .hero .media-toggle{bottom:8px;right:14px;font-size:11px}
  .sparky-corner{top:110px;bottom:auto;transform:scale(.6);transform-origin:right top}
  .sparky-corner p{font-size:20px;min-width:220px}
  .stats{gap:12px}
  .stat{padding:18px;min-height:140px}
  .stat .l{font-size:14px;line-height:20px}
  #modes .tile>.body{padding:22px}
  #modes .tile>.play{top:16px;right:16px}
  #home .home-overlay-copy{padding:24px 20px;gap:12px}
  #home .home-overlay-copy h2{font-size:30px}
  #home .home-overlay-copy p{font-size:14px;line-height:1.55}
  #home .home-look-tools{padding:10px 14px}
  #home .home-look-tools span{font-size:11px}
  #home .home-benefits{padding:6px 14px 16px}
  #home .home-benefits>div{grid-template-columns:80px minmax(0,1fr);padding:14px 13px;gap:10px}
  #home .home-benefits h3{font-size:16px}
  .together-copy{padding:28px 24px}
  #start>.wrap>.rv.d3>.btn{width:100%;max-width:360px;justify-content:space-between;padding-left:22px;min-height:56px}
  #start>.wrap>.rv.d4{width:100%;box-sizing:border-box}
  .q{padding:26px}
  .q blockquote{font-size:20px;line-height:1.4}
}
@media (max-width:380px){
  .nav img{max-width:92px}
  .sparky-corner{top:90px}
  .hero .btn>.arr{width:34px;height:34px}
  #heart .heart-caption-note{display:none}
  #heart .heart-chart-card{padding:22px 18px}
  #heart .heart-reading{gap:9px}
  #heart .heart-reading-label{padding-left:10px}
  #heart .heart-reading-label strong{font-size:12px}
  #home .home-look-tools{padding-inline:12px;gap:6px}
  #home .home-look-tools button{padding-inline:10px}
  .award-feature{padding:22px 20px}
}
@media (max-width:900px) and (max-height:500px){
  .hero{min-height:560px}
  .hero-wrap{padding-top:88px;padding-bottom:62px}
  .hero h1{font-size:46px}
  .hero-description{font-size:15px;max-width:430px}
  .hero-copy{gap:14px}
  .hero-actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:0 18px}
  .sparky-corner{top:110px;bottom:auto;transform:scale(.65);transform-origin:right top}
  #home .home-scene{grid-template-rows:auto clamp(220px,42vw,360px) auto auto}
}
@media (max-width:900px) and (hover:none){
  .coach-sound{opacity:1}
  .tile:hover>.body,.tile:hover>img,.tile:hover>video,.coach>.ph:hover{transform:none!important}
}
@media (max-width:560px){
  /* The character is scaled to 60%; keep its speech bubble readable after scaling. */
  .sparky-corner p{font-size:22px;line-height:1.4;min-width:210px}
}
