/* Dynamic Lyrics for Mac — lyricsdynamic.com
   Apple product-page language: SF Pro, generous whitespace, light and black sections,
   one accent (Apple blue), and UI shown as the real thing rather than as a screenshot. */

:root {
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --link-dark: #2997ff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --bg-soft: #fbfbfd;
  --line: #d2d2d7;
  --dark: #000;
  --dark-2: #161617;
  --dark-3: #1d1d1f;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #a1a1a6;
  --radius: 28px;
  --radius-sm: 18px;
  --wrap: 1068px;
  --wide: 1260px;
  --nav-h: 52px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --spring: cubic-bezier(.2, .9, .25, 1.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 44px); margin-inline: auto; padding-inline: 22px; }
.wide { max-width: calc(var(--wide) + 44px); }
.skip { position: fixed; z-index: 999; left: 12px; top: -60px; padding: 10px 16px; border-radius: 980px; background: var(--ink); color: #fff; font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(251, 251, 253, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, .12); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 21px; font-weight: 600; letter-spacing: .011em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.brand small { color: var(--ink-3); font-size: inherit; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink); opacity: .8; font-size: 12px; letter-spacing: -.01em; }
.nav-links a:hover { opacity: 1; color: var(--link); text-decoration: none; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 28px; padding: 4px 12px; border: 0; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: background .2s;
}
.pill:hover { background: var(--blue-hover); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 17px; height: 1.5px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border: 1px solid transparent; border-radius: 980px;
  font-size: 17px; font-weight: 400; letter-spacing: -.022em; line-height: 1.2; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.on-dark .btn-ghost { border-color: var(--link-dark); color: var(--link-dark); }
.on-dark .btn-ghost:hover { background: var(--link-dark); color: #000; }
.more { font-size: 17px; white-space: nowrap; }
.more::after { content: " ›"; font-size: 1.15em; line-height: 1; }
.on-dark .more, .on-dark a.link { color: var(--link-dark); }

.mas-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 20px 0 16px; border-radius: 12px;
  background: #000; color: #fff; border: 1px solid #a6a6a6;
  transition: transform .2s var(--ease), background .2s;
}
.mas-badge:hover { text-decoration: none; background: #111; }
.mas-badge svg { width: 26px; height: 32px; flex: none; }
.mas-badge span { display: grid; line-height: 1.05; text-align: left; }
.mas-badge small { font-size: 11px; letter-spacing: .02em; }
.mas-badge strong { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.on-dark .mas-badge { background: #000; border-color: #5a5a5f; }

/* ---------- Type ---------- */
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: .011em; line-height: 1.19; color: var(--ink); margin-bottom: 8px; }
.eyebrow.grad, .grad-text {
  background: linear-gradient(90deg, #0071e3 0%, #2b9cff 45%, #5ac8fa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.headline { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.125; font-weight: 600; letter-spacing: .004em; }
.lead { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.381; font-weight: 400; letter-spacing: .011em; color: var(--ink-2); }
.lead strong, .copy strong { color: var(--ink); font-weight: 600; }
.on-dark .lead { color: var(--dark-ink-2); }
.on-dark .lead strong, .on-dark .copy strong { color: var(--dark-ink); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.measure { max-width: 680px; }
.copy { font-size: 17px; line-height: 1.47; color: var(--ink-2); }
.on-dark .copy { color: var(--dark-ink-2); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.alt { background: var(--bg-alt); }
.on-dark { background: var(--dark); color: var(--dark-ink); }
.on-dark .eyebrow:not(.grad) { color: var(--dark-ink); }
.sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head .lead { margin-top: 20px; }
.sec-head.center .lead { max-width: 740px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; text-align: center; background: var(--bg-soft); overflow: hidden; }
.hero-icon { width: 96px; height: 96px; margin: 0 auto 18px; filter: drop-shadow(0 12px 24px rgba(0, 113, 227, .28)); }
.hero .eyebrow { font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 10px; }
.hero .headline { max-width: 900px; margin-inline: auto; }
.hero .lead { max-width: 640px; margin: 22px auto 0; }
.hero-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 32px; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); letter-spacing: -.016em; }
.hero-stage { position: relative; max-width: 1180px; margin: clamp(48px, 6vw, 72px) auto 0; padding-inline: 12px; }
.hero-stage .capsule { --i-cw: 32; --i-ew: 58; --i-s: 1.2; --i-rc: 2.4; --i-re: 3.3; cursor: default; }
.hero-stage .i-compact { padding-top: 3cqw; }
.hero-stage .capsule .c-line { font-size: 1.4cqw; }
.hero-stage .capsule .c-sub { font-size: 1.1cqw; }
.hero-hint { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); letter-spacing: -.01em; }
@media (hover: none) { .hero-hint { display: none; } }

/* ---------- Device (photo + live screen) ---------- */
.device { position: relative; width: 100%; }
.device > img { width: 100%; height: auto; position: relative; z-index: 2; pointer-events: none; }
.device-screen {
  position: absolute; z-index: 1; overflow: hidden; background: #000;
  left: var(--sx, 12.1%); top: var(--sy, 6.4%); width: var(--sw, 75.8%); height: var(--sh, 77%);
  border-radius: var(--sr, .9%) var(--sr, .9%) 0 0;
}
.device.css-mac { padding: 1.4% 1.4% 0; border-radius: 3.2% 3.2% 0 0 / 5% 5% 0 0; background: #0b0b0c; box-shadow: inset 0 0 0 1px #2c2c2e, 0 40px 80px -30px rgba(0,0,0,.45); aspect-ratio: 16 / 10.6; }
.device.css-mac .device-screen { position: relative; left: 0; top: 0; width: 100%; height: 100%; border-radius: 1.2% 1.2% 0 0; }
.device.css-mac::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -3.2%; height: 3.4%; border-radius: 0 0 40% 40% / 0 0 100% 100%; background: linear-gradient(#d9d9de, #a5a5aa); }

/* ---------- The Mac desktop replica (scales with its own width via cqw) ---------- */
.mac {
  container-type: inline-size;
  position: absolute; inset: 0; overflow: hidden;
  background: #04070f url("/assets/img/wallpaper.webp") center / cover no-repeat;
  font-family: var(--font); color: #fff; letter-spacing: -.01em;
  user-select: none; -webkit-user-select: none;
}
.mac-bar {
  position: absolute; inset: 0 0 auto; height: 2.65cqw; z-index: 3;
  display: flex; align-items: center; gap: 1.6cqw; padding: 0 1.4cqw;
  background: rgba(10, 16, 30, .32); backdrop-filter: blur(1.4cqw); -webkit-backdrop-filter: blur(1.4cqw);
  font-size: 1.05cqw; font-weight: 500;
}
.mac-bar .apple { width: 1.05cqw; height: 1.25cqw; }
.mac-bar b { font-weight: 700; }
.mac-bar .r { margin-left: auto; display: flex; align-items: center; gap: 1.3cqw; opacity: .95; }
.mac-bar .r svg { width: 1.3cqw; height: 1.3cqw; }
.mb-lyric { display: inline-flex; align-items: center; gap: .5cqw; max-width: 15cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.mb-lyric svg { flex: none; width: 1.1cqw !important; height: 1.1cqw !important; }
.mb-lyric span { overflow: hidden; text-overflow: ellipsis; transition: opacity .35s var(--ease); }
.mac-notch { position: absolute; z-index: 5; top: 0; left: 50%; width: 11.6cqw; height: 2.65cqw; transform: translateX(-50%); background: #000; border-radius: 0 0 1cqw 1cqw; }

/* Lyric capsule: a Dynamic Island hanging from the notch.
   main.js drives its width, height and corner radius with one spring and clips .i-body to the
   app's island silhouette (flat top, concave shoulders, round bottom). Both layouts are always laid
   out at their final size; the spring only changes how much of them is revealed. */
.capsule {
  --i-cw: 30; --i-ew: 56; --i-s: 1.1; --i-rc: 2.2; --i-re: 3.2;
  position: absolute; z-index: 4; top: 0; left: 50%; width: 30cqw; height: 5.4cqw;
  transform: translateX(-50%) scale(var(--hs, 1)); transform-origin: 50% 0;
  filter: drop-shadow(0 .45cqw .9cqw rgba(0, 0, 0, .26));
  transition: transform .3s cubic-bezier(.3, 1.4, .55, 1), filter .35s var(--ease);
  will-change: width, height, transform;
}
.capsule.hover { --hs: 1.035; filter: drop-shadow(0 .7cqw 1.4cqw rgba(0, 0, 0, .34)); }
.capsule.expanded { filter: drop-shadow(0 1.2cqw 2.2cqw rgba(0, 0, 0, .42)); }
.i-body { position: absolute; inset: 0; background: #000; overflow: hidden; }
.i-compact, .i-expanded { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.i-compact {
  width: calc(var(--i-cw) * 1cqw); padding: 2.85cqw 1.5cqw 1.05cqw; text-align: center;
  transition: opacity .2s ease-out .08s, filter .2s ease-out .08s;
}
.i-expanded {
  width: calc(var(--i-ew) * 1cqw); padding: 3.6cqw 2cqw 2cqw; text-align: left;
  display: grid; grid-template-columns: 9cqw 1fr 1.3fr; gap: 2cqw; align-items: center;
  opacity: 0; filter: blur(6px); pointer-events: none;
  transition: opacity .12s ease-in, filter .12s ease-in;
}
.capsule.expanded .i-compact { opacity: 0; filter: blur(4px); transition: opacity .14s ease-in, filter .14s ease-in; }
.capsule.expanded .i-expanded { opacity: 1; filter: none; transition: opacity .26s ease-out .07s, filter .26s ease-out .07s; }
.capsule.veil .i-compact, .capsule.veil .i-expanded { opacity: 0; transition: none; }
.capsule .c-line { font-size: 1.3cqw; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capsule .c-sub { margin-top: .25cqw; font-size: 1.02cqw; font-weight: 600; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notch-stage .capsule { --i-cw: 34; --i-ew: 62; --i-s: 1.3; --i-rc: 2.6; --i-re: 3.4; cursor: default; }
.notch-stage .i-compact { padding-top: 3.2cqw; }
.notch-stage .capsule .c-line { font-size: 1.55cqw; }
.notch-stage .capsule .c-sub { font-size: 1.2cqw; }

/* Floating lyrics — the always-on-top bar */
.floater {
  position: absolute; z-index: 2; left: 50%; bottom: 7cqw; transform: translateX(-50%);
  width: 52cqw; display: grid; grid-template-columns: 11cqw 1fr 1.25fr; gap: 1.8cqw; align-items: center;
  padding: 1.6cqw; border-radius: 2.4cqw;
  background: rgba(14, 14, 18, .72); backdrop-filter: blur(2.5cqw) saturate(160%); -webkit-backdrop-filter: blur(2.5cqw) saturate(160%);
  box-shadow: inset 0 0 0 .08cqw rgba(255, 255, 255, .13), 0 2.4cqw 6cqw rgba(0, 0, 0, .5);
}
.floater .art { position: relative; width: 11cqw; aspect-ratio: 1; border-radius: 1.1cqw; overflow: hidden; background: #222 center / cover; box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .35); transition: background-image .4s; }
.floater .art i { position: absolute; right: .5cqw; bottom: .5cqw; width: 2.1cqw; height: 2.1cqw; border-radius: .6cqw; background: #000 center / 70% no-repeat; }
.floater .meta strong { display: block; font-size: 1.55cqw; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floater .meta span { display: block; font-size: 1.3cqw; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { margin-top: 1.2cqw; height: .36cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .2); overflow: hidden; }
.prog i { display: block; height: 100%; width: 30%; background: #fff; border-radius: inherit; transition: width .5s linear; }
.times { display: flex; justify-content: space-between; margin-top: .5cqw; font-size: .95cqw; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.ctrls { display: flex; justify-content: center; align-items: center; gap: 1.1cqw; margin-top: .9cqw; }
.ctrls span { display: grid; place-items: center; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ctrls span.play { width: 3.6cqw; height: 3.6cqw; background: rgba(255, 255, 255, .22); }
.ctrls svg { width: 1.2cqw; height: 1.2cqw; fill: #fff; }
.ctrls .play svg { width: 1.5cqw; height: 1.5cqw; }
.ctrls span.mini { background: none; width: 2cqw; }
.ctrls span.mini svg { width: 1.15cqw; opacity: .7; }
.floater .lyr { text-align: center; }
.floater .lyr .now { font-size: 1.85cqw; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.floater .lyr .next { margin-top: .9cqw; font-size: 1.4cqw; font-weight: 600; line-height: 1.25; color: rgba(255, 255, 255, .45); text-wrap: balance; }

/* karaoke: each letter lights up in turn (delays set per letter in main.js) */
.kc { color: var(--k-dim, rgba(255, 255, 255, .4)); animation: kc .32s ease-out both; }
@keyframes kc {
  0% { color: var(--k-dim, rgba(255, 255, 255, .4)); }
  45% { color: var(--k-lit, #fff); text-shadow: 0 0 .45em var(--k-glow, rgba(255, 255, 255, .55)); }
  100% { color: var(--k-lit, #fff); text-shadow: none; }
}
.lw-track { --k-dim: rgba(255, 255, 255, .38); }
.tr-card { --k-dim: rgba(255, 255, 255, .42); }
.menubar-demo .mac-bar { --k-dim: rgba(29, 29, 31, .32); --k-lit: #1d1d1f; --k-glow: rgba(0, 113, 227, .35); }
.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(.6em); filter: blur(4px); } }

/* ---------- Highlights (tile grid) ---------- */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.tile {
  position: relative; overflow: hidden; grid-column: span 6; min-height: 520px;
  display: flex; flex-direction: column; padding: 44px 40px 0; border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
}
.alt .tile { background: var(--bg); }
.tile.dark { background: var(--dark); color: var(--dark-ink); }
.tile.dark .copy { color: var(--dark-ink-2); }
.tile.span-4 { grid-column: span 4; min-height: 460px; }
.tile.span-12 { grid-column: span 12; min-height: 0; }
.tile .k { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--blue); margin-bottom: 10px; }
.tile.dark .k { color: var(--link-dark); }
.tile .h3 { max-width: 420px; }
.tile .copy { margin-top: 12px; max-width: 420px; }
.tile-art { margin-top: auto; padding-top: 36px; display: flex; justify-content: center; align-items: flex-end; }

/* mini replicas used inside tiles */
.mini-mac { position: relative; width: 100%; aspect-ratio: 16 / 7.4; border-radius: 16px 16px 0 0; overflow: hidden; }
.mini-mac .mac { border-radius: inherit; }
.mini-mac.notch-crop { aspect-ratio: 16 / 4.6; }

/* ---------- Big feature (dark) ---------- */
.feature-stage { position: relative; margin-top: 8px; }
.stage-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.stage-frame .mac { border-radius: inherit; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 980px; background: rgba(255, 255, 255, .1); }
.seg button { border: 0; padding: 8px 18px; border-radius: 980px; background: transparent; color: var(--dark-ink-2); font-size: 14px; cursor: pointer; transition: background .25s var(--ease), color .25s; }
.seg button[aria-pressed="true"] { background: #fff; color: #000; }
.seg.light { background: rgba(0, 0, 0, .06); }
.seg.light button { color: var(--ink-2); }
.seg.light button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.stage-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; text-align: center; }
.stage-caption { font-size: 14px; color: var(--dark-ink-2); min-height: 1.4em; }
.alt .stage-caption, .light-cap { color: var(--ink-2); }

.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(56px, 7vw, 88px); }
.split h3 { font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: .011em; margin-bottom: 8px; }
.split p { font-size: 17px; color: var(--ink-2); }
.on-dark .split p { color: var(--dark-ink-2); }
.split .ic { width: 40px; height: 40px; margin-bottom: 16px; color: var(--blue); }
.on-dark .split .ic { color: var(--link-dark); }

/* floater style variants (stage) */
.floater.style-lyrics { grid-template-columns: 1fr; width: 40cqw; padding: 2.2cqw 2.8cqw; }
.floater.style-lyrics .art, .floater.style-lyrics .meta, .floater.style-lyrics .player-col { display: none; }
.floater.style-reveal .player-col { opacity: 0; transition: opacity .35s var(--ease); }
.floater.style-reveal .art { opacity: .0; transition: opacity .35s var(--ease); }
.floater.style-reveal.hover .player-col, .floater.style-reveal.hover .art { opacity: 1; }
.stage-frame .floater { bottom: auto; top: 50%; transform: translate(-50%, -38%); width: 62cqw; transition: width .5s var(--spring); }
.stage-frame .floater.style-lyrics { width: 44cqw; }
.stage-frame .bg-win { position: absolute; z-index: 1; border-radius: 1.4cqw; background: rgba(250, 250, 252, .92); box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .4); overflow: hidden; }
.bg-win .tb { height: 3cqw; display: flex; align-items: center; gap: .6cqw; padding: 0 1.2cqw; background: #ececf0; border-bottom: 1px solid #d8d8dc; }
.bg-win .tb i { width: .95cqw; height: .95cqw; border-radius: 50%; background: #ff5f57; }
.bg-win .tb i:nth-child(2) { background: #febc2e; } .bg-win .tb i:nth-child(3) { background: #28c840; }
.bg-win .body { padding: 2cqw; display: grid; gap: 1cqw; }
.bg-win .body b { display: block; height: 1cqw; border-radius: 1cqw; background: #dcdce2; }
.bg-win .body b.s { width: 60%; } .bg-win .body b.m { width: 82%; } .bg-win .body b.t { height: 2cqw; width: 45%; background: #c9c9d1; }

/* ---------- Capsule (notch) feature ---------- */
.notch-stage { position: relative; width: 100%; aspect-ratio: 16 / 6.2; border-radius: var(--radius); overflow: hidden; background: #000; }
.notch-stage .mac { background-position: center 30%; }
.notch-stage .mac-bar { height: 3cqw; font-size: 1.2cqw; }
.notch-stage .mac-notch { height: 3cqw; width: 13cqw; }
.c-exp .art { width: 9cqw; aspect-ratio: 1; border-radius: 1cqw; background: #222 center / cover; }
.c-exp strong { display: block; font-size: 1.5cqw; font-weight: 700; }
.c-exp .who { display: block; font-size: 1.25cqw; color: rgba(255, 255, 255, .55); }
.c-exp .prog { margin-top: 1cqw; height: .35cqw; }
.c-exp .ctrls { justify-content: flex-start; gap: 1.3cqw; margin-top: 1cqw; }
.c-exp .ctrls span { width: 2.6cqw; height: 2.6cqw; }
.c-exp .ctrls span.play { width: 3.2cqw; height: 3.2cqw; }
.c-exp .lyr { text-align: center; }
.c-exp .lyr p { font-size: 1.25cqw; font-weight: 600; color: rgba(255, 255, 255, .42); line-height: 1.3; }
.c-exp .lyr p.now { margin: .7cqw 0; font-size: 1.75cqw; font-weight: 700; color: #fff; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dark-ink-2); }
.hint kbd { font: inherit; }

/* ---------- Menu bar feature ---------- */
.menubar-demo { position: relative; max-width: 980px; margin-inline: auto; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 5.5; }
.menubar-demo .mac-bar { height: 5.6cqw; font-size: 2.1cqw; gap: 3cqw; padding: 0 3cqw; background: rgba(245, 245, 247, .72); color: #1d1d1f; }
.menubar-demo .mac-bar .apple { width: 2cqw; height: 2.4cqw; }
.menubar-demo .mac-bar .r { gap: 2.6cqw; }
.menubar-demo .mac-bar .r svg { width: 2.4cqw; height: 2.4cqw; }
.menubar-demo .mb-lyric { max-width: var(--mbw, 42cqw); padding: .5cqw 1.2cqw; border-radius: 1cqw; background: rgba(0, 0, 0, .07); }
.menubar-demo .mb-lyric svg { width: 2cqw !important; height: 2cqw !important; }
.menubar-demo .mac-notch { display: none; }
.mb-drop {
  position: absolute; z-index: 4; top: 6.4cqw; right: 17cqw; width: 34cqw; padding: 1.6cqw;
  border-radius: 1.8cqw; background: rgba(246, 246, 248, .86); color: #1d1d1f;
  backdrop-filter: blur(3cqw); -webkit-backdrop-filter: blur(3cqw);
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .3), inset 0 0 0 .1cqw rgba(255, 255, 255, .6);
  font-size: 1.7cqw;
}
.mb-drop .row { display: flex; align-items: center; gap: 1.2cqw; }
.mb-drop .art { width: 6cqw; height: 6cqw; border-radius: .9cqw; background: #ccc center / cover; flex: none; }
.mb-drop strong { display: block; font-size: 1.8cqw; }
.mb-drop span { color: #6e6e73; font-size: 1.5cqw; }
.mb-drop hr { border: 0; border-top: .1cqw solid rgba(0, 0, 0, .12); margin: 1.3cqw 0; }
.mb-drop p { padding: .55cqw .8cqw; border-radius: .8cqw; font-size: 1.6cqw; display: flex; justify-content: space-between; }
.mb-drop p:first-of-type { background: var(--blue); color: #fff; }
.mb-drop p kbd { font: inherit; opacity: .6; }
.range-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.range-row input { width: min(320px, 70vw); accent-color: var(--blue); }
.range-row output { min-width: 9ch; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

/* ---------- Lyrics window ---------- */
.lw {
  position: relative; max-width: 760px; margin-inline: auto; aspect-ratio: 4 / 4.2; border-radius: 26px; overflow: hidden;
  container-type: inline-size; color: #fff; background: #1b1b1f;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.lw-bg { position: absolute; inset: -10%; background: #222 center / cover; transition: filter .6s var(--ease), opacity .6s var(--ease); }
.lw[data-bg="blurred"] .lw-bg { filter: blur(9cqw) saturate(1.4) brightness(.7); }
.lw[data-bg="clear"] .lw-bg { filter: brightness(.45); inset: 0; }
.lw[data-bg="hidden"] .lw-bg { opacity: 0; }
.lw-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 3.6cqw 4cqw 0; }
.lights { display: flex; gap: 1.2cqw; }
.lights i { width: 2cqw; height: 2cqw; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.lw-tools { display: flex; gap: 3cqw; padding: 1.4cqw 2.6cqw; border-radius: 4cqw; background: rgba(255, 255, 255, .1); }
.lw-tools svg { width: 3cqw; height: 3cqw; opacity: .7; }
.lw-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 2.6cqw; padding: 3.2cqw 4cqw 0; }
.lw-head .art { width: 11cqw; height: 11cqw; border-radius: 1.6cqw; background: #333 center / cover; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .4); }
.lw-head strong { display: block; font-size: 3.4cqw; }
.lw-head span { font-size: 2.6cqw; color: rgba(255, 255, 255, .6); font-weight: 600; }
.lw-lines { position: absolute; z-index: 1; inset: 0; padding: 0 9cqw 0 14cqw; overflow: hidden;
  -webkit-mask: linear-gradient(transparent 20%, #000 34%, #000 80%, transparent 98%); mask: linear-gradient(transparent 20%, #000 34%, #000 80%, transparent 98%); }
.lw-track { position: absolute; left: 14cqw; right: 9cqw; top: 55%; transition: transform .8s var(--ease); }
.lw-track p { font-size: var(--lwfs, 6.2cqw); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 4.4cqw; color: rgba(255, 255, 255, .38); transition: color .5s var(--ease), filter .5s var(--ease), opacity .5s; text-wrap: balance; }
.lw-track p.now { color: #fff; }
.lw[data-blur="true"] .lw-track p.past { filter: blur(.55cqw); }
.lw[data-center="true"] .lw-track { text-align: center; }
.lw-toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 980px; border: 1px solid var(--line);
  background: var(--bg); font-size: 14px; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.on-dark .chip { background: transparent; border-color: #424245; color: var(--dark-ink); }
.on-dark .chip[aria-pressed="true"] { background: var(--dark-ink); border-color: var(--dark-ink); color: #000; }

/* ---------- Translation ---------- */
.tr-card { max-width: 820px; margin-inline: auto; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: linear-gradient(160deg, #0b1630, #050a17 60%, #000); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tr-line { padding: 16px 0; transition: opacity .4s; }
.tr-line + .tr-line { border-top: 1px solid rgba(255, 255, 255, .08); }
.tr-line .o { font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; color: rgba(255, 255, 255, .42); transition: color .4s; }
.tr-line .t { margin-top: 6px; font-size: clamp(16px, 2vw, 21px); font-weight: 500; color: rgba(90, 200, 250, .55); transition: color .4s; }
.tr-line.now .o { color: #fff; }
.tr-line.now .t { color: #5ac8fa; }
.lang-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.lang-cloud { margin-top: 28px; text-align: center; font-size: 14px; color: var(--ink-2); line-height: 1.9; max-width: 760px; margin-inline: auto; }

/* ---------- Timing dial + shortcuts ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border-radius: var(--radius); padding: clamp(32px, 4vw, 52px); background: var(--bg); }
.alt .panel { background: var(--bg); }
.on-dark .panel { background: var(--dark-2); }
.panel .h3 { margin-bottom: 12px; }
.dial { margin-top: 36px; }
.dial-track { position: relative; height: 64px; border-radius: 16px; background: var(--bg-alt); overflow: hidden; }
.dial-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 10%); background-position: 5% 0; -webkit-mask: linear-gradient(transparent 30%, #000 30% 70%, transparent 70%); mask: linear-gradient(transparent 30%, #000 30% 70%, transparent 70%); }
.dial-zero { position: absolute; top: 14px; bottom: 14px; left: 50%; width: 2px; margin-left: -1px; background: rgba(0, 0, 0, .25); border-radius: 2px; }
.dial-knob { position: absolute; top: 8px; bottom: 8px; width: 6px; margin-left: -3px; left: 50%; border-radius: 6px; background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .18); transition: left .25s var(--ease); }
.dial input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.dial-read { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dial-read output { font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.keys { display: grid; gap: 10px; margin-top: 28px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e8e8ed; font-size: 15px; }
.key-row:last-child { border-bottom: 0; }
.kbd { display: inline-flex; gap: 5px; }
.kbd kbd { min-width: 30px; height: 30px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 7px; background: linear-gradient(#fff, #f2f2f5); border: 1px solid #d2d2d7; box-shadow: 0 1px 0 #c7c7cc; font: 500 14px/1 var(--font); color: var(--ink); }

/* ---------- Works with ---------- */
.apps-row { display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px); margin-top: 8px; flex-wrap: wrap; }
.app-chip { display: grid; justify-items: center; gap: 14px; font-size: 17px; font-weight: 600; }
.app-chip img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .35); }
.app-chip span { font-size: 14px; font-weight: 400; color: var(--ink-2); }

/* ---------- Lifestyle photo ---------- */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b0f1a; }
.photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 4vw, 48px); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.photo figcaption .h3 { max-width: 560px; }
.photo figcaption p { margin-top: 8px; color: rgba(255, 255, 255, .78); max-width: 520px; }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.priv { padding: 40px 32px; border-radius: var(--radius); background: var(--bg-alt); text-align: center; }
.priv svg { width: 54px; height: 54px; margin: 0 auto 20px; color: var(--blue); }
.priv h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; letter-spacing: .011em; }
.priv p { color: var(--ink-2); }

/* ---------- Ecosystem ---------- */
.eco { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: stretch; }
.eco-card { border-radius: var(--radius); padding: clamp(32px, 4vw, 52px); background: var(--bg); display: flex; flex-direction: column; }
.eco-devices { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.eco-devices span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 980px; background: var(--bg-alt); font-size: 15px; font-weight: 500; }
.eco-devices svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Setup steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; padding: 36px 32px 40px; border-radius: var(--radius); background: var(--bg); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; }
.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: .011em; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
.perm { margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--bg-alt); display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.38; }
.perm img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.perm b { display: block; font-size: 13px; margin-bottom: 4px; }
.perm .btns { display: flex; gap: 6px; margin-top: 10px; }
.perm .btns i { font-style: normal; padding: 3px 12px; border-radius: 6px; background: #e3e3e8; font-size: 12px; }
.perm .btns i.ok { background: var(--blue); color: #fff; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 40px 32px 36px; border-radius: var(--radius); background: var(--dark-2); color: var(--dark-ink); box-shadow: inset 0 0 0 1px #2a2a2c; }
.plan.pop { box-shadow: inset 0 0 0 2px var(--link-dark); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.plan h3 { font-size: 21px; font-weight: 600; }
.plan .price { margin: 18px 0 4px; font-size: 48px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.plan .price small { font-size: 17px; font-weight: 400; color: var(--dark-ink-2); letter-spacing: -.01em; }
.plan .note { font-size: 14px; color: var(--dark-ink-2); min-height: 2.8em; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--dark-ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--link-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.7l4.6-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.plan .btn { margin-top: auto; }
.free-band { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius); background: var(--dark-2); box-shadow: inset 0 0 0 1px #2a2a2c; }
.free-band strong { font-size: 21px; font-weight: 600; }
.free-band p { color: var(--dark-ink-2); margin-top: 4px; }
.fine { margin-top: 28px; font-size: 12px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.on-dark .fine { color: #86868b; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: .009em; line-height: 1.2; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .a { padding: 0 48px 28px 0; color: var(--ink-2); font-size: 17px; }
.faq .a p + p { margin-top: 12px; }
.faq .a a { color: var(--link); }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final img.icon { width: 128px; height: 128px; margin: 0 auto 28px; filter: drop-shadow(0 20px 40px rgba(0, 113, 227, .35)); }
.final .lead { max-width: 560px; margin: 18px auto 0; }
.final .hero-cta { margin-top: 36px; }

/* ---------- Footer ---------- */
.foot { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 1.34; padding: 28px 0 32px; }
.foot-notes { padding-bottom: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 8px 0 24px; border-bottom: 1px solid var(--line); }
.foot-cols h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { color: var(--ink-2); }
.foot-cols a:hover { color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; }
.foot-legal nav { display: flex; flex-wrap: wrap; gap: 0; }
.foot-legal nav a { color: var(--ink-2); padding: 0 10px; border-left: 1px solid var(--line); }
.foot-legal nav a:first-child { padding-left: 0; border-left: 0; }

/* ---------- Guide pages ---------- */
.article { max-width: 760px; margin-inline: auto; padding-block: clamp(56px, 8vw, 96px); }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }
.crumbs a { color: var(--ink-2); }
.article h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.article .lead { margin-top: 18px; }
.article h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.125; font-weight: 600; margin: 56px 0 14px; }
.article h3 { font-size: 21px; font-weight: 600; margin: 32px 0 8px; }
.article p, .article li { color: #424245; font-size: 17px; line-height: 1.6; }
.article p + p { margin-top: 14px; }
.article ol, .article ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.article .callout { margin: 32px 0; padding: 28px; border-radius: var(--radius-sm); background: var(--bg-alt); }
.article .callout p { color: var(--ink); }
.article .callout .btn, .article .callout .mas-badge { margin-top: 16px; }
.article kbd { font: 500 14px var(--font); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.toc { margin-top: 32px; padding: 20px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.toc b { font-size: 14px; }
.toc ol { margin-top: 8px; }
.toc li { font-size: 15px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.related a { display: block; padding: 22px; border-radius: var(--radius-sm); background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.related a span { display: block; margin-top: 6px; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.related a:hover { text-decoration: none; background: #ececf0; }
.guide-hero-art { margin-top: 40px; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 16 / 8; background: #000; }
.guide-hero-art.notch-stage { aspect-ratio: 16 / 7; }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .tile { padding: 36px 32px 0; min-height: 480px; }
  .tile.span-4 { grid-column: span 6; }
  .tile.span-4:last-child { grid-column: span 12; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 auto; display: grid; gap: 0; padding: 8px 22px 24px; background: rgba(251, 251, 253, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; margin: 0; }
  .nav-links a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid #e8e8ed; opacity: 1; }
  .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-in > .pill { margin-left: 4px; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.span-4, .tile.span-4:last-child, .tile.span-12 { grid-column: auto; min-height: 0; }
  .split, .privacy-grid, .steps, .plans, .two, .eco { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .plans { max-width: 480px; margin-inline: auto; gap: 32px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
  body { font-size: 17px; }
  .brand small { display: none; }
  .floater { width: 74cqw; grid-template-columns: 14cqw 1fr; bottom: 5cqw; }
  .floater .art { width: 14cqw; }
  .floater .lyr { grid-column: 1 / -1; }
  .stage-frame { aspect-ratio: 4 / 4; }
  .stage-frame .floater { width: 86cqw; grid-template-columns: 22cqw 1fr; gap: 3cqw; padding: 3.4cqw; border-radius: 4cqw; }
  .stage-frame .floater .art { width: 22cqw; border-radius: 2cqw; }
  .stage-frame .floater .art i { width: 4cqw; height: 4cqw; }
  .stage-frame .floater .meta strong { font-size: 3.4cqw; }
  .stage-frame .floater .meta span { font-size: 2.9cqw; }
  .stage-frame .floater .lyr .now { font-size: 4.4cqw; }
  .stage-frame .floater .lyr .next { font-size: 3.4cqw; }
  .stage-frame .floater .times { font-size: 2.4cqw; }
  .stage-frame .floater .prog { height: .8cqw; margin-top: 2cqw; }
  .stage-frame .floater .ctrls { gap: 2cqw; margin-top: 2cqw; }
  .stage-frame .floater .ctrls span { width: 5.6cqw; height: 5.6cqw; }
  .stage-frame .floater .ctrls span.play { width: 7.4cqw; height: 7.4cqw; }
  .stage-frame .floater .ctrls svg { width: 2.6cqw; height: 2.6cqw; }
  .stage-frame .floater.style-lyrics { width: 80cqw; padding: 5cqw; }
  .stage-frame .mac-bar { height: 5.4cqw; font-size: 2.3cqw; }
  .stage-frame .mac-bar .r svg, .stage-frame .mac-bar .apple { width: 2.4cqw; height: 2.6cqw; }
  .stage-frame .mac-notch { width: 22cqw; height: 5.4cqw; }
  .stage-frame .mb-lyric, .stage-frame .mac-bar .menus { display: none; }
  .stage-frame .bg-win { display: none; }
  .notch-stage { aspect-ratio: 4 / 3; }
  .notch-stage .mac-bar { height: 6cqw; font-size: 2.4cqw; }
  .notch-stage .mac-bar .menus, .notch-stage .mb-lyric { display: none; }
  .notch-stage .mac-bar .r svg, .notch-stage .mac-bar .apple { width: 2.6cqw; height: 2.8cqw; }
  .notch-stage .mac-notch { height: 6cqw; width: 24cqw; }
  .notch-stage .capsule { --i-cw: 70; --i-ew: 94; --i-s: 2.4; --i-rc: 5; --i-re: 5.5; }
  .notch-stage .i-compact { padding: 6.6cqw 3cqw 2.4cqw; }
  .notch-stage .i-expanded { padding: 7cqw 4cqw 4cqw; grid-template-columns: 20cqw 1fr; gap: 3.5cqw; }
  .notch-stage .capsule .c-line { font-size: 3.6cqw; }
  .notch-stage .capsule .c-sub { font-size: 2.9cqw; }
  .c-exp .art { width: 20cqw; border-radius: 2.4cqw; }
  .c-exp strong { font-size: 3.4cqw; } .c-exp .who { font-size: 2.9cqw; }
  .c-exp .prog { height: .8cqw; margin-top: 2cqw; }
  .c-exp .ctrls span { width: 6cqw; height: 6cqw; } .c-exp .ctrls span.play { width: 7.4cqw; height: 7.4cqw; }
  .c-exp .ctrls svg { width: 2.8cqw; height: 2.8cqw; }
  .c-exp .lyr { grid-column: 1 / -1; }
  .c-exp .lyr p { font-size: 3cqw; } .c-exp .lyr p.now { font-size: 4.2cqw; }
  .menubar-demo { aspect-ratio: 4 / 3; }
  .menubar-demo .mac-bar { height: 9cqw; font-size: 3.4cqw; gap: 3cqw; }
  .menubar-demo .mac-bar .menus { display: none; }
  .menubar-demo .mac-bar .apple { width: 3.4cqw; height: 4cqw; }
  .menubar-demo .mac-bar .r svg { width: 3.8cqw; height: 3.8cqw; }
  .menubar-demo .mb-lyric { max-width: var(--mbw-m, 60cqw); }
  .menubar-demo .mb-lyric svg { width: 3.2cqw !important; height: 3.2cqw !important; }
  .mb-drop { top: 11cqw; right: 4cqw; left: 4cqw; width: auto; padding: 4cqw; border-radius: 4cqw; font-size: 3.6cqw; }
  .mb-drop .art { width: 13cqw; height: 13cqw; border-radius: 2cqw; }
  .mb-drop strong { font-size: 4cqw; } .mb-drop span { font-size: 3.4cqw; }
  .mb-drop p { font-size: 3.6cqw; padding: 1.4cqw 2cqw; border-radius: 1.8cqw; }
  .mb-drop hr { margin: 3cqw 0; }
  .lw { aspect-ratio: 4 / 5; border-radius: 20px; }
  .tile { padding: 32px 24px 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .faq .a { padding-right: 0; }
  .free-band { padding: 24px; }
  .photo figcaption { position: static; background: #0b0f1a; padding: 24px; }
  .lang-row.seg { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .swap { animation: none; }
  .capsule, .i-compact, .i-expanded { transition: none !important; }
  .kc { animation: none; color: inherit; }
  .lw-track { transition: none; }
}

/* zoomed replicas inside the highlight tiles */
.mini-mac.notch-crop .mac { left: -45%; right: -45%; }
.mac-bar { white-space: nowrap; }
.tile-mb { width: 100%; aspect-ratio: 16 / 7; border-radius: 16px; clip-path: inset(0 round 16px); }
/* menu bar tile: the bar at full tile width, scaled up, with the lyric pill clear of the rounded corners */
.tile .tile-mb .mac { width: 100%; background-position: 62% 40%; }
.tile .tile-mb .mac-bar { height: 11.5cqw; font-size: 3.8cqw; gap: 3.2cqw; padding: 0 5.6cqw; }
.tile .tile-mb .mac-bar .apple { width: 4cqw; height: 4.7cqw; flex: none; }
.tile .tile-mb .mac-bar > b, .tile .tile-mb .mac-bar .menus { display: none !important; }
.tile .tile-mb .mac-bar .r { gap: 3.2cqw; min-width: 0; }
.tile .tile-mb .mac-bar .r > svg { width: 4.4cqw; height: 4.4cqw; flex: none; }
.tile .tile-mb .mac-bar .r > svg:not(:nth-of-type(2)) { display: none; }
.tile .tile-mb [data-clock] { flex: none; }
.tile .tile-mb .mb-lyric { max-width: 44cqw; min-width: 0; gap: 1.4cqw; padding: 1.1cqw 2.6cqw; border-radius: 2.4cqw; }
.tile .tile-mb .mb-lyric svg { width: 3.6cqw !important; height: 3.6cqw !important; }


/* ecosystem art */
.eco-art { padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 36px) 0; background: linear-gradient(180deg, #fff 0%, #eef4ff 100%); justify-content: flex-end; overflow: hidden; }

/* timing preview */
.sync-viz {
  position: relative; margin-top: 32px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; padding: 16px 18px 16px; border-radius: 20px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #10204a 0%, #070b18 55%, #04060d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.sv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sv-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.sv-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: 980px; background: rgba(255, 255, 255, .08); font-size: 12px; font-variant-numeric: tabular-nums; transition: background .3s; }
.sv-status i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 8px #30d158; transition: background .3s, box-shadow .3s; }
.sv-status b { font-weight: 600; }
.sv-status.off i { background: #ff9f0a; box-shadow: 0 0 8px #ff9f0a; }
.sv-canvas { display: block; width: 100%; height: 104px; }
.sv-track { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sv-words {
  position: relative; flex: 1; height: 26px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.sv-track .sv-label { position: absolute; left: 0; top: -2px; transform: translateY(-100%); visibility: hidden; }
.sv-words span {
  position: absolute; top: 50%; transform: translate(0, -50%); white-space: nowrap;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: rgba(255, 255, 255, .3);
  transition: color .18s ease-out, text-shadow .25s ease-out, left .45s cubic-bezier(.2, .9, .25, 1.05);
}
.sv-words span::before { content: ""; position: absolute; left: 0; top: -9px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .9; }
.sv-words span.on { color: #fff; text-shadow: 0 0 14px rgba(90, 200, 250, .6); }
.sync-note { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .58); }

.sync-viz.dragging { cursor: grabbing; }
.sync-viz.dragging .sv-words span { transition: color .18s ease-out, text-shadow .25s ease-out; }
.sync-viz:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.sv-words span::before { transition: background .3s; }
.sync-viz.off .sv-words span::before { background: #ff9f0a; }
.sync-viz:not(.off) .sv-words span::before { background: #30d158; }

/* backdrop-filter children escape border-radius clipping in Chromium; clip-path always rounds all four corners */
.menubar-demo { clip-path: inset(0 round 22px); }
.tile .tile-mb { clip-path: none; }
.mini-mac { clip-path: inset(0 round 16px 16px 0 0); }
.stage-frame, .notch-stage, .guide-hero-art { clip-path: inset(0 round var(--radius)); }

/* ---------- layout values that used to live inline ---------- */
.tile-art.pad { padding-bottom: 40px; }
.tile-art.apps { padding-bottom: 44px; gap: 20px; }
.tile-art.apps img { border-radius: 17px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .35); }
.tile .tile-tr { width: 100%; padding: 22px 24px; border-radius: 20px; }
.tile .tile-tr .o { font-size: 21px; }
.tile .tile-tr .t { font-size: 15px; }
.lang-row.seg { display: flex; width: max-content; max-width: 100%; margin: 28px auto 0; }
.kbd kbd.wide-key { min-width: 64px; }
.photo { margin-top: clamp(56px, 7vw, 96px); }
.eco-card .h2 { font-size: clamp(32px, 4vw, 48px); }
.eco-card .lead { margin-top: 18px; }
.eco-link { margin-top: auto; padding-top: 28px; }
.priv { background: #fff; }
.steps li { background: var(--bg-alt); }
.perm { background: #fff; }

/* ---------- setup step visuals ---------- */
.step-art { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: #fff; display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; }
.step-art > div { min-width: 0; flex: 1; }
.step-art b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-art span { color: var(--ink-2); }
.step-art.store img { width: 44px; height: 44px; flex: none; }
.step-art.store i { font-style: normal; flex: none; padding: 5px 16px; border-radius: 980px; background: #eef0f4; color: var(--blue); font-size: 14px; font-weight: 700; }
.step-art.playing .art { width: 44px; height: 44px; flex: none; border-radius: 9px; background: #222 center / cover; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.step-art.playing b { --k-dim: rgba(29, 29, 31, .3); --k-lit: #1d1d1f; --k-glow: rgba(0, 113, 227, .3); }

/* menu bar tile: an opaque bar, so the backdrop blur can't pull dark wallpaper into the rounded corners */
.tile .tile-mb { background: transparent; overflow: visible; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 14px 30px -16px rgba(10, 20, 50, .45); }
.tile .tile-mb .mac-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; box-shadow: inset 0 -.5px 0 rgba(0, 0, 0, .1); }
.tile .tile-mb .mb-lyric { background: rgba(0, 0, 0, .065); }

/* menu bar section: the clock always stays in view; the lyric pill gives way first, like macOS does */
.menubar-demo .mac-bar .r { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.menubar-demo .mb-lyric { flex: 0 1 auto; min-width: 0; }
.menubar-demo .mac-bar .r > svg, .menubar-demo [data-clock] { flex: none; }
[data-menubar-demo] .mac-bar .r > svg:nth-of-type(n+3) { display: none; }
/* paint the strip under the bar light too, so anti-aliased edges never reveal the dark wallpaper */
.tile .tile-mb .mac {
  background-image: linear-gradient(#eceef3, #e4e7ee), url("/assets/img/wallpaper.webp");
  background-size: 100% 26%, cover; /* 26% of the 16:7 tile = the 11.5cqw bar */
  background-position: top, 62% 40%;
  background-repeat: no-repeat;
  background-color: #e9ebf0;
  border-radius: 16px;
}
