/* The site's footer, shared by every page: index.html and the text pages (privacy, terms, the guides).
   Self-contained, so it looks the same on the black homepage and on the white text pages. */
/* Footer: the brand and its links up top, then the icon itself rising out of the bottom edge of the page,
   lit from behind by the same Deep Blue as the calls to action. It comes up as the footer arrives and leans a
   little toward the pointer, like the hero's button. Reduce Motion leaves it standing still. */
/* The install window's Deep Blue (design/dmg/bg.html): night at the top, under the links, to daylight at the
   bottom edge where the icon comes up, with the same two glows and the same grain. */
/* Shared on :root so the homepage's Desktops (the hero, the wall behind the buy panel, the MacBook in Try It)
   wear the same Deep Blue as the footer. */
:root {
  --dmg-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .063 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --deep-blue:
    var(--dmg-grain),
    radial-gradient(52% 30% at 50% 34%, rgba(10,132,255,.42), transparent 100%),
    radial-gradient(70% 40% at 50% 68%, rgba(120,210,255,.35), transparent 100%),
    linear-gradient(180deg, #000 0%, #000 6%, #01040B 12%, #03132F 24%, #0844A6 44%, #0A84FF 62%, #5CC0FF 76%, #C9E9FF 89%, #FFFFFF 100%);
  /* The same night to day for a Desktop, stopping at bright blue: Finder's white labels must read all the way down. */
  --deep-blue-desk:
    var(--dmg-grain),
    radial-gradient(52% 30% at 50% 40%, rgba(10,132,255,.42), transparent 100%),
    radial-gradient(70% 40% at 50% 85%, rgba(120,210,255,.3), transparent 100%),
    linear-gradient(180deg, #000 0%, #01040B 6%, #03132F 20%, #0844A6 48%, #0A6BEB 72%, #0A84FF 88%, #2A97FF 100%);
}
.foot { position: relative; overflow: hidden; isolation: isolate; color: rgba(235,244,255,.8); font-size: 14px; --fw: clamp(300px, 50vw, 620px);
  background: var(--deep-blue); }
.foot { margin-top: auto; padding: 0; box-shadow: none; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.47; }
.foot h2, .foot h3 { font-weight: 600; text-wrap: balance; }
.foot li { margin: 0; }
.foot a { color: rgba(235,244,255,.82); text-decoration: none; transition: color .2s; }
.foot a:hover { color: #fff; text-decoration: none; }
.foot .wrap { position: relative; z-index: 2; max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); padding-top: clamp(64px, 8vw, 104px); }
.f-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.f-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: #F5F5F7 !important; }
.f-logo img { width: 40px; height: 40px; }
.f-brand h2 { margin: 6px 0 0; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; color: #F5F5F7; }
.f-brand p { margin: 0; max-width: 23em; line-height: 1.5; }
/* The call to action: the site's black Get pill, plain, with no ring or glow round it. The !important rules win
   over the homepage's .deep-cta .btn.get, which the live site adds to this button. */
.foot a.btn.f-btn, .foot a.btn.f-btn:hover { display: inline-flex; align-items: center; justify-content: center; margin-top: 6px; min-height: 48px !important; padding: 0 26px !important; border-radius: 999px; font-size: 16px !important; font-weight: 600; line-height: 1; white-space: nowrap; color: #fff; text-shadow: none;
  background: #000 !important; box-shadow: none !important; transition: background-color .2s; }
.foot a.btn.f-btn:hover { background: #1a1a1a !important; }
.f-small { font-size: 13px; color: rgba(235,244,255,.74); }
/* Who made it: a line under the copyright with the maker's photo and name, linking to him on X. */
.foot .f-by { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 14px; color: rgba(235,244,255,.82); }
.f-by .f-heart { font-size: 15px; line-height: 1; }
.f-by .f-avatar { flex: none; width: 28px; height: 28px; margin-left: 2px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 6px 18px -8px rgba(10,132,255,.7); transition: box-shadow .3s; }
.f-by b { font-weight: 600; color: #F5F5F7; }
.foot .f-by:hover .f-avatar { box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 6px 22px -6px rgba(10,132,255,.9); }
.f-col h3 { margin: 4px 0 18px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #F5F5F7; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
/* The stage: as tall as the part of the icon that shows. The rest stays under the edge of the page. */
.f-stage { position: relative; height: calc(var(--fw) * .7); margin-top: clamp(24px, 4vw, 48px); pointer-events: none; }
.f-stage::before { content: ""; position: absolute; left: 50%; bottom: calc(var(--fw) * -.32); width: calc(var(--fw) * 1.9); aspect-ratio: 1.5; transform: translateX(-50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,255,255,.28), rgba(201,233,255,.12) 50%, rgba(201,233,255,0) 100%); opacity: var(--lit, 1); transition: opacity 1.6s ease; }
.f-icon { position: absolute; left: 50%; bottom: 0; width: var(--fw); height: auto; pointer-events: auto;
  transform: translate(-50%, 23%) perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-origin: 50% 100%;
  filter: drop-shadow(0 -6px 40px rgba(3,19,47,.35)); transition: transform .9s cubic-bezier(.2,.9,.25,1); }
/* Before it arrives: lower, soft and dark. Only set by the script, so without it the icon simply shows. */
.foot.wait .f-icon { transform: translate(-50%, 62%) scale(.94); filter: blur(10px) brightness(.5); opacity: .4; }
.foot.wait .f-stage::before { opacity: 0; }
.foot.rise .f-icon { transition: transform 1.5s cubic-bezier(.16,1,.3,1), filter 1.2s ease, opacity 1s ease; }
@media (max-width: 860px) {
  /* The links stack and take more of the height, so night lasts longer before the daylight under the icon. */
  .foot { background:
    var(--dmg-grain),
    radial-gradient(60% 20% at 50% 40%, rgba(10,132,255,.4), transparent 100%),
    radial-gradient(80% 26% at 50% 82%, rgba(120,210,255,.35), transparent 100%),
    linear-gradient(180deg, #000 0%, #000 4%, #01040B 10%, #03132F 34%, #0844A6 58%, #0A84FF 73%, #5CC0FF 84%, #C9E9FF 93%, #FFFFFF 100%); }
  .foot .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .foot { --fw: 82vw; }
}
