/* responsive.css — tablet and phone. Desktop composition lives in hero.css (min-width:1200px). */
/* ---------- header collapses to a Menu button ---------- */
@media (max-width:1023.98px){
  .header-inner{flex-wrap:wrap;gap:var(--s-3)}
  .nav-toggle{display:inline-flex;align-items:center;gap:8px;margin-left:auto;min-height:44px;padding:0 16px;border-radius:var(--r-pill);border:1px solid var(--line-soft);font-size:var(--fs-sm);color:var(--text-0)}
  .nav-toggle img{width:20px;height:20px}
  .site-menu{display:none;flex:1 1 100%;flex-direction:column;align-items:stretch;gap:var(--s-3);padding:var(--s-3) 0 var(--s-2)}
  .js .site-menu.is-open,.no-js .site-menu{display:flex}
  html:not(.js) .site-menu{display:flex}
  .site-nav ul{flex-direction:column;gap:0}
  .site-nav a{display:block;padding:12px 4px;font-size:var(--fs-md);border-bottom:1px solid var(--line-soft)}
  .header-search{width:100%;margin:0}
  .btn-get-started{align-self:flex-start}
  .footer-inner{grid-template-columns:1fr}
  .footer-nav{gap:var(--s-6)}
}
/* ---------- tablet: tree cropped to the canopy so panels stay readable ---------- */
@media (min-width:700px) and (max-width:1199.98px){
  .hero-stage-viewport{--su:calc(100vw / 1060);height:calc(810*var(--su));overflow:hidden}
  .hero-stage-viewport .stage{position:absolute;left:calc(-424*var(--su));top:calc(-82*var(--su))}
  .hero-copy{max-width:760px}
  .hero-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .stat,.stat:nth-child(odd){border-left:1px solid var(--line-soft);padding:0 var(--s-4)}
  .stat:first-child{border-left:0;padding-left:0}
}
/* ---------- phone: tree image on top, then readable cards ---------- */
@media (max-width:699.98px){
  .hero-stage-viewport,.explore-stage-wrap{--su:calc(100vw / 640)}
  .explore-stage-wrap{border:0;border-radius:0;margin:0 calc(-1*var(--gutter));overflow:visible;background:none}
  .hero-stage-viewport .stage,.explore-stage-wrap .stage{position:relative;left:0;top:0;width:auto;height:auto}
  .hero-stage-viewport .stage-art,.explore-stage-wrap .stage-art{position:relative;width:100%;height:calc(800*var(--su))}
  .hero-stage-viewport .stage-plate,.hero-stage-viewport .hero-overlay,
  .explore-stage-wrap .stage-plate,.explore-stage-wrap .hero-overlay{left:calc(-588*var(--su));top:calc(-88*var(--su))}
  .hero-stage-viewport .stage-ui,.explore-stage-wrap .stage-ui{position:static;padding:var(--s-5) var(--gutter) 0}
  .hero-stage-viewport .stage-list,.explore-stage-wrap .stage-list{display:grid;grid-template-columns:1fr;gap:12px}
  .hero-stage-viewport .stage-item,.explore-stage-wrap .stage-item{position:relative;left:auto;top:auto;width:auto;min-height:60px;transform:none!important;opacity:1!important;
    padding:12px 16px;border-radius:var(--r-md);border:1px solid var(--line-soft);background:var(--surface-card);box-shadow:none;font-size:1rem}
  .stage-list li:has(.stage-panel){order:1} .stage-list li:has(.stage-pill){order:2} .stage-list li:has(.stage-seed){order:3}
  .stage-list li:has(.stage-badge){order:4} .stage-list li:has(.stage-trunk){order:5}
  .hero-stage-viewport .panel-shell,.explore-stage-wrap .panel-shell{border-radius:var(--r-md)}
  .hero-stage-viewport .stage-panel,.explore-stage-wrap .stage-panel{gap:6px;border:0}
  .hero-stage-viewport .panel-row,.explore-stage-wrap .panel-row{gap:14px}
  .hero-stage-viewport .panel-icon,.explore-stage-wrap .panel-icon,.hero-stage-viewport .pill-icon,.explore-stage-wrap .pill-icon{width:28px;height:28px}
  .hero-stage-viewport .panel-title,.explore-stage-wrap .panel-title{font-size:1.15rem}
  .hero-stage-viewport .panel-subtitle,.explore-stage-wrap .panel-subtitle{font-size:.72rem;white-space:normal;letter-spacing:.2em;margin-right:0}
  .hero-stage-viewport .stage-pill,.explore-stage-wrap .stage-pill{gap:14px;border-radius:var(--r-md);background:var(--surface-pill)}
  .hero-stage-viewport .stage-badge,.explore-stage-wrap .stage-badge{gap:14px;font-size:.75rem;flex-direction:row;text-align:left}
  .hero-stage-viewport .badge-icon,.explore-stage-wrap .badge-icon{width:40px;height:40px;padding:9px}
  .hero-stage-viewport .stage-trunk,.explore-stage-wrap .stage-trunk{flex-direction:row;flex-wrap:wrap;align-items:center;text-align:left;gap:8px 14px}
  .hero-stage-viewport .trunk-logo,.explore-stage-wrap .trunk-logo{width:30px;height:34px}
  .hero-stage-viewport .trunk-title,.explore-stage-wrap .trunk-title{margin:0;font-size:.8rem}
  .hero-stage-viewport .trunk-lines,.explore-stage-wrap .trunk-lines{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;gap:4px 12px;margin:0;font-size:.7rem}
  .hero-stage-viewport .stage-seed,.explore-stage-wrap .stage-seed{align-items:flex-start;justify-content:center;text-align:left}
  .hero-stage-viewport .seed-caption,.explore-stage-wrap .seed-caption{flex-direction:row;gap:6px;font-size:.78rem;padding:0}
  .stage.is-focusing .focus-dim{opacity:0}
  .hero-title{font-size:clamp(3rem,15vw,4.6rem)}
}
