/* The landing page. Always dark, as the app is; the nine sounds' colours of Neon Night (Music.swift)
   for accents, glass for panels, as the app's Liquid Glass. Logical properties throughout, so right
   to left mirrors by itself. */

:root {
  color-scheme: dark;
  --bg: #0b0614;
  --bg-2: #120a22;
  --ink: #f6f2ff;
  --dim: #c0b7da;
  --faint: #857c9f;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.09);
  --kick: #ff2d95; --snare: #ff8c42; --clap: #ffe14d; --hat: #4df3ff; --ohat: #3aa8ff;
  --perc: #8cff5a; --bass: #a34dff; --chord: #5b6cff; --arp: #ff7ae6;
  --max: 1180px;
  --gutter: clamp(16px, 4.5vw, 44px);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
/* no word left alone on a heading's last line (Make a mixtape. Pass it / on.) */
h2, h3 { text-wrap: balance; }
/* scripts where tight letters hurt: no negative spacing */
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2,
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hant) h1, :lang(zh-Hant) h2 { letter-spacing: 0; }
:lang(ar) body, :lang(ar) h1, :lang(ar) h2 { line-height: 1.35; }
:lang(ar) .lead { line-height: 1.75; }
p { margin: 0; }
.lead { color: var(--dim); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin-top: 18px; max-width: 40em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--hat); outline-offset: 3px; border-radius: 6px; }
.missing { display: grid; place-items: center; aspect-ratio: 9 / 19; color: var(--faint); font-size: 13px; border: 1px dashed var(--line); border-radius: 18px; }

/* the dot font: the app's numbers and wordmark */
.dots { display: block; height: 1em; width: auto; overflow: visible; }
.wordmark { filter: drop-shadow(0 0 3px rgba(255, 45, 149, 0.45)) drop-shadow(0 0 10px rgba(91, 108, 255, 0.35)); }

/* MARK: The bar */

