/* Public storefront pages share a compact masthead and product scale. */
body.storefront .gateway-header,
body.storefront:not(.gateway-page) .shopping-header {
  height: 3.75rem;
  padding: .25rem clamp(.75rem, 3vw, 2.5rem);
}
.storefront .gateway-brand img,
.storefront .shopping-header .logo { width: 7.1rem; height: 3.1rem; object-fit: contain; }
.storefront .announcement { height: 1.375rem; }
.storefront .shopping-header .tools { gap: clamp(.45rem, 1.4vw, 1.1rem); }
.storefront .shopping-header .tools .icon { width: 1.35rem; height: 1.35rem; }

.storefront .home-page { max-width: 81rem; margin-inline: auto; }
.storefront .home-intro { min-height: 0; padding: .75rem 0; gap: .75rem; }
.storefront .home-intro .slogan-lockup { font-size: clamp(1.2rem, 1.8vw, 1.65rem); }
.storefront .home-intro-actions { gap: .15rem; }
.storefront .home-intro .home-motto { font-size: clamp(1.2rem, 2vw, 1.7rem); }

/* The four install choices share one row, independent of other apps' panels. */
html .gateway-page .home-page .tb-install-panel { padding: .35rem .6rem; margin: 0 0 .65rem; border-radius: .65rem; }
html .gateway-page .home-page .tb-install-layout {
  grid-template-columns: minmax(0,1fr) auto;
  gap: clamp(.75rem, 2vw, 1.75rem);
}
html .gateway-page .home-page .tb-install-options {
  container-type: normal; justify-self: end; width: fit-content; max-width: 100%; padding: 0 0 0 1rem; border: 0; border-left: 1px solid #343b3d;
}
html .gateway-page .home-page .tb-install-heading strong { font-size: 1rem !important; line-height: 1.25 !important; }
html .gateway-page .home-page .tb-share-row { margin: 0; }
html .gateway-page .home-page .tb-app-share { min-height: 1.85rem; padding: 0; }
html .gateway-page .home-page .tb-register-action { min-height: 2.25rem; margin: .3rem 0 0; padding: .3rem .7rem; }
html .gateway-page .home-page .tb-platform-grid {
  width: 100%; max-width: 100%;
  grid-template-columns: repeat(4, 6.5rem) !important;
  gap: .25rem !important;
}
html .gateway-page .home-page .tb-install-panel .tb-platform-grid > .tb-app-action {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  min-height: 2rem; width: 100%; max-width: 6.5rem; justify-self: center; height: auto; padding: 0 .125rem;
  column-gap: .2rem; row-gap: 0; align-items: center; align-content: center; justify-content: center;
  font-size: .875rem; line-height: 1.1; border-radius: .35rem;
}
html .gateway-page .home-page .tb-platform-grid .tb-app-action > span { display: contents; }
html .gateway-page .home-page .tb-platform-grid .platform-logo { grid-area: 1 / 1; width: .875rem; height: .875rem; }
html .gateway-page .home-page .tb-platform-grid .tb-platform-name { grid-area: 1 / 2; white-space: nowrap; }
html .gateway-page .home-page .tb-platform-grid small.tb-platform-summary {
  grid-area: 2 / 1 / 3 / -1; margin: 0; text-align: center;
  font-size: .75rem; line-height: 1.1; white-space: nowrap;
}

/* Shared grid tracks align each accent, code, title and link even when text wraps. */
.storefront .home-panels {
  min-height: clamp(15.5rem, 42svh, 23rem);
  grid-template-rows: minmax(3rem, 1fr) auto auto auto auto;
  gap: 0 clamp(.6rem, 1.3vw, 1rem);
}
.storefront .home-card {
  grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 0;
  height: auto; padding: 1rem clamp(.85rem, 1.7vw, 1.45rem);
}
.storefront .home-card-copy { display: contents; }
.storefront .home-card-accent { grid-row: 2; height: .25rem; width: 2.75rem; margin: 0 0 .42rem; }
.storefront .home-card-code { grid-row: 3; font-size: .8125rem; margin: 0 0 .35rem; }
.storefront .home-card h2 {
  grid-row: 4; align-self: start; min-height: 0; margin: 0;
  font-size: clamp(1.25rem, 1.65vw, 1.6rem); line-height: 1.12;
}
.storefront .home-explore {
  grid-row: 5; justify-self: start; align-self: end; margin-top: .45rem;
  min-width: 6.25rem; padding-bottom: .2rem; font-size: .875rem;
}
.storefront .photo-dots { right: 1rem; bottom: 1.45rem; }
.storefront .investor-entry { margin: 1rem 0; }

