/* ============================================================
   PerkDrama — Cinema ticket + reward-loop landing
   Warm cream canvas, gold coins, hot-pink CTAs
   Layout: ticket stub hero, poster fan, metro-map features
   ============================================================ */

:root {
  --pd-cream: #FFF7EC;
  --pd-cream-deep: #FFE9C8;
  --pd-peach: #FFD9B8;
  --pd-ink: #2B1810;
  --pd-ink-soft: #6A4A38;
  --pd-muted: #8A6A56;
  --pd-pink: #FF4B91;
  --pd-pink-deep: #E62E78;
  --pd-orange: #FF7A18;
  --pd-gold: #F5C400;
  --pd-green: #1FA85A;
  --pd-white: #FFFFFF;
  --pd-glass: rgba(255, 255, 255, 0.78);
  --pd-line: rgba(43, 24, 16, 0.1);
  --pd-shadow: 0 18px 50px rgba(255, 75, 145, 0.12);
  --pd-shadow-deep: 0 28px 70px rgba(43, 24, 16, 0.16);
  --pd-radius: 28px;
  --pd-font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --pd-font-body: "Nunito", "Segoe UI", sans-serif;
  --pd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--pd-font-body);
  color: var(--pd-ink);
  background:
    radial-gradient(1200px 700px at 12% -10%, #FFEFD6 0%, transparent 55%),
    radial-gradient(900px 600px at 92% 8%, #FFD6E8 0%, transparent 50%),
    var(--pd-cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
a {
  font-family: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

.pd-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pd-ink);
  color: var(--pd-white);
}

.pd-skip:focus {
  top: 12px;
}

/* --- Decorative coins --- */
.pd-coins {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.pd-coin {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #FFF4B8, #F5C400 42%, #C88800 78%);
  box-shadow:
    inset 0 -6px 10px rgba(120, 70, 0, 0.25),
    0 8px 16px rgba(245, 196, 0, 0.28);
}

.pd-coin::after {
  content: "★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--pd-font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fffdf0;
  text-shadow: 0 1px 0 #c88800;
}

.pd-coin--a { top: 18%; left: 6%; animation: pd-float 9s var(--pd-ease) infinite; }
.pd-coin--b { top: 62%; left: 88%; width: 38px; height: 38px; animation: pd-float 11s 0.6s var(--pd-ease) infinite; }
.pd-coin--c { top: 78%; left: 12%; width: 28px; height: 28px; animation: pd-float 8s 1.2s var(--pd-ease) infinite; }
.pd-coin--d { top: 28%; left: 78%; width: 44px; height: 44px; animation: pd-float 10s 0.4s var(--pd-ease) infinite; }

.pd-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffd56a;
  transform: rotate(45deg);
  opacity: 0.7;
}

.pd-spark--a { top: 22%; left: 48%; animation: pd-twinkle 3.2s ease-in-out infinite; }
.pd-spark--b { top: 70%; left: 42%; animation: pd-twinkle 4s 0.8s ease-in-out infinite; }
.pd-spark--c { top: 40%; left: 92%; animation: pd-twinkle 3.6s 1.4s ease-in-out infinite; }

@keyframes pd-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg); }
  50% { transform: translate3d(8px, -16px, 0) rotate(8deg); }
}

@keyframes pd-twinkle {
  0%, 100% { opacity: 0.25; transform: rotate(45deg) scale(0.7); }
  50% { opacity: 0.9; transform: rotate(45deg) scale(1.15); }
}

/* --- Header --- */
.pd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 18px 0;
}

.pd-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 12px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--pd-glass);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(43, 24, 16, 0.06);
  transition: box-shadow 200ms ease, background 200ms ease;
}

.pd-header.is-scrolled .pd-nav {
  background: rgba(255, 247, 236, 0.92);
  box-shadow: 0 12px 32px rgba(43, 24, 16, 0.1);
}

.pd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pd-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(255, 75, 145, 0.25);
}

