/* =====================================================================
   VOXX homepage, public App Store launch (28 November 2026).
   Inherits tokens, header, footer, buttons, player and FAQ from styles.css.
   Backbone: one run day on a lane-line rail, drawn from the VOXX track mark.
   ===================================================================== */

.home { overflow-x: clip; }
.home .g { color: var(--green); }
.home h1 span, .home h2 span { display: block; }

/* ---------- Hero ---------- */
.launch {
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(112px, 12vw, 150px) 0 clamp(56px, 7vw, 96px);
}
.launch__track {
  position: absolute; z-index: -1;
  right: -38vw; top: clamp(80px, 9vw, 130px);
  width: max(1100px, 112vw); height: auto;
  fill: #0c0e0f;
  pointer-events: none;
}
.launch__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title devices" "copy devices";
  align-items: start;
  column-gap: clamp(32px, 6vw, 112px);
}
.launch__title {
  grid-area: title;
  font-size: clamp(54px, 10.4vw, 152px);
  font-weight: 700; line-height: 0.88; letter-spacing: -0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}
.launch__copy { grid-area: copy; max-width: 34rem; margin-top: clamp(28px, 4vw, 52px); }
.launch__lede { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; color: #d9dcdf; }
.launch__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.launch__more {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.launch__more:hover { color: var(--paper); text-decoration-color: var(--green); }
.launch__more .i { width: 12px; height: 12px; }
.launch__facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.launch__facts li { display: inline-flex; align-items: center; gap: 10px; }
.launch__facts li::before { content: ""; width: 6px; height: 6px; background: var(--green); }

.launch__devices { grid-area: devices; position: relative; padding: 0 0 0 60px; }
.launch__devices .device--phone { width: 310px; }
.launch__devices .device--watch { position: absolute; left: 0; bottom: 70px; width: 156px; }
.launch__devices figcaption {
  margin-top: 18px; text-align: right;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}

/* ---------- Why ---------- */
.why { padding: clamp(72px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.why__inner {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 112px); align-items: end;
}
.why__title, .day__title, .connect__title, .free__title {
  font-weight: 700; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.01em;
  text-wrap: balance;
}
.why__title { font-size: clamp(46px, 7vw, 112px); }
.why__copy > p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: #d9dcdf; max-width: 36em; }
.why__list { margin-top: 32px; border-top: 1px solid var(--line); }
.why__list li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 17px; color: var(--muted);
}
.why__list strong { color: var(--paper); font-weight: 700; margin-right: 6px; }

.why__demo { margin-top: clamp(40px, 6vw, 80px); }

/* ---------- Run day: the rail ---------- */
.day { padding: clamp(72px, 10vw, 150px) 0 clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.day__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; }
.day__title { font-size: clamp(42px, 6vw, 96px); max-width: 9.5em; }
.day__lede { max-width: 24em; font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); }

.day__track { --rail-x: 132px; position: relative; margin-top: clamp(40px, 6vw, 88px); }
.day__rail {
  position: absolute; top: 0; bottom: 0; left: calc(var(--rail-x) - 1px); width: 2px;
  background: var(--line);
}
.day__fill {
  position: absolute; inset: 0;
  background: var(--green);
  transform-origin: top; transform: scaleY(var(--p, 0));
  box-shadow: 0 0 18px var(--green-glow);
}
.stop {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail-x) minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(32px, 4vw, 72px);
  align-items: start;
  padding: clamp(56px, 7vw, 110px) 0;
}
.stop + .stop { border-top: 1px solid #15181a; }
.stop::before {
  content: ""; position: absolute; left: calc(var(--rail-x) - 6px);
  top: calc(clamp(56px, 7vw, 110px) + 9px);
  width: 12px; height: 12px;
  background: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stop.is-past::before { background: var(--green); box-shadow: 0 0 0 4px rgba(146, 230, 49, 0.16); }
.stop__when {
  padding: 6px 32px 0 0; text-align: right;
  font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint); text-wrap: balance;
  transition: color 0.3s var(--ease);
}
.stop.is-past .stop__when { color: var(--green); }
.stop__text h3 {
  font-size: clamp(32px, 3.6vw, 56px); font-weight: 700; line-height: 0.95;
  letter-spacing: -0.005em; text-transform: uppercase; text-wrap: balance;
}
.stop__text > p { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: #d9dcdf; }
.stop__text > p.stop__aside { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.stop .player { margin-top: 28px; }
.stop .transcript p { margin: 14px 0 0; }
.stop__media { display: flex; justify-content: center; align-items: flex-end; gap: 24px; min-width: 0; }
.stop__media--pair .device--small { margin-bottom: 48px; }
.stop__media--pair .device--watch.device--small { width: 150px; }
.stop__media--watches { flex-wrap: nowrap; align-items: center; gap: 16px; padding-top: 48px; }
.stop__media--watches .device--watch { width: min(31%, 176px); padding: 6px; border-radius: 42px; }
.stop__media--watches .device--watch img { border-radius: 36px; }
.stop__media--watches .device--watch:nth-child(2) { transform: translateY(-36px); }
.day__note {
  margin-top: 8px; padding-left: calc(var(--rail-x, 132px) + 32px);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}

/* ---------- Connect ---------- */
.connect { padding: clamp(72px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.connect__title { font-size: clamp(40px, 5.6vw, 88px); max-width: 12em; }
.connect__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 96px);
  margin-top: clamp(40px, 5vw, 72px);
}
.connect__list > div {
  display: grid; grid-template-columns: minmax(9.5em, 2fr) minmax(0, 3fr); gap: 8px 24px;
  align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.connect__list dt { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
.connect__list dd { margin: 0; font-size: 16.5px; color: var(--muted); }
.connect__note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.connect__note a, .free__list a, .faq__mail, .stop__aside a {
  color: var(--paper); text-decoration: underline; text-decoration-color: var(--green);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.connect__note a:hover, .free__list a:hover, .faq__mail:hover, .stop__aside a:hover { color: var(--green); }

/* ---------- Free ---------- */
.free { padding: clamp(72px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.free__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.free__title { font-size: clamp(96px, 17vw, 260px); line-height: 0.8; color: var(--green); }
.free__list li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--muted); }
.free__list li:first-child { border-top: 1px solid var(--line); }
.free__list strong { display: block; margin-bottom: 4px; color: var(--paper); font-size: clamp(20px, 1.7vw, 26px); text-transform: uppercase; letter-spacing: 0.01em; }

/* ---------- FAQ (extends styles.css) ---------- */
.home .faq { padding-bottom: var(--section-space); border-top: 1px solid var(--line); margin-top: 0; }
.home .faq__list summary { text-transform: none; letter-spacing: 0; font-size: clamp(19px, 1.6vw, 23px); }
.home .faq__list details p a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }

/* ---------- Browser surfaces ---------- */
.home { scrollbar-color: var(--line-2) var(--ink); }
.home ::selection { background: var(--green); color: var(--on-green); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .launch__inner { grid-template-columns: 1fr; grid-template-areas: "title" "copy" "devices"; }
  .launch__devices { justify-self: center; margin-top: 56px; padding-left: 70px; }
  .launch__devices .device--phone { width: 270px; }
  .launch__devices .device--watch { width: 136px; bottom: 60px; }
  .launch__devices figcaption { text-align: center; padding-right: 70px; }
  .why__inner { grid-template-columns: 1fr; align-items: start; }
  .stop { grid-template-columns: var(--rail-x) minmax(0, 1fr); row-gap: 40px; }
  .stop__media { grid-column: 2; justify-content: flex-start; }
  .connect__list { grid-template-columns: 1fr; }
  .free__inner { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  /* Phone hero (28 November 2026, Grega: phones only). One poster screen, as the strongest app sites do it:
     a short centered headline, the promise, the App Store status within thumb reach, and the real app on
     iPhone and Apple Watch rising from the bottom edge. Tablet and desktop keep the layout above. */
  .launch { padding: 92px 0 36px; text-align: center; }
  .launch__track { right: auto; left: 50%; top: auto; bottom: 8%; width: 230vw; translate: -50% 0; fill: #0d1011; }
  .launch__title { font-size: clamp(44px, 13.6vw, 58px); line-height: 0.9; letter-spacing: -0.01em; }
  .launch__copy { max-width: 21.5rem; margin: 18px auto 0; }
  .launch__lede { font-size: 15.5px; line-height: 1.48; color: #c9cdd1; text-wrap: balance; }
  .launch__actions { justify-content: center; margin-top: 24px; }
  .launch__more { display: none; }
  /* The three facts as one balanced row under the App Store status, instead of a ragged wrap. */
  .launch__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 20px; font-size: 10.5px; line-height: 1.35; letter-spacing: 0.08em; }
  .launch__facts li { display: block; padding: 0 6px; text-wrap: balance; }
  .launch__facts li + li { box-shadow: inset 1px 0 0 var(--line); }
  .launch__facts li::before { display: block; width: 5px; height: 5px; margin: 0 auto 8px; }

  .launch__devices { justify-self: stretch; position: relative; margin-top: 34px; padding: 0; }
  .launch__devices::before {
    content: ""; position: absolute; z-index: -1; left: 50%; top: -40px; width: 120vw; height: 360px; translate: -50% 0;
    background: radial-gradient(closest-side, rgba(146, 230, 49, 0.13), rgba(146, 230, 49, 0) 72%);
    pointer-events: none;
  }
  .launch__devices .device--phone {
    width: min(70vw, 290px); height: min(116vw, 480px); margin: 0 auto; translate: -7vw 0;
    padding: 6px 6px 0; border-radius: 40px 40px 0 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 58%, transparent 97%); mask-image: linear-gradient(#000 58%, transparent 97%);
  }
  .launch__devices .device--phone img { border-radius: 34px 34px 0 0; }
  .launch__devices .device--watch {
    left: auto; right: max(4vw, calc(50% - 190px)); bottom: auto; top: min(10vw, 42px);
    width: min(33vw, 140px); padding: 5px; border-radius: 32px;
    box-shadow: inset 0 0 0 1px #2a2f33, 0 1px 0 0 #3a4045 inset, 0 28px 40px -18px rgba(0, 0, 0, 0.95);
  }
  .launch__devices .device--watch img { border-radius: 27px; }
  .launch__devices figcaption { margin-top: -18px; padding: 0; text-align: center; }

  .day__track { --rail-x: 18px; }
  .stop { grid-template-columns: var(--rail-x) minmax(0, 1fr); column-gap: 20px; row-gap: 28px; padding: 48px 0; }
  .stop::before { top: calc(48px + 2px); }
  .stop__when { grid-column: 2; padding: 0; text-align: left; }
  .stop__text, .stop__media { grid-column: 2; }
  .stop__text h3 { font-size: clamp(30px, 9vw, 40px); }
  .stop__media { justify-content: flex-start; gap: 14px; }
  .device--phone { width: min(100%, 236px); padding: 6px; border-radius: 38px; }
  .device--phone img { border-radius: 32px; }
  .stop__media--pair .device--phone { width: 60%; }
  .stop__media--pair .device--small.device--phone { width: 36%; padding: 4px; border-radius: 22px; margin-bottom: 24px; }
  .stop__media--pair .device--small.device--phone img { border-radius: 19px; }
  .stop__media--pair .device--watch.device--small { width: 110px; margin-bottom: 24px; }
  .device--watch { width: 104px; padding: 4px; border-radius: 28px; }
  .device--watch img { border-radius: 24px; }
  .stop__media--watches { gap: 10px; }
  .stop__media--watches .device--watch:nth-child(2) { transform: translateY(-18px); }
  .day__note { padding-left: calc(18px + 20px); }

  .connect__list > div { grid-template-columns: 1fr; gap: 6px; }
  .free__title { font-size: clamp(96px, 34vw, 160px); }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  /* The hero's one moment on phones: the devices settle into place as the page opens. */
  .launch__devices .device--phone { animation: launch-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards; }
  .launch__devices .device--watch { animation: launch-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.32s backwards; }
}
@keyframes launch-rise { from { transform: translateY(56px); opacity: 0.35; filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) {
  .day__fill, .stop::before { transition: none; }
}
