/* Sweet Lyrics landing page.
   The page is laid out like the app's lyrics sheet: big bold left-aligned lines that light up word
   by word (app.js runs the same springs and curves as the app), over a backdrop made from the cover
   of whatever is playing on the phone next to them. */

:root {
  --black: #000;
  --white: #fff;
  --text: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.58);
  --hair: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.2);
  --pink: #ff749d;
  --peach: #ffa77b;

  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
    "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale: body 17, then a 1.25 step up to the sung lines. */
  --fs-small: 0.8125rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  --fs-h3: 1.3125rem;
  --fs-sing: clamp(2.25rem, 1.1rem + 3.9vw, 4.25rem);
  --fs-hero: clamp(2.5rem, 1rem + 6.6vw, 6.25rem);

  /* `.line { transition: opacity 0.2s cubic-bezier(0.61, 1, 0.88, 1) }` from Spicy Lyrics. */
  --ease-line: cubic-bezier(0.61, 1, 0.88, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --page: min(1200px, 100% - 2 * var(--gutter));
  --gutter: clamp(20px, 5vw, 56px);
  --bar-h: 56px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  background: var(--black);
}

body {
  margin: 0;
  color: var(--text);
  font: 400 var(--fs-body) / 1.5 var(--font);
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 700; }
code { font-family: var(--mono); font-size: 0.88em; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--white); color: var(--black); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Backdrop: the cover, blurred, as in the app ---------- */

.backdrop {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; background: var(--black);
  pointer-events: none;
}
.backdrop-layer {
  position: absolute; inset: -30%;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  animation: flow 90s ease-in-out infinite alternate;
}
.backdrop-layer.on { opacity: 1; }
.backdrop-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.55)),
    rgba(0, 0, 0, 0.18);
}
@keyframes flow {
  from { transform: scale(1.05) rotate(0deg); }
  to { transform: scale(1.25) rotate(14deg); }
}

/* ---------- Bar ---------- */

.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex; align-items: center; gap: 24px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.bar.is-scrolled {
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--hair);
}
.bar-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 600; text-decoration: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.bar-brand img { border-radius: 22%; }
.bar.show-brand .bar-brand { opacity: 1; transform: none; }
.bar-nav { display: flex; gap: 28px; margin-left: auto; }
.bar-nav a,
.lang {
  color: var(--muted); font-size: 0.9375rem; text-decoration: none;
  transition: color 0.2s ease;
}
.bar-nav a:hover,
.lang:hover { color: var(--white); }
.bar-tools { display: flex; align-items: center; gap: 18px; }
.lang {
  font: inherit; font-size: 0.9375rem;
  padding: 6px 2px; border: 0; background: none; cursor: pointer;
}
.bar-gh { display: flex; color: var(--muted); transition: color 0.2s ease; }
.bar-gh:hover { color: var(--white); }
.bar-cta {
  display: none;
  padding: 7px 14px; border-radius: 999px;
  background: var(--white); color: var(--black);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--white);
  font: 600 var(--fs-body) / 1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.btn:hover { background: var(--glass-hover); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: rgba(255, 255, 255, 0.86); }
.btn-icon { width: 48px; padding: 0; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 0.9375rem; }

/* ---------- Sung lines ---------- */

.sing { color: var(--white); font-weight: 700; letter-spacing: -0.024em; line-height: 1.08; }
.sing .line { display: block; }
/* Keep the hero lyric hidden until app.js has split it, so it doesn't flash lit, then unlit. */
.js .hero-lyric:not(.is-ready) { opacity: 0; animation: reveal 0s 1.5s forwards; }
@keyframes reveal { to { opacity: 1; } }
.sing .w,
.sing .l {
  display: inline-block;
  /* Unlit until app.js lights it; without JS the text stays readable. */
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(90deg,
    rgba(255, 255, 255, var(--lit, 1)) calc(var(--g, 1) * 100%),
    rgba(255, 255, 255, var(--unlit, 0.4)) calc((var(--g, 1) + 0.2) * 100%));
  transform: translateY(calc(var(--y, 0) * 1em)) scale(var(--s, 1));
  transform-origin: 50% 70%;
  padding: 0.06em 0.02em 0.1em;
  margin: -0.06em -0.02em -0.1em;
}
.sing .w.em { background-image: none; }