.pd-brand__name {
  font-family: var(--pd-font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.pd-brand__name span {
  color: var(--pd-pink);
}

.pd-nav__links {
  display: none;
  gap: 6px;
  margin-left: auto;
}

.pd-nav__links a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--pd-ink-soft);
  transition: color 200ms ease, background 200ms ease;
}

.pd-nav__links a:hover,
.pd-nav__links a:focus-visible {
  color: var(--pd-ink);
  background: rgba(255, 75, 145, 0.08);
}

.pd-nav__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.pd-ticker {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3e0;
  color: var(--pd-ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pd-ticker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pd-green);
  box-shadow: 0 0 0 4px rgba(31, 168, 90, 0.16);
}

.pd-burger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pd-ink);
}

.pd-drawer {
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 16px;
  display: grid;
  gap: 8px;
  border-radius: 24px;
  background: var(--pd-white);
  box-shadow: var(--pd-shadow-deep);
}

.pd-drawer[hidden] {
  display: none !important;
}

.pd-drawer a,
.pd-drawer button {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  text-align: left;
}

.pd-drawer a:hover {
  background: #fff3e8;
}

/* --- Buttons --- */
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 200ms var(--pd-ease), box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}

.pd-btn:hover {
  transform: translateY(-1px);
}

.pd-btn:focus-visible {
  outline: 3px solid rgba(255, 75, 145, 0.45);
  outline-offset: 2px;
}

.pd-btn--pink {
  background: linear-gradient(180deg, #ff6aa3 0%, var(--pd-pink) 100%);
  color: var(--pd-white);
  box-shadow: 0 10px 22px rgba(255, 75, 145, 0.32);
}

.pd-btn--pink:hover {
  background: var(--pd-pink-deep);
}

.pd-btn--store {
  background: var(--pd-ink);
  color: var(--pd-white);
  box-shadow: 0 10px 22px rgba(43, 24, 16, 0.18);
}

.pd-btn--ghost {
  background: var(--pd-white);
  color: var(--pd-ink);
  border: 1.5px solid var(--pd-line);
}

.pd-btn--ghost:hover {
  border-color: var(--pd-pink);
  color: var(--pd-pink);
}

.pd-btn--lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 1rem;
}

.pd-btn--block {
  width: 100%;
}

.pd-store-icon,
.pd-store-icon svg {
  width: 18px;
  height: 18px;
}

.pd-nav__cta {
  display: none;
  min-height: 42px;
  padding: 0 16px;
}

/* --- Hero --- */
.pd-hero {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 18px 8px;
}

.pd-hero__stage {
  display: grid;
  gap: 28px;
  align-items: center;
}

.pd-ticket {
  display: grid;
  grid-template-columns: 42px 1fr;
  border-radius: var(--pd-radius);
  background: var(--pd-white);
  box-shadow: var(--pd-shadow-deep);
  overflow: hidden;
  position: relative;
}

.pd-ticket::after,
.pd-ticket::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--pd-cream);
  border-radius: 50%;
  left: 31px;
  z-index: 2;
}

.pd-ticket::before { top: -11px; }
.pd-ticket::after { bottom: -11px; }