.bar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); background: rgba(11, 6, 20, 0.62); border-bottom: 1px solid var(--line); }
.bar-in { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { border-radius: 8px; }
.brand-word { font-size: 17px; display: block; }
.brand-word .dots { height: 17px; }
.links { display: flex; gap: 4px; margin-inline-start: auto; }
.links a { text-decoration: none; color: var(--dim); font-size: 15px; padding: 8px 12px; border-radius: 99px; transition: color 0.2s, background 0.2s; }
.links a:hover { color: var(--ink); background: var(--glass-2); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 15px; padding: 8px 12px; border-radius: 99px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: var(--glass-2); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; min-width: 210px; max-height: 70vh; overflow: auto;
  background: rgba(24, 16, 40, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.lang li a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--dim); }
.lang li a:hover { background: var(--glass-2); color: var(--ink); }
.lang li a[aria-current] { color: var(--ink); font-weight: 700; }
.soon { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px; font-weight: 700; text-decoration: none; color: #140a1f;
  background: linear-gradient(120deg, #fff, #ffd9ef 45%, #d9dcff); box-shadow: 0 10px 40px -10px rgba(255, 45, 149, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.4) inset; transition: transform 0.2s, box-shadow 0.2s; }
.soon:hover { transform: translateY(-1px); box-shadow: 0 14px 50px -10px rgba(255, 45, 149, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.5) inset; }
.soon[aria-disabled="true"] { cursor: default; }
.soon-small { padding: 8px 16px; font-size: 14px; flex: none; }
.ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 99px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--glass-2); border: 1px solid var(--line); }
.ghost:hover { background: rgba(255, 255, 255, 0.14); }

@media (max-width: 920px) { .links { display: none; } .lang { margin-inline-start: auto; } }
@media (max-width: 520px) { .soon-small { display: none; } .lang summary span { display: none; } }

/* MARK: Glow: the lights behind the hero and the end, slowly drifting */

.glow { position: absolute; inset: -10% -20%; pointer-events: none; z-index: 0; filter: blur(60px); opacity: 0.9;
  background:
    radial-gradient(28% 34% at 22% 30%, rgba(255, 45, 149, 0.42), transparent 70%),
    radial-gradient(26% 32% at 78% 24%, rgba(77, 243, 255, 0.26), transparent 70%),
    radial-gradient(30% 36% at 62% 72%, rgba(163, 77, 255, 0.40), transparent 70%),
    radial-gradient(22% 26% at 30% 82%, rgba(255, 140, 66, 0.22), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .glow { animation: drift 24s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }
}

/* MARK: Hero */

.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 90px) 0 clamp(40px, 6vw, 80px); }
.hero-in { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 99px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
  background: var(--glass-2); border: 1px solid var(--line); margin-bottom: 22px; }
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--perc); box-shadow: 0 0 12px var(--perc); }
.hero h1 { background: linear-gradient(100deg, #fff 30%, #ffc4e4 55%, #c9ccff 80%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { color: var(--faint); font-size: 14px; margin-top: 16px; }
.hero-art { position: relative; min-height: 560px; display: grid; place-items: center; }
.phone.hero-phone { position: relative; z-index: 2; width: min(300px, 62vw, calc((100svh - 150px) * 0.46)); margin-inline-end: 34%; }
.duo-hero { position: absolute; inset-inline-end: -13%; top: 13%; width: 78%; z-index: 1; }
.duo-hero img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-text .lead { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-art { min-height: 0; padding-top: 8px; }
  .phone.hero-phone { margin-inline-end: 28%; width: min(260px, 56vw); }
  .duo-hero { width: 62%; top: 8%; inset-inline-end: 2%; }
}

/* MARK: Devices: each screen in its frame, an SVG of the device seen from the front with the screen cut
   out (site/tools/frames.mjs draws them to the simulator's own outlines, in points). A screen sits
   where its frame's hole is: an iPhone's 440 × 956 pt screen 15 pt inside a 470 × 986 pt body, and the
   frame reaches past the body by the buttons' 3.2 pt. */

.phone { position: relative; width: min(340px, 74vw); aspect-ratio: 470 / 986; border-radius: 15.6% / 7.45%;
  box-shadow: 0 40px 90px -30px rgba(163, 77, 255, 0.55), 0 20px 50px -20px rgba(255, 45, 149, 0.35); }
/* the screen rounded under its frame, so no corner of the picture shows past the body's own */
.phone > :is(picture, .clip, .missing) { position: absolute; inset: 1.521% 3.191%; border-radius: 14.2% / 6.54%; overflow: hidden; }
.phone :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.phone::after { content: ""; position: absolute; inset: 0 -0.681%; background: url(frame-iphone.svg) 0 0 / 100% 100% no-repeat; pointer-events: none; }
.phone.small { width: min(250px, 44vw); }
.phone.side { width: min(560px, 86vw); aspect-ratio: 986 / 470; border-radius: 7.45% / 15.6%; }
.phone.side > :is(picture, .clip, .missing) { inset: 3.191% 1.521%; border-radius: 6.54% / 14.2%; }
.phone.side::after { inset: -0.681% 0; background-image: url(frame-iphone-side.svg); }
/* the iPad: its 1032 × 1376 pt screen 44 pt inside a 1120 × 1464 body */
.tablet { position: relative; width: min(560px, 88vw); aspect-ratio: 1120 / 1464; border-radius: 5.4% / 4.13%; box-shadow: 0 40px 90px -30px rgba(91, 108, 255, 0.5); }
.tablet > :is(picture, .missing) { position: absolute; inset: 3.005% 3.929%; border-radius: 2.73% / 2.05%; overflow: hidden; }
.tablet img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tablet::after { content: ""; position: absolute; inset: -0.219% -0.286% 0 0; background: url(frame-ipad.svg) 0 0 / 100% 100% no-repeat; pointer-events: none; }

/* a video's own buttons: pause (always, as moving pictures should have) and sound */
.clip { position: relative; }
.clip-play, .clip-sound { position: absolute; bottom: 4.5%; inset-inline-end: 6%; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 6, 18, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; opacity: 0.78; transition: opacity 0.2s; }
.clip-sound { inset-inline-end: calc(6% + 46px); }
.clip:hover .clip-play, .clip:hover .clip-sound, .clip-play:focus-visible, .clip-sound:focus-visible { opacity: 1; }
.clip-play svg, .clip-sound svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.clip-play svg:last-child, .clip.paused .clip-play svg:first-child { display: none; }
.clip.paused .clip-play svg:last-child { display: block; }
.clip-sound svg:last-child, .clip-sound[aria-pressed="true"] svg:first-child { display: none; }
.clip-sound[aria-pressed="true"] svg:last-child { display: block; }
.clip-sound[aria-pressed="true"] { opacity: 1; background: rgba(255, 45, 149, 0.6); border-color: rgba(255, 255, 255, 0.4); }
.screen-wide .clip-play, .screen-wide .clip-sound { bottom: 16px; inset-inline-end: 16px; }
.screen-wide .clip-sound { inset-inline-end: 62px; }

/* MARK: Stats */

.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent); }
.stats ul { list-style: none; margin: 0 auto; padding: 30px var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.stats li { color: var(--dim); font-size: 15px; line-height: 1.4; }
.stats .num { display: block; height: 40px; margin-bottom: 12px; }
.stats .num .dots { height: 40px; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.18)); }
.stats li:nth-child(1) .num g { fill: var(--kick); } .stats li:nth-child(2) .num g { fill: var(--clap); } .stats li:nth-child(3) .num g { fill: var(--hat); }
.stats li:nth-child(4) .num g { fill: var(--perc); } .stats li:nth-child(5) .num g { fill: var(--arp); }
@media (max-width: 820px) { .stats ul { grid-template-columns: repeat(2, 1fr); } .stats li:last-child { grid-column: 1 / -1; } }