/* ---------- Hero ---------- */

.hero {
  width: var(--page); margin-inline: auto;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--bar-h) + 6vh) 0 8vh;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center; gap: 48px;
}
.now { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 5vh, 56px); }
.now img { border-radius: 22%; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.now h1 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.now p { color: var(--muted); font-size: 1.0625rem; }

.hero-lyric { font-size: var(--fs-hero); line-height: 1.04; }

.track {
  display: flex; align-items: flex-start; gap: 16px;
  margin-top: clamp(24px, 4vh, 40px); max-width: 576px;
}
.track-main { flex: 1; }
.track-replay { width: 40px; min-height: 40px; margin-top: -17px; flex: none; }
.track-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.track-bar i {
  display: block; height: 100%; width: 100%;
  background: rgba(255, 255, 255, 0.85); border-radius: inherit;
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.track-time {
  display: flex; justify-content: space-between; margin-top: 6px;
  color: var(--muted); font-size: 0.75rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lede { margin-top: 28px; max-width: 34em; font-size: var(--fs-lede); line-height: 1.45; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }

.hero-device { display: flex; justify-content: center; }
.hero-device .phone { --w: min(310px, 33vh); }

/* ---------- Devices ---------- */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.165);
  background: #050505;
  box-shadow:
    0 0 0 1.5px #48484d,
    0 0 0 3px #1d1d1f,
    0 50px 100px -30px rgba(0, 0, 0, 0.75);
}
.screen {
  position: relative; display: block; width: 100%;
  aspect-ratio: 828 / 1800;
  padding: 0; border: 0; overflow: hidden;
  border-radius: calc(var(--w) * 0.132);
  background: #000;
  cursor: pointer;
  /* Safari clips video corners only with an isolated layer. */
  isolation: isolate; transform: translateZ(0);
}
.screen > img,
.screen > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 0.45s ease;
}
.screen > .on { opacity: 1; }
.screen > :not(.on) { pointer-events: none; }
.screen.is-live { cursor: default; }

/* ---------- Live iOS: real simulator screens, a draggable lyrics window ---------- */