.storefront .catalog-title,
.storefront .catalog-layout,
.storefront .product-detail,
.storefront .gear-product {
  max-width: 82rem; margin-inline: auto; padding-inline: clamp(1rem, 2.25vw, 2rem);
}
.storefront .catalog-title { padding-block: .8rem .65rem; }
.storefront .catalog-title .breadcrumb { margin: 0 0 .4rem; }
.storefront .catalog-title h1 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.storefront .catalog-title p { margin: .35rem 0 0; }
.storefront .catalog-brand-logo { max-width: 11rem; margin: .35rem 0; }
.storefront .catalog-brand-logo .principal-mark { height: 3.6rem; padding: .45rem .65rem; }
.storefront .catalog-layout { padding-top: .75rem; gap: clamp(.75rem, 1.7vw, 1.4rem); }
.storefront .catalog-layout .results-bar { margin: 0 0 .55rem; }
.storefront .product-grid { gap: 1.2rem .8rem; }
.storefront .product-picture {
  aspect-ratio: auto; height: clamp(8rem, 22vw, 15rem); max-height: 34svh;
}
.storefront .product-picture img { object-fit: contain; }
.storefront .product-info { padding: .45rem 0 .55rem; }
.storefront .product-info h3 { font-size: clamp(.94rem, 1.3vw, 1.1rem); line-height: 1.22; margin: .25rem 0; }
.storefront .product-info .price { font-size: .9375rem; }
.storefront .filter-panel h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.storefront .filter-panel label { margin-bottom: .65rem; }
.storefront .filter-panel input:not([type=checkbox]),
.storefront .filter-panel select { min-height: 2.5rem; padding-block: .45rem; }

