/* The download page's own layout. Colour, type and components come from tokens.css and base.css. */

main { background: var(--glow) no-repeat top center / 100% 640px; }

/* ---- Hero ---- */
.hero { padding: clamp(40px, 7vw, 76px) 0 0; }
.hero .icon { width: clamp(88px, 12vw, 116px); margin: 0 auto var(--s-5); filter: drop-shadow(0 12px 24px rgba(190, 70, 20, .26)); }
.hero .t-lede { max-width: 30em; margin: var(--s-5) auto 0; }
.cta { margin-top: var(--s-6); display: grid; justify-items: center; gap: var(--s-3); }
.cta .getform, .cta .got { width: 100%; max-width: 29rem; }
.cta .fine { max-width: 27rem; margin: 0 auto; text-wrap: balance; }

/* ---- The stage: a corner of a Mac desktop. The wallpaper, the menu bar with Thermals open in it, and the
        real menu hanging below its item. ---- */
.stage { margin-top: clamp(40px, 6vw, 64px); background: var(--wall); border-radius: var(--r-stage); overflow: hidden; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08); color: var(--on-wall); }
.menubar { height: 36px; padding: 0 clamp(14px, 3vw, 28px); display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); font-size: .8125rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.menubar .extra { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--bar-pill); }
.menubar .extra img { height: 18px; width: auto; }
.menubar .clock { font-variant-numeric: tabular-nums; }
.scene { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: clamp(24px, 5vw, 64px); padding: 6px clamp(14px, 3vw, 28px) clamp(28px, 5vw, 56px) clamp(24px, 6vw, 72px); text-align: left; }
.scene .window { width: 340px; max-width: 100%; }
.says { max-width: 24em; }
.says .t-title { color: var(--on-wall); }
.says p + p { margin-top: var(--s-4); color: var(--on-wall-2); font-size: var(--t-lede); line-height: var(--lh-lede); letter-spacing: var(--tr-lede); text-wrap: pretty; }
.says .t-caption { margin-top: var(--s-5); color: var(--on-wall-2); font-size: var(--t-small); line-height: var(--lh-small); letter-spacing: var(--tr-small); }
@media (max-width: 800px) {
  .scene { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 6px var(--s-4) var(--s-7); text-align: center; gap: var(--s-6); }
  .scene picture { order: -1; justify-self: end; }
  .says { max-width: 30em; }
}
@media (max-width: 420px) { .scene picture { justify-self: center; } .menubar { padding-right: 22px; } }

/* ---- Features ---- */
.band { background: var(--band); margin-top: var(--s-9); padding: var(--s-9) 0; }
.band .t-title { margin-bottom: var(--s-3); }
.band .t-lede { max-width: 32em; margin: 0 auto var(--s-7); }

/* The four verdicts, each with the menu bar item as it looks in that state. One is lit at a time. */
.states { margin: var(--s-5) calc(-1 * var(--s-3)) calc(-1 * var(--s-3)); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.states li { padding: var(--s-4); border-radius: 20px; display: grid; justify-items: start; align-content: start; gap: var(--s-2); cursor: default; transition: background 420ms var(--ease); }
.states .chip { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; margin-bottom: var(--s-2); border-radius: 10px; background: var(--inset); transition: background 420ms var(--ease), box-shadow 420ms var(--ease), transform 420ms var(--ease-out); }
.states .chip img { height: 22px; width: auto; }
.states .verdict { font-size: var(--t-body); }
.states .dot { transition: box-shadow 420ms var(--ease); }
.states p { color: var(--ink-2); font-size: var(--t-small); line-height: var(--lh-small); letter-spacing: var(--tr-small); }
.states li.on { background: var(--inset); }
.states li.on .chip { background: var(--tile); box-shadow: var(--shadow-module); transform: scale(1.06); transform-origin: left center; }
.states li.on .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--status) 22%, transparent); }
@media (max-width: 860px) { .states { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .states { grid-template-columns: 1fr; } }

.stat { font-size: clamp(3rem, 6vw, 4.25rem); line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: var(--s-2); }
.stat small { font-size: .42em; font-weight: 600; letter-spacing: 0; margin-left: .14em; color: var(--ink-2); }

/* ---- The closing call, on the same wallpaper as the hero. ---- */
.get { padding: var(--s-9) 0; }
.closing { background: var(--wall); border-radius: var(--r-stage); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08); padding: clamp(48px, 8vw, 88px) var(--s-5); color: var(--on-wall); }
.closing .icon { width: 96px; margin: 0 auto var(--s-5); filter: drop-shadow(0 14px 26px rgba(120, 40, 10, .34)); }
.closing .t-lede { margin-top: var(--s-3); color: var(--on-wall-2); }
.closing .t-caption { color: var(--on-wall-2); }
.closing .fine a, .closing .how a { color: inherit; text-decoration: underline; }
.closing .how { margin-top: var(--s-5); color: var(--on-wall-2); }
.closing .got { color: var(--ink); }
.closing .got .t-caption { color: var(--ink-3); }

/* ---- Motion: the hero arrives in order once; tiles rise as they scroll into view. ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero > .icon, .hero > h1, .hero > .t-lede, .hero > .cta, .hero > .stage { animation: rise 900ms var(--ease-out) both; }
  .hero > h1 { animation-delay: 60ms; }
  .hero > .t-lede { animation-delay: 140ms; }
  .hero > .cta { animation-delay: 220ms; }
  .hero > .stage { animation-delay: 320ms; }
  .hero > .icon { animation-name: pop; animation-duration: 800ms; }
  @supports (animation-timeline: view()) {
    .tile, .closing { animation: rise linear both; animation-timeline: view(); animation-range: entry 0px entry 220px; }
  }
}
