/* Home · Hero, launch layout (2026-11-12): the disposition of the pre-launch page (prelaunch/css/prelaunch.css)
   with the home page's own assets (ladybird bracket, laptop capture) and a download button instead of the form.
   One screen under the top bar, three rows, all centred:
     .hl-head     the app icon + wordmark, large, with a mono kicker under it
     .hl-slot     the bracket arc + laptop (css/home-hero.css), sized by js/home-hero.js to the height left over
     .hl-caption  under the laptop, like a product caption: one line, the launch offer, the download button
                  with its white "50% off" pill, and "macOS 14 or later"
   Green only on the button. Layered over home-hero.css (.ha) and sep-b.css (the hero is the first sheet). */

.hl {
  --hl-pad-t: clamp(16px, 3.6svh, 44px);
  --hl-pad-b: clamp(14px, 3svh, 36px);
  --hl-logo-h: clamp(40px, min(6.8vw, 8.4svh), 104px);
  --hl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  display: flex; flex-direction: column; align-items: center;
  margin: 0;
  padding: var(--hl-pad-t) 0 var(--hl-pad-b);
  /* overflow-x: clip comes from .ha. No vertical clip: the fold sends the frames past the hero's edges,
     and a clip here would also crop the floor light under the laptop. */
}
/* The Stacking sheet's rounded top overlaps the hero by --sb-r: give that back under the caption. */
#page-home .sb-slot > .hl { padding-bottom: calc(var(--sb-r) + var(--hl-pad-b)); }
/* home-hero.css places its floor light for the old layout; this one lights the slot instead. */
.hl::before { content: none; }

/* ---------- Head: icon + wordmark, kicker ---------- */

.hl-head {
  display: grid; justify-items: center;
  padding: 0 var(--gutter);
  position: relative; z-index: 3;
}
.hl-head > *, .hl-caption > * { animation: hl-rise 0.9s var(--hl-ease) backwards; }
.hl-head > :nth-child(2) { animation-delay: 0.08s; }
.hl-caption > :nth-child(1) { animation-delay: 0.22s; }
.hl-caption > :nth-child(2) { animation-delay: 0.3s; }
.hl-caption > :nth-child(3) { animation-delay: 0.38s; }
.hl-caption > :nth-child(4) { animation-delay: 0.46s; }
@keyframes hl-rise { from { opacity: 0; transform: translateY(10px); } }

