/* TRIPX home page (the rev G page and site.css, restored 2026-10-29 for the it22 pod): what the it22 version adds. */

/* Hero: the screen disc of the it22 render (img/it22/hero-front.webp), measured from the render's own screen
   (a white-screen pass against the screen-off pass): it plays the pod's real approach frames (img/ui/hero/). */
.hero-screen {
  position: absolute; left: 12.379%; top: 12.599%; width: 74.979%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #000; animation: hp-boot 0.5s 0.6s ease-out both;
}
.hero-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; } /* the pod's own drive, 30 fps */
.hero-screen::after { /* the cover glass: a soft sheen over the screen, as on the render */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(120% 90% at 28% 12%, rgba(255, 255, 255, 0.09) 0, rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0) 60%);
}

/* Phones and tablets in portrait: site.css centres the pod on 41% of its image (the rev G render); the it22 render's
   screen centre is at 50%, so the pod sat about a third of a pod-width to the right and ran off the screen edge. */
@media (max-width: 1080px) and (max-aspect-ratio: 1/1), (max-width: 760px) {
  .hero { --pw: min(80vw, calc(42svh * 0.95), 500px); } /* a smaller pod: the headline and buttons need the room */
  .hero-prod { margin-left: calc(50% - var(--pw) * 0.5); }
  .hero-prod-move, .hero-prod-tilt { transform-origin: 50% 50%; }
}

/* Phones, "A place on your handlebar": the heading stays at the top, the pod (the slot it is fitted to) sits in the
   middle of the screen and the words sit at the bottom, above the pill, instead of all three bunching at the top. */
@media (max-width: 760px) {
  .has3d .hw-grid { height: 100%; align-self: stretch; }
  .has3d .hw-copy { height: 100%; }
  .has3d .hw-slot { margin: auto; }
  .has3d .hw-steps { margin-top: 0; padding-top: 70px; } /* the dimension line sits in this gap, under the pod */
}

/* Finale: the TRIPX wordmark behind the pod, a little brighter than rev G's */
.finale-word { -webkit-text-stroke: 1.5px rgba(238, 240, 242, 0.3); color: rgba(238, 240, 242, 0.045); }
.static .finale-word { -webkit-text-stroke: 1.5px rgba(238, 240, 242, 0.3); }

/* Tablets (761-1080 px) hide the nav links too: give them the chapter menu (site.css shows it to 760 px only) */
@media (min-width: 761px) and (max-width: 1080px) {
  .chapter-menu { display: block; }
  .chapter-menu summary { list-style: none; width: 44px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; align-items: center; cursor: pointer; margin-left: -11px; }
  .chapter-menu summary::-webkit-details-marker { display: none; }
  .chapter-menu summary span { display: block; width: 22px; height: 1.5px; border-radius: 999px; background: currentColor; transition: transform 0.3s var(--ease); }
  .chapter-menu[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .chapter-menu[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-row:has(.chapter-menu) { grid-template-columns: auto 1fr auto; column-gap: 4px; }
  .nav-row:has(.chapter-menu) > .chapter-menu { grid-column: 1; }
  .nav-row:has(.chapter-menu) > .brand { grid-column: 2; }
  .nav-row:has(.chapter-menu) > .nav-end { grid-column: 3; }
  .chapter-menu { position: static; }
  .chapter-menu nav { position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); padding: 12px 18px; border: 1px solid var(--night-line); border-radius: 12px; background: var(--night-2); color: var(--ink); box-shadow: 0 16px 40px #0005; }
  .chapter-menu nav a { display: block; min-height: 48px; padding: 10px 0; text-decoration: none; font-size: 16px; }
  .chapter-menu nav a + a { border-top: 1px solid var(--night-line); }
  .nav:has(.chapter-menu[open]) { transform: none; }
}

@media (prefers-reduced-motion: reduce) { .hero-screen { animation: none; } }

/* Sport now follows the dark "Plan. Pair. Ride." (the light "Take it apart" before it was removed): it opens dark and only
   lightens at its end, into the app section */
.sport { --lit: clamp(0, (var(--p, 0) - 0.92) * 12.5, 1); }
.static .sport { background: linear-gradient(var(--night), var(--night) calc(100% - 30vh), var(--studio)); }


/* Keep launch details in the hero's existing flow and aligned to its actions. */
.launch-access { display: grid; justify-items: start; gap: 16px; margin-top: 24px; }
.launch-access .btn-text { max-width: 100%; font-size: 14px; line-height: 1.5; }
.hero-grid .launch-access { grid-row: 6; position: relative; z-index: 2; }
.hero-grid { grid-template-rows: auto 1fr auto auto auto auto auto; }
.hero-specs { grid-row: 7; margin-top: 28px; }
.hero-title.is-eligible { font-size: clamp(36px, 4.5vw, 78px); }
@media (max-width: 1080px) and (max-aspect-ratio: 1/1), (max-width: 760px) {
  .hero-grid { grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto; }
  .hero-grid .launch-access { justify-items: center; text-align: center; }
  .hero-title.is-eligible { font-size: clamp(30px, 7.8vw, 54px); }
  .hero-specs { grid-row: 7; }
}

/* Keep the launch price and dates compact, with words grouped inside each text link. */
.hero-lede { max-width: 430px; }
.hero-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.hero-price [data-launch-price] { font-size: 34px; line-height: 1.1; color: var(--ink); }
.hero-price-note { font-size: 13px; line-height: 1.4; }
/* Regular price struck through and a quiet % mark: added by js/preorder-launch.js only when the server sends an approved reference price. */
.price-ref { order: -1; font-size: 18px; line-height: 1; color: var(--ink-3); text-decoration-thickness: 1px; text-decoration-color: currentColor; }
.price-off { padding: 4px 9px; border: 1px solid var(--line, rgba(238, 240, 242, 0.22)); border-radius: 999px; color: var(--ink); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; line-height: 1; white-space: nowrap; }
.launch-offer .price-ref, .launch-offer .price-off { justify-self: start; }
.hero-dates { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.hero-dates time { white-space: nowrap; }
.hero-see-short { display: none; }
.launch-offer { display: grid; justify-items: start; gap: 12px; }
.launch-offer > .btn { margin-top: 8px; }
@media (max-width: 1080px) and (max-aspect-ratio: 1/1), (max-width: 760px) {
  .hero-lede { max-width: 100%; margin-top: 16px; }
  .hero-price, .hero-dates { justify-content: center; }
  .hero-price [data-launch-price] { font-size: 30px; }
  .hero-price-note { font-size: 12px; }
  .hero-dates { gap: 4px 16px; }
  .hero-cta { margin-top: 20px; }
  .hero-grid .launch-access { gap: 12px; margin-top: 20px; }
  .hero-grid .launch-access .btn-text { padding-block: 10px; font-size: 13px; }
  .hero-see-long { display: none; }
  .hero-see-short { display: inline; }
}
