/* Phone layout. The desktop design is untouched: everything here sits inside the phone media query. */
.m-only{display:none!important}
@media (max-width:760px){
  .m-only{display:block!important}
  #view-home{text-align:center}
  #view-home h2{text-wrap:balance}

  /* hero */
  #view-home .hero{padding:10px 0 0}
  #view-home .hero .wrap{display:block;height:auto}
  #view-home .hero-copy{max-width:none;padding:0}
  #view-home .hero h1{font-size:clamp(2.300rem,10.400vw,3rem);line-height:1.04;margin:10px auto 0;max-width:9.500em}
  #view-home .hero .lede{margin:18px auto 0;max-width:21em;font-size:1.08rem}
  #view-home .cta-row{display:grid!important;grid-template-columns:1fr;justify-items:center;gap:12px;margin:24px 0 0;width:100%}
  #view-home .cta-row .btn{width:100%;max-width:330px;justify-content:center;font-size:1.12rem;padding:1.05em 1em;border-radius:14px}
  #view-home .cta-row span{order:3;max-width:none;font-size:.9rem;text-align:center}
  .m-read{display:block;width:100%;max-width:330px;margin:0;font:600 1.08rem/1 var(--body);color:var(--ink);background:#fff;border:2px solid var(--ink);border-radius:14px;padding:.95em 1em;cursor:pointer}
  #view-home .facts{justify-content:center;gap:8px 18px;margin:22px auto 0;padding:0;max-width:22em}
  #view-home .hero-art{position:relative;width:min(76vw,310px);margin:78px auto 0;padding:0 0 8px;left:5%}
  #view-home .hero-art .mock{width:100%;margin:0}
  .m-maya{position:absolute;left:-17%;bottom:0;height:58%;width:auto;z-index:3;filter:drop-shadow(0 10px 10px rgba(18,63,70,.18))}
  .m-plume{position:absolute;right:-4%;top:-17%;width:30%;z-index:3;animation:m-bob 3.600s ease-in-out infinite}
  .m-plume img{width:100%;display:block}
  .m-plume i{position:absolute;right:78%;top:6%;font:700 1.02rem/1 'Trexos',var(--body);font-style:normal;color:var(--accent);background:#fff;padding:.55em .8em;border-radius:1.1em 1.1em .2em 1.1em;white-space:nowrap;box-shadow:0 8px 14px -8px rgba(18,63,70,.45)}
  @keyframes m-bob{50%{transform:translateY(-8px) rotate(-2deg)}}

  /* steps */
  #view-home .steps .wrap{display:grid;grid-template-columns:1fr;gap:0;height:auto;padding:8px 24px}
  #view-home .step{display:grid;grid-template-columns:1fr;justify-items:center;gap:6px;padding:28px 0;border-left:0}
  #view-home .step + .step{border-top:1px solid var(--line)}
  #view-home .step .n{grid-row:auto;width:54px;height:54px;border-radius:50%;background:#FFF3D6;display:grid;place-items:center;font-size:1.700rem;line-height:1;margin:0 0 4px}
  #view-home .step h3{font-size:1.45rem}
  #view-home .step p{max-width:19em;margin:0}

  /* section heads */
  #view-home .sec{padding:64px 0}
  #view-home .sec-head{display:grid;grid-template-columns:1fr;justify-items:center;gap:14px;margin-bottom:30px}
  #view-home .sec-head h2{font-size:clamp(1.900rem,8.200vw,2.400rem)}
  #view-home .sec-head .side{max-width:22em;margin:0 auto}
  #view-home .sec-head .side p{text-align:center}
  .m-top{height:112px;width:auto;margin:0 auto 2px}

  /* words */
  #view-home .words{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}
  #view-home .words li:last-child{grid-column:1/-1;width:calc(50% - 8px);margin:0 auto}
  #view-home .wd{text-align:center;justify-items:center}
  #view-home .wd .sq{width:100%;border-radius:18px}
  #view-home .wd .fw{justify-content:center}

  /* books */
  #view-home .books{grid-auto-columns:74%;gap:20px;scroll-snap-type:x mandatory;padding-inline:13%;scroll-padding-inline:13%;margin-inline:-24px}
  #view-home .book{scroll-snap-align:center;text-align:center;justify-items:center}
  #view-home .book h3{font-size:1.4rem}

  /* scan */
  #view-home .scan{display:flex;flex-direction:column;gap:0}
  #view-home .scan-copy{display:contents}
  #view-home .scan-copy h2{order:1;font-size:clamp(1.900rem,8.200vw,2.400rem)}
  #view-home .scan-copy>p{order:2;margin:16px auto 0;max-width:22em}
  #view-home .devices{order:3;margin:30px auto 0;width:100%}
  #view-home .points{order:4;display:grid;gap:0;margin:30px 0 0;padding:0;text-align:center}
  #view-home .points li{padding:20px 0}
  #view-home .points li span{display:block;max-width:20em;margin:4px auto 0}
  #view-home .game{text-align:left}

  /* song */
  #view-home .finish{display:grid;grid-template-columns:1fr;gap:34px;justify-items:center}
  #view-home .songcard{position:relative;width:min(80vw,320px);margin:8px auto 0;transform:rotate(-2.500deg)}
  #view-home .songcard .m-songplume{background:none;box-shadow:none;border-radius:0;height:auto;position:absolute;right:-17%;bottom:-11%;width:42%;transform:rotate(2.500deg);z-index:2}
  #view-home .finish-copy p{max-width:22em;margin-left:auto;margin-right:auto}

  /* parents */
  #view-home .parents{display:grid;grid-template-columns:1fr;gap:10px;justify-items:center}
  #view-home .parents .cast{width:min(58vw,230px);height:auto;margin:0 auto}
  #view-home .parents .intro{max-width:21em;margin-left:auto;margin-right:auto}
  #view-home .promises{display:grid;grid-template-columns:1fr;gap:12px;margin:26px 0 0;padding:0;width:100%}
  #view-home .promises li{background:#FFF6E2;border:0;border-radius:18px;padding:20px 18px}
  #view-home .promises li span{display:block;margin-top:4px}
  #view-home .order{margin:22px auto 0;max-width:23em}

  /* questions */
  #view-home .faq-grid{display:grid;grid-template-columns:1fr;gap:26px}
  #view-home .faq-grid .side{display:grid;justify-items:center;gap:10px}
  #view-home .faq-grid .side .faq-art{order:-1;width:170px;height:auto;margin:0}
  #view-home .faq{text-align:left}
  #view-home .faq summary{font-size:1.05rem}

  /* last call and footer */
  #view-home .final img{margin-left:auto;margin-right:auto}
  #view-home .final .btn{width:100%;max-width:330px;justify-content:center;border-radius:14px}
  #view-home footer .wrap{display:grid;justify-items:center;gap:14px;height:auto;padding-top:26px;padding-bottom:30px;text-align:center}
  #view-home footer nav{justify-content:center;flex-wrap:wrap;gap:8px 20px}

  /* create page */
  #view-create .b-title,#view-create .b-sub{text-align:center}
  #view-create .b-sub{margin-left:auto;margin-right:auto}
  #view-create .b-preview{text-align:center}
  #view-create .b-preview .flat{width:min(72vw,300px);margin:0 auto}
  #view-create .b-look{display:block;margin:16px auto 0;width:min(72vw,300px)}
  #view-create .b-look .btn-ghost{width:100%;justify-content:center}
  #view-create #bGo,#view-create #bApprove{width:100%;justify-content:center}
  #view-create .b-actions{display:grid;gap:14px;justify-items:center}
  #view-create #bMissing{text-align:center}
  #view-create .b-reveal>div:first-child{text-align:center}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){.m-plume{animation:none}}