.screen > .ios {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.45s ease;
  overflow: hidden; background: #000;
  container-type: size;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.screen > .ios.on { opacity: 1; }
.ios img { -webkit-user-drag: none; }
.ios-home {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform-origin: 50% 45%;
}
.ios-hit { position: absolute; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ios-hit:active { background: rgba(0, 0, 0, 0.28); }

.ios-app {
  position: absolute; left: 0; top: 0; z-index: 2;
  overflow: hidden; background: #000;
  box-shadow: 0 2cqw 8cqw rgba(0, 0, 0, 0.45);
  will-change: transform, width, height;
}
.ios-app[hidden] { display: none; }
.ios-app-shot { position: absolute; inset: 0; }
.ios-app-shot > img,
.ios-app-shot > video {
  position: absolute; left: 0; top: 50%; width: 100%; height: auto;
  aspect-ratio: 402 / 874; object-fit: cover;
  transform: translateY(-50%);
}
.ios-app-icon { position: absolute; inset: 0; background-repeat: no-repeat; pointer-events: none; }

.ios-island {
  position: absolute; left: 50%; top: 1.26cqh; z-index: 6;
  width: 31.3cqw; height: 4.23cqh; transform: translateX(-50%);
  border-radius: 999px; background: #000;
  pointer-events: none;
}
.ios-bar {
  position: absolute; left: 50%; bottom: 0; z-index: 3;
  width: 40cqw; height: 4cqh; transform: translateX(-50%);
  display: none; cursor: pointer;
}
.ios-bar::after {
  content: ""; position: absolute; left: 7%; right: 7%; bottom: 0.95cqh;
  height: 0.6cqh; border-radius: 99px; background: rgba(255, 255, 255, 0.92);
}
.ios.app-open .ios-bar { display: block; }
.ios.app-light .ios-bar::after { background: rgba(0, 0, 0, 0.85); }

.ios-pip {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 78%;
  touch-action: none; cursor: grab;
  will-change: transform;
}
.ios-pip.is-dragging { cursor: grabbing; }
.pip-body {
  position: relative; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: 4.6cqw;
  container-type: inline-size;
  box-shadow: 0 1.5cqw 6cqw rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}
.ios-pip.is-dragging .pip-body { transform: scale(1.03); }
.ios-pip.is-closed .pip-body,
.ios-pip.is-away .pip-body { transform: scale(0.5); opacity: 0; pointer-events: none; }
.ios-pip.is-away .pip-body { transition: none; }

.pip-art {
  /* The song's cover is the app icon: its colours, blurred and slowly turning, like the app. */
  /* A square wider than the window's diagonal, so it covers the corners at any angle. */
  position: absolute; left: -10%; top: 50%; width: 120%; aspect-ratio: 1; margin-top: -60%;
  background:
    radial-gradient(circle at 25% 30%, #ff749d 0, transparent 45%),
    radial-gradient(circle at 75% 65%, #ffa77b 0, transparent 50%),
    radial-gradient(circle at 40% 85%, #da82be 0, transparent 45%),
    #f0899a;
  animation: pip-flow 24s linear infinite;
}
.pip-art::after { content: ""; position: absolute; inset: 0; background: rgba(40, 10, 30, 0.34); }
@keyframes pip-flow { to { transform: rotate(360deg); } }

.pip-view {
  position: absolute; inset: 0 0 13cqw;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 72%, transparent);
}
.pip-lines {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 0 6cqw;
  font-size: 6.3cqw; line-height: 1.2; letter-spacing: -0.012em;
  will-change: transform;
}
.pip-lines .line {
  margin-bottom: 0.16em;
  filter: blur(calc(var(--d, 0) * 0.04em));
  transition: opacity 0.2s var(--ease-line), filter 0.3s ease;
}
.pip-lines .line.is-sung { opacity: 0.45; }
.pip-title {
  position: absolute; left: 6cqw; bottom: 4cqw;
  font-size: 3.4cqw; font-weight: 600; color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.pip-controls {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.ios-pip.show-controls .pip-controls { opacity: 1; pointer-events: auto; }
.pip-controls button {
  position: absolute; display: grid; place-items: center;
  width: 14cqw; height: 14cqw; padding: 0;
  border: 0; background: none; color: #fff; cursor: pointer;
}
.pip-controls svg { width: 62%; height: 62%; }
.pip-controls b { position: absolute; font-size: 3cqw; font-weight: 700; top: 52%; transform: translateY(-50%); }
[data-act="expand"] { left: 2.5cqw; top: 2.5cqw; }
[data-act="close"] { right: 2.5cqw; top: 2.5cqw; }
[data-act="back"] { left: calc(50% - 32cqw); top: calc(50% - 7cqw); }
[data-act="fwd"] { left: calc(50% + 18cqw); top: calc(50% - 7cqw); }
[data-act="play"] { left: calc(50% - 10cqw); top: calc(50% - 10cqw); width: 20cqw; height: 20cqw; }

.pip-tab {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 3cqw;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.pip-tab svg { width: 7cqw; height: 7cqw; }
.ios-pip.is-stashed .pip-tab { opacity: 1; }
.ios-pip.stash-right .pip-tab { justify-content: flex-start; padding: 0 0 0 3cqw; }
.ios-pip.stash-right .pip-tab svg { transform: scaleX(-1); }

.verse > .verse-try { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; display: none; }
.js .verse > .verse-try { display: block; }
.screen:focus-visible { outline-offset: 6px; border-radius: calc(var(--w) * 0.132); }
.screen::after {
  /* Pause mark, shown only while the user has paused this screen. */
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E") center / 26px no-repeat;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}
.screen.is-paused::after { opacity: 1; transform: none; }

.phone-land { --w: 520px; padding: calc(var(--w) * 0.016); border-radius: calc(var(--w) * 0.076); }
.phone-land .screen { aspect-ratio: 1800 / 828; border-radius: calc(var(--w) * 0.061); }

.ipad {
  --w: 300px;
  width: var(--w);
  padding: calc(var(--w) * 0.045);
  border-radius: calc(var(--w) * 0.075);
  background: #050505;
  box-shadow: 0 0 0 1.5px #48484d, 0 0 0 3px #1d1d1f, 0 50px 100px -30px rgba(0, 0, 0, 0.75);
}
.ipad .screen { aspect-ratio: 1100 / 1582; border-radius: calc(var(--w) * 0.035); }

.tv {
  position: relative;
  padding: 0.9%;
  border-radius: 14px;
  background: #0a0a0a;
  box-shadow: 0 0 0 1.5px #2c2c2e, 0 60px 120px -40px rgba(0, 0, 0, 0.8);
}
.tv::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 18%; height: 18px; transform: translateX(-50%);
  background: linear-gradient(#1c1c1e, #0c0c0d);
  border-radius: 0 0 10px 10px;
}
.tv .screen { aspect-ratio: 1176 / 662; border-radius: 6px; --w: 0px; }

/* ---------- Tour: verses next to a sticky phone ---------- */

.tour {
  width: var(--page); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 48px;
}
.verses { grid-column: 1; grid-row: 1; }
.verse {
  min-height: 82vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 10vh 0;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease-line);
}
.verse.is-active { opacity: 1; }
.verse h2 { font-size: var(--fs-sing); max-width: 11em; }
.verse > p { margin-top: 24px; max-width: 30em; font-size: var(--fs-lede); line-height: 1.45; }
.verse .duet { max-width: none; }
.duet .opp { text-align: right; }
.verse .phone { display: none; }

.stage {
  grid-column: 2; grid-row: 1; align-self: start;
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--bar-h);
}
.stage .phone { --w: min(330px, 36vh); }

/* ---------- Bigger screens ---------- */

.screens { width: var(--page); margin: 0 auto; padding: 16vh 0 10vh; }
.screens h2 { font-size: var(--fs-sing); max-width: 12em; margin-bottom: 64px; }
.screens figure { margin: 0; }
.screens figcaption { margin-top: 28px; max-width: 30em; color: var(--muted); }
.screens figcaption b { color: var(--white); font-weight: 600; }
.tv-fig { max-width: 980px; }
.tv-fig figcaption { margin-top: 44px; }
.screens-pair {
  display: grid; grid-template-columns: auto 1fr; align-items: end;
  gap: 64px; margin-top: 96px;
}
.ipad-fig .ipad { --w: min(330px, 32vw); }
.land-fig { justify-self: end; }
.land-fig .phone-land { --w: min(560px, 48vw); }

/* ---------- Sources and small things ---------- */

.sources { width: var(--page); margin: 0 auto; padding: 14vh 0 6vh; }
.sources h2 { font-size: var(--fs-sing); }
.sources-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px;
  margin-top: 48px; max-width: 960px;
}
.sources-cols h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.small-head { font-size: var(--fs-h3); margin-top: 96px; }
.small-list {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px;
  max-width: 1100px;
}
.small-list li { padding: 16px 0; border-top: 1px solid var(--hair); }

/* ---------- Install ---------- */

.install {
  width: var(--page); margin: 0 auto; padding: 16vh 0 8vh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 80px;
}
.install-head h2 { font-size: var(--fs-sing); margin-bottom: 24px; }
.install-head > p { max-width: 28em; font-size: var(--fs-lede); line-height: 1.45; }
.install-head .fine { font-size: 0.9375rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 28px 0 28px 64px;
  border-top: 1px solid var(--hair);
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white); font-weight: 600;
}
.steps h3 { font-size: var(--fs-h3); margin-bottom: 8px; line-height: 1.3; }
.steps .links { display: flex; gap: 20px; margin-top: 10px; }
.steps a:not(.btn) { color: var(--white); text-underline-offset: 3px; }

.copy {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 10px 10px 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.copy code {
  flex: 1; min-width: 0;
  color: var(--white); font-size: 0.8125rem; line-height: 1.4;
  overflow-wrap: anywhere;
}
.copy .btn { flex: none; }
.copy .btn.is-done { background: var(--white); color: var(--black); }
.deep { display: none; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
@media (hover: none) and (pointer: coarse) {
  .deep { display: flex; }
}

.testing { margin-top: 18px; }
.testing summary { color: var(--white); cursor: pointer; font-weight: 600; width: fit-content; }
.testing > p { margin-top: 10px; }
.install-note { grid-column: 2; color: var(--muted); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */

.faq { width: var(--page); margin: 0 auto; padding: 12vh 0 12vh; }
.faq h2 { font-size: var(--fs-sing); margin-bottom: 40px; }
.faq-list { max-width: 820px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  color: var(--white); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  opacity: 0.7;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 26px; max-width: 42em; }
.faq details > div p + p,
.faq details > div ol + p { margin-top: 12px; }
.faq ol { margin: 12px 0 0; padding-left: 1.3em; }
.faq ol li + li { margin-top: 6px; }
.faq a, .foot a { color: var(--white); text-underline-offset: 3px; }
.faq b { color: var(--white); font-weight: 600; }
.faq code { color: var(--white); }

/* ---------- Footer ---------- */

.foot {
  width: var(--page); margin: 0 auto;
  padding: 40px 0 calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  display: grid; grid-template-columns: 1fr auto; gap: 24px 40px;
  color: var(--muted); font-size: 0.9375rem;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 22%; flex: none; }
.foot-links { display: flex; gap: 24px; align-items: center; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--white); }
.foot-legal { grid-column: 1 / -1; font-size: var(--fs-small); }

/* ---------- Narrow screens ---------- */

@media (max-width: 1000px) {
  .bar-nav { display: none; }
  .bar-tools { margin-left: auto; }
  .bar-cta { display: inline-block; }
  .install { grid-template-columns: 1fr; }
  .install-note { grid-column: 1; }
  .small-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: calc(var(--bar-h) + 40px);
    gap: 56px;
  }
  .hero-device .phone { --w: min(68vw, 290px); }

  .tour { display: block; }
  .stage { display: none; }
  .verse { min-height: 0; padding: 72px 0; opacity: 1; }
  .verse .phone { display: block; --w: min(68vw, 290px); margin: 40px auto 0; }

  .screens { padding-top: 12vh; }
  .screens h2 { margin-bottom: 40px; }
  .screens-pair { grid-template-columns: 1fr; gap: 56px; margin-top: 64px; }
  .ipad-fig .ipad { --w: min(72vw, 330px); }
  .land-fig { justify-self: stretch; }
  .land-fig .phone-land { --w: 100%; }
  .phone-land { padding: 1.6%; border-radius: 26px; }
  .phone-land .screen { border-radius: 20px; }

  .sources-cols { grid-template-columns: 1fr; }
  .small-head { margin-top: 64px; }
  .small-list { grid-template-columns: 1fr; }

  .foot { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .bar-gh { display: none; }
  .actions .btn:not(.btn-icon) { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .backdrop-layer { animation: none; transform: scale(1.1); }
  .verse { transition: none; }
}
