/* ── PRODUCT PREVIEW ── */
.preview-strip {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 40px;
}
.preview-copy .section-sub { margin-bottom: 28px; }
.preview-list { display: flex; flex-direction: column; gap: 10px; }
.preview-list li {
  list-style: none;
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: #ccc;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-left: 2px solid var(--chrome-1);
  border-radius: 10px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.preview-list li::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(180px 80px at 0% 50%, rgba(255,255,255,0.07), transparent 70%);
  opacity: 0; transition: opacity 0.25s ease;
}
.preview-list li:hover { border-color: var(--border-light); transform: translateX(2px); }
.preview-list li:hover::before { opacity: 1; }
.preview-list li span.idx {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; color: #0a0a0a;
  background: var(--chrome-3);
  letter-spacing: 0.04em;
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.preview-list li span:last-child { position: relative; z-index: 1; }

.hero-phone-wrap {
  position: relative; display: flex; justify-content: center;
  perspective: 1400px;
  margin-top: 64px;
}
.hero-phone-wrap::before {
  /* contact shadow pooling under the phone for grounded depth */
  content: '';
  position: absolute; left: 50%; bottom: 6%;
  width: 160px; height: 32px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.65), transparent 72%);
  transform: translateX(-50%);
  filter: blur(4px);
  z-index: 0;
}
.hero-phone {
  width: 220px; height: 440px;
  background: linear-gradient(155deg, #131313, #050505 55%);
  border-radius: 42px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 60px 100px -20px rgba(0,0,0,0.85),
    0 20px 40px rgba(0,0,0,0.6),
    inset 0 0 0 6px #0d0d0d,
    inset 0 1.5px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(255,255,255,0.03);
  transform-style: preserve-3d;
}
.hero-phone::after {
  /* static glass glare sweeping across the screen, top-left to bottom-right */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.1) 0%, transparent 16%, transparent 82%, rgba(255,255,255,0.05) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 8;
}
.phone-notch-mock {
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 20px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone-notch-mock::before {
  content: '';
  position: absolute; right: 12px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4a5a, #0a0e12 70%);
}
.demo-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(232,67,47,0.16), transparent);
  opacity: 0; pointer-events: none; z-index: 5;
}
.phone-screen-content { padding: 40px 20px 24px; height: 100%; display: flex; flex-direction: column; }
.mock-score-big { font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: -3px; line-height: 1; margin-bottom: 2px; }
.mock-score-big span { font-size: 20px; color: #555; font-weight: 600; letter-spacing: 0; font-family: 'Inter', sans-serif; }
.mock-score-lbl { font-family: var(--font-mono); font-size: 10px; color: #555; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; }

/* the phone screen now shows only the assembling-outfit scene + the score */
.phone-screen-score { align-items: center; text-align: center; justify-content: flex-end; }
#phone-outfit-canvas { flex: 1; width: 100%; min-height: 0; display: block; }
.phone-screen-score .mock-score-lbl { margin-top: 4px; }
.phone-screen-score .mock-score-big { margin-bottom: 18px; }

@media (max-width: 860px) {
  .preview-strip { grid-template-columns: 1fr; text-align: center; }
  .preview-copy .section-sub { margin: 0 auto 28px; }
  .preview-list { max-width: 360px; margin: 0 auto; text-align: left; }
}

@media (max-width: 480px) {
  /* Smaller phone on narrow viewports so the wardrobe ring around it
     (js/world/actWardrobe.js) has room to clear the phone without
     overflowing the viewport width. */
  .hero-phone { width: 180px; height: 360px; }
  .hero-phone-wrap::before { width: 130px; height: 26px; }
}

/* ── HOW IT WORKS: pinned scroll-through-the-telescope narrative ── */
.how-pin {
  display: flex; align-items: center; gap: 60px;
  min-height: 100vh; padding: 0 24px;
  max-width: 1100px; margin: 0 auto;
}
.telescope-wrap-lg { position: relative; flex: 1; height: 380px; }
#telescope-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.how-steps { flex: 1; display: grid; padding-bottom: 40px; }
.how-step {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.how-step.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.step-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--chrome-2); margin-bottom: 16px; }
.how-step h3 { font-family: var(--font-display); font-size: clamp(22px, 6vw, 30px); font-weight: 700; letter-spacing: -0.4px; margin-bottom: 14px; line-height: 1.15; }
.how-step p { font-size: clamp(14px, 3.6vw, 15px); color: var(--gray); line-height: 1.65; max-width: 40ch; }
.how-dots { grid-row: 2; display: flex; gap: 8px; margin-top: 16px; }
.how-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-light); transition: background 0.3s ease, transform 0.3s ease; }
.how-dot.active { background: var(--chrome-1); transform: scale(1.3); }