.pd-ticket__stub {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: linear-gradient(180deg, #FF8A2A, #FF4B91);
  color: #fff;
  font-family: var(--pd-font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
}

.pd-ticket__body {
  padding: 28px 22px 24px;
}

.pd-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--pd-muted);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd-hero h1,
.pd-features h2,
.pd-download h2 {
  font-family: var(--pd-font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.pd-hero h1 {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  margin-bottom: 14px;
}

.pd-gradient {
  background: linear-gradient(90deg, #FF9A1F 0%, #FF5A1F 55%, #FF4B91 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pd-lead {
  color: var(--pd-ink-soft);
  font-size: 1.02rem;
  max-width: 42ch;
  margin-bottom: 22px;
}

.pd-lead--center {
  margin-inline: auto;
  text-align: center;
}

.pd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3e8;
  color: var(--pd-ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Dual-phone stage: shared baseline, light overlap, no scatter */
.pd-devices {
  --phone-w: min(48vw, 240px);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 420px;
  padding: 12px 4px 20px;
}

.pd-devices__glow {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(82%, 360px);
  height: 110px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 184, 64, 0.32), transparent 70%);
  pointer-events: none;
}

.pd-phone {
  position: relative;
  z-index: 1;
  width: var(--phone-w);
  flex: 0 0 var(--phone-w);
  margin: 0;
  aspect-ratio: 576 / 1024;
  border-radius: 28px;
  overflow: hidden;
  background: #fff7ec;
  box-shadow: 0 18px 40px rgba(43, 24, 16, 0.16);
  transition: box-shadow 200ms ease;
}

.pd-phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.pd-phone--front {
  z-index: 3;
  margin-right: -24px;
}

.pd-phone--back {
  z-index: 2;
  width: calc(var(--phone-w) * 0.92);
  flex-basis: calc(var(--phone-w) * 0.92);
  margin-left: -24px;
  transform: translateY(16px);
}

.pd-phone:hover,
.pd-phone:focus-within {
  z-index: 4;
  box-shadow: 0 22px 48px rgba(255, 75, 145, 0.18);
}

/* Loop strip */
.pd-loop {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(255, 122, 24, 0.35);
}

.pd-loop li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--pd-white);
}

.pd-loop__n {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--pd-font-display);
  font-weight: 800;
  color: var(--pd-pink);
}

.pd-loop strong {
  font-family: var(--pd-font-display);
  font-size: 1.05rem;
}

.pd-loop span:last-child {
  color: var(--pd-muted);
  font-size: 0.88rem;
}

/* --- Features / metro --- */
.pd-features {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 18px 24px;
}

.pd-features__head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.pd-features h2,
.pd-download h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.pd-metro {
  display: grid;
  gap: 18px;
  position: relative;
}

.pd-metro__rail {
  display: none;
}

.pd-station {
  background: var(--pd-white);
  border-radius: 28px;
  padding: 22px 20px 20px;
  box-shadow: 0 12px 30px rgba(43, 24, 16, 0.06);
  transition: box-shadow 200ms ease, border-color 200ms ease;
  border: 1px solid transparent;
}

.pd-station:hover {
  border-color: rgba(255, 75, 145, 0.22);
  box-shadow: 0 16px 36px rgba(255, 75, 145, 0.12);
}

.pd-station h3 {
  font-family: var(--pd-font-display);
  font-size: 1.25rem;
  margin: 12px 0 8px;
}

.pd-station p {
  color: var(--pd-ink-soft);
  font-size: 0.96rem;
}

.pd-orb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pd-white);
  box-shadow: 0 10px 20px rgba(43, 24, 16, 0.12);
}

.pd-orb svg {
  width: 28px;
  height: 28px;
}

