/* Pop Life Photo demos landing. Tokens from brand/BRAND.md. */
:root {
  --purple: #6B6CE9;
  --purple-200: #9F9FFF;
  --purple-100: #D9D9FF;
  --purple-50: #F2F2FF;
  --navy: #010129;
  --navy-800: #150768;
  --navy-700: #2E1E8C;
  --navy-600: #3E2BAF;
  --teal: #33CCFF;
  --teal-200: #7ADEFF;
  --teal-100: #BEEFFF;
  --white: #FFFFFF;
  --text: #FFFFFF;
  --text-body: #D9D9FF;
  --text-muted: #9F9FFF;
  --grad-purple: linear-gradient(90deg, #FFFFFF 0%, #9F9FFF 50%, #6B6CE9 100%);
  --grad-teal: linear-gradient(90deg, #FFFFFF 0%, #BEEFFF 50%, #33CCFF 100%);
  --card-bg: rgba(21, 7, 104, 0.55);
  --card-border: rgba(46, 30, 140, 0.9);
  --font-head: Poppins, "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* The soft purple glow from the guideline pages, fixed so it stays in the corner while scrolling. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 92% 8%, rgba(107, 108, 233, 0.35) 0%, rgba(62, 43, 175, 0.18) 40%, rgba(1, 1, 41, 0) 75%),
    radial-gradient(50% 45% at 5% 100%, rgba(62, 43, 175, 0.30) 0%, rgba(1, 1, 41, 0) 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--text); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 10; font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Focus rings: visible on everything interactive. */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 999px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1;
  color: #fff; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pill-fill { background: var(--purple); border-color: var(--purple); }
.pill-fill:hover { background: #7C7DEE; box-shadow: 0 8px 24px rgba(107, 108, 233, 0.35); }
.pill-outline { background: transparent; border-color: var(--purple); }
.pill-outline:hover { background: rgba(107, 108, 233, 0.16); }
.pill:active { transform: translateY(1px); }
.pill-small { min-height: 44px; padding: 8px 16px; font-size: 14px; font-family: var(--font-body); font-weight: 500; }   /* 44px: a thumb's target */

/* Header */
.site-header { padding: 18px 0; border-bottom: 1px solid rgba(159, 159, 255, 0.18); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; border-radius: 8px; }   /* 44px: a thumb's target */
/* The mark PNG carries "POP LIFE PHOTO" under the camera; at 28px that is mush, so crop to the camera (top 2/3). */
.brand-mark { width: 34px; height: 28px; object-fit: cover; object-position: top; }
.wordmark { font-family: var(--font-head); font-weight: 400; font-size: 14px; letter-spacing: 0.12em; color: var(--text); text-transform: uppercase; }
.wordmark strong { font-weight: 600; }

/* Hero */
.hero { padding: 64px var(--gutter) 40px; text-align: left; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
h1 { font-size: clamp(40px, 8vw, 64px); max-width: 14ch; }
.grad {
  background: var(--grad-purple);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.lede { font-size: 18px; line-height: 1.45; color: var(--text-body); max-width: 58ch; margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Grid of experiences */
.experiences { padding-top: 24px; padding-bottom: 24px; }
.grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }

.card {
  display: flex; flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
/* The preview: the finished card (a real render), large, on a navy ground; for a two-sided card, a
   tray under it holds the two dots that swap the back in — a tap on the card or a swipe does the
   same. Nothing sits over the art. 4:5 keeps a 5:7 card near full-height. */
.media {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(107, 108, 233, 0.28) 0%, rgba(62, 43, 175, 0.10) 50%, rgba(1, 1, 41, 0) 100%),
    linear-gradient(180deg, #150768 0%, #0B0545 100%);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.media .sides { position: absolute; inset: 14px 14px 52px; }
.media .side {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  opacity: 0;
  transition: opacity .28s ease;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
.media .side.is-active { opacity: 1; }
.media .fallback {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  background:
    radial-gradient(70% 90% at 80% 10%, rgba(107, 108, 233, 0.55) 0%, rgba(62, 43, 175, 0.25) 45%, rgba(21, 7, 104, 0) 80%),
    linear-gradient(160deg, #2E1E8C 0%, #150768 55%, #010129 100%);
}
.media .fallback img { width: 64px; height: auto; opacity: 0.9; }
.media.nosample .sides, .media.nosample .dots { display: none; }
.media.nosample .fallback { display: flex; }

/* The two dots: tiny to look at, 44 px to tap. */
.dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 2px; }
.dot {
  width: 44px; height: 44px; padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.dot span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(217, 217, 255, 0.45);
  transition: background-color .2s ease, transform .2s ease;
}
.dot.is-active span { background: var(--teal); transform: scale(1.25); }
.dot:hover span { background: var(--purple-100); }

.body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.chip {
  align-self: flex-start;
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; line-height: 1.2;
}
.chip-booth { background: rgba(107, 108, 233, 0.22); color: var(--purple-100); border: 1px solid rgba(107, 108, 233, 0.6); }
.chip-phone { background: rgba(51, 204, 255, 0.14); color: var(--teal-100); border: 1px solid rgba(51, 204, 255, 0.55); }
.card h3 { font-size: 28px; }
.card > .body > p { color: var(--text-body); font-size: 16px; line-height: 1.45; }

.steps-wrap { margin-top: 4px; }
.steps-label { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 6px; }
.steps li { counter-increment: step; display: flex; gap: 10px; align-items: baseline; font-size: 16px; color: var(--text-body); }
.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--teal);
  min-width: 18px;
}

.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 12px; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.qr svg { width: 96px; height: 96px; display: block; border-radius: 8px; }
.qr-hint { font-size: 11px; color: var(--text-muted); text-align: center; max-width: 110px; line-height: 1.25; }
.qr:empty, .qr.unavailable { display: none; }

/* How a demo runs */
.how { padding-top: 56px; padding-bottom: 56px; }
.how h2 { font-size: clamp(28px, 5vw, 42px); }
.how-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
.how-grid li {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px 20px;
}
.num {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 42px; line-height: 1;
  background: var(--grad-teal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.how-grid p { color: var(--text-body); font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(159, 159, 255, 0.18); padding: 28px 0 40px; }
.footer-row { display: flex; gap: 14px; align-items: flex-start; }
.footer-text { display: grid; gap: 6px; font-size: 16px; color: var(--text-body); }
.footer-text a { color: var(--purple-100); text-decoration: underline; text-underline-offset: 3px; }
.footer-text a:hover { color: #fff; }
.muted { color: var(--text-muted); }

/* Wider screens */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 88px; padding-bottom: 56px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .body { padding: 24px; }
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 104px; }
  .grid { gap: 24px; }
}
