/* Purpose: "In Your Pocket" mobile-app section — dark, gold-accented two-phone showcase
   (course library + now-playing 432 Hz). Ported from the approved WL design. Palette is
   section-local (gold/ivory/night) so it stands apart from the emerald/cream theme. */

.pocket-app {
  --gold: #D6B36A;
  --gold-2: #9a7b38;
  --ivory: #F7F4EE;
  --night: #0a0f0c;
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  position: relative; overflow: hidden;
  background: #0c0b0a;
  color: var(--ivory);
}

.pocket-app .app__wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px;
}
@media (max-width: 860px) { .pocket-app .app__wrap { grid-template-columns: 1fr; gap: 64px; } }

/* ── Copy ── */
.pocket-app .eyebrow { color: var(--gold); letter-spacing: 0.28em; display: inline-flex; }
.pocket-app .app__title {
  font-family: var(--font-display); font-weight: var(--weight-regular);
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--ivory); margin: 16px 0 0; text-wrap: balance;
}
.pocket-app .app__list { list-style: none; margin: 40px 0 0; padding: 0; }
.pocket-app .app__list li {
  padding: 16px 0; border-top: 1px solid rgba(247, 244, 238, 0.12);
  color: rgba(247, 244, 238, 0.7); font-weight: 300; font-size: 16px; line-height: 1.5;
}
.pocket-app .app__list li span {
  display: inline-block; min-width: 140px;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold);
}
.pocket-app .app__badges { display: flex; gap: 1rem; margin-top: 28px; flex-wrap: wrap; }
.pocket-app .badge {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.85em 1.5em; border: 1px solid rgba(247, 244, 238, 0.28); border-radius: 100px;
  color: var(--ivory); text-decoration: none; transition: border-color 0.3s, color 0.3s;
}
.pocket-app .badge:hover { border-color: var(--gold); color: var(--gold); }

/* ── Phones ── */
.pocket-app .app__phones { position: relative; height: 560px; display: grid; place-items: center; perspective: 1400px; }
.pocket-app .phone {
  position: absolute; width: 248px; height: 510px; border-radius: 42px;
  background: linear-gradient(160deg, #26241f, #0c0b0a);
  border: 1px solid rgba(247, 244, 238, 0.12); padding: 11px;
  box-shadow: 0 50px 110px -34px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.pocket-app .phone::before {
  content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 5px; border-radius: 5px; background: rgba(0, 0, 0, 0.55); z-index: 5;
}
.pocket-app .phone--back { transform: translate(-66px, 34px) rotate(-8deg) scale(0.93); opacity: 0.86; }
.pocket-app .phone--front { transform: translate(54px, -14px) rotate(5deg); }
@media (max-width: 420px) {
  .pocket-app .phone { width: 210px; height: 440px; }
  .pocket-app .phone--back { transform: translate(-46px, 28px) rotate(-8deg) scale(0.92); }
  .pocket-app .phone--front { transform: translate(40px, -10px) rotate(5deg); }
}

.pocket-app .screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden; position: relative;
  padding: 30px 20px 22px; display: flex; flex-direction: column; color: var(--ivory);
}
.pocket-app .screen--play { background: radial-gradient(120% 90% at 50% 18%, #2b4a3a 0%, #14241c 46%, #0a0f0c 100%); }
.pocket-app .screen--lib { background: linear-gradient(180deg, #1d1b26, #0d0c12); }
.pocket-app .screen__status { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; color: rgba(247, 244, 238, 0.7); margin-bottom: 18px; }
.pocket-app .screen__dots { letter-spacing: 1px; }

/* Library screen */
.pocket-app .screen__eyebrow { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.pocket-app .screen__title { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.05; margin-bottom: 14px; color: var(--ivory); }
.pocket-app .lib__bar { height: 4px; border-radius: 4px; background: rgba(247, 244, 238, 0.14); overflow: hidden; margin-bottom: 8px; }
.pocket-app .lib__bar i { display: block; height: 100%; background: var(--gold); }
.pocket-app .lib__meta { font-size: 10px; color: rgba(247, 244, 238, 0.5); margin-bottom: 22px; }
.pocket-app .lib__list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
.pocket-app .lib__list li { display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 11px; }
.pocket-app .lib__ic { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(214, 179, 106, 0.14); color: var(--gold); font-size: 14px; }
.pocket-app .lib__list b { font-size: 12px; font-weight: 500; color: var(--ivory); }
.pocket-app .lib__list em { font-size: 9.5px; font-style: normal; color: rgba(247, 244, 238, 0.45); }

/* Now-playing screen */
.pocket-app .play__kicker { text-align: center; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 244, 238, 0.55); margin-bottom: 20px; }
.pocket-app .play__art { position: relative; width: 130px; height: 130px; margin: 6px auto 22px; display: grid; place-items: center; }
.pocket-app .play__core { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, var(--gold), var(--gold-2)); box-shadow: 0 0 30px rgba(214, 179, 106, 0.6); }
.pocket-app .play__halo { position: absolute; inset: 0; border: 1px solid rgba(214, 179, 106, 0.4); border-radius: 50%; animation: pocket-halo 3.4s var(--ease-io) infinite; }
.pocket-app .play__halo--2 { animation-delay: 1.7s; }
@keyframes pocket-halo { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
.pocket-app .play__name { text-align: center; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 3px; color: var(--ivory); }
.pocket-app .play__sub { text-align: center; font-size: 10px; color: rgba(247, 244, 238, 0.5); margin-bottom: 20px; }
.pocket-app .play__wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 34px; margin-bottom: 8px; }
.pocket-app .play__wave i { width: 3px; border-radius: 3px; background: var(--gold); height: 30%; animation: pocket-eq 1.1s var(--ease-io) infinite; }
.pocket-app .play__wave i:nth-child(odd) { background: rgba(214, 179, 106, 0.55); }
.pocket-app .play__wave i:nth-child(3n) { animation-delay: 0.15s; }
.pocket-app .play__wave i:nth-child(3n+1) { animation-delay: 0.35s; }
.pocket-app .play__wave i:nth-child(4n) { animation-delay: 0.55s; }
@keyframes pocket-eq { 0%, 100% { height: 20%; } 50% { height: 90%; } }
.pocket-app .play__time { display: flex; justify-content: space-between; font-size: 9.5px; color: rgba(247, 244, 238, 0.5); margin-bottom: 16px; }
.pocket-app .play__ctrl { display: flex; align-items: center; justify-content: center; gap: 26px; color: rgba(247, 244, 238, 0.7); font-size: 15px; }
.pocket-app .play__btn { width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ivory); color: var(--night); font-size: 15px; display: grid; place-items: center; padding-left: 3px; }

@media (prefers-reduced-motion: reduce) {
  .pocket-app .play__halo, .pocket-app .play__wave i { animation: none; }
}
