:root {
  --bg: #050708;
  --bg-2: #0b0f11;
  --card: #0e1315;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f5f5;
  --muted: #8b9698;
  --dim: #5b6567;
  --teal: #35d0cc;
  --teal-2: #1b8f8c;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --ease-spring: cubic-bezier(0.32, 1.32, 0.5, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 80vh;
  background:
    radial-gradient(40% 50% at 50% 0%, rgba(53, 208, 204, 0.18), transparent 70%),
    radial-gradient(30% 40% at 20% 10%, rgba(80, 90, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.025em; margin: 0; }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.35em;
}
kbd { margin-right: 2px; }
::selection { background: rgba(53, 208, 204, 0.35); }

/* ---------- The page's notch ---------- */

.top-notch {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 168px;
  height: 34px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 50;
  display: grid;
  place-items: center;
}
.ear {
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
}
.ear.left { left: -12px; background: radial-gradient(circle at 0 100%, transparent 11.5px, #000 12px); }
.ear.right { right: -12px; background: radial-gradient(circle at 100% 100%, transparent 11.5px, #000 12px); }
.eyes { display: flex; gap: 14px; margin-top: 2px; }
.eye {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #f4f6f6;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease;
}
.eye.blink { transform: scaleY(0.08); }
.pupil {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7ff3ee, var(--teal-2) 60%, #0d4f4d);
  box-shadow: 0 0 0 1.5px #0a2f2e inset;
  transform: translate(var(--px, 0px), var(--py, 0px));
}

/* ---------- Nav ---------- */

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 17px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; margin-right: 8px; }
.nav nav a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }
.nav-download {
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(53, 208, 204, 0.35);
  color: var(--teal);
  transition: background 0.2s;
}
.nav-download:hover { background: rgba(53, 208, 204, 0.1); }

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

.hero {
  text-align: center;
  padding: 72px 24px 40px;
  max-width: 860px;
  margin: 0 auto;
}
.hero-icon {
  border-radius: 30px;
  filter: drop-shadow(0 18px 40px rgba(53, 208, 204, 0.25));
  margin-bottom: 26px;
}
h1 {
  font-size: clamp(42px, 7.4vw, 82px);
  line-height: 1.02;
  font-weight: 750;
}
h1 span {
  background: linear-gradient(100deg, #8ff7f2 0%, var(--teal) 45%, #6e8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 24px auto 0;
}
.cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  color: #021413;
  background: linear-gradient(180deg, #6ff0ea, var(--teal));
  padding: 15px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(53, 208, 204, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.download:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 44px rgba(53, 208, 204, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.download svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.download.soon, .nav-download.soon { cursor: default; opacity: 0.55; transform: none; box-shadow: none; }
.meta { margin: 0; font-size: 13px; color: var(--dim); }

/* ---------- Demo ---------- */

.demo { padding: 40px 24px 20px; max-width: 1080px; margin: 0 auto; }
.screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  padding: 12px;
  background: linear-gradient(180deg, #2a2f31, #151819);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  /* Only the top of the Mac: it fades out at the bottom. */
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
/* The screen is laid out 1000 px wide and scaled to fit (main.js). */
.screen {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 1000px;
  height: 610px;
  transform-origin: 0 0;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 100%, #0f6f6c 0%, transparent 60%),
    radial-gradient(50% 70% at 90% 90%, #3b3fbf 0%, transparent 60%),
    radial-gradient(70% 60% at 60% 20%, #12343a 0%, transparent 70%),
    linear-gradient(160deg, #0b1d22, #070b14);
}
.menubar {
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(10, 20, 24, 0.35);
  backdrop-filter: blur(20px);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 16px; }
.mb-left i { width: 12px; height: 13px; border-radius: 3px 3px 6px 6px; background: rgba(255, 255, 255, 0.85); }
.mb-left em, .mb-right em { font-style: normal; opacity: 0.85; }
.mb-icon { width: 15px; height: 10px; border-radius: 3px; border: 1.5px solid rgba(255, 255, 255, 0.7); }
.window {
  position: absolute;
  border-radius: 12px;
  background: rgba(22, 27, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.window::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 52px;
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, #ff5f57 5.5px, transparent 6px),
    radial-gradient(circle at 26px 6px, #febc2e 5.5px, transparent 6px),
    radial-gradient(circle at 46px 6px, #28c840 5.5px, transparent 6px);
}
.w1 { left: 60px; top: 250px; width: 520px; height: 340px; }
.w2 { left: 540px; top: 290px; width: 400px; height: 300px; background: rgba(28, 33, 38, 0.8); }

/* The morphing notch */
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--w, 190px);
  height: var(--h, 32px);
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 var(--r, 12px) var(--r, 12px);
  z-index: 5;
  transition:
    width 0.55s var(--ease-spring),
    height 0.55s var(--ease-spring),
    border-radius 0.55s var(--ease-spring);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.0);
}
.notch.open { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.notch .ear { width: 10px; height: 10px; }
.notch .ear.left { left: -10px; background: radial-gradient(circle at 0 100%, transparent 9.5px, #000 10px); }
.notch .ear.right { right: -10px; background: radial-gradient(circle at 100% 100%, transparent 9.5px, #000 10px); }

.pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.96);
  transition: opacity 0.25s ease, filter 0.3s ease, transform 0.4s var(--ease-spring);
  pointer-events: none;
  color: #fff;
}
.pane.active { opacity: 1; filter: blur(0); transform: none; transition-delay: 0.16s; }

/* Player */
.player { display: flex; align-items: center; gap: 16px; padding: 44px 22px 18px; height: 100%; }
.art {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  flex: none;
  background:
    radial-gradient(circle at 70% 30%, #ffd36e 0 18%, transparent 19%),
    linear-gradient(160deg, #ff6a5c, #c2367c 55%, #3a2a8f);
  box-shadow: 0 8px 22px rgba(255, 90, 100, 0.35);
}
.track { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.track strong { font-size: 16px; font-weight: 650; }
.track > span { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }
.progress { margin-top: 12px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.progress i { display: block; height: 100%; width: 32%; background: #fff; border-radius: 4px; }
.notch[data-state="music"] .progress i { animation: progress 9s linear infinite; }
@keyframes progress { from { width: 30%; } to { width: 46%; } }
.times { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255, 255, 255, 0.4); margin-top: 5px; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; gap: 14px; }
.controls svg { width: 20px; height: 20px; fill: #fff; }
.controls svg.big { width: 30px; height: 30px; }

/* Calendar */
.event { display: flex; align-items: center; gap: 13px; padding: 40px 18px 0; }
.cal-icon {
  width: 42px; height: 42px; border-radius: 10px; background: #fff; color: #111;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none;
}
.cal-icon b { font-size: 9px; color: #ff3b30; letter-spacing: 0.05em; }
.cal-icon span { font-size: 19px; font-weight: 600; margin-top: 2px; }
.event-text { flex: 1; display: flex; flex-direction: column; }
.event-text strong { font-size: 15px; }
.event-text span { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.count { color: #ffb340; font-variant-numeric: tabular-nums; font-weight: 600; }
.join {
  display: inline-flex; align-items: center; gap: 6px;
  background: #30d158; color: #02210c; font-weight: 650; font-size: 13px;
  padding: 7px 13px; border-radius: 999px;
}
.join svg { width: 15px; height: 15px; fill: currentColor; }

/* Banner */
.banner { display: flex; align-items: center; gap: 13px; padding: 40px 20px 0; }
.app-glyph {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: linear-gradient(160deg, #e3875f, #c15f3c);
  display: grid; place-items: center;
}
.app-glyph svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.banner-text { display: flex; flex-direction: column; min-width: 0; }
.banner-text strong { font-size: 14.5px; }
.banner-text span { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }

/* Mixer */
.mixer { padding: 40px 20px 0; }
.mixer hr { border: 0; height: 1px; background: rgba(255, 255, 255, 0.1); margin: 5px 0; }
.mix-row { display: flex; align-items: center; gap: 11px; height: 33px; }
.mix-row b { font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, 0.85); width: 82px; }
.mix-row em { font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.mix-glyph { width: 22px; display: grid; place-items: center; }
.mix-glyph svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.a1 { background: linear-gradient(160deg, #ff6a7d, #e8304f); }
.a2 { background: linear-gradient(160deg, #ffb35c, #ff6f3c); }
.a3 { background: linear-gradient(160deg, #6fd27a, #2a9d4c); }
.slider { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.slider i { display: block; height: 100%; border-radius: 5px; background: var(--teal); transition: width 0.6s var(--ease-spring); }

/* Compact states */
.compact { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.compact svg { width: 17px; height: 17px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mic { stroke: #ff524c; }
.mute { color: #ff524c; font-size: 13px; font-weight: 650; }
.timer-ico { stroke: #ffb340; }
.timer { font-size: 13.5px; font-weight: 600; color: #ffb340; font-variant-numeric: tabular-nums; }
.buds { stroke: #fff; }
.batt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #30d158; }
.batt i { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid rgba(48, 209, 88, 0.7); position: relative; }
.batt i::after { content: ""; position: absolute; inset: 1.5px; right: 22%; background: #30d158; border-radius: 1px; }

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 0;
}
.tabs button {
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-color: rgba(53, 208, 204, 0.45); background: rgba(53, 208, 204, 0.08); }
.tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; height: 2px;
  background: var(--teal);
  animation: tab-progress var(--cycle, 4s) linear forwards;
}
.tabs.paused button::after { animation-play-state: paused; }
@keyframes tab-progress { from { width: 0; } to { width: 100%; } }

/* ---------- Sections ---------- */

section h2 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.08; font-weight: 720; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 16px 0 0; }

.features { max-width: 1120px; margin: 0 auto; padding: 130px 24px 40px; }
.features > h2, .features > .section-lead { text-align: center; margin-left: auto; margin-right: auto; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.3s, transform 0.4s var(--ease-spring);
}
.card:hover { border-color: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }
.card.wide { grid-column: span 2; }
.card.full { grid-column: 1 / -1; }
.card h3 { font-size: 19px; margin-top: 18px; }
.card p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  display: grid; place-items: center;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.also { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; color: var(--dim); font-size: 14px; }
.also em { font-style: normal; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

.native { max-width: 1120px; margin: 0 auto; padding: 110px 24px; }
.native-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 56px;
  background: radial-gradient(80% 120% at 0% 0%, rgba(53, 208, 204, 0.1), transparent 60%), var(--bg-2);
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.facts b { display: block; font-size: 17px; color: var(--teal); }
.facts span { color: var(--muted); font-size: 14.5px; }

.install { max-width: 1120px; margin: 0 auto; padding: 20px 24px 110px; text-align: center; }
.steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: rgba(255, 255, 255, 0.02); }
.steps .n {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  color: #021413; background: var(--teal);
}
.steps h3 { font-size: 18px; margin-top: 16px; }
.steps p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.steps b { color: var(--text); font-weight: 600; }
.cta.center { margin-top: 50px; }

.faq { max-width: 760px; margin: 0 auto; padding: 20px 24px 110px; }
.faq h2 { text-align: center; margin-bottom: 36px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 30px 16px 0;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 400;
  font-size: 22px;
  transition: transform 0.3s var(--ease-spring);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 36px 24px 48px;
  color: var(--dim);
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}
footer img { border-radius: 6px; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .nav nav { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
  .card.full { grid-column: auto; }
  .native-grid { grid-template-columns: 1fr; padding: 36px 28px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { padding: 10px 16px; }
  .brand span { display: none; }
  .hero { padding: 56px 16px 24px; }
  .hero-icon { width: 104px; height: 104px; border-radius: 24px; }
  .demo { padding: 24px 16px 10px; }
  .screen-wrap { padding: 6px; border-radius: 14px 14px 0 0; aspect-ratio: 4 / 3; }
  .screen { top: 6px; left: 6px; border-radius: 9px 9px 0 0; }
  .tabs { gap: 6px; }
  .tabs button { font-size: 12.5px; padding: 7px 12px; }
  .grid { grid-template-columns: 1fr; }
  .card.wide, .card.full { grid-column: auto; }
  .features { padding: 90px 16px 30px; }
  .native { padding: 80px 16px; }
  .facts { grid-template-columns: 1fr; }
  .install, .faq { padding-left: 16px; padding-right: 16px; }
  footer { flex-wrap: wrap; }
  .top-notch { width: 132px; height: 30px; }
  .eye { width: 14px; height: 14px; }
  .pupil { width: 7px; height: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Lock screen demo ---------- */

.lockscreen { max-width: 1120px; margin: 0 auto; padding: 110px 24px 20px; text-align: center; }
.lockscreen .section-lead { margin-left: auto; margin-right: auto; max-width: 640px; }
.lock-wrap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1000 / 660;
  margin: 50px auto 0;
  border-radius: 26px;
  padding: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #2a2f31, #151819);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
/* Laid out at 1000 × 660 and scaled to fit (main.js). */
.lock {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 1000px;
  height: 660px;
  transform-origin: 0 0;
  border-radius: 15px;
  overflow: hidden;
  color: #fff;
  font-family: var(--font);
  text-align: center;
  isolation: isolate;
}
.wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: filter 0.7s ease, transform 0.7s ease;
}
.dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background 0.7s ease; }
.lock.blurred .wall { filter: blur(26px) saturate(1.2); transform: scale(1.12); }
.lock.blurred .dim { background: rgba(0, 0, 0, 0.18); }

.clock {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.55s var(--ease-spring);
  transform-origin: 50% 0;
}
.clock .date { font-size: 19px; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.clock .time {
  font-family: ui-rounded, "SF Pro Rounded", var(--font);
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lock[data-mode="lyrics"] .clock { transform: scale(0.62); }

.glass {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}

.widgets {
  position: absolute;
  left: 50%;
  bottom: 172px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  transition: opacity 0.35s, transform 0.45s var(--ease-spring);
}
.pill b { font-weight: 650; }
.pill span { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.pill svg { width: 16px; height: 16px; fill: none; stroke: #ffd36e; stroke-width: 2.2; stroke-linecap: round; }
.lock[data-mode="cover"] .pill,
.lock[data-mode="lyrics"] .pill { opacity: 0; transform: scale(0.9); }

.card-lock {
  width: 320px;
  padding: 18px;
  border-radius: 28px;
  text-align: left;
  transition: width 0.55s var(--ease-spring);
}
.np { display: flex; align-items: center; gap: 13px; transition: gap 0.5s; }
.lock-art {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  flex: none;
  background:
    radial-gradient(circle at 70% 30%, #ffd36e 0 18%, transparent 19%),
    linear-gradient(160deg, #ff6a5c, #c2367c 55%, #3a2a8f);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: width 0.55s var(--ease-spring), height 0.55s var(--ease-spring), border-radius 0.55s;
}
.np-text { display: flex; flex-direction: column; min-width: 0; }
.np-text strong { font-size: 14.5px; }
.np-text span { font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }
.lock[data-mode="cover"] .np { flex-direction: column; gap: 12px; }
.lock[data-mode="cover"] .lock-art { width: 120px; height: 120px; border-radius: 16px; }
.lock[data-mode="cover"] .np-text { align-items: center; }

.lp { margin-top: 15px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.lp i { display: block; height: 100%; width: 32%; background: #fff; border-radius: 5px; }
.lt { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.lc { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.lc .mid { display: flex; align-items: center; gap: 26px; }
.lc svg { width: 19px; height: 19px; fill: #fff; }
.lc svg.big { width: 28px; height: 28px; }
.lc svg.small { width: 16px; height: 16px; fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; padding: 0; border-radius: 6px; transition: stroke 0.3s; }
.lock[data-mode="lyrics"] .on-lyrics, .lock[data-mode="cover"] .on-cover { stroke: var(--teal); }
.lv { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.lv svg { width: 13px; height: 13px; fill: rgba(255, 255, 255, 0.75); stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.6; stroke-linecap: round; }
.lvb { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.lvb i { display: block; height: 100%; width: 64%; background: #fff; border-radius: 5px; }

.lyrics {
  position: absolute;
  top: 124px;
  left: 50%;
  width: 640px;
  height: 150px;
  transform: translateX(-50%);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.lock[data-mode="lyrics"] .lyrics { opacity: 1; transition-delay: 0.15s; }
.lyrics-lines { transition: transform 0.6s var(--ease-spring); }
.lyrics p {
  margin: 0;
  height: 48px;
  line-height: 48px;
  font-size: 27px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.4s, transform 0.4s;
}
.lyrics p.now { color: #fff; transform: scale(1.04); }

.login {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #b9c2c6, #7d878c);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.avatar svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.who { font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); }
.password {
  width: 170px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
/* "They stay sharp": a soft ring for a moment in the blur mode. */
.lock.blurred[data-mode="blur"] .avatar,
.lock.blurred[data-mode="blur"] .password { animation: sharp 2.4s ease 0.6s 1; }
@keyframes sharp {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 208, 204, 0); }
  35% { box-shadow: 0 0 0 4px rgba(53, 208, 204, 0.75); }
}

.lock-tabs { margin-top: 26px; }
.lock-caption { color: var(--muted); font-size: 15px; min-height: 24px; margin: 16px auto 0; max-width: 560px; transition: opacity 0.25s; }
.lock-also { margin-top: 22px; }

@media (max-width: 600px) {
  .lockscreen { padding: 80px 16px 10px; }
  .lock-wrap { padding: 6px; border-radius: 16px; aspect-ratio: auto; }
  .lock { top: 6px; left: 6px; border-radius: 11px; }
}