.pd-orb--gold { background: radial-gradient(circle at 30% 30%, #ffe58a, #f5c400 60%, #d08900); }
.pd-orb--gift { background: radial-gradient(circle at 30% 30%, #ff9db8, #ff4b91 62%, #c91d63); }
.pd-orb--play { background: radial-gradient(circle at 30% 30%, #ffc08a, #ff7a18 62%, #e05500); }
.pd-orb--cash { background: radial-gradient(circle at 30% 30%, #8be3ae, #1fa85a 62%, #0e7a3d); }
.pd-orb--lg { width: 76px; height: 76px; margin: 0 auto 8px; }

.pd-bento {
  margin-top: 36px;
  display: grid;
  gap: 20px;
  align-items: center;
}

.pd-bento__wide {
  border-radius: 32px;
  overflow: hidden;
  background: #1a120e;
  box-shadow: var(--pd-shadow-deep);
  max-width: 280px;
  margin-inline: auto;
  aspect-ratio: 576 / 1024;
}

.pd-bento__wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-bento__copy h3 {
  font-family: var(--pd-font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.pd-bento__copy p {
  color: var(--pd-ink-soft);
  margin-bottom: 16px;
}

.pd-checklist {
  display: grid;
  gap: 10px;
}

.pd-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.pd-checklist i,
.pd-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--pd-green);
}

/* --- Download --- */
.pd-download {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 72px;
}

.pd-wallet {
  display: grid;
  gap: 28px;
  padding: 22px;
  border-radius: 36px;
  background: var(--pd-white);
  border: 2px solid rgba(255, 75, 145, 0.18);
  box-shadow: var(--pd-shadow);
}

.pd-wallet__visual {
  max-width: 260px;
  margin-inline: auto;
  border-radius: 32px;
  overflow: hidden;
  background: #1a120e;
  aspect-ratio: 576 / 1024;
  box-shadow: var(--pd-shadow-deep);
}

.pd-wallet__visual img,
.pd-billboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-wallet__panel {
  padding: 8px 4px 4px;
}

.pd-wallet__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.pd-billboard {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1024 / 500;
  background: #fff3e8;
}

/* --- Footer --- */
.pd-footer {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 12px 0, transparent 10px, #2b1810 11px);
  background-size: 24px 24px;
  background-repeat: repeat-x;
  background-position: top;
  color: #f8ece3;
  padding: 42px 18px 28px;
  margin-top: 8px;
}

.pd-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.pd-brand--footer .pd-brand__name {
  color: #fff;
}

.pd-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.pd-footer__links a {
  color: #f3c2d6;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pd-footer__links a:hover {
  color: #fff;
}

.pd-footer__copy {
  color: rgba(248, 236, 227, 0.7);
  font-size: 0.88rem;
}

/* --- Modal --- */
.pd-modal[hidden] {
  display: none;
}

.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.pd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 24, 16, 0.45);
  cursor: pointer;
}

.pd-modal__card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 28px;
  background: var(--pd-white);
  border: 2px solid rgba(255, 75, 145, 0.25);
  box-shadow: var(--pd-shadow-deep);
  text-align: center;
}

.pd-modal__card h2 {
  font-family: var(--pd-font-display);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.pd-modal__card p {
  color: var(--pd-ink-soft);
  margin-bottom: 18px;
}

.pd-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pd-ink-soft);
}

.pd-modal__close:hover {
  background: #fff3e8;
}

/* --- Desktop --- */
@media (max-width: 479px) {
  .pd-devices {
    --phone-w: min(44vw, 168px);
    min-height: 340px;
    padding-bottom: 12px;
  }

  .pd-phone--front {
    margin-right: -20px;
  }

  .pd-phone--back {
    margin-left: -20px;
    transform: translateY(12px);
  }
}

@media (min-width: 768px) {
  .pd-header {
    padding: 18px 24px 0;
  }

  .pd-nav__links,
  .pd-ticker,
  .pd-nav__cta {
    display: flex;
  }

  .pd-burger,
  .pd-drawer {
    display: none !important;
  }

  .pd-hero {
    padding: 36px 24px 12px;
  }

  .pd-hero__stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 12px;
  }

  .pd-ticket {
    grid-template-columns: 56px 1fr;
  }

  .pd-ticket__body {
    padding: 36px 32px 30px;
  }

  .pd-devices {
    --phone-w: 230px;
    min-height: 520px;
  }

  .pd-phone--front {
    margin-right: -36px;
  }

  .pd-phone--back {
    margin-left: -36px;
  }

  .pd-loop {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .pd-features {
    padding: 80px 24px 32px;
  }

  .pd-metro {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 28px;
  }

  .pd-metro__rail {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 18px;
    height: 90px;
    width: 100%;
  }

  .pd-station--up { margin-top: 0; }
  .pd-station--down { margin-top: 48px; }

  .pd-bento {
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 12px 8px 0;
  }

  .pd-bento__wide {
    margin-inline: 0;
  }

  .pd-download {
    padding: 20px 24px 96px;
  }

  .pd-wallet {
    grid-template-columns: 280px 1fr;
    align-items: center;
    padding: 28px;
    gap: 36px;
  }

  .pd-wallet__visual {
    margin-inline: 0;
  }

  .pd-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
    justify-items: stretch;
  }
}

@media (min-width: 1100px) {
  .pd-devices {
    --phone-w: 248px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pd-coin,
  .pd-spark {
    animation: none;
  }
  .pd-btn:hover {
    transform: none;
  }
}