/* MARK: Sections */

section { position: relative; }
/* a grid's items may shrink below what's inside them: WebKit sized a column by a video's own 540 px
   and pushed the hero's words past a phone's edge */
.hero-in > *, .feature-in > *, .tv-section .wrap > *, .stats li, .cards > li, .packs > li, .trio > li { min-width: 0; }
.kicker { font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; box-shadow: 0 0 14px currentColor; }
:lang(ar) .kicker, :lang(ja) .kicker, :lang(ko) .kicker, :lang(zh-Hans) .kicker, :lang(zh-Hant) .kicker { letter-spacing: 0; }
.k1 { color: var(--kick); } .k2 { color: var(--snare); } .k3 { color: var(--clap); } .k4 { color: var(--hat); } .k5 { color: var(--ohat); }
.k6 { color: var(--perc); } .k7 { color: var(--bass); } .k8 { color: var(--chord); } .k9 { color: var(--arp); }
.gap { margin-top: 40px; }
.h2-small { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin-bottom: 12px; }
.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

.feature { padding: clamp(56px, 9vw, 120px) 0; }
.feature-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.feature-art { display: grid; place-items: center; }
.feature.flip .feature-art { order: 2; }
/* two phones side by side, the second a little lower: the mixtapes */
.pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 2.4vw, 26px); }
.pair .phone { width: min(270px, 41vw); }
.pair .phone + .phone { margin-top: 14%; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.points li { position: relative; padding-inline-start: 30px; color: var(--ink); }
.points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 4px; background: var(--c, var(--kick)); box-shadow: 0 0 12px var(--c, var(--kick)); opacity: 0.9; }
.points li:nth-child(1) { --c: var(--kick); } .points li:nth-child(2) { --c: var(--hat); } .points li:nth-child(3) { --c: var(--clap); } .points li:nth-child(4) { --c: var(--bass); }
.points strong { color: #fff; }
@media (max-width: 860px) {
  .feature-in { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .feature-art { order: 0; }
}

/* Perform: three phones, then the cards */
.perform { padding: clamp(56px, 9vw, 120px) 0; background: radial-gradient(60% 40% at 50% 30%, rgba(255, 140, 66, 0.10), transparent 70%); }
.perform-art { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 3vw, 40px); margin-bottom: clamp(36px, 5vw, 60px); }
.perform-art .phone:not(.small) { width: min(320px, 60vw); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { padding: 22px 22px 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset-inline-start: 22px; top: 0; width: 44px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 15.5px; line-height: 1.5; }
.c1 { --c: var(--kick); } .c2 { --c: var(--snare); } .c3 { --c: var(--clap); } .c4 { --c: var(--hat); } .c5 { --c: var(--ohat); }
.c6 { --c: var(--perc); } .c7 { --c: var(--bass); } .c8 { --c: var(--chord); } .c9 { --c: var(--arp); }
@media (max-width: 700px) {
  .perform-art { flex-wrap: wrap; }
  .perform-art .phone:not(.small) { order: -1; width: min(300px, 72vw); flex-basis: 100%; max-width: min(300px, 72vw); }
}

/* Lights: the tour, the packs */
.lights { padding: clamp(56px, 9vw, 120px) 0; background: radial-gradient(70% 50% at 50% 20%, rgba(58, 168, 255, 0.12), transparent 70%); }
.screen-wide { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 120px -40px rgba(91, 108, 255, 0.6), 0 0 0 1px #000; background: #000; }
.screen-wide video { display: block; width: 100%; height: auto; }
/* eight packs: four across, two on a phone, so no row is left short */
.packs { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pack figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); height: 100%; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.pack:hover figure { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 16px 40px -20px var(--c); }
.pack img, .pack .missing { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pack figcaption { padding: 12px 14px 14px; display: grid; gap: 3px; }
.pack strong { font-size: 16px; }
.pack figcaption span { color: var(--dim); font-size: 14px; line-height: 1.4; }
.packs-more { color: var(--faint); text-align: center; margin-top: 20px; font-size: 15px; }
.trio { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio li { padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.trio h3 { margin-bottom: 8px; }
.trio p { color: var(--dim); font-size: 15.5px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .packs { grid-template-columns: repeat(2, 1fr); gap: 10px; } .pack figcaption span { font-size: 13px; } }

/* MARK: iPhone Duo */

.duo { padding: clamp(64px, 10vw, 130px) 0; overflow: hidden; background: radial-gradient(60% 45% at 50% 55%, rgba(140, 255, 90, 0.09), transparent 70%), radial-gradient(50% 40% at 30% 30%, rgba(163, 77, 255, 0.14), transparent 70%); }
.duo .head { margin-inline: auto; text-align: center; }
.duo .head .lead { margin-inline: auto; }
.poses { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 6px; margin: 0 auto 36px; width: fit-content; max-width: 100%; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); }
.poses button { font: inherit; font-weight: 600; font-size: 15px; color: var(--dim); background: none; border: 0; border-radius: 99px; padding: 10px 20px; cursor: pointer; }
.poses button:hover { color: var(--ink); }
.poses button[aria-selected="true"] { color: #10091a; background: linear-gradient(120deg, #fff, #e3ffd6); box-shadow: 0 6px 24px -8px rgba(140, 255, 90, 0.7); }
.duo-stage { display: grid; justify-items: center; min-height: 620px; }
.pane { display: grid; justify-items: center; gap: 28px; width: 100%; }
.pane[hidden] { display: none; }
.pose-text { color: var(--dim); text-align: center; max-width: 34em; font-size: 17px; }
.fold-note { text-align: center; color: var(--faint); margin-top: 20px; font-size: 15px; }
@media (max-width: 700px) { .duo-stage { min-height: 0; } }
@media (max-width: 480px) { .poses { gap: 2px; padding: 4px; } .poses button { padding: 9px 13px; font-size: 14.5px; } }

/* the Duo flat, in frames as the phone's: closed, the outer screen (466 × 678 pt, 10 pt inside a 486 ×
   698 body, the hinge 11 pt out to the left); open, the inner one (669 × 951 pt, 11 pt inside 691 ×
   973), the fold across it. The frames don't mirror: the hinge is where it is. */
.duo-device { position: relative; }
.duo-device.open, .duo-device.closed { box-shadow: 0 40px 90px -30px rgba(140, 255, 90, 0.35), 0 20px 60px -30px rgba(163, 77, 255, 0.6); }
.duo-device.open { width: min(440px, 84vw); aspect-ratio: 691 / 973; border-radius: 8.44% / 5.99%; }
.duo-device.closed { width: min(330px, 70vw); aspect-ratio: 486 / 698; border-radius: 1.21% 12.92% 12.92% 1.21% / 0.84% 9% 9% 0.84%; }
.duo-device:is(.open, .closed) > picture { position: absolute; overflow: hidden; }
.duo-device.open > picture { inset: 1.131% 1.592%; border-radius: 7.5% / 5.28%; }
.duo-device.closed > picture { inset: 1.433% 2.058%; border-radius: 1.6% 11.9% 11.9% 1.6% / 1.1% 8.19% 8.19% 1.1%; }
.duo-device:is(.open, .closed) > picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo-device.open::after, .duo-device.closed::after { content: ""; position: absolute; background: 0 0 / 100% 100% no-repeat; pointer-events: none; }
.duo-device.open::after { inset: -0.329% 0 0 -0.463%; background-image: url(frame-duo-open.svg); }
.duo-device.closed::after { inset: -0.458% -0.658% 0 -2.263%; background-image: url(frame-duo-closed.svg); }

/* half open: renders of the Duo, its screens the app's own screenshots (site/tools/render.swift) */
.duo-device.render img { display: block; width: 100%; height: auto; }
.duo-device.laptop { width: min(560px, 92vw); }
.duo-device.book { width: min(640px, 96vw); }
.duo-device.render, .duo-hero img { filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 60px rgba(163, 77, 255, 0.22)); }
@media (prefers-reduced-motion: no-preference) {
  .pane:not([hidden]) .duo-device { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes rise { from { transform: translateY(16px) scale(0.97); opacity: 0; } }
}

/* MARK: Sounds, devices, songs */

.chips { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 15px; background: var(--glass-2); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 20px -8px var(--c); }
.feature-text > p:not(.lead):not(.kicker) { color: var(--dim); margin-top: 12px; }
.devices { padding: clamp(56px, 9vw, 120px) 0; background: radial-gradient(60% 40% at 50% 40%, rgba(77, 243, 255, 0.08), transparent 70%); }
.devices-art { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(36px, 5vw, 60px); flex-wrap: wrap; }
.devices-art .tablet { width: min(470px, 88vw); }
.devices-art .phone.side { width: min(520px, 88vw); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .cards.three { grid-template-columns: 1fr; } }

/* the TV: the lights on it, mirrored from the phone in front, the Apple TV and its remote under it (a
   render, site/tools/render.swift), the signal between */
.tv-section { padding: clamp(56px, 9vw, 120px) 0; background: radial-gradient(55% 45% at 60% 55%, rgba(91, 108, 255, 0.14), transparent 70%); }
.tv-section .wrap { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.tv-scene { position: relative; padding-bottom: 9%; }
.tv { width: 88%; }
.tv-screen { position: relative; padding: 1.1%; border-radius: 16px; background: linear-gradient(160deg, #26212f, #07050b 30%, #0d0a13); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px #000, 0 50px 120px -40px rgba(255, 45, 149, 0.55), 0 0 200px -60px rgba(77, 243, 255, 0.45); }
.tv-screen video, .tv-screen img, .tv-screen .missing { display: block; width: 100%; height: auto; border-radius: 7px; background: #000; aspect-ratio: 16 / 9; }
.tv-screen .clip-play { bottom: 14px; inset-inline-end: 14px; }
.tv-stand { width: 26%; height: 22px; margin: 0 auto; background: linear-gradient(180deg, #1d1824, #0b0810); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.tv-shelf { position: absolute; inset-inline-start: 1%; bottom: -1%; width: 36%; }
.tv-shelf img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.6)); }
.tv-phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 25%; transform: rotate(-4deg); }
:dir(rtl) .tv-phone { transform: rotate(4deg); }
.cast { position: absolute; inset-inline-end: 22%; bottom: 46%; width: 11%; overflow: visible; transform: rotate(-38deg); }
:dir(rtl) .cast { transform: scaleX(-1) rotate(-38deg); }
.cast path { fill: none; stroke: var(--hat); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--hat)); }
@media (prefers-reduced-motion: no-preference) {
  .cast path { animation: cast 1.8s ease-in-out infinite; opacity: 0.15; }
  .cast path:nth-child(2) { animation-delay: 0.25s; } .cast path:nth-child(3) { animation-delay: 0.5s; }
  @keyframes cast { 0%, 100% { opacity: 0.15; } 40% { opacity: 1; } }
}
@media (max-width: 900px) { .tv-section .wrap { grid-template-columns: 1fr; } }
.icons { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.icons img { display: block; width: 44px; height: 44px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px -10px rgba(255, 45, 149, 0.6); }

/* MARK: Languages, the end */

.langs { padding: clamp(56px, 8vw, 110px) 0; text-align: center; }
.langs .lead { margin-inline: auto; }
.lang-cloud { list-style: none; padding: 0; margin: 34px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; }
.lang-cloud li { padding: 7px 13px; border-radius: 99px; font-size: 15px; color: var(--dim); background: var(--glass); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.lang-cloud li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.cta { padding: clamp(70px, 10vw, 140px) 0; text-align: center; overflow: hidden; }
.cta .wrap { position: relative; z-index: 1; display: grid; justify-items: center; }
.cta-icon { border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 60px -10px rgba(255, 45, 149, 0.7); margin-bottom: 28px; }
.cta .lead { margin: 16px auto 30px; }
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
.foot .wrap { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot-brand .dots { height: 18px; opacity: 0.85; }
.foot-langs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.foot-langs a { color: var(--faint); text-decoration: none; }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--ink); }

/* the offer of the visitor's own language, at the bottom */
.suggest { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 30; margin: 0 auto; max-width: 560px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px;
  border-radius: 18px; background: rgba(24, 16, 40, 0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); font-size: 15px; }
.suggest[hidden] { display: none; }
.suggest p { flex: 1; }
.suggest a { font-weight: 700; color: var(--hat); }
.suggest-close { font: inherit; font-size: 14px; color: var(--dim); background: var(--glass-2); border: 0; border-radius: 99px; padding: 8px 12px; cursor: pointer; }

/* things that rise as they come into view: driven by the scroll itself, so nothing can stay hidden
   (a browser without scroll-driven animations shows everything as it is) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feature-in > *, .head, .cards > li, .packs > li, .trio > li, .devices-art > *, .perform-art > *, .tv-scene, .lang-cloud {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  }
}
