/* Drafts of the next Needle site (16.11): two formats on one set of parts.
   sky    — a light page; the first screen is the sky from the laptop's own wallpaper
   studio — a black page; the laptop stands at an angle, as in a product studio
   One typeface (the system's), black and white; colour only comes from the recordings and pictures.
   Motion in the manner of the best plain-CSS sites: parts rise out of a blur, one after another. */
:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px); --max: 1200px;
  --side: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
html[data-theme="sky"] { --page: #ffffff; --panel: #f5f5f7; --ink: #0b0b0c; --soft: #55555a; --btn: #0b0b0c; --btn-ink: #ffffff; --quiet: rgba(0, 0, 0, 0.07); --dot: rgba(0, 0, 0, 0.22); }
html[data-theme="studio"] { --page: #0b0b0c; --panel: #161618; --ink: #f5f5f7; --soft: #b6b6bc; --btn: #f5f5f7; --btn-ink: #0b0b0c; --quiet: rgba(255, 255, 255, 0.1); --dot: rgba(255, 255, 255, 0.28); }

* { box-sizing: border-box; }
html { background: var(--page); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; overflow-x: clip; }
html[data-theme="studio"] { color-scheme: dark; }
body { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ink); color: var(--page); }

h1 { font-size: clamp(52px, 8.2vw, 128px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; }
h2 { font-size: clamp(40px, 5.2vw, 76px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; max-width: 30em; }
.fine { font-size: 15px; line-height: 1.5; color: var(--soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 18px; font-weight: 550; text-decoration: none; transition: transform 180ms var(--ease), opacity 200ms ease; }
.btn.ghost { background: var(--quiet); color: var(--ink); }
.btn:active { transform: scale(0.97); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- the menu is Needle's island: it hangs from the top edge and opens like the real one ---------- */
.isle {
  position: fixed; top: 0; left: 50%; z-index: 30; translate: -50% 0; width: 316px; height: 46px;
  background: #000; color: #fff; border-radius: 0 0 22px 22px;
  transition: width 520ms var(--ease), height 520ms var(--ease), border-radius 520ms var(--ease);
}
html[data-theme="studio"] .isle { background: #1b1b1e; }
.isle::before, .isle::after {   /* the little curves where it meets the screen's edge */
  content: ""; position: absolute; top: 0; width: 12px; height: 12px;
  background: radial-gradient(circle at 0 100%, transparent 11.5px, #000 12px);
}
.isle::before { left: -12px; }
.isle::after { right: -12px; transform: scaleX(-1); }
html[data-theme="studio"] .isle::before, html[data-theme="studio"] .isle::after { background: radial-gradient(circle at 0 100%, transparent 11.5px, #1b1b1e 12px); }
.isle-row { height: 46px; padding: 0 7px 0 14px; display: flex; align-items: center; gap: 10px; }
.isle-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; }
.isle-rec { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: repeating-radial-gradient(circle, #0c0c0c 0 1px, #1e1e1e 1px 2px); animation: turn 2.4s linear infinite; }
.isle-rec img { width: 44%; height: 44%; border-radius: 50%; }
.isle-now { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, 0.66); white-space: nowrap; }
.eq { display: flex; align-items: center; gap: 2px; height: 14px; }
.eq i { width: 2.5px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 50%; animation: eq 1.1s var(--ease-soft) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.4s; } .eq i:nth-child(3) { animation-delay: -0.75s; } .eq i:nth-child(4) { animation-delay: -0.2s; }
.isle-get { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; color: #000; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 180ms var(--ease); }
.isle-get:active { transform: scale(0.96); }
.isle-links { position: absolute; left: 0; right: 0; top: 50px; padding: 0 10px; display: none; justify-content: center; flex-wrap: wrap; gap: 2px; opacity: 0; transform: translateY(-6px); transition: opacity 300ms ease 120ms, transform 500ms var(--ease) 80ms, display 300ms allow-discrete; }
.isle-links a { padding: 9px 13px; border-radius: 999px; font-size: 15px; color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: background-color 200ms ease, color 200ms ease; }
.isle.open { width: min(600px, calc(100vw - 40px)); height: 100px; border-radius: 0 0 28px 28px; }
.isle.open .isle-links { display: flex; opacity: 1; transform: none; }
@starting-style { .isle.open .isle-links { opacity: 0; transform: translateY(-6px); } }
@media (hover: hover) and (pointer: fine) {
  .isle:hover, .isle:focus-within { width: min(600px, calc(100vw - 40px)); height: 100px; border-radius: 0 0 28px 28px; }
  .isle:hover .isle-links, .isle:focus-within .isle-links { display: flex; opacity: 1; transform: none; }
  @starting-style { .isle:hover .isle-links, .isle:focus-within .isle-links { opacity: 0; transform: translateY(-6px); } }
  .isle-links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .btn:hover { opacity: 0.86; }
}
@keyframes turn { to { transform: rotate(1turn); } }
@keyframes eq { from { transform: scaleY(0.28); } to { transform: scaleY(1); } }

/* ---------- parts arrive: up, out of a blur, one after another ---------- */
.js .io .part { opacity: 0; transform: translateY(30px); filter: blur(14px); }
.js .io.in .part { opacity: 1; transform: none; filter: blur(0); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), filter 1.1s var(--ease); }
.js .io.in .part:nth-child(2) { transition-delay: 0.12s; } .js .io.in .part:nth-child(3) { transition-delay: 0.24s; }
.js .io.in .part:nth-child(4) { transition-delay: 0.36s; } .js .io.in .part:nth-child(5) { transition-delay: 0.48s; }
.js .io.in .part:nth-child(6) { transition-delay: 0.6s; }
/* the laptop comes up tilted back a little, as if set down */
.js .io .part.device { transform: perspective(1400px) translateY(90px) rotateX(12deg) scale(0.93); transform-origin: 50% 100%; filter: none; }
.js .io.in .part.device { transform: none; transition: opacity 1.2s var(--ease), transform 1.9s var(--ease); }

/* ---------- the laptop, ours: a render of Needle's own 3D model with the screen's recording laid on it ---------- */
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); filter: blur(10px); transition: opacity 600ms var(--ease-soft), transform 1s var(--ease), filter 600ms var(--ease-soft); }
.screen video.on { opacity: 1; transform: none; filter: none; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 38%); }
.mac-front { position: relative; width: min(1040px, 100%); margin: 0 auto; aspect-ratio: 1880 / 1675; }
.mac-front > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mac-front .screen { position: absolute; left: 8.956%; top: 4.028%; width: 82.087%; height: 59.886%; overflow: hidden; background: #000; border-radius: 1.15% 1.15% 0 0 / 1.8% 1.8% 0 0; }
.rig { position: relative; width: 100%; aspect-ratio: 2100 / 1480; }
.rig-in { position: absolute; left: 0; top: 0; width: 2100px; height: 1480px; transform-origin: 0 0; transform: scale(var(--k, 0.4)); }
.rig-in > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rig .screen { position: absolute; left: 0; top: 0; width: 1600px; height: 1040px; overflow: hidden; background: #000; border-radius: 19px 19px 0 0; transform-origin: 0 0;
  transform: matrix3d(0.81619451, -0.061597525, 0, 5.2616151e-05, 0.15124445, 0.86117278, 0, -8.7762454e-06, 0, 0, 1, 0, 69.14, 165.06, 0, 1); }

/* what the screen shows: one of four, picked under it */
.switch { display: inline-flex; padding: 5px; gap: 2px; border-radius: 999px; background: var(--quiet); }
.switch button { font: inherit; font-size: 15px; font-weight: 500; color: var(--soft); background: transparent; border: 0; border-radius: 999px; height: 38px; padding: 0 18px; cursor: pointer; transition: background-color 250ms ease, color 250ms ease, transform 180ms var(--ease); }
.switch button[aria-checked="true"] { background: var(--page); color: var(--ink); font-weight: 600; }
html[data-theme="studio"] .switch button[aria-checked="true"] { background: #f5f5f7; color: #0b0b0c; }
.switch button:active { transform: scale(0.96); }

/* ---------- first screen, sky: the laptop's wallpaper is the page's sky ---------- */
.hero-sky { position: relative; padding: clamp(96px, 12vh, 132px) var(--gutter) 0; text-align: center; color: #fff; overflow-x: clip; }
.hero-sky h1 { font-size: clamp(46px, 6.9vw, 108px); }
.hero-sky .sky { position: absolute; inset: 0 0 auto; height: min(1180px, 132vh); overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.hero-sky .sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; animation: skydrift 60s ease-in-out infinite alternate; }
@keyframes skydrift { from { transform: scale(1.04) translateX(-0.8%); } to { transform: scale(1.04) translateX(0.8%); } }
.hero-sky .copy { position: relative; display: grid; justify-items: center; gap: 0; }
.hero-sky .lede { margin-top: 26px; color: rgba(255, 255, 255, 0.92); }
.hero-sky .cta { margin-top: 34px; justify-content: center; }
.hero-sky .btn.ghost { background: #fff; color: #0b0b0c; }
.hero-sky .fine { margin-top: 16px; color: rgba(255, 255, 255, 0.8); }
.hero-sky .stage { position: relative; margin-top: clamp(40px, 4.4vw, 64px); display: grid; justify-items: center; gap: 30px; }
.hero-sky .mac-front { filter: drop-shadow(0 50px 60px rgba(20, 40, 80, 0.22)); }
.hero-sky .switch { background: #f0f0f2; margin-top: -8px; }

/* ---------- first screen, studio: black, the laptop at an angle ---------- */
.hero-studio { position: relative; height: 100svh; min-height: 700px; max-height: 1000px; padding: 90px var(--side) 110px; display: grid; grid-template-columns: minmax(0, 0.92fr) 1.3fr; align-items: center; gap: clamp(8px, 1.6vw, 28px); overflow: clip; }
.hero-studio h1 { font-size: clamp(44px, 4.9vw, 80px); }
.hero-studio .copy { position: relative; z-index: 2; }
.hero-studio .lede { margin-top: 26px; color: var(--soft); }
.hero-studio .cta { margin-top: 34px; }
.hero-studio .fine { margin-top: 16px; }
.hero-studio .stage { position: relative; margin-right: calc(var(--side) * -1 - 2vw); margin-left: -2%; }
.hero-studio .stage::before {   /* the studio floor: a soft pool of light under the laptop */
  content: ""; position: absolute; left: 4%; right: 2%; bottom: -3%; height: 34%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); filter: blur(10px);
}
.dock { position: absolute; left: 50%; bottom: 34px; translate: -50% 0; z-index: 3; }
.dock .switch { background: #1a1a1d; padding: 6px; }

/* ---------- good to know ---------- */
section { padding: clamp(96px, 12vw, 180px) 0 0; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.facts ul { margin-top: clamp(36px, 4vw, 60px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.facts li { font-size: 18px; line-height: 1.5; color: var(--soft); }
.facts b { display: block; color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 6px; }

/* ---------- the highlights: a reel of cards that moves on by itself ---------- */
.reel { margin-top: clamp(36px, 4vw, 60px); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--side); scroll-padding-inline: var(--side); scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(1000px, 86vw); scroll-snap-align: start; background: var(--panel); border-radius: 34px; padding: clamp(24px, 3.4vw, 48px); display: grid; grid-template-columns: 1.5fr minmax(200px, 0.62fr); align-items: center; gap: clamp(20px, 3vw, 48px); }
.card .media { order: -1; }
.card p { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--soft); max-width: 17em; }
.card .media { border-radius: 20px; overflow: hidden; aspect-ratio: 1600 / 1040; background: #000; }
.card .media :is(video, img) { width: 100%; height: 100%; object-fit: cover; }
.reel-ctl { margin-top: 26px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.dots { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--panel); }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--dot); cursor: pointer; overflow: hidden; transition: width 500ms var(--ease); }
.dots button[aria-current="true"] { width: 44px; }
.dots i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.dots button[aria-current="true"] i { animation: fill 7s linear forwards; }
.reel-ctl.paused .dots button[aria-current="true"] i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.pause { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 180ms var(--ease); }
.pause:active { transform: scale(0.94); }
.pause svg { width: 16px; height: 16px; fill: currentColor; }
.pause .play, .reel-ctl.paused .pause .bars { display: none; }
.reel-ctl.paused .pause .play { display: block; }

/* ---------- lyrics: always black, the words glow on it ---------- */
.lyrics { margin-top: clamp(96px, 12vw, 180px); padding: clamp(96px, 11vw, 160px) 0; background: #000; color: #f5f5f7; }
html[data-theme="studio"] .lyrics { background: #f5f5f7; color: #0b0b0c; }
.lyrics .lede { margin-top: 22px; color: rgba(245, 245, 247, 0.66); }
html[data-theme="studio"] .lyrics .lede { color: #6e6e73; }
.lyrics .frame { position: relative; margin-top: clamp(36px, 4vw, 60px); border-radius: 28px; overflow: hidden; aspect-ratio: 1600 / 1040; background: #050505; }
.lyrics .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms var(--ease-soft); }
.lyrics .frame video.on { opacity: 1; }
.lyrics .switch { margin-top: 24px; background: rgba(255, 255, 255, 0.1); flex-wrap: wrap; border-radius: 26px; }
.lyrics .switch button { color: rgba(245, 245, 247, 0.66); }
.lyrics .switch button[aria-checked="true"] { background: #f5f5f7; color: #0b0b0c; }
html[data-theme="studio"] .lyrics .switch { background: rgba(0, 0, 0, 0.07); }
html[data-theme="studio"] .lyrics .switch button { color: #6e6e73; }
html[data-theme="studio"] .lyrics .switch button[aria-checked="true"] { background: #0b0b0c; color: #f5f5f7; }

/* ---------- wallpapers: the paintings drift by ---------- */
.walls .lede { margin-top: 22px; color: var(--soft); }
.drift { margin-top: clamp(36px, 4vw, 60px); overflow: hidden; }
.drift ul { display: flex; gap: 18px; width: max-content; animation: drift 80s linear infinite; }
.drift li { flex: none; width: clamp(240px, 26vw, 380px); }
.drift img { width: 100%; height: auto; aspect-ratio: 400 / 260; object-fit: cover; border-radius: 20px; background: var(--panel); }
@keyframes drift { to { transform: translateX(calc(-50% - 9px)); } }
@media (hover: hover) and (pointer: fine) { .drift:hover ul { animation-play-state: paused; } }

/* ---------- the rest, as a plain list ---------- */
.more ul { margin-top: clamp(36px, 4vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.more li { background: var(--panel); border-radius: 30px; padding: clamp(24px, 2.6vw, 34px); font-size: 18px; line-height: 1.5; color: var(--soft); }
.more b { display: block; color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -0.025em; margin-bottom: 8px; }
.more li.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 0.6fr) 1.5fr; align-items: center; gap: clamp(20px, 3vw, 48px); }
.more li.wide img { width: 100%; height: auto; border-radius: 18px; }

/* ---------- get it ---------- */
.get { text-align: center; padding-bottom: clamp(48px, 5vw, 72px); }
.get .box { display: grid; justify-items: center; background: var(--panel); border-radius: 44px; padding: clamp(56px, 8vw, 120px) clamp(20px, 4vw, 48px); }
.get img { width: 104px; height: 104px; border-radius: 24px; }
.get h2 { margin-top: 30px; }
.get .lede { margin-top: 20px; color: var(--soft); }
.get .cta { margin-top: 32px; justify-content: center; }
.get .fine { margin-top: 18px; }
footer { padding: 0 0 44px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; font-size: 15px; color: var(--soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
/* The end of a page as on getcanopy.pro (17.11): the pages as soft grey buttons, the copyright under them, and the
   name, big and faded, cut by the page's own bottom edge. (build_d.py and build_download.py write it.) */
footer.foot { padding: clamp(56px, 9vh, 110px) 0 0; overflow: hidden; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 16px; }
.foot-links a { padding: 11px 20px; border-radius: 14px; background: rgba(3, 3, 3, 0.05); color: #3a3a3f; font-size: 15px; font-weight: 600;
  transition: background-color 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.6s; }
.foot-links a:hover { background: rgba(3, 3, 3, 0.09); color: #0b0b0c; }
/* the two networks, as small round icons */
.foot-social { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.foot-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(3, 3, 3, 0.05); color: #3a3a3f;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s var(--ease); }
.foot-social a:hover { background: rgba(3, 3, 3, 0.09); color: #0b0b0c; transform: translateY(-2px); }
.foot-social svg { width: 20px; height: 20px; }
.foot-copy { margin: 20px 0 0; font-size: 14px; font-weight: 500; color: #86868b; }
.foot-mark { margin: 6vh auto 0; height: 0.62em; overflow: hidden; user-select: none; -webkit-user-select: none;
  font-size: clamp(90px, 26vw, 420px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.78;
  background: linear-gradient(rgba(3, 3, 3, 0.086), rgba(3, 3, 3, 0.05) 45%, rgba(3, 3, 3, 0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 900px) {
  .hero-studio { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; padding-top: 110px; padding-bottom: 110px; }
  .hero-studio .stage { margin: 12px -3% 0; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-template-columns: 1fr; flex-basis: calc(100vw - 2 * var(--gutter)); }
  .card p { max-width: none; }
  .more ul { grid-template-columns: 1fr; }
  .more li.wide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .isle { width: min(316px, calc(100vw - 28px)); }
  .isle-now .name { display: none; }
  .isle.open { height: 146px; }
  .btn { width: 100%; }
  .cta { width: 100%; }
  .facts ul { grid-template-columns: 1fr; }
  .switch button { padding: 0 12px; }
  .lyrics .switch button { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .io .part, .js .io .part.device { opacity: 1; transform: none; filter: none; transition: none; }
  .isle, .isle-links, .screen video, .dots button { transition: none; }
  .isle-rec, .eq i, .hero-sky .sky img, .drift ul { animation: none; }
  .drift { overflow-x: auto; }
  .dots button[aria-current="true"] i { animation: none; transform: scaleX(1); }
}

/* ---------- on a phone, Download opens this panel instead (phone.js): Needle is a Mac app, send the link to your Mac.
   It rises from the bottom, like iOS's own sheets; on a wider screen it stands in the middle. */
dialog.ms { width: min(440px, 100vw); max-height: calc(100svh - 12px); margin: auto auto 0; padding: 0; border: 0; border-radius: 30px 30px 0 0; overflow: auto;
  overscroll-behavior: contain; background: #fff; color: #0b0b0c; box-shadow: 0 -20px 60px -20px rgba(3, 3, 3, 0.4); }
dialog.ms::backdrop { background: rgba(10, 12, 20, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.ms[open] { animation: ms-up 520ms cubic-bezier(0.16, 1, 0.3, 1); }
dialog.ms[open]::backdrop { animation: ms-fade 350ms ease; }
@keyframes ms-up { from { transform: translateY(100%); } }
@keyframes ms-fade { from { opacity: 0; } }
@media (min-width: 600px) { dialog.ms { margin: auto; border-radius: 30px; } dialog.ms[open] { animation-name: ms-in; } }
@keyframes ms-in { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
.ms-in:focus { outline: none; }
.ms-in { position: relative; padding: 12px 24px max(24px, env(safe-area-inset-bottom)); text-align: center; }
.ms-grab { display: block; width: 38px; height: 5px; margin: 0 auto 6px; border-radius: 3px; background: rgba(3, 3, 3, 0.16); }
@media (min-width: 600px) { .ms-grab { visibility: hidden; } }
.ms-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%;
  -webkit-appearance: none; appearance: none; cursor: pointer; background: rgba(3, 3, 3, 0.06); color: #3a3a3f; }
.ms-close svg { width: 15px; height: 15px; }
/* a small MacBook (Apple's picture, as it comes) with the user's own desktop on it */
.ms-mac { position: relative; width: min(260px, 70%); aspect-ratio: 3 / 2; margin: 14px auto 0; }
.ms-screen { position: absolute; left: 9.2958%; top: 10.4225%; width: 81.4085%; height: 79.1549%; overflow: hidden; background: #000; }
.ms-screen img { position: absolute; left: 0.1153%; top: 0.2669%; width: 99.7693%; height: 99.4662%; max-width: none; object-fit: cover; object-position: 50% 0; }
.ms-frame { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ms h2 { margin: 18px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.ms-sub { margin: 10px auto 0; max-width: 30ch; font-size: 16px; line-height: 1.45; color: #6e6e73; }
.ms .btn.ms-go { width: 100%; height: 54px; margin-top: 22px; gap: 9px; border: 0; -webkit-appearance: none; appearance: none; cursor: pointer; font: 600 17px/1 var(--font); }
.ms-go svg { width: 20px; height: 20px; margin-top: -2px; }
.ms-hint { margin: 8px 0 0; font-size: 13px; color: #86868b; }
.ms-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ms-alt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 12px; border: 0; border-radius: 14px; -webkit-appearance: none; appearance: none;
  cursor: pointer; background: #f2f2f5; color: #0b0b0c; font: 600 15px/1 var(--font); text-decoration: none; }
.ms-alt.ms-first { background: #0b0b0c; color: #fff; }
.ms-alt svg { width: 18px; height: 18px; flex: none; }
.ms-link { margin: 14px 0 0; font-size: 13px; color: #86868b; }
.ms-link span { -webkit-user-select: all; user-select: all; }
.ms-buy { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(3, 3, 3, 0.08); font-size: 14px; line-height: 1.45; color: #6e6e73; }
.ms-buy button { border: 0; padding: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit; font-weight: 600; color: #0b0b0c;
  text-decoration: underline; text-decoration-color: rgba(3, 3, 3, 0.25); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { dialog.ms[open], dialog.ms[open]::backdrop { animation: none; } }