@media (max-width: 860px) {
  .how-pin { flex-direction: column; text-align: center; gap: 28px; padding-top: 20px; min-height: 90vh; }
  .telescope-wrap-lg { width: 100%; height: 240px; }
  .how-steps { width: 100%; padding: 0 8px; }
  .how-step p { margin: 0 auto; }
  .how-dots { justify-content: center; }
}

@media (max-width: 480px) {
  .telescope-wrap-lg { height: 190px; }
  .step-tag { font-size: 10px; margin-bottom: 10px; }
}

/* broadcast pulse rings, shared by the how-it-works ring accent and the
   "share your score" feature graphic */
.pulse-ring { transform-origin: 28px 28px; animation: pulseOut 2.2s ease-out infinite; }
.pulse-ring.p2 { animation-delay: 0.9s; }
@keyframes pulseOut { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.3); opacity: 0; } }

/* ── FEATURES: four equally-aligned chests ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 60px;
  background: var(--border);
}
.feature-card {
  background: var(--black);
  padding: 36px 28px;
  transition: background 0.25s ease;
  display: flex; flex-direction: column; align-items: center;
}
.feature-card:hover { background: #060606; }
.feature-card p { font-size: 13.5px; color: var(--gray); line-height: 1.6; max-width: 30ch; text-align: center; }

.feature-graphic { margin-top: 18px; margin-bottom: 14px; }

/* treasure chest: single-tone gold line art, lid lifts open on hover/tap
   to flash gold light + sparks, then the graphic + short copy reveal —
   as if the description was pulled out of the chest itself. */
.feature-card { cursor: pointer; }
.chest-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 4px; }
.chest { position: relative; width: 68px; height: 60px; }
.chest-base-svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 36px; }
.chest-lid-svg {
  position: absolute; left: 0; bottom: 30px; width: 100%; height: 30px;
  transform-origin: 18% 100%;
  transition: transform 0.55s cubic-bezier(.2,.7,.25,1.4);
}
.chest-glow {
  position: absolute; left: 10%; right: 10%; bottom: 26px; height: 18px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,228,150,0.95) 0%, rgba(230,192,122,0.4) 45%, transparent 75%);
  opacity: 0; filter: blur(2px); pointer-events: none;
}
@keyframes chestGlow { 0% { opacity: 0; transform: scale(0.6); } 40% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1.7); } }
.chest-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe9ad; bottom: 32px; opacity: 0; box-shadow: 0 0 6px #ffcf6b; }
.chest-spark.s1 { left: 26%; } .chest-spark.s2 { left: 48%; animation-delay: 0.1s !important; } .chest-spark.s3 { left: 70%; animation-delay: 0.2s !important; }
@keyframes sparkUp { 0% { opacity: 0; transform: translateY(0) scale(0.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-36px) scale(1); } }
.chest-label {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.2px;
  color: #f0d9a3; margin-top: 10px;
}
/* inline card: closed chest only, just a gentle lift hint on hover —
   the description stays hidden until the user actually clicks it open */
.feature-card:hover .chest { transform: translateY(-3px); }
.chest { transition: transform 0.3s ease; }
/* ── chest modal: click a chest to pull out its parchment description card ── */
.chest-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.chest-modal.open { opacity: 1; pointer-events: auto; }
.chest-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.86); backdrop-filter: blur(6px); }
.chest-modal-close {
  position: absolute; top: 28px; right: 28px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-light);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.chest-modal-close svg { width: 18px; height: 18px; }
.chest-modal-stage {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  max-height: 92vh; overflow-y: auto;
}