/* App icon beside the wordmark: a touch taller than the letters, centred on them. */
.hl-logo {
  display: flex; align-items: center; justify-content: center;
  gap: calc(var(--hl-logo-h) * 0.3);
  margin: 0; line-height: 0;
}
.hl-logo img { display: block; width: auto; object-fit: contain; }
.hl-logo .hl-logo__word { height: var(--hl-logo-h); max-width: min(100%, 64vw); }
.hl-logo .hl-logo__icon {
  height: calc(var(--hl-logo-h) * 1.25);
  max-width: none; flex: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

/* A precise, instrument-like label: tracked mono caps between two hairlines. */
.hl-kicker {
  display: flex; align-items: center; gap: 14px;
  margin-top: clamp(10px, 1.8svh, 20px);
  font-family: var(--mono);
  font-size: clamp(10.5px, 0.8vw, 12px);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--muted);
  margin-right: -0.26em;                    /* tracking adds space after the last letter: centre it optically */
}
.hl-kicker::before,
.hl-kicker::after {
  content: "";
  width: clamp(18px, 2.4vw, 36px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.hl-kicker::after { transform: scaleX(-1); margin-left: -0.26em; }

/* ---------- Stage ---------- */

.hl-slot {
  position: relative;
  flex: none;
  width: 100%;
  display: grid; place-items: center;
  margin-top: clamp(14px, 3svh, 40px);
}
/* Low, wide light the laptop sits in. */
.hl-slot::before {
  content: ""; position: absolute; z-index: -2;
  left: 50%; top: 62%;
  width: min(1500px, 150vw); aspect-ratio: 2.2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(120, 150, 60, 0.11), rgba(120, 150, 60, 0.03) 60%, transparent);
  pointer-events: none;
}
.hl .ha-stage { margin: 0 auto; }
.hl .ha-device { margin: 0; }
/* Prints at 0.5014 × the laptop, the arc pulled in towards the lid (Design/HeroMushroom/mac_cards.mjs). */
.hl .ha-card { --w: 0.5014; --x: calc(var(--s) * var(--dw) * (0.24 + 0.14 * var(--d))); }

/* ---------- Caption ---------- */

.hl-caption {
  position: relative; z-index: 3;
  display: grid; justify-items: center;
  width: 100%;
  padding: 0 var(--gutter);
  margin-top: clamp(14px, 2.6svh, 34px);
}

.hl-lede {
  max-width: 34em;
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(19px, min(1.9vw, 3.1svh), 28px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.16;
  text-wrap: balance;
  font-feature-settings: "kern", "ss01";
}

/* The reason to click: the launch price. White figure on a muted line, not green (green is the button). */
.hl-offer {
  margin: clamp(6px, 1.2svh, 12px) 0 0;
  color: var(--muted);
  font-size: clamp(14px, min(1.15vw, 2svh), 16px);
  line-height: 1.4; letter-spacing: -0.005em;
  text-wrap: balance;
}
.hl-offer b { color: var(--text); font-weight: 600; }

/* ---------- Download button: the one action, the only accent on the screen ---------- */

.hl-download {
  gap: 10px;
  min-height: 48px;
  margin-top: clamp(14px, 2.4svh, 26px);
  padding: 0 18px 0 20px;
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(89, 214, 160, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hl-download:hover { box-shadow: 0 12px 34px rgba(89, 214, 160, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.hl-download:active { transform: scale(0.98); }
.hl-download svg { flex: none; }
/* The offer rides on the button itself: a hairline, then "50% off" on a white pill in the button's ink. */
.hl-download__sep { width: 1px; height: 18px; background: currentColor; opacity: 0.28; }
.hl-download__more { display: none; }
.hl-download__offer {
  margin-right: -6px;                        /* the pill sits closer to the button's rounded end */
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff; color: var(--accent-ink);
  font-size: 13.5px; font-weight: 650; letter-spacing: 0;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Availability: small print, not a headline. */
.hl-note {
  margin-top: clamp(8px, 1.4svh, 16px);
  color: var(--faint);
  font-size: 12px; line-height: 1.4; letter-spacing: 0.01em;
}

/* ---------- Tablets and phones: natural flow, the bracket fans above the lid ---------- */

@media (max-width: 900px) {
  .hl {
    --hl-logo-h: clamp(40px, 12.5vw, 84px);
    --hl-pad-t: clamp(28px, 6svh, 72px);
    min-height: calc(100svh - var(--topbar-h));
  }
  #page-home .sb-slot > .hl { min-height: calc(100svh - var(--topbar-h) + var(--sb-r)); }
  /* leftover height on tall phones goes above the stage and below the caption: the logo stays on top,
     the caption stays tight under the laptop */
  .hl-slot { display: block; margin: auto 0 0; }
  .hl-slot::before { top: 70%; }
  .hl .ha-stage { margin-top: calc(var(--dw) * 0.2 + 28px); }
  .hl .ha-card { --w: 0.62; }               /* the fanned phone layout: as big as fits inside the screen edges */
  .hl-caption { margin: clamp(32px, 5svh, 48px) 0 auto; }
  .hl-lede { font-size: clamp(20px, 5.4vw, 28px); }
}

@media (max-width: 520px) {
  .hl-kicker { font-size: 10px; letter-spacing: 0.22em; margin-right: -0.22em; gap: 10px; }
  /* Full-width button: words only, in the button's ink: "Download · 50% off at launch", the offer half lighter. */
  .hl-download { width: 100%; max-width: 360px; padding: 0 20px; }
  .hl-download__store { display: none; }
  .hl-download__sep { width: 3px; height: 3px; border-radius: 50%; opacity: 0.55; }
  .hl-download__offer {
    margin: 0; padding: 0;
    background: none; box-shadow: none;
    color: inherit;
    font-size: inherit; font-weight: 500; letter-spacing: -0.01em; line-height: inherit;
    opacity: 0.78;
  }
  .hl-download__more { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .hl-head > *, .hl-caption > * { animation: none; }
}
