/* ==========================================================================
   Nimbus — the site in the promo's language.
   Warm-gray canvas, black islands, white type, one accent: Live red.
   Motion: springs with a tiny overshoot at most; content arrives with a
   short blur; nothing bounces.
   ========================================================================== */

@font-face { font-family: 'Geist'; font-weight: 100 900; font-style: normal; font-display: swap; src: url(fonts/Geist.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 100 900; font-style: normal; font-display: swap; src: url(fonts/GeistMono.woff2) format('woff2'); }

:root {
  --canvas: #E9E7E2;
  --canvas-2: #E0DDD7;
  --paper: #F4F2EE;
  --ink: #0A0A0B;
  --on-ink: #F4F2EE;
  --dim: rgba(10, 10, 11, 0.62);
  --faint: rgba(10, 10, 11, 0.4);
  --line: rgba(10, 10, 11, 0.1);
  --red: #FF5468;
  --island: #0A0A0B;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --spring: cubic-bezier(0.2, 1.1, 0.3, 1);      /* ~1 % overshoot */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 28px;
  --max: 1200px;
}
/* Inside a black island, everything flips to light-on-dark. */
.dark, .island, .page-hero, .tg, .auth-shell, .dl-card, .bento .cell, .foot, .marquee, .together-band, .q, .tip {
  --ink: #F4F2EE; --on-ink: #0A0A0B;
  --dim: rgba(244, 242, 238, 0.62); --faint: rgba(244, 242, 238, 0.42); --line: rgba(244, 242, 238, 0.12);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--sans); background: var(--canvas); color: var(--ink);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01' 1; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--island); color: var(--paper); padding: 8px 14px; border-radius: 12px; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: var(--mono); }
.kicker { font: 600 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.kicker.red { color: var(--red); }
.h1 { font-size: clamp(52px, 10vw, 150px); line-height: 0.92; letter-spacing: -0.055em; font-weight: 650; margin: 0; }
.h2 { font-size: clamp(40px, 6.2vw, 92px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 650; margin: 0; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0; }
.lede { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.45; color: var(--dim); max-width: 640px; letter-spacing: -0.01em; }
.red { color: var(--red); }

/* ---------------- The top bar: an island hanging from the screen edge ---------------- */
.nav { position: fixed; top: 0; left: 50%; z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; gap: 22px; height: 60px; padding: 0 12px 0 22px;
  background: var(--island); color: var(--paper); border-radius: 0 0 26px 26px;
  width: min(1040px, calc(100% - 28px)); transition: width .7s var(--spring), height .6s var(--spring), border-radius .6s var(--spring), padding .6s var(--spring);
  animation: nav-in 1.1s var(--spring) both; }
/* The flared top corners of the notch outline. */
.nav::before, .nav::after { content: ""; position: absolute; top: 0; width: 18px; height: 18px; pointer-events: none;
  background: radial-gradient(circle at 0 100%, transparent 17.5px, var(--island) 18px); }
.nav::before { left: -18px; }
.nav::after { right: -18px; transform: scaleX(-1); }
.nav.compact { width: min(760px, calc(100% - 28px)); height: 52px; border-radius: 0 0 22px 22px; }
@keyframes nav-in { from { width: 200px; height: 34px; border-radius: 0 0 17px 17px; } }
.nav > * { animation: fade-up .6s var(--ease) .45s both; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; color: var(--paper); white-space: nowrap; }
.brand .mark { width: 26px; height: 26px; background: url(img/icon.svg) center / contain no-repeat; flex: none; }
.nav .ver { font: 500 12px var(--mono); color: rgba(244, 242, 238, 0.45); text-decoration: none; padding: 4px 8px; border: 1px solid rgba(244,242,238,.14); border-radius: 99px; }
.nav .links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav .links a:not(.btn) { color: rgba(244, 242, 238, 0.66); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 99px; transition: color .2s, background .2s; }
.nav .links a:not(.btn):hover, .nav .links a[aria-current] { color: var(--paper); background: rgba(244,242,238,.08); }
@media (max-width: 760px) {
  .nav { gap: 10px; padding-left: 16px; }
  .nav .links a:not(.btn), .nav .ver { display: none; }
  .nav .links a.blog-nav { display: inline-block; }
}

/* ---------------- Buttons ---------------- */
.btn { --b: var(--ink); --t: var(--on-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 99px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--b); color: var(--t); font: 600 17px var(--sans); letter-spacing: -0.01em; text-decoration: none;
  transition: transform .35s var(--spring), background .25s, color .25s, width .45s var(--spring), padding .45s var(--spring), box-shadow .3s;
  will-change: transform; }
.btn:hover { box-shadow: 0 10px 30px -12px rgba(10,10,11,.45); }
.btn:active { transform: scale(0.96) !important; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.red, .btn.hot.red { --b: var(--red); --t: #fff; }
/* In the top bar the lead button is light. */
.nav .btn.hot { --b: var(--paper); --t: var(--ink); }
.nav .btn { --t: var(--paper); }
.nav .btn.ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(244,242,238,.2); }
.nav .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(244,242,238,.6); }
/* Download morph: pill → loader ring → check, like the promo's opening. */
.btn .btn-label { transition: opacity .15s, filter .15s; }
.btn .btn-ring { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; opacity: 0; transition: opacity .2s; }
.btn.loading { width: 56px !important; min-width: 0; padding: 0; }
.btn.loading .btn-label { opacity: 0; filter: blur(4px); }
.btn.loading .btn-ring { opacity: 1; }
.btn-ring circle { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.btn-ring .track { opacity: .22; }
.btn-ring .arc { stroke-dasharray: 20 100; transform-origin: 50% 50%; animation: spin .7s linear infinite; }
.btn-ring .tick { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.btn.done .arc, .btn.done .track { opacity: 0; transition: opacity .15s; }
.btn.done .tick { stroke-dashoffset: 0; transition: stroke-dashoffset .35s var(--ease) .05s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Reveals ---------------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.reveal { opacity: 0; transform: translateY(26px) scale(0.985); filter: blur(8px);
  transition: opacity .8s var(--ease), transform 1s var(--spring), filter .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }
/* Headlines arrive word by word, each out of a short blur. */
.words .w { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(10px);
  animation: word-in 1s var(--spring) forwards; animation-delay: calc(var(--i) * 70ms + var(--base, 0ms)); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }

/* ---------------- Home: hero ---------------- */
.hero { padding: 150px 0 40px; text-align: center; position: relative; }
.hero .kicker { animation: fade-up .8s var(--ease) .2s both; }
.hero .h1 { margin: 22px auto 0; max-width: 12ch; }
.hero .h1 em { font-style: normal; color: var(--faint); }
.hero .lede { margin: 26px auto 0; animation: fade-up .9s var(--ease) .75s both; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; animation: fade-up .9s var(--ease) .9s both; }
.meta { margin-top: 18px; font: 500 13px var(--mono); color: var(--faint); animation: fade-up .9s var(--ease) 1.05s both; }
.hero-stage { width: min(1360px, 100%); margin: 36px auto 0; aspect-ratio: 16 / 9; animation: fade-up 1.2s var(--ease) 1.1s both; }
.hero-stage .stage { width: 100%; height: 100%; }

/* ---------------- Marquee ---------------- */
.marquee { background: var(--island); overflow: hidden; padding: 26px 0; margin: 40px 0 0; transform: rotate(-1.6deg) scale(1.03); }
.marquee .track { display: flex; gap: 46px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(34px, 5vw, 64px); font-weight: 650; letter-spacing: -0.04em; white-space: nowrap; display: flex; align-items: center; gap: 46px; }
.marquee span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Home: scroll story (the promo, scrubbed by scroll) ---------------- */
.story { position: relative; height: 820vh; margin-top: 90px; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.6fr; align-items: center; gap: 30px;
  width: min(1400px, calc(100% - 40px)); margin: 0 auto; }
.story-copy { position: relative; min-height: 260px; }
.story-cap { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .5s var(--ease), transform .7s var(--spring), filter .5s var(--ease); pointer-events: none; }
.story-cap.on { opacity: 1; transform: none; filter: none; }
.story-cap .h2 { font-size: clamp(36px, 4.6vw, 70px); }
.story-cap p { color: var(--dim); font-size: 19px; max-width: 30ch; margin-top: 18px; }
.story-stage { aspect-ratio: 16 / 10; width: 100%; }
.story-stage .stage { width: 100%; height: 100%; }
.story-bar { position: absolute; left: 0; bottom: -40px; width: 100%; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .story { height: 700vh; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 10px; }
  .story-copy { min-height: 190px; order: 2; }
  .story-cap .h2 { font-size: 36px; }
  .story-cap p { font-size: 16px; margin-top: 10px; }
}

/* ---------------- Home: sections ---------------- */
.section { padding: 130px 0; }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; }
.section-head .lede { margin: 0; }

/* Bento of black islands, each with its own little loop. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .cell { position: relative; background: var(--island); border-radius: var(--r); padding: 30px; min-height: 300px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  transition: transform .5s var(--spring), box-shadow .5s var(--ease); }
.bento .cell:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,10,11,.6); }
.bento .cell p { margin: 0; color: var(--dim); font-size: 16px; max-width: 34ch; }
.bento .c2 { grid-column: span 2; } .bento .c3 { grid-column: span 3; } .bento .c4 { grid-column: span 4; }
.bento .viz { position: absolute; inset: 30px 30px auto 30px; height: 150px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento .c2, .bento .c3, .bento .c4 { grid-column: span 2; } }

/* viz: playing bars */
.viz-np { justify-content: flex-start !important; gap: 18px; }
.viz-np .art { width: 92px; height: 92px; border-radius: 20px; background: url(img/cover.svg) center / cover; flex: none; animation: art-in 6s var(--spring) infinite; }
.viz-np .lines { display: grid; gap: 8px; flex: 1; }
.viz-np .lines b { font-size: 22px; letter-spacing: -0.02em; }
.viz-np .lines small { color: var(--faint); font-size: 16px; }
.viz-np .rail { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.viz-np .rail i { display: block; height: 100%; background: var(--ink); animation: rail 6s linear infinite; transform-origin: left; }
.eq { display: flex; align-items: center; gap: 4px; height: 36px; }
.eq i { width: 5px; border-radius: 3px; background: var(--red); animation: eq 0.54s ease-in-out infinite alternate; }
.eq i:nth-child(1) { height: 45%; } .eq i:nth-child(2) { height: 85%; animation-delay: -.27s; } .eq i:nth-child(3) { height: 60%; animation-delay: -.1s; }
.eq i:nth-child(4) { height: 100%; animation-delay: -.4s; } .eq i:nth-child(5) { height: 70%; animation-delay: -.2s; } .eq i:nth-child(6) { height: 35%; animation-delay: -.33s; }
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@keyframes rail { from { transform: scaleX(0.08); } to { transform: scaleX(0.92); } }
@keyframes art-in { 0%, 100% { transform: none; } 48% { transform: none; } 50% { transform: scale(0.94); } 56% { transform: none; } }

/* viz: lyrics */
.viz-ly { flex-direction: column; align-items: flex-start !important; justify-content: center !important; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.viz-ly .roll { animation: lyric-roll 8s var(--spring) infinite; }
.viz-ly .roll div { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; height: 40px; line-height: 40px; white-space: nowrap; color: var(--faint); animation: lyric-lit 8s infinite; }
.viz-ly .roll div:nth-child(2) { animation-delay: -6s; } .viz-ly .roll div:nth-child(3) { animation-delay: -4s; } .viz-ly .roll div:nth-child(4) { animation-delay: -2s; }
@keyframes lyric-roll { 0%, 22% { transform: translateY(40px); } 25%, 47% { transform: translateY(0); } 50%, 72% { transform: translateY(-40px); } 75%, 97% { transform: translateY(-80px); } 100% { transform: translateY(40px); } }
@keyframes lyric-lit { 0%, 22% { color: var(--ink); } 25%, 100% { color: var(--faint); } }

/* viz: the Shelf catching a file */
.viz-shelf .tray { position: relative; width: 100%; max-width: 330px; height: 110px; border-radius: 22px; border: 2px dashed var(--line); animation: tray 4s infinite; }
.viz-shelf .doc { position: absolute; left: 50%; top: 50%; width: 46px; height: 58px; margin: -29px 0 0 -23px; border-radius: 6px; background: var(--paper);
  animation: drop 4s var(--spring) infinite; }
.viz-shelf .doc::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 11px; height: 18px; border-radius: 4px; background: var(--island); }
@keyframes drop { 0% { transform: translate(160px, -120px) rotate(14deg); opacity: 0; } 12% { opacity: 1; } 42% { transform: translate(40px, -40px) rotate(8deg); }
  58%, 88% { transform: translate(-100px, 0) scale(0.92); opacity: 1; } 100% { transform: translate(-100px, 0) scale(0.92); opacity: 0; } }
@keyframes tray { 0%, 38% { border-color: var(--line); } 44%, 56% { border-color: rgba(244,242,238,.6); } 64%, 100% { border-color: var(--line); } }

/* viz: Live */
.viz-live { justify-content: flex-start !important; gap: 16px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--paper); color: var(--island); display: grid; place-items: center; font-weight: 650; font-size: 24px; position: relative; flex: none; }
.avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 4px solid var(--island); animation: live-dot 1.07s ease-in-out infinite; }
@keyframes live-dot { 50% { transform: scale(1.12); } }
.viz-live .who b { display: block; font-size: 22px; }
.viz-live .who small { color: var(--red); font-size: 16px; }
.viz-live .join { margin-left: auto; }

/* viz: volume HUD */
.viz-hud .pill { width: 100%; max-width: 360px; height: 58px; border-radius: 29px; background: rgba(244,242,238,.06); display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.viz-hud .pill span { color: var(--dim); font-size: 15px; }
.viz-hud .level { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.viz-hud .level i { display: block; height: 100%; background: var(--ink); transform-origin: left; animation: level 3.2s var(--spring) infinite; }

/* Messages, reminders, lock screen, background, Siri */
.viz-msg { justify-content: flex-start !important; gap: 16px; }
.viz-msg .app { width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #faa033, #d6297a 55%, #8233d9); animation: msg-in 5s var(--spring) infinite; }
.viz-msg .app svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; }
.viz-msg .who small { display: block; color: var(--faint); font-size: 14px; }
.viz-msg .who b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.viz-msg .who span { color: var(--dim); font-size: 16px; }
@keyframes msg-in { 0%, 8% { transform: scale(.6); opacity: 0; } 16%, 90% { transform: none; opacity: 1; } 100% { transform: scale(.6); opacity: 0; } }
.viz-rem { flex-direction: column; align-items: stretch !important; gap: 12px; }
.viz-rem div { display: flex; align-items: center; gap: 12px; font-size: 16px; white-space: nowrap; overflow: hidden; }
.viz-rem i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--red); flex: none; }
.viz-rem .done i { background: var(--red); box-shadow: inset 0 0 0 3px var(--island); animation: tick 4s infinite; }
.viz-rem .done span { color: var(--faint); text-decoration: line-through; }
@keyframes tick { 0%, 30% { background: transparent; } 40%, 100% { background: var(--red); } }
.viz-lock { flex-direction: column; gap: 14px; }
.viz-lock b { font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.viz-lock div { display: flex; gap: 8px; }
.viz-lock span { height: 34px; width: 34px; border-radius: 10px; background: rgba(244,242,238,.1); border: 1px solid rgba(244,242,238,.16); animation: rise 5s var(--spring) infinite; }
.viz-lock span:first-child { width: 78px; } .viz-lock span:nth-child(2) { animation-delay: .12s; } .viz-lock span:nth-child(3) { animation-delay: .24s; }
@keyframes rise { 0%, 6% { transform: translateY(12px); opacity: 0; } 16%, 92% { transform: none; opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.viz-bg .isl { width: 100%; max-width: 230px; height: 96px; border-radius: 0 0 30px 30px;
  background: linear-gradient(to bottom, #000 8%, rgba(0,0,0,.25) 70%), linear-gradient(120deg, #FF5468, #7a5cff 55%, #ffb36b);
  background-size: auto, 220% 100%; animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 100% 0; } }
.viz-siri { flex-direction: column; gap: 14px; }
.viz-siri .bars { display: flex; gap: 5px; align-items: center; height: 38px; }
.viz-siri .bars i { width: 4px; border-radius: 2px; background: #6bb8ff; height: 10px; animation: siri .5s ease-in-out infinite alternate; }
.viz-siri .bars i:nth-child(2), .viz-siri .bars i:nth-child(4) { animation-delay: -.2s; } .viz-siri .bars i:nth-child(3) { animation-delay: -.35s; }
.viz-siri span { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
@keyframes siri { from { height: 8px; } to { height: 34px; } }
@keyframes level { 0%, 100% { transform: scaleX(0.35); } 40%, 60% { transform: scaleX(1); } }

/* viz: Face Unlock */
.faceid { width: 110px; height: 110px; }
.faceid path, .faceid circle { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.faceid .scan { stroke-dasharray: 340; animation: scan 3.2s var(--ease) infinite; }
.faceid .ok { stroke: var(--red); stroke-dasharray: 60; stroke-dashoffset: 60; animation: ok 3.2s var(--ease) infinite; }
@keyframes scan { 0% { stroke-dashoffset: 340; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes ok { 0%, 50% { stroke-dashoffset: 60; } 65%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* viz: platforms */
.viz-plat { gap: 14px; }
.plat { width: 64px; height: 64px; border-radius: 18px; background: rgba(244,242,238,.08); display: grid; place-items: center; animation: plat 3.6s var(--spring) infinite; }
.plat:nth-child(2) { animation-delay: .25s; } .plat:nth-child(3) { animation-delay: .5s; }
.plat svg { width: 30px; height: 30px; fill: var(--ink); }
@keyframes plat { 0%, 70%, 100% { transform: none; } 10% { transform: translateY(-10px); } }

/* ---------------- Home: listen together ---------------- */
.together-band { background: var(--island); border-radius: 44px; padding: 90px 60px; position: relative; overflow: hidden; }
.together-band .h2 { max-width: 12ch; }
.devices { display: flex; align-items: flex-end; justify-content: center; gap: 70px; margin-top: 70px; position: relative; }
.dev { position: relative; border: 2.5px solid var(--dim); border-radius: 14px; }
.dev.mac { width: 280px; height: 176px; }
.dev.mac::after { content: ""; position: absolute; left: -30px; right: -30px; bottom: -16px; height: 12px; border-radius: 0 0 12px 12px; background: var(--dim); }
.dev.mac .notch { position: absolute; top: -2.5px; left: 50%; width: 76px; height: 18px; margin-left: -38px; background: var(--ink); border-radius: 0 0 10px 10px; animation: notch-grow 4.3s var(--spring) infinite; }
@keyframes notch-grow { 0%, 20%, 100% { width: 76px; height: 18px; margin-left: -38px; } 30%, 80% { width: 180px; height: 58px; margin-left: -90px; border-radius: 0 0 20px 20px; } }
.dev.pc { width: 220px; height: 140px; }
.dev.pc::after { content: ""; position: absolute; left: 50%; bottom: -34px; width: 70px; height: 32px; margin-left: -35px; border: 2.5px solid var(--dim); border-top: 0; border-radius: 0 0 8px 8px; }
.dev.phone { width: 88px; height: 176px; border-radius: 22px; }
.dev .wave { position: absolute; top: 40%; left: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: wave 2.14s var(--ease) infinite; }
.dev .wave:nth-child(2) { animation-delay: .53s; } .dev .wave:nth-child(3) { animation-delay: 1.07s; }
@keyframes wave { 0% { transform: scale(0.5); opacity: .9; } 100% { transform: scale(7); opacity: 0; } }
.beam { position: absolute; top: 45%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 20px); opacity: .7; animation: beam .6s linear infinite; }
@keyframes beam { to { background-position: 20px 0; } }
@media (max-width: 860px) { .together-band { padding: 60px 26px; border-radius: 32px; } .devices { gap: 26px; transform: scale(0.62); margin-top: 20px; } }

/* ---------------- Home: download ---------------- */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card { background: var(--island); border-radius: var(--r); padding: 34px; display: flex; flex-direction: column; gap: 14px; min-height: 360px;
  transition: transform .5s var(--spring), box-shadow .5s var(--ease); }
.dl-card:hover { transform: translateY(-8px) rotate(-0.4deg); box-shadow: 0 30px 60px -30px rgba(10,10,11,.6); }
.dl-card .ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(244,242,238,.08); }
.dl-card .ico svg { width: 34px; height: 34px; fill: var(--ink); }
.dl-card p { margin: 0; color: var(--dim); }
.dl-card .row { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.dl-card .btn.hot { --b: var(--paper); --t: #0A0A0B; }
.dl-card small { color: var(--faint); font-size: 13px; line-height: 1.5; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } .dl-card { min-height: 0; } }

/* ---------------- Footer: a black island with a giant wordmark ---------------- */
.foot { background: var(--island); margin-top: 120px; padding: 70px 0 0; border-radius: 44px 44px 0 0; overflow: hidden; position: relative; }
.foot::before { content: ""; position: absolute; top: -1px; left: 50%; width: 220px; height: 30px; margin-left: -110px; background: var(--canvas); border-radius: 0 0 22px 22px; }
.foot .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.foot nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--ink); }
.foot .social { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 4px; }
.foot .social a { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 20px;
  background: rgba(244,242,238,.07); color: var(--ink); text-decoration: none; font-size: 14.5px;
  transition: background .2s, transform .35s var(--spring); }
.foot .social a:hover { background: rgba(244,242,238,.14); transform: translateY(-2px); }
.foot .social svg { width: 17px; height: 17px; flex: none; }
.foot .social .fill { fill: currentColor; }
.foot .social .line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.foot .legal-line { color: var(--faint); font-size: 13px; }
.wordmark { font-size: clamp(90px, 25vw, 380px); line-height: 0.8; letter-spacing: -0.07em; font-weight: 700; margin: 50px 0 -0.14em; text-align: center; color: var(--ink);
  background: linear-gradient(180deg, var(--ink) 30%, rgba(244,242,238,.06)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------------- Inner pages: an island header ---------------- */
.page-hero { background: var(--island); border-radius: 0 0 48px 48px; padding: 150px 0 80px; position: relative; overflow: hidden;
  animation: hero-drop 1s var(--spring) both; }
@keyframes hero-drop { from { clip-path: inset(0 30% 70% 30% round 0 0 60px 60px); } to { clip-path: inset(0 0 0 0 round 0 0 48px 48px); } }
.page-hero .h1 { font-size: clamp(52px, 9vw, 130px); max-width: 14ch; }
.page-hero .lede { color: var(--dim); margin-top: 22px; }
.page-hero .kicker { margin-bottom: 20px; }
.page-hero .glow-dot { position: absolute; right: 8%; top: 42%; width: 22px; height: 22px; border-radius: 50%; background: var(--red); animation: live-dot 1.07s ease-in-out infinite; }
.page-body { padding: 90px 0 0; }
.col { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.back { margin-top: 70px; }
.back a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--ink); }

/* Install steps. */
.step { display: grid; grid-template-columns: 76px 1fr; gap: 26px; padding: 44px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step-no { width: 60px; height: 60px; border-radius: 50%; background: var(--island); color: var(--paper); display: grid; place-items: center; font: 600 20px var(--mono);
  transition: border-radius .6s var(--spring), width .6s var(--spring); }
.step:hover .step-no { width: 76px; border-radius: 0 0 22px 22px; }
.step h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; margin: 8px 0 14px; line-height: 1.05; }
.step p { color: var(--dim); margin: 0 0 14px; }
.step p b, .step p strong { color: var(--ink); }
.step .btn { margin: 4px 6px 8px 0; }
.tip { background: var(--island); color: var(--paper); border-radius: 20px; padding: 18px 22px; margin-top: 16px; font-size: 15.5px; }
.tip b { color: #fff; }
.step .meta { font: 500 13px var(--mono); color: var(--faint); animation: none; margin-top: 8px; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 14px; } }

/* FAQ: black islands that open. */
.qs { display: grid; gap: 12px; }
.q { background: var(--island); color: var(--paper); border-radius: 26px; overflow: hidden; transition: border-radius .5s var(--spring), transform .5s var(--spring); interpolate-size: allow-keywords; }
.q:hover { transform: translateX(6px); }
.q summary { list-style: none; cursor: pointer; padding: 26px 70px 26px 30px; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; position: relative; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: linear-gradient(var(--paper), var(--paper)) center / 12px 2px no-repeat, linear-gradient(var(--paper), var(--paper)) center / 2px 12px no-repeat, rgba(244,242,238,.1);
  transition: transform .5s var(--spring), background-color .3s; }
.q[open] summary::after { transform: rotate(135deg); background-color: var(--red); }
.q p { margin: 0; padding: 0 30px 28px; color: rgba(244,242,238,.66); font-size: 17px; }
.q p b, .q p a { color: var(--paper); }
.q::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--spring), content-visibility .5s allow-discrete; }
.q[open]::details-content { block-size: auto; }

/* Changelog: a timeline with the newest entry live. */
.rel { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; }
.rel::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.rel-item { position: relative; padding: 0 0 42px; }
.rel-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 0 0 3px var(--ink); }
.rel-item:first-child::before { background: var(--red); box-shadow: 0 0 0 6px rgba(255,84,104,.18); animation: live-dot 1.07s ease-in-out infinite; }
.rel-item > b { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; display: block; margin-bottom: 10px; }
.rel-item ul { margin: 0; padding-left: 20px; color: var(--dim); }
.rel-item li { margin: 6px 0; }
.rel-meta { font: 500 13px var(--mono); color: var(--faint); }
.rel-body { color: var(--dim); }

/* Legal and utility pages. */
.legal h2 { font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.legal p, .legal li { color: var(--dim); }
.legal .updated { font: 500 13px var(--mono); color: var(--faint); }
.utility-page { padding: 150px 0 40px; }
.utility-wrap { width: min(720px, calc(100% - 40px)); margin: 0 auto; }
.utility-wrap h1 { font-size: clamp(48px, 8vw, 96px); line-height: 0.95; letter-spacing: -0.05em; margin: 16px 0 18px; font-weight: 650; }
.utility-wrap > p { color: var(--dim); font-size: 19px; }

/* Sign in: a black island. */
.auth-shell { width: min(460px, 100%); margin-top: 34px; padding: 26px; background: var(--island); border-radius: 30px; animation: fade-up .9s var(--spring) .2s both; }
.auth-tabs { display: grid; gap: 2px; padding: 4px; background: rgba(244,242,238,.08); border-radius: 16px; margin-bottom: 22px; }
.auth-tabs button { border: 0; background: transparent; color: var(--faint); height: 38px; font: 600 13px var(--sans); cursor: pointer; border-radius: 12px; transition: background .3s var(--spring), color .2s; }
.auth-tabs button[aria-selected="true"] { background: var(--paper); color: #0A0A0B; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 7px; color: var(--dim); font-size: 13px; }
.auth-form input { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: rgba(244,242,238,.06); color: var(--paper); font: 16px var(--sans); padding: 0 16px; transition: border-color .2s, background .2s; }
.auth-form input:focus { outline: 0; border-color: var(--red); background: rgba(244,242,238,.1); }
.auth-form .btn { margin-top: 6px; --b: var(--paper); --t: #0A0A0B; }
.auth-status, .auth-note { color: var(--dim); font-size: 14px; margin: 16px 0 0; }
.auth-note a { color: var(--paper); }

/* The Together app keeps its own component styles (account.css); here it
   becomes one big black island on the canvas. */
.tg { background: var(--island); border-radius: 36px; margin-top: 110px !important; padding: 34px !important; animation: fade-up .9s var(--spring) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .words .w { opacity: 1 !important; transform: none !important; filter: none !important; }
}
