/* Spots — click-through prototype */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/figtree.woff2") format("woff2");
}

:root {
  --bg: #121212;
  --bg-2: #181818;
  --bg-3: #282828;
  --bg-4: #333333;
  --green: #1ED760;
  --green-press: #1aba54;
  --text: #ffffff;
  --text-2: #b3b3b3;
  --line: #3e3e3e;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: #050505;
  color: var(--text);
  font-family: "Figtree", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, [role="button"]:focus-visible, input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
svg { display: block; flex-shrink: 0; }
img { display: block; }

/* ---------- Stage + device ---------- */

.stage {
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1a1a1a 0%, #050505 70%);
}

.phone-scale { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.phone {
  width: 417px;          /* 393 screen + 12px bezel each side */
  height: 876px;         /* 852 screen + 12px bezel */
  padding: 12px;
  border-radius: 68px;
  background: #0b0b0b;
  box-shadow:
    0 0 0 2px #3a3a3c,
    0 0 0 4px #1c1c1e,
    0 40px 80px rgba(0, 0, 0, .6);
  position: relative;
}

.screen-area {
  width: 393px;
  height: 852px;
  border-radius: 56px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  isolation: isolate;
}

.status-bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 54px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px 0 46px;
  pointer-events: none;
}
.status-time { font-weight: 600; font-size: 17px; letter-spacing: -.2px; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 126px;
  height: 37px;
  margin-left: -63px;
  border-radius: 20px;
  background: #000;
}

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: #fff;
  z-index: 50;
  pointer-events: none;
}

/* ---------- Screens ---------- */

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding-top: 54px;
  background: var(--bg);
  overflow: hidden;
}
.screen.active, .screen.animating { display: flex; }

/* Shared top bar */
.bar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  flex-shrink: 0;
}
.bar-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.1px;
}
.icon-btn, .icon-btn-spacer {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.icon-btn:active { background: rgba(255, 255, 255, .08); }
.icon-btn.subtle { color: var(--text-2); }

.step-count {
  min-width: 44px;
  padding-right: 12px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.step-count.centre { padding: 0; text-align: center; font-size: 15px; color: var(--text); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 var(--pad);
  flex-shrink: 0;
}
.steps i {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-4);
}
.steps i.on { background: var(--green); }

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

.btn {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1px;
  transition: transform .15s var(--ease), background-color .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #000; }
.btn-primary:active { background: var(--green-press); }
.btn-secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #7c7c7c; }
.btn-ghost { background: transparent; color: var(--text); font-weight: 600; font-size: 15px; min-height: 48px; }
.btn-text { background: transparent; color: var(--text-2); font-weight: 600; padding: 0 18px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }

/* ---------- HOME ---------- */

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--pad) 4px;
}
.home-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, #3a3a3a, #202020);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 2px 14px 6px;
}
.tab {
  height: 44px;            /* tap target */
  padding: 0 2px;
  display: grid;
  place-items: center;
}
.tab span {
  display: block;
  height: 34px;
  line-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tab.is-on span { background: var(--green); color: #000; }

.map-card {
  position: relative;
  flex: 1;
  margin: 2px 12px 8px;
  border-radius: 20px;
  overflow: hidden;
  background: #0e1519;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.map-card { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-card.dragging { cursor: grabbing; }
.map-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 900px;
  height: 1200px;
  will-change: transform;
}
.map-svg.glide { transition: transform .45s var(--ease); }

.drop-fab {
  position: absolute;
  right: 14px;
  bottom: 14px;
  height: 48px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--green);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .15s var(--ease);
}
.drop-fab:active { transform: scale(.96); }

/* new pin highlight */
.new-pin { display: none; }
.new-pin.show { display: inline; }
.new-pin-label { display: none; }
.new-pin.highlight .new-pin-label { display: inline; }
.new-pin .pulse { opacity: 0; }
.new-pin.highlight .pulse { animation: pulse 2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.new-pin.highlight .p2 { animation-delay: 1s; }
.new-pin.highlight .new-pin-body { animation: drop-in .5s var(--ease) both; }
@keyframes pulse {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(3.4); opacity: 0; }
}
@keyframes drop-in {
  0% { transform: translateY(-18px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* mini player */
.mini {
  position: relative;
  margin: 0 8px 6px;
  height: 58px;
  border-radius: 10px;
  background: #4a2433;
  display: flex;
  align-items: center;
  padding: 0 4px 0 8px;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.mini-art { width: 42px; height: 42px; border-radius: 5px; object-fit: cover; }
.mini-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mini-title { font-size: 14px; font-weight: 700; }
.mini-artist { font-size: 13px; color: #d9c7cd; }
.mini-device { color: var(--green); width: 32px; display: grid; place-items: center; }
.mini-play { width: 44px; height: 44px; display: grid; place-items: center; }
.mini-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, .25);
  border-radius: 1px;
}
.mini-progress span { display: block; height: 100%; width: 35%; background: #fff; border-radius: 1px; }

/* bottom nav */
.bottom-nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 8px 30px;
  background: linear-gradient(to bottom, rgba(18, 18, 18, .9), #000 60%);
}
.nav-item {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}
.nav-item.is-on { color: var(--text); }

/* ---------- NOW PLAYING ---------- */

#now { background: linear-gradient(to bottom, #5b2638 0%, #2a1820 42%, var(--bg) 78%); }
.np-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 24px 40px;
}
.np-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.np-meta { margin-top: 30px; }
.np-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.np-artist { font-size: 16px; color: var(--text-2); margin-top: 2px; }

.np-progress { margin-top: 20px; }
.track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
}
.track span { position: absolute; inset: 0 auto 0 0; width: 35%; background: #fff; border-radius: 2px; }
.track i {
  position: absolute;
  top: 50%;
  left: 35%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
}
.times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.ctl {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--text);
}
.controls .ctl:first-child, .controls .ctl:last-child { color: var(--text-2); }
.ctl-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  transition: transform .15s var(--ease);
}
.ctl-play:active { transform: scale(.95); }

.np-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.btn-drop { flex: 1; min-height: 54px; font-size: 17px; }

/* ---------- FLOW (1–3) ---------- */

.flow-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px var(--pad) 12px;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}
.flow-body::-webkit-scrollbar { display: none; }

.flow-foot {
  flex-shrink: 0;
  padding: 10px var(--pad) 42px;
}
.flow-foot.split { display: flex; gap: 8px; align-items: center; }
.flow-foot.stack { display: flex; flex-direction: column; gap: 4px; padding-bottom: 34px; }

/* step 1 */
.song-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  background: var(--bg-2);
}
.song-art { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.song-text { flex: 1; display: flex; flex-direction: column; }
.song-title { font-size: 16px; font-weight: 700; }
.song-artist { font-size: 14px; color: var(--text-2); }
.eq { color: var(--green); }
.playing .eq rect { animation: eq 0.9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom; }
.playing .eq .eq2 { animation-delay: .3s; }
.playing .eq .eq3 { animation-delay: .6s; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.mini-map {
  position: relative;
  margin-top: 12px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: #0e1519;
}
.mini-map > svg { width: 100%; height: 100%; }
.mini-map-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .7);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.field-label {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: .2px;
}
.field {
  margin-top: 8px;
  height: 50px;
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  background: var(--bg-3);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .2s var(--ease);
}
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green); }

