/* Show the same product paths and detail sections in a portrait layout. */
@media (max-width:640px){
  .legacy-home .desktop-products{display:block;padding:35px 16px 40px;background:#fff}
  .legacy-home .desktop-products h2{margin:0 0 20px;text-align:left;font-size:23px;line-height:1.15;letter-spacing:-.04em}
  .legacy-home .desktop-products-grid{display:flex;gap:12px;max-width:600px;margin:auto;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .legacy-home .desktop-products-grid::-webkit-scrollbar{display:none}
  .legacy-home .desktop-products-grid::after{content:"";flex:0 0 calc(20% - 12px)}
  .legacy-home .desktop-product-card{display:flex;flex:0 0 79%;min-width:0;flex-direction:column;padding:7px;border:0;border-radius:8px;background:#ededf0;scroll-snap-align:start}
  .legacy-home .desktop-product-image{width:100%;height:auto;aspect-ratio:.88;object-fit:contain;background:#ededf0}
  .legacy-home .desktop-product-image.w1{object-fit:cover;object-position:right center;aspect-ratio:.88;width:100%}
  .legacy-home .desktop-product-card h3{margin:14px 7px 5px;font-size:20px}
  .legacy-home .desktop-product-card p{display:none}
  .legacy-home .desktop-product-card a{align-self:flex-start;margin:5px 7px 10px;color:#087d74;font-size:14px;font-weight:800;line-height:1.3}
  .legacy-home .product-carousel-indicator{display:flex;gap:0;margin-top:10px;height:24px;background:transparent}
  .legacy-home .product-carousel-indicator button{flex:1;padding:0;border:0;background:linear-gradient(#e4e5e5,#e4e5e5) center/100% 3px no-repeat;cursor:pointer}
  .legacy-home .product-carousel-indicator button[aria-current="true"]{background-image:linear-gradient(#10191d,#10191d)}
  .legacy-w1 .desktop-design-series,.legacy-w1 .desktop-showcase,.legacy-w1 .desktop-box-series,.legacy-w1 .desktop-charging-series{display:block;padding:16px}
  .legacy-w1 .design-panel,.legacy-w1 .box-panel,.legacy-w1 .charging-panel{padding:22px;border-radius:18px;background:#f0f3f4}
  .legacy-w1 .design-panel h2,.legacy-w1 .showcase-copy h2,.legacy-w1 .box-card h2,.legacy-w1 .charging-copy h2{font-size:28px;line-height:1.1;letter-spacing:-.04em;margin:0 0 16px}
  .legacy-w1 .design-label{margin:15px 0}
  .legacy-w1 .design-label b{font-size:24px}
  .legacy-w1 .design-label span{display:block;color:#59676c}
  .legacy-w1 .design-product,.legacy-w1 .box-card img,.legacy-w1 .charging-product{display:block;width:100%;max-height:360px;object-fit:contain;margin:18px auto}
  .legacy-w1 .design-product.w1,.legacy-w1 .box-card img.w1-box,.legacy-w1 .charging-product.w1{width:auto;max-width:100%;height:320px;aspect-ratio:.88;object-fit:cover;object-position:right center}
  .legacy-w1 .design-specs,.legacy-w1 .box-card,.legacy-w1 .charging-copy{background:#fff;border-radius:12px;padding:20px;margin-top:12px}
  .legacy-w1 .design-specs dl{margin:0}
  .legacy-w1 .design-specs dl div{display:flex;gap:8px;flex-wrap:wrap;padding:6px 0;font-size:14px}
  .legacy-w1 .design-specs dt{color:#5d6b70}
  .legacy-w1 .design-specs dd{margin:0;font-weight:800}
  .legacy-w1 .design-specs p,.legacy-w1 .charging-note{font-size:12px;color:#657379;line-height:1.5}
  .legacy-w1 .showcase-layout{display:grid;gap:24px}
  .legacy-w1 .showcase-photos{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .legacy-w1 .showcase-photo{padding:8px;background:#f4f6f6}
  .legacy-w1 .showcase-photo img{width:100%;aspect-ratio:1;object-fit:contain}
  .legacy-w1 .showcase-photo img.w1-crop{object-fit:cover;object-position:right center}
  .legacy-w1 .showcase-copy,.legacy-w1 .box-card{text-align:center}
  .legacy-w1 .showcase-label,.legacy-w1 .charging-kicker{font:700 11px 'DM Mono',monospace;color:#405b69}
  .legacy-w1 .showcase-copy h2{margin-top:12px}
  .legacy-w1 .showcase-copy p,.legacy-w1 .box-contents p,.legacy-w1 .charging-copy p{font-size:14px;color:#56666d;line-height:1.6}
  .legacy-w1 .showcase-copy .button,.legacy-w1 .box-contents .button{margin-top:20px}
  .legacy-w1 .box-measurements{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .legacy-w1 .box-measurements span,.legacy-w1 .box-measurements b{display:block;font-size:12px}
  .legacy-w1 .box-measurements div{border:1px solid #e4e8ea;border-radius:10px;padding:12px 5px}
  .legacy-w1 .charging-battery{display:block;font-weight:800;margin:18px 0}
  .legacy-w1 .charging-note{display:block}
  .legacy-w1 > .hero{display:none}
}
.product-carousel-indicator{display:none}
@media (max-width:640px){.legacy-home .product-carousel-indicator{display:flex}}
/* Match the homepage mobile brand to the black-and-white desktop logo. */
@media (max-width: 640px) {
  .legacy-home .nav .brand { gap: 5px; }
  .legacy-home .nav .brand-logo { width: 75px; height: 33px; object-fit: cover; border-radius: 0; filter: invert(1); }
  .legacy-home .nav .brand span { font-size: 13px; font-weight: 800; letter-spacing: -.04em; transform: translateY(4px); }
}
/* Match the desktop contact and footer content in a portrait layout. */
@media (max-width: 640px) {
  .legacy-home .mobile-language { padding: 12px; border-radius: 10px; background: #f2f6f6; color: #223237; font-size: 13px; }
  .legacy-home .mobile-language summary { cursor: pointer; font-weight: 800; }
  .legacy-home .mobile-language-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
  .legacy-home .mobile-language-options button { padding: 9px; border: 0; border-radius: 6px; background: #fff; color: #172127; font: inherit; text-align: left; }
  .legacy-home .mobile-language-status { margin: 8px 0 0; font-size: 12px; }
  .legacy-home #contact .partner { display: none; }
  .legacy-home .desktop-contact { display: block; padding: 60px 22px; background: #fff; text-align: center; color: #121b2a; }
  .legacy-home .contact-question { font-size: 22px; }
  .legacy-home .desktop-contact h2 { margin: 14px 0 25px; font-size: 32px; line-height: 1.15; letter-spacing: -.04em; }
  .legacy-home .desktop-contact-details { display: grid; gap: 10px; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
  .legacy-home .desktop-contact-note { margin: 24px 0 0; font-size: 15px; }
  .legacy-home .desktop-subscribe { margin-top: 56px; }
  .legacy-home .desktop-subscribe h3 { font-size: 28px; letter-spacing: -.04em; }
  .legacy-home .desktop-subscribe p { margin: 12px 0; color: #536169; font-size: 14px; }
  .legacy-home .desktop-subscribe form, .legacy-home .footer-subscribe { display: flex; overflow: hidden; border: 1px solid #aebac0; border-radius: 999px; }
  .legacy-home .desktop-subscribe input, .legacy-home .footer-subscribe input { flex: 1; min-width: 0; padding: 14px 16px; border: 0; background: #fff; color: #172127; }
  .legacy-home .desktop-subscribe button, .legacy-home .footer-subscribe button { flex: 0 0 48px; border: 0; background: #fff; color: #172127; font-size: 22px; }
  .legacy-home .subscribe-note, .legacy-home .footer-small { font-size: 11px !important; }
  .legacy-home footer { padding: 0; background: #050505; color: #fff; }
  .legacy-home footer > .shell { display: none; }
  .legacy-home .desktop-footer { display: block; }
  .legacy-home .footer-wave { display: block; height: 48px; background: #fff; }
  .legacy-home .footer-wave svg { display: block; width: 100%; height: 100%; }
  .legacy-home .footer-inner { padding: 32px 24px 26px; }
  .legacy-home .footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .legacy-home .footer-column h3 { margin: 0 0 14px; font-size: 19px; }
  .legacy-home .footer-column a, .legacy-home .footer-column p { display: block; margin: 0 0 10px; color: #e7e7e7; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .legacy-home .footer-subscribe { margin: 12px 0; }
  .legacy-home .desktop-copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid #596164; color: #d3dbdd; font-size: 11px; }
}

/* Preserve the W1 product image and background while showing the award. */
.legacy-home .home-w1-product-image { position: relative; width: 100%; }
.legacy-home .home-w1-product-image .desktop-product-image { display: block; }
.legacy-home .home-w1-award { position: absolute; top: 3%; right: 3%; width: 26%; height: auto; mix-blend-mode: multiply; }

.legacy-home .home-p2-product-image { position: relative; width: 100%; }
.legacy-home .home-p2-product-image .desktop-product-image { display: block; }
.legacy-home .home-p2-award { position: absolute; top: 2%; right: 1%; width: 14%; height: auto; mix-blend-mode: multiply; }
