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

:root {
  --lime: #CCFF00;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --muted: #888888;
  --gray: #888;
  --border: #EFEFEF;
  --surface: #FAFAFA;
  --font-display: 'Onest', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --sticky-cta-h: 0px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  padding-bottom: calc(24px + var(--sticky-cta-h));
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* ── Landing navbar ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px clamp(16px, 4vw, 48px) 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  max-width: 1280px;
  margin: 0 auto;
}

.site-nav > * { pointer-events: auto; }

.logo,
.pg-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: -0.03em;
  justify-self: start;
  transition: transform 0.35s var(--ease), opacity 0.5s var(--ease);
}

.site-header .logo {
  opacity: 0;
  transform: translateY(-6px);
}

.site-header.ready .logo {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}

.logo:hover { transform: scale(1.04); }

.logo b,
.pg-logo b {
  background: var(--lime);
  padding: 2px 7px 3px;
  border-radius: 6px;
  font-weight: 900;
}

.nav-center { justify-self: center; }

.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 8px;
  background: var(--white);
  border: 1.5px solid var(--black);
  border-radius: 100px;
  box-shadow: 0 3px 0 var(--black);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.7s var(--ease) 0.1s, transform 0.7s var(--ease) 0.1s;
}

.site-header.ready .nav-menu {
  opacity: 1;
  transform: none;
}

.nav-sep {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  margin: 0 2px;
}

.nav-indicator {
  position: absolute;
  bottom: 5px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--lime);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.6);
  transition:
    left 0.45s var(--ease),
    width 0.45s var(--ease),
    opacity 0.3s var(--ease);
  z-index: 0;
  pointer-events: none;
}

.nav-indicator.idle { opacity: 0; }

.nav-link {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px clamp(12px, 1.8vw, 18px);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--gray);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--black);
}

.store-duo {
  justify-self: end;
  display: flex;
  align-items: stretch;
  background: var(--black);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-8px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.5s var(--ease);
}

.site-header.ready .store-duo {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

.store-duo:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.store-duo-half {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: var(--white);
  transition: background 0.3s var(--ease);
  position: relative;
}

.store-duo-half svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.store-duo-ios:hover { background: rgba(255, 255, 255, 0.1); }

.store-duo-divider {
  width: 1px;
  align-self: stretch;
  margin: 11px 0;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.store-duo-android {
  cursor: pointer;
  border: none;
  background: transparent;
  font: inherit;
  overflow: hidden;
}

.store-duo-android:hover { background: rgba(204, 255, 0, 0.12); }

.store-duo-android .soon-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  opacity: 0;
  transform: translateY(6px) scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}

.store-duo-android:hover svg,
.store-duo-android.reveal-soon svg {
  opacity: 0;
  transform: scale(0.5);
}

.store-duo-android:hover .soon-label,
.store-duo-android.reveal-soon .soon-label {
  opacity: 1;
  transform: none;
}

.store-toast {
  position: fixed;
  top: 12px;
  right: clamp(16px, 4vw, 48px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(204, 255, 0, 0.35);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px) scale(0.92);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.store-toast.show {
  opacity: 1;
  transform: none;
}

.store-toast em {
  font-style: normal;
  color: var(--lime);
}

.store-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: toast-pulse 1.2s ease-in-out infinite;
}

@keyframes toast-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

@media (max-width: 820px) {
  .nav-center { display: none; }
  .site-nav { grid-template-columns: 1fr auto; }

  .site-header {
    padding: 16px 16px 10px;
  }

  .site-header .logo {
    font-size: clamp(22px, 6.2vw, 28px);
  }

  .site-header .logo b {
    padding: 3px 9px 4px;
    border-radius: 7px;
  }

  .store-duo-half {
    padding: 14px 20px;
  }

  .store-duo-half svg {
    width: 22px;
    height: 22px;
  }
}

/* ── Hero (centered) ── */
.pg-hero {
  padding: 22px 16px 14px;
  text-align: center;
}

.pg-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 7vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 6px;
}

.pg-hero p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 42ch;
  margin: 0 auto;
}

/* ── Filters (centered) ── */
.pg-filters-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.pg-filters {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: safe center;
  max-width: 1280px;
  margin: 0 auto;
}

.pg-filters::-webkit-scrollbar { display: none; }

