/* ATENG 2026-11-18 upgrade: homepage 8x8 hero video, 8x8 tier comparison, mobile buy box first. */

/* 8x8: tier comparison cards */
.tier-compare{padding-top:10px;padding-bottom:60px}
.tier-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}
.tier-card{background:var(--white);border:1px solid var(--line);padding:22px 22px 24px;display:flex;flex-direction:column}
.tier-card.is-selected{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.tier-card h3{font-size:17px;line-height:1.3;margin:0 0 8px}
.tier-card .tier-price{font-size:24px;font-weight:600}
.tier-card .tier-price small{font-size:11px;font-weight:400;color:var(--muted)}
.tier-card .tier-when{font:11px var(--mono);letter-spacing:.5px;color:var(--muted);margin:6px 0 14px;text-transform:uppercase}
.tier-card h4{font-size:12px;letter-spacing:.6px;text-transform:uppercase;margin:12px 0 6px}
.tier-card ul{margin:0 0 4px;padding-left:18px;font-size:14px;line-height:1.5}
.tier-card .tier-choose{margin-top:auto;padding-top:12px;padding-bottom:12px}
.tier-card .tier-choose{margin-top:18px}
@media(max-width:900px){.tier-cards{grid-template-columns:1fr}}

/* 8x8: on phones show photo, then title, price and the buy box before the long notes */
@media(max-width:800px){
  .kit8x8-page .product-layout{display:flex;flex-direction:column;gap:18px}
  .kit8x8-page .kit8x8-gallery{display:contents}
  .kit8x8-page .kit8x8-gallery .showcase-stage{order:1}
  .kit8x8-page .kit8x8-gallery .thumbs{order:2}
  .kit8x8-page .product-summary{order:3;display:flex;flex-direction:column}
  .kit8x8-page .kit8x8-gallery>*:not(.showcase-stage):not(.thumbs){order:4}
  .kit8x8-page .product-summary>*{order:3}
  .kit8x8-page .product-summary>.eyebrow,.kit8x8-page .product-summary>h1,.kit8x8-page .product-summary>.status,.kit8x8-page .product-summary>.product-price{order:1}
  .kit8x8-page .product-summary>form.ateng-8x8-options,.kit8x8-page .product-summary>.p1-paypal{order:2}
  .kit8x8-page .product-summary>.lede{order:3}
}

/* Phones: show the truck first */
@media(max-width:800px){.hero{display:flex;flex-direction:column}.hero .hero-media{order:-1}.hero .hero-copy{order:0}}

/* 8x8 phones: fit the photo frame to a 4:3 photograph instead of a tall letterbox */
@media(max-width:800px){.kit8x8-page .showcase-stage{min-height:0}.kit8x8-page .showcase-photo{height:auto;aspect-ratio:4/3;max-height:340px}}

/* Hero: poster image paints first; the video fades in once it is actually playing */
.hero-video{position:relative}
.hero-video>img.hero-poster{display:block;width:100%;height:475px;object-fit:cover}
.hero-video>video.hero-loop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s ease;background:transparent}
.hero-video>video.hero-loop.is-playing{opacity:1}
.hero-video>.frame-label{z-index:2}
@media(min-width:1600px){.hero-video>img.hero-poster{height:520px}}
@media(max-width:1100px){.hero-video>img.hero-poster{height:430px}}
@media(max-width:800px){.hero-video>img.hero-poster{height:400px}}
@media(max-width:640px){.hero-video>img.hero-poster{height:300px}}
@media(max-width:800px){.hero .hero-media{padding-bottom:6px}}