.storefront .product-detail,
.storefront .gear-product { padding-top: .75rem; }
.storefront .product-detail > .breadcrumb,
.storefront .gear-product > .breadcrumb { margin: 0 0 .7rem; }
.storefront .detail-grid,
.storefront .gear-grid { gap: clamp(1.2rem, 2.5vw, 2.4rem); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.storefront .product-detail .detail-photo,
.storefront .gear-photo {
  aspect-ratio: auto; height: min(50svh, 29rem); min-height: 0; top: auto;
}
.storefront .detail-photo img,
.storefront .gear-photo img { width: 100%; height: 100%; object-fit: contain; }
.storefront .product-detail .detail-info { padding: 0; }
.storefront .product-brand-logo { margin: 0 0 .5rem; }
.storefront .product-brand-logo .principal-mark { width: 7.5rem; height: 2.75rem; padding: .3rem .6rem; }
.storefront .product-detail .sku { font-size: .8125rem; gap: .1rem .65rem; margin: 0 0 .5rem; }
.storefront .detail-info h1,
.storefront .gear-config h1 { font-size: clamp(1.45rem, 2.5vw, 2.35rem); line-height: 1.12; margin: 0 0 .45rem; letter-spacing: -.025em; }
.storefront .product-detail .detail-price { font-size: 1.25rem; margin: 0 0 .5rem; }
.storefront .product-channel-prices { margin: .5rem 0; }
.storefront .product-channel-prices > div { padding: .45rem .55rem; }
.storefront .product-channel-prices span { margin-bottom: .15rem; }
.storefront .product-channel-prices strong { font-size: .9rem; white-space: normal; }
.storefront .product-detail .reviews-link { padding-bottom: .5rem; margin: 0 0 .4rem; }
.storefront .product-detail .product-options { margin: .75rem 0; }
.storefront .product-gallery, .storefront .gear-gallery {
  grid-template-columns: repeat(auto-fill, minmax(3.5rem, 4.5rem)); gap: .5rem; margin: .5rem 0 0;
}
.storefront .gear-tabs { padding: .55rem 0; margin-bottom: .7rem; }

@media (min-width: 761px) {
  html .gateway-page .home-page .tb-install-options { min-width: 0; }
}
@media (min-width: 641px) {
  .storefront .catalog-layout {grid-template-columns: clamp(10rem, 15vw, 12rem) minmax(0, 1fr);}
  .storefront .catalog-products {grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));}
}
@media (max-width: 760px) {
  html .gateway-page .home-page .tb-install-panel {
    --home-app-spacing: .3125rem;
    padding-block: var(--home-app-spacing);
    padding-inline-end: var(--home-app-spacing);
  }
  html .gateway-page .home-page .tb-install-layout {
    grid-template-columns: minmax(0,1fr) minmax(0,9.75rem); align-items: center; gap: .5rem;
  }
  html .gateway-page .home-page .tb-install-heading { display: grid; justify-items: start; gap: .18rem; }
  html .gateway-page .home-page .tb-app-share { gap: .3rem; font-size: .8125rem; line-height: 1.2; text-align: left; text-wrap: balance; }
  html .gateway-page .home-page .tb-install-heading strong { font-size: .9375rem !important; text-wrap: balance; }
  html .gateway-page .home-page .tb-register-action {
    margin: 0; min-height: 2.5rem; padding: .3rem .4rem; gap: .2rem; font-size: .8125rem; line-height: 1.2; text-wrap: balance;
  }
  html .gateway-page .home-page .tb-register-action .icon { width: .875rem; height: .875rem; }
  html .gateway-page .home-page .tb-install-options { justify-self: end; width: 100%; padding: 0; border: 0; }
  html .gateway-page .home-page .tb-install-panel .tb-platform-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: var(--home-app-spacing) .25rem !important;
  }
  html .gateway-page .home-page .tb-install-panel .tb-platform-grid > .tb-app-action {
    grid-template-rows: auto; min-height: 1.875rem;
  }
  /* Put the extra touch area toward the outside of each row while keeping the targets separate. */
  html .gateway-page .home-page .tb-platform-grid > a.tb-app-action::after {
    --inner-inset: calc(var(--home-app-spacing) / -2);
    --outer-inset: min(0px, calc(100% - 2.75rem - var(--inner-inset)));
    inset-block: var(--outer-inset) var(--inner-inset);
  }
  html .gateway-page .home-page .tb-platform-grid > a.tb-app-action:nth-child(n+3)::after {
    inset-block: var(--inner-inset) var(--outer-inset);
  }
  html .gateway-page .home-page .tb-platform-grid small.tb-platform-summary { display: none; }
}
@media (max-width: 360px) {
  html .gateway-page .home-page .tb-app-share { flex-direction: column; align-items: flex-start; gap: .15rem; }
}
@media (max-width: 700px) {
  .storefront .home-intro { flex-direction: row; align-items: center; flex-wrap: wrap; padding-block: .55rem; gap: .4rem .85rem; }
  .storefront .home-intro .slogan-lockup { font-size: 1.05rem; }
  .storefront .home-intro-actions { width: auto; align-items: flex-start; }
  .storefront .home-intro .home-motto { font-size: 1.15rem; }
  .storefront .home-category-line { font-size: .75rem; white-space: normal; }
  .storefront .home-panels { display: flex; flex-direction: column; min-height: 0; gap: .5rem; }
  .storefront .home-card {
    display: block; aspect-ratio: auto; height: auto; min-height: 7.8rem; padding: .65rem .85rem;
  }
  .storefront .home-card .home-photo:not(.home-photo-coastal) { object-position: center 35%; }
  .storefront .home-card::after {background: linear-gradient(90deg, #080b0df0 0%, #080b0da8 43%, #080b0d12 88%);}
  .storefront .home-card-copy { position: relative; inset: auto; display: flex; align-items: flex-start; }
  .storefront .home-card-accent { margin: 0 0 .23rem; }
  .storefront .home-card-code { margin: 0 0 .2rem; }
  .storefront .home-card h2 { font-size: 1.2rem; }
  .storefront .home-explore { align-self: flex-start; margin-top: .23rem; }
  .storefront .photo-dots { bottom: .85rem; }
}
@media (max-width: 640px) {
  body.storefront .gateway-header, body.storefront:not(.gateway-page) .shopping-header { height: 3.3rem; }
  .storefront .shopping-header .logo, .storefront .gateway-brand img { width: 6.2rem; height: 2.7rem; }
  html .gateway-page .home-page .tb-install-panel { padding-inline-start: .45rem; }
  .storefront .catalog-layout .catalog-filter-toggle { margin: 0 0 .55rem; }
  .storefront .catalog-products { gap: 1rem .55rem !important; }
  .storefront .product-picture { height: clamp(7.8rem, 37vw, 13.5rem); }
  .storefront .product-info .price { font-size: .875rem; }
  .storefront .product-detail .detail-photo, .storefront .gear-photo { height: min(29svh, 15rem); }
  .storefront .product-detail .detail-grid { gap: 0; }
  .storefront .product-detail .detail-info { order: 1; padding-top: .65rem; }
  .storefront .product-detail .product-gallery { order: 2; gap: .45rem; margin: .65rem 0; }
  .storefront .product-gallery .gallery-tile { flex-basis: 3.75rem; }
  .storefront .gear-grid { grid-template-columns: 1fr; }
  .storefront .gear-grid > div:first-child { display: contents; }
  .storefront .gear-grid .gear-config { grid-row: 2; }
  .storefront .gear-grid { gap: .65rem; }
  .storefront #whatsapp { min-width: 2.8rem; min-height: 2.8rem; width: 2.8rem; height: 2.8rem; padding: .55rem; border-radius: 50%; justify-content: center; }
  .storefront #whatsapp > span { display: none; }
}

/* Keep the public division pages and shopping guides at the same reading scale. */
.storefront .page-title:not(.catalog-title),
.storefront main > .section:not(.catalog-layout, .product-detail, .gear-product),
.storefront .principal-section {
  padding-block: clamp(1rem, 2.5vw, 2rem);
  padding-inline: max(clamp(1rem, 2.25vw, 2rem), calc((100% - 78rem) / 2));
}
.storefront .page-title:not(.catalog-title) h1,
.storefront .tb-install-intro h1 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); line-height: 1.1; margin-block: .35rem; }
.storefront .page-title p { margin-top: .45rem; }
.storefront .section-heading,
.storefront .principal-heading { margin-bottom: 1rem; gap: 1rem; }
.storefront .section-heading h2,
.storefront .principal-heading h2,
.storefront .fit-intro h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
.storefront .principal-grid { gap: 1rem .75rem; }
.storefront .division-hero { min-height: clamp(15rem, 46svh, 24rem); }
.storefront .division-hero .hero-content { padding-block: 1.5rem 3rem; }
.storefront .division-hero h1,.storefront .development-copy h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.09; margin-block: .45rem; }
.storefront .division-hero .hero-bottom { bottom: .75rem; }
.storefront .division-development { min-height: 0; }
.storefront .development-copy { padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.storefront .division-development .development-visual img { position: absolute; inset: 0; }
.storefront .tb-install-page { padding-block: 1.5rem; }
.storefront .gear-config > p { margin: .5rem 0; }
.storefront .gear-options { margin: .8rem 0; min-width: 0; }
.storefront .gear-config,.storefront .gear-grid > div,.storefront .detail-info { min-width: 0; overflow-wrap: anywhere; }
.storefront .gear-prices { margin: .5rem 0; }
.storefront .gear-prices > div { padding: .35rem .65rem; }
@media (max-width: 700px) {
  .storefront .division-development .development-visual { height: clamp(9rem, 25svh, 13.5rem); }
  .storefront .principal-heading { gap: .5rem; }
}

.storefront .catalog-title .preorder-notice { padding: .45rem .7rem; font-size: .8125rem; line-height: 1.4; }
.storefront .catalog-title .preorder-notice strong { margin-right: .5rem; }
.storefront .catalog-title .preorder-notice br { display: none; }
.storefront .catalog-layout .results-bar { min-height: 0; padding-block: .25rem; }
.storefront .product-info > small { font-size: .75rem; line-height: 1.3; letter-spacing: .015em; }
.storefront .product-info > .card-leadtime { margin: .25rem 0 0; }
.storefront .product-info { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; }
@media (min-width: 701px) {
  .storefront .catalog-title:has(.catalog-brand-logo):has(h1.sr-only) {
    display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: 1.25rem; align-items: center;
  }
  .storefront .catalog-title .breadcrumb { grid-column: 1 / -1; }
  .storefront .catalog-title:has(h1.sr-only) .catalog-brand-logo { grid-column: 1; grid-row: 2 / span 2; width: 10rem; }
  .storefront .catalog-title:has(h1.sr-only) > p { grid-column: 2; margin: .15rem 0; }
}

.storefront .product-info > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (min-width: 641px) and (max-height: 720px) {
  .storefront .catalog-products .product-picture { max-height: 24svh; }
}