.paper-card {
  width: min(86vw, 380px);
  background:
    repeating-linear-gradient(115deg, rgba(120,90,40,0.05) 0px, transparent 1.5px, transparent 3px),
    radial-gradient(ellipse at 15% 10%, rgba(255,255,255,0.55), transparent 55%),
    #f2e6c9;
  border: 1px solid rgba(120,90,40,0.18);
  border-radius: 4px;
  padding: 32px 30px;
  box-shadow: inset 0 0 44px rgba(120,90,40,0.14), 0 24px 60px rgba(0,0,0,0.55);
  transform: translateY(24px) scale(0.94);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2,.8,.2,1.2);
}
.chest-modal.open .paper-card { opacity: 1; transform: translateY(0) scale(1); }
.paper-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #a5793a; margin-bottom: 10px; }
.paper-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #2a1f10; margin-bottom: 10px; letter-spacing: -0.3px; }
.paper-desc { font-size: 14.5px; color: #4a3c26; line-height: 1.65; }

/* the graphic + copy inside .vault-reveal never show on the inline card —
   they exist only as the source content the click-to-open modal reads. */
.vault-reveal { display: none; }

/* feature 1: shutter flash over a frame */
.fg-shutter { width: 100%; max-width: 220px; height: 96px; border-radius: 12px; border: 1px solid var(--border-light); position: relative; overflow: hidden; background: #0a0a0a; }
.fg-shutter::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.9) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: shutterSweep 3.2s ease-in-out infinite;
}
.fg-shutter-score { position: absolute; left: 14px; bottom: 12px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -1px; color: #fff; }
@keyframes shutterSweep { 0%, 30% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }

/* feature 2: before/after swap chips */
.fg-swap { display: flex; align-items: center; gap: 10px; }
.fg-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-light); color: #888; }
.fg-chip.out { text-decoration: line-through; opacity: 0.5; }
.fg-chip.in { color: #000; background: linear-gradient(120deg, #f7e199, #e6c07a); border-color: transparent; animation: chipPop 2.6s ease-in-out infinite; }
.fg-arrow { color: #555; }
@keyframes chipPop { 0%, 60% { transform: scale(1); } 75% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* feature 3: orbiting memory nodes */
.fg-orbit { width: 64px; height: 64px; position: relative; }
.fg-orbit-core { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--white); }
.fg-orbit-ring { position: absolute; inset: 0; border: 1px dashed var(--border-light); border-radius: 50%; animation: orbitSpin linear infinite; }
.fg-orbit-ring .dot { position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; }
.fg-orbit-ring.r1 { animation-duration: 5s; }
.fg-orbit-ring.r1 .dot { background: var(--chrome-1); }
.fg-orbit-ring.r2 { inset: 12px; animation-duration: 3.2s; animation-direction: reverse; }
.fg-orbit-ring.r2 .dot { background: var(--chrome-3); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* feature 4: share ripple */
.fg-share { width: 64px; height: 64px; flex-shrink: 0; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ── TESTIMONIALS (auto-scrolling marquee) ── */
.marquee-viewport { margin-top: 60px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marqueeScroll 32s linear infinite; }
.marquee-viewport:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tcard { background: #080808; border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: border-color 0.2s; width: 360px; flex-shrink: 0; }
.tcard:hover { border-color: var(--border-light); }
.tcard-stars {
  font-size: 14px; margin-bottom: 12px; letter-spacing: 3px;
  background: linear-gradient(100deg, #a5793a 10%, #f7e199 40%, #fffbe0 50%, #f7e199 60%, #a5793a 90%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldShimmer 4s linear infinite;
}
.tcard-text { font-size: 14px; color: #bbb; line-height: 1.65; margin-bottom: 20px; }
.tcard-author { display: flex; align-items: center; gap: 10px; }
.tcard-avatar { width: 34px; height: 34px; border-radius: 50%; background: #1a1a1a; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #666; }
.tcard-name { font-size: 13px; font-weight: 700; }
.tcard-handle { font-family: var(--font-mono); font-size: 11px; color: #555; margin-top: 1px; }

@media (max-width: 640px) { .tcard { width: 300px; } }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 620px; margin: 60px auto 0; }
.price-card { border: 1.5px solid var(--border-light); border-radius: 18px; padding: 32px 28px; position: relative; transition: border-color 0.2s; }
.price-card:hover { border-color: #444; }
.price-card.featured { border-color: var(--chrome-2); background: #080808; box-shadow: 0 0 40px rgba(255,255,255,0.08); }
.price-best {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--white); color: var(--black);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 10px; white-space: nowrap;
  overflow: hidden;
}
.price-best::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(0,0,0,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0%, 40% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.price-period { font-family: var(--font-mono); font-size: 11px; color: var(--gray); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.price-amount { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.price-per { font-size: 13px; color: var(--gray); margin-top: 4px; margin-bottom: 24px; }
.price-features { display: flex; flex-direction: column; gap: 10px; }
.pf { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #bbb; }
.pf-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--chrome-1); flex-shrink: 0; }

@media (max-width: 500px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ── CTA SECTION ── */
.cta-section { text-align: center; padding: 120px 24px; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,255,255,0.09) 0%, transparent 70%);
}
.cta-section h2 {
  font-family: var(--font-display); font-size: clamp(40px, 7vw, 80px);
  font-weight: 700; letter-spacing: -3px; line-height: 1.05; margin-bottom: 20px; position: relative;
}
.cta-section p { font-size: 17px; color: var(--gray); margin-bottom: 40px; position: relative; }
.accent-word {
  font-family: var(--font-display);
  font-size: 1.3em;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, #a5793a 10%, #f7e199 35%, #fffbe0 50%, #f7e199 65%, #a5793a 90%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldShimmer 3.5s linear infinite;
}
@keyframes goldShimmer { 0% { background-position: 200% center; } 100% { background-position: -50% center; } }
.cta-section .pill-btn { position: relative; font-size: 14px; padding: 18px 32px 18px 34px; }
