/* Quiet Logic Games — home hero polish (2026-11-24). Loaded after qlg-play and qlg-showcase. */

/* 1. Faster intro: the whole hero is in place in about half a second */
@media (prefers-reduced-motion:no-preference){
  .site-frame .qp-letters span{animation-duration:.42s}
  .site-frame .qp-letters span:nth-child(1){animation-delay:0s}.site-frame .qp-letters span:nth-child(2){animation-delay:.02s}
  .site-frame .qp-letters span:nth-child(3){animation-delay:.04s}.site-frame .qp-letters span:nth-child(4){animation-delay:.06s}
  .site-frame .qp-letters span:nth-child(5){animation-delay:.08s}.site-frame .qp-letters span:nth-child(6){animation-delay:.1s}
  .site-frame .qp-letters span:nth-child(7){animation-delay:.12s}.site-frame .qp-letters span:nth-child(8){animation-delay:.14s}
  .site-frame .qp-letters span:nth-child(9){animation-delay:.16s}
  .site-frame .quiet-hero__copy>:not(h1){animation-duration:.4s;animation-delay:.1s}
  .site-frame .quiet-hero__copy>:nth-child(4){animation-delay:.14s}
  .site-frame .quiet-hero__copy>:nth-child(5){animation-delay:.18s}
  .site-frame .quiet-hero__copy>:nth-child(6){animation-delay:.22s}
  .site-frame .qh-stack{animation-duration:.55s;animation-delay:.05s}
}

/* 2. A caption that explains the selected screen */
.qh-caption{margin:0;min-height:3.2em;max-width:340px;text-align:center;color:var(--ink);font-size:16px;font-weight:600;line-height:1.6}
.qh-cap{display:none}
#qh-home:checked~.qh-caption .qh-cap--home,#qh-weekly:checked~.qh-caption .qh-cap--weekly,#qh-torch:checked~.qh-caption .qh-cap--torch{display:block}
@media (prefers-reduced-motion:no-preference){
  @keyframes qh-cap-in{from{opacity:0;translate:0 6px}}
  .qh-cap{animation:qh-cap-in .35s ease-out}
}

/* 3. Phones: the tabs and caption come first, so the choice is visible on the first screen */
@media (width<=760px){
  .site-frame .quiet-hero{gap:26px;padding-block:44px 30px}
  .qh-stage{gap:12px}
  .qh-tabs{order:-2}
  .qh-caption{order:-1;min-height:3.2em;font-size:15px}
  .qh-stack{width:min(100%,320px)}
}

/* 4. A clear, bigger download button */
.site-frame .quiet-hero__download{display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:14px 28px;border-radius:14px;font-size:18px;font-weight:800;letter-spacing:.01em}
.site-frame .quiet-hero__download .qh-dl-icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.site-frame .quiet-hero__availability{font-size:14px;font-weight:700}
@media (prefers-reduced-motion:no-preference){
  @keyframes qh-nudge{0%,80%,100%{translate:0 0}88%{translate:0 3px}94%{translate:0 -1px}}
  .site-frame .quiet-hero__download .qh-dl-icon{animation:qh-nudge 2.6s 1s ease-in-out infinite}
}
@media (width<=760px){.site-frame .quiet-hero__download{min-height:54px;font-size:17px;width:min(100%,300px);justify-content:center}}
