:root {
  --snow: #cad0e4;
  --snow-hi: #eef1f8;
  --ink: #15212b;
  --ink-2: #2c3a47;
  --blue: #0a66d8;
  --select: #0a64d8;
  --line: rgba(21, 33, 43, .14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--snow); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--snow) url("/assets/snow-plain.93749b0d5e.webp") center / cover fixed no-repeat;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 4px; }

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 18px var(--gutter);
  background: rgba(238, 241, 248, .56);
  border-bottom: 1px solid rgba(21, 33, 43, .08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.brand img { display: block; width: 36px; height: 36px; }
.audience-nav { display: inline-flex; gap: 20px; margin-left: 8px; color: var(--ink-2); font-size: .9375rem; font-weight: 560; }
.audience-nav a { text-decoration: none; }
.audience-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

main { width: min(1280px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(64px, 7vw, 88px) 0 48px; }
.intro { max-width: 700px; }
.intro h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .95; letter-spacing: -.055em; font-weight: 700; text-wrap: balance; }
.intro p { margin: 22px 0 0; color: var(--ink-2); font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
.intro a { color: #084f9d; text-underline-offset: 4px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 48px); margin-top: clamp(48px, 5.5vw, 64px); }
.step { min-width: 0; }
.step-heading { display: flex; align-items: baseline; gap: 12px; }
.step-number { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.step h2 { margin: 0; font-size: clamp(1.35rem, 1.2vw + .7rem, 1.75rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.step > p { min-height: 3.3em; margin: 14px 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.step strong { color: var(--ink); font-weight: 650; }

.step kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: .02em .4em .06em;
  border: 1px solid rgba(21, 33, 43, .17);
  border-bottom-width: 2px;
  border-radius: .4em;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font: 600 .84em/1.35 var(--font);
  text-align: center;
}

/* Each illustration is a fixed 360 x 230 stage that scales with its column.
   1em inside a stage is 10 design pixels, so every coordinate below is design px / 10. */
.scene {
  position: relative;
  margin: 24px 0 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(21, 33, 43, .1);
  border-radius: 16px;
  background: rgba(250, 251, 253, .45);
  transition: border-color .35s ease, background-color .35s ease;
}
.step.is-active .scene { border-color: rgba(10, 102, 216, .3); background: rgba(250, 251, 253, .6); }
.viewport { width: 100%; max-width: 420px; margin: 0 auto; container-type: inline-size; }
.stage {
  position: relative;
  width: 36em;
  height: 23em;
  overflow: hidden;
  font-size: 10px;
  font-size: calc(100cqw / 36);
  line-height: 1.2;
  color: var(--ink);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.stage img { -webkit-user-drag: none; }

.lights { position: absolute; display: flex; }
.lights i { display: block; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .05em rgba(0, 0, 0, .14); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

/* Pointer: macOS arrow, hotspot at the stage coordinate the script writes. */
.cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 0; height: 0; }
.cursor .arrow { position: absolute; left: -.19em; top: -.15em; width: 1.5em; height: 1.95em; overflow: visible; transform-origin: .19em .15em; filter: drop-shadow(0 .12em .16em rgba(0, 0, 0, .32)); }
.cursor .arrow path { fill: #111; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.cursor .ring { position: absolute; left: -1.1em; top: -1.1em; width: 2.2em; height: 2.2em; border: .14em solid rgba(10, 102, 216, .7); border-radius: 50%; opacity: 0; }
.cursor .badge { position: absolute; left: .95em; top: 1.3em; display: grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 50%; background: #2fbf4f; box-shadow: 0 0 0 .1em #fff, 0 .1em .25em rgba(0, 0, 0, .3); opacity: 0; }
.cursor .badge svg { width: .8em; height: .8em; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }

/* 01: Safari with its downloads list open. */
.s1 { --hover: 0; --sel: 1; }
.s1 .cursor { transform: translate(22.8em, 8em); }
.browser { position: absolute; left: 1.6em; top: 1.4em; width: 32.8em; height: 20.6em; overflow: hidden; border-radius: 1em; background: #fff; box-shadow: 0 0 0 .05em rgba(0, 0, 0, .18), 0 1.4em 2.8em -1.4em rgba(21, 33, 43, .5); }
.b-bar { position: absolute; left: 0; right: 0; top: 0; height: 3.6em; background: #f6f6f8; border-bottom: .08em solid #dcdce2; }
.b-bar .lights { left: 1.2em; top: 1.35em; gap: .6em; }
.b-bar .lights i { width: .9em; height: .9em; }
.b-icon { position: absolute; top: 1.1em; height: 1.4em; fill: none; stroke: #8a8a90; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.b-side { left: 6.2em; width: 1.7em; }
.b-nav { left: 8.7em; width: 2.8em; }
.b-plus { left: 29.6em; width: 1.4em; }
.b-url { position: absolute; left: 12.6em; top: .7em; display: grid; place-items: center; width: 12.4em; height: 2.2em; border-radius: .6em; background: #ebebef; }
.b-url span { font-size: 1.05em; font-weight: 500; letter-spacing: -.01em; color: #3a3a40; }
.b-dl { position: absolute; left: 26em; top: .7em; display: grid; place-items: center; width: 2.4em; height: 2.2em; border-radius: .55em; background: rgba(0, 0, 0, .08); }
.b-dl svg { width: 1.5em; height: 1.5em; fill: none; stroke: #3a3a40; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.b-page { position: absolute; left: 0; right: 0; top: 3.6em; bottom: 0; background: #d9deeb url("/assets/snow-plain.93749b0d5e.webp") center / cover; }
.b-copy { position: absolute; left: 1.8em; top: 7.4em; display: grid; gap: .5em; }
.b-h { font-size: 1.6em; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.b-p { font-size: .8em; color: var(--ink-2); }
.popover { position: absolute; left: 13.6em; top: 5em; width: 19.8em; padding: .6em; border-radius: 1.05em; background: #fbfbfd; box-shadow: 0 0 0 .05em rgba(0, 0, 0, .16), 0 1.2em 2.8em -.8em rgba(16, 24, 40, .42); }
.popover::before { content: ""; position: absolute; left: 14.65em; top: -.5em; width: 1.1em; height: 1.1em; border-radius: .18em 0 0 0; background: #fbfbfd; box-shadow: -.05em -.05em 0 rgba(0, 0, 0, .1); transform: rotate(45deg); }
.dl-row { position: relative; display: flex; align-items: center; gap: 1em; height: 4.6em; padding: 0 1.1em 0 .9em; border-radius: .65em; }
.dl-hover, .dl-sel { position: absolute; inset: 0; border-radius: inherit; }
.dl-hover { background: rgba(0, 0, 0, .055); opacity: var(--hover); }
.dl-sel { background: var(--select); opacity: var(--sel); }
.dmg { position: relative; flex: none; width: 2.6em; height: 3.2em; }
.dmg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dmg .pg { fill: #fff; stroke: #c3c3ca; stroke-width: .7; }
.dmg .fold { fill: #ececf0; stroke: #c3c3ca; stroke-width: .7; stroke-linejoin: round; }
.dmg .drv { fill: #9c9ca4; }
.dmg .led { fill: #ececf1; }
.dmg-zoom { opacity: 0; transform-origin: 50% 50%; }
.dl-text { position: relative; display: grid; gap: .25em; min-width: 0; }
.dl-name { font-size: 1.15em; font-weight: 600; letter-spacing: -.01em; color: #1d1d1f; color: color-mix(in srgb, #fff calc(var(--sel) * 100%), #1d1d1f); }
.dl-meta { font-size: .92em; color: #86868b; color: color-mix(in srgb, #dce8fb calc(var(--sel) * 100%), #86868b); }
.dl-reveal { position: relative; flex: none; width: 1.4em; height: 1.4em; margin-left: auto; fill: none; stroke: #8e8e93; stroke: color-mix(in srgb, #fff calc(var(--sel) * 100%), #8e8e93); stroke-width: 1.2; stroke-linecap: round; }

/* 02: the real disk image window, same 660 x 400 layout and artwork, at half size. */
.s2 { --src: 1; --dst: 1; }
.s2 .cursor { transform: translate(26.2em, 12.4em); }
.s2 .cursor .badge { opacity: 1; }
.finder { position: absolute; left: 2em; top: .8em; width: 32em; height: 21.6em; overflow: hidden; border-radius: 1em; background: #fff; box-shadow: 0 0 0 .05em rgba(0, 0, 0, .2), 0 1.4em 2.8em -1.4em rgba(21, 33, 43, .55); }
.f-bar { position: relative; display: grid; place-items: center; height: 2.2em; background: linear-gradient(#ededee, #e3e3e5); border-bottom: .06em solid #c6c6cb; }
.f-bar .lights { left: .9em; top: .7em; gap: .55em; }
.f-bar .lights i { width: .8em; height: .8em; }
.f-title { font-size: .95em; font-weight: 600; color: #4d4d52; }
.f-content { position: absolute; left: 0; top: 2.2em; width: 32em; height: 19.4em; background: url("/assets/dmg-background.fd5570394c.png") 0 0 / 100% 100%; }
.f-item { position: absolute; top: 31.5%; width: 19.4%; text-align: center; }
.f-app { left: 16.06%; }
.f-apps { left: 64.55%; }
.f-item img { position: relative; display: block; width: 100%; height: auto; }
.f-hl { position: absolute; left: -.3em; top: -.3em; width: calc(100% + .6em); aspect-ratio: 1; border-radius: .7em; background: rgba(0, 0, 0, .11); }
.f-app .f-hl { opacity: var(--src); }
.f-apps .f-hl { opacity: var(--dst); }
.f-apps img { filter: brightness(calc(1 - .14 * var(--dst))); }
.f-label { position: relative; display: inline-block; margin-top: .35em; padding: .12em .5em; border-radius: .4em; font-size: .9em; font-weight: 500; color: #1d1d1f; }
.f-app .f-label { background: rgba(10, 100, 216, var(--src)); color: color-mix(in srgb, #fff calc(var(--src) * 100%), #1d1d1f); }
.ghost { position: absolute; left: 0; top: 0; z-index: 5; width: 6.208em; text-align: center; opacity: .62; transform: translate(22.739em, 9.411em); transform-origin: 3.104em 3.104em; }
.ghost img { display: block; width: 100%; height: auto; }
.ghost span { display: inline-block; margin-top: .35em; padding: .12em .5em; border-radius: .4em; background: var(--select); color: #fff; font-size: .9em; font-weight: 500; }

/* 03: the top-right of the desktop: menu bar, Spotlight, then Snowtrail's own menu bar mark. */
.s3 { --res: 1; --caret: 0; --empty: 0; --hl: 1; border-radius: .9em; background: #dfe3ee url("/assets/snow-plain.93749b0d5e.webp") center / cover; box-shadow: inset 0 0 0 .06em rgba(21, 33, 43, .1); }
.s3 .cursor { transform: translate(13em, 15.2em); }
.menubar { position: absolute; left: 0; right: 0; top: 0; height: 3em; color: rgba(0, 0, 0, .85); background: rgba(246, 247, 251, .62); -webkit-backdrop-filter: blur(1.2em) saturate(1.4); backdrop-filter: blur(1.2em) saturate(1.4); box-shadow: 0 .06em 0 rgba(0, 0, 0, .08); }
.mb { position: absolute; display: block; }
svg.mb { overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
svg.mb .solid { fill: currentColor; stroke: none; }
.mb-mark { left: 11.3em; top: .55em; width: 2.32em; height: 1.9em; opacity: .85; transform-origin: 40% 50%; }
.mb-battery { left: 14.1em; top: .8em; width: 2.8em; height: 1.4em; stroke-width: 1.2; }
.mb-battery .dim { stroke-opacity: .45; }
.mb-battery .nub { fill: currentColor; fill-opacity: .45; stroke: none; }
.mb-wifi { left: 18.1em; top: .8em; width: 1.9em; height: 1.4em; stroke-width: 1.85; }
.mb-hl { left: 20.675em; top: .4em; width: 2.6em; height: 2.2em; border-radius: .55em; background: rgba(0, 0, 0, .12); opacity: var(--hl); }
.mb-search { left: 21.2em; top: .725em; width: 1.55em; height: 1.55em; stroke-width: 1.7; }
.mb-cc { left: 23.9em; top: .775em; width: 1.75em; height: 1.45em; stroke-width: 1.3; }
.mb-cc .knob { fill: #f1f2f6; stroke: none; }
.mb-clock { right: 1.2em; top: 0; bottom: 0; display: flex; align-items: center; }
.mb-clock span { font-size: 1.32em; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; }
.mb-note { position: absolute; left: 12.24em; top: 3.1em; display: grid; justify-items: center; transform: translateX(-50%); }
.mb-note i { display: block; width: .08em; height: .9em; background: rgba(21, 33, 43, .42); }
.mb-note span { margin-top: .25em; font-size: 1.15em; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.spot {
  position: absolute;
  left: 3.4em;
  top: 6.6em;
  width: 29.2em;
  overflow: hidden;
  border-radius: 1.4em;
  color: #fff;
  background: rgba(30, 32, 38, .8);
  -webkit-backdrop-filter: blur(1.4em) saturate(1.6);
  backdrop-filter: blur(1.4em) saturate(1.6);
  box-shadow: inset 0 0 0 .06em rgba(255, 255, 255, .14), 0 0 0 .05em rgba(0, 0, 0, .4), 0 2em 4em -1.6em rgba(8, 14, 24, .6);
  transform-origin: 50% 0;
}
.spot-search { position: relative; height: 4.6em; }
.spot-mag { position: absolute; left: 1.5em; top: 1.5em; width: 1.6em; height: 1.6em; fill: none; stroke: rgba(255, 255, 255, .62); stroke-width: 1.8; stroke-linecap: round; }
.spot-field { position: absolute; left: 4em; right: 1.4em; top: 0; bottom: 0; display: flex; align-items: center; overflow: hidden; white-space: pre; }
.spot-field .t { font-size: 1.95em; font-weight: 300; line-height: 1; letter-spacing: -.015em; }
.spot-placeholder { position: absolute; left: .15em; top: 50%; color: rgba(255, 255, 255, .34); opacity: var(--empty); transform: translateY(-50%); }
.spot-typed { color: #fff; }
.spot-complete { color: rgba(255, 255, 255, .38); }
.spot-caret { flex: none; width: .16em; height: 2.3em; margin: 0 .04em 0 .06em; border-radius: .08em; background: rgba(255, 255, 255, .92); opacity: var(--caret); }
.spot-results { height: calc(6.3em * var(--res)); opacity: var(--res); }
.spot-list { padding: .5em .6em .7em; border-top: .06em solid rgba(255, 255, 255, .12); }
.spot-section { display: flex; align-items: center; height: 2em; padding: 0 .9em; }
.spot-section span { font-size: .88em; font-weight: 600; color: rgba(255, 255, 255, .5); }
.spot-row { display: flex; align-items: center; gap: .8em; height: 3em; padding: 0 .8em; border-radius: .75em; background: #0a5fd6; }
.spot-row img { flex: none; width: 2.3em; height: 2.3em; }
.spot-row span { font-size: 1.28em; font-weight: 500; letter-spacing: -.01em; }

.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 26px var(--gutter) 34px; border-top: 1px solid rgba(21, 33, 43, .1); color: var(--ink-2); font-size: .9375rem; }
.footer-support, .footer-legal { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-legal { gap: 20px; }
.site-footer a { color: #084f9d; text-underline-offset: 4px; }
.install-download-frame { position: absolute; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

@media (max-width: 960px) {
  main { padding-top: 80px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .step > p { min-height: 0; }
}
@media (max-width: 560px) {
  .site-header { justify-content: space-between; gap: 16px; }
  .audience-nav { gap: 14px; margin-left: auto; font-size: .85rem; }
  main { width: min(100% - 32px, 560px); padding-top: 64px; padding-bottom: 56px; }
  .intro h1 { font-size: clamp(2.8rem, 14vw, 4.25rem); }
  .intro p { margin-top: 18px; font-size: 1rem; }
  .steps { margin-top: 48px; gap: 40px; }
  .scene { margin-top: 18px; padding: 8px; border-radius: 14px; }
  .site-footer { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 400px) {
  .audience-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene { transition: none; }
}

/* The shared analytics consent dialog keeps the install route in the same
   privacy flow as the contributor and AI-labs pages. */
.analytics-consent { position: fixed; z-index: 80; right: max(16px, var(--gutter)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(26rem, calc(100vw - 32px)); padding: 18px 20px; border: 1px solid rgba(21, 33, 43, .14); border-radius: 16px; background: rgba(238, 241, 248, .97); box-shadow: 0 12px 30px -18px rgba(21, 33, 43, .45); }
.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.015em; }
.analytics-consent p { margin: 6px 0 0; color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.analytics-consent p:first-child { margin-top: 0; }
.analytics-consent-actions { display: flex; gap: 10px; margin-top: 14px; }
.analytics-consent-actions button { flex: 1; min-width: 0; min-height: 2.35rem; padding: .65em 1.1em; border: 1px solid rgba(21, 33, 43, .2); border-radius: 999px; background: transparent; color: var(--ink); font: 600 .9rem/1 var(--font); cursor: pointer; box-shadow: none; }
.analytics-consent-actions button:hover { background: rgba(255, 255, 255, .48); }
.analytics-consent a { color: #084f9d; text-underline-offset: 3px; }