.chips { display: flex; gap: 8px; margin-top: 10px; }
.chip {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #6a6a6a;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.chip[aria-pressed="true"] { background: var(--green); color: #000; box-shadow: none; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid #2a2a2a;
}
.row:first-of-type { margin-top: 14px; border-top: 1px solid #2a2a2a; }
.row-label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.row-label svg { color: var(--text-2); }
.row-value { font-size: 15px; font-weight: 600; color: var(--text-2); }

.seg {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-3);
}
.seg-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.seg-btn.is-on { background: #fff; color: #000; }
/* extend touch area to 44px */
.seg-btn { position: relative; }
.seg-btn::after { content: ""; position: absolute; inset: -3px 0; }

/* step 2 */
.photo-sum { font-size: 16px; color: var(--text-2); }
.photo-sum strong { color: var(--text); font-weight: 700; font-size: 18px; }
.dot { color: #6a6a6a; padding: 0 2px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 16px 0 20px;
}
.ph {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px transparent;
  transition: box-shadow .25s var(--ease);
}
.ph.sel::after { box-shadow: inset 0 0 0 3px var(--green); }
.ph.sel img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, .3);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #000;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.ph.sel .badge { background: var(--green); border-color: var(--green); }

/* step 3 */
.saved-body { padding-top: 18px; }
.saved-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tick {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: grid;
  place-items: center;
}
.saved-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }

.memory {
  margin-top: 18px;
  border-radius: 16px;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
}
.carousel {
  position: relative;
  height: 300px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.car-track { display: flex; height: 100%; transition: transform .4s var(--ease); }
.car-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.car-count {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
  font-size: 12px;
  font-weight: 700;
}
.car-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.car-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: width .3s var(--ease), background-color .3s var(--ease); }
.car-dots i.on { width: 18px; background: #fff; }

.memory-meta { padding: 14px 16px 16px; }
.memory-line { display: flex; align-items: center; justify-content: space-between; }
.memory-place { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; }
.memory-place svg { color: var(--green); }
.memory-time { font-size: 14px; font-weight: 600; color: var(--text-2); }
.memory-song { margin-top: 4px; padding-left: 24px; font-size: 14px; color: var(--text-2); }

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