.pg-pill {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pg-pill.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ── Stable CSS grid (no column reflow on append) ── */
.pg-grid-wrap {
  padding: 24px 12px 8px;
  max-width: 1280px;
  margin: 0 auto;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pg-card {
  margin: 0;
  min-width: 0;
}

.pg-card__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.pg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.pg-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.pg-card.is-locked .pg-card__overlay {
  opacity: 1;
}

.pg-card.is-locked .pg-card__media img {
  filter: blur(5px);
}

.pg-card__lock {
  font-size: 22px;
  line-height: 1;
}

.pg-card__lock-label {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 0 10px;
}

.pg-card__try {
  display: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

/* ── States ── */
.pg-loading,
.pg-empty {
  text-align: center;
  padding: 28px 16px 40px;
}

.pg-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border: 2px solid var(--border);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: pg-spin 0.7s linear infinite;
}

@keyframes pg-spin { to { transform: rotate(360deg); } }

.pg-empty p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.pg-btn-lime {
  background: var(--lime);
  color: var(--black);
}

.pg-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ── Modal ── */
.pg-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.pg-modal.is-open { display: flex; }

.pg-modal__sheet {
  width: min(100%, 400px);
  background: var(--white);
  border-radius: 20px;
  padding: 22px 18px 18px;
  text-align: center;
  animation: pg-up 0.28s var(--ease);
}

@keyframes pg-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.pg-modal__icon { font-size: 28px; margin-bottom: 8px; }

.pg-modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.pg-modal__copy {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 18px;
}

.pg-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-modal__preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--surface);
}

/* ── Mobile sticky CTA ── */
.pg-sticky-cta {
  display: none;
}

/* ── Footer ── */
.pg-footer {
  padding: 36px 16px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.pg-footer .pg-logo { display: inline-block; margin-bottom: 14px; }

.pg-footer-cta {
  margin-bottom: 18px;
}

.pg-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  margin-bottom: 14px;
}

.pg-footer-links a {
  font-size: 13px;
  color: var(--muted);
}

.pg-footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── Detail page ── */
.pd-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 36px;
}

.pd-image {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.pd-image img {
  width: 100%;
  height: auto;
  display: block;
}

.pd-content {
  min-width: 0;
}

.pd-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.pd-content h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.pd-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #333;
  margin-bottom: 20px;
}

.pd-content h2,
.pd-related-wrap h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
}

.pd-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.pd-tips li {
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pd-cta {
  margin-top: 4px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(204, 255, 0, 0.22) 0%, rgba(204, 255, 0, 0.05) 42%, #f7f7f7 100%);
  border: 1.5px solid rgba(10, 10, 10, 0.08);
  position: relative;
  overflow: hidden;
}

.pd-cta::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: var(--lime);
}

.pd-cta__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin: 0 0 6px 8px;
}

.pd-cta__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.4vw, 22px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 6px 8px;
  color: var(--black);
}

.pd-cta__copy {
  font-size: 14px;
  line-height: 1.45;
  color: #555;
  margin: 0 0 14px 8px;
  max-width: 34ch;
}

.pd-cta .pg-btn {
  margin-left: 8px;
}

/* Similar poses — match gallery card width */
.pd-related-wrap {
  margin-top: 8px;
}

.pd-related {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 2px 0;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pd-related::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pd-related a {
  flex: 0 0 calc((100% - 8px) / 2);
  max-width: 220px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  scroll-snap-align: start;
}

.pd-related img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.pd-related span { display: none; }

@media (min-width: 560px) {
  .pg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .pg-hero,
  .pg-filters { padding-left: 24px; padding-right: 24px; }
  .pg-grid-wrap {
    padding-top: 32px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .pg-modal { align-items: center; }

  .pd-related a {
    flex-basis: calc((100% - 30px) / 4);
  }
}

@media (min-width: 768px) {
  .pg-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pd-layout {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    justify-content: start;
  }

  .pd-image {
    max-width: 340px;
    margin: 0;
    position: sticky;
    top: calc(var(--header-h) + 12px);
  }

  .pd-related a {
    flex-basis: calc((100% - 40px) / 5);
  }
}

@media (min-width: 900px) {
  .pg-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
  .pg-hero { padding-top: 36px; }

  .pg-card:not(.is-locked) .pg-card__media:hover .pg-card__overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
  }

  .pg-card:not(.is-locked) .pg-card__try {
    display: inline-flex;
  }

  .pg-card.is-locked .pg-card__try { display: none; }

  .pd-image { max-width: 360px; }
  .pd-layout { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .pd-related a { flex-basis: calc((100% - 40px) / 5); }
}

@media (min-width: 1200px) {
  .pd-wrap { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 899px) {
  :root { --sticky-cta-h: 72px; --header-h: 64px; }

  .site-header {
    padding: 12px 14px 8px;
  }

  .pg-hero {
    padding: 16px 14px 10px;
  }

  .pg-hero h1 {
    font-size: clamp(22px, 7.2vw, 30px);
  }

  .pg-hero p {
    font-size: 13px;
  }

  .pg-filters {
    padding: 8px 12px;
    justify-content: flex-start;
  }

  .pg-grid-wrap {
    padding: 18px 10px 8px;
  }

  .pg-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    min-height: 64px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.04);
  }

  .pg-sticky-cta__text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
  }

  .pg-sticky-cta .pg-btn {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .logo,
  .nav-menu,
  .store-duo {
    opacity: 1;
    transform: none;
  }
}
