/* ============================================
   RingShot Scorer — page-specific styles
   Builds on ../style.css (design tokens, nav,
   buttons, feature cards, footer, legal page).
   ============================================ */

/* ---------- Hero ---------- */
.scorer-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 75% 45%, rgba(0, 229, 255, 0.10) 0%, transparent 70%),
    var(--bg-primary);
}
.scorer-hero::before {
  content: '';
  position: absolute;
  right: -12vw;
  top: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 22%, rgba(0, 229, 255, 0.05) 22% 24%, transparent 24% 44%,
                    rgba(0, 229, 255, 0.04) 44% 46%, transparent 46% 66%, rgba(0, 229, 255, 0.03) 66% 68%, transparent 68%);
  pointer-events: none;
}
.scorer-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
}
.scorer-hero__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.25);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s var(--ease-out);
}
.scorer-hero__phone-wrap {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.9s var(--ease-out) 0.25s both;
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: 300px;
  max-width: 80vw;
  aspect-ratio: 921 / 2048;
  border-radius: 40px;
  background: var(--dark-800);
  border: 8px solid var(--dark-600);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 229, 255, 0.10);
  overflow: hidden;
  flex-shrink: 0;
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone--sm {
  width: 240px;
  border-width: 6px;
  border-radius: 32px;
}

/* ---------- Store buttons ---------- */
.btn--disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.hero__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: fadeInUp 0.8s var(--ease-out) 0.35s both;
}

/* ---------- How it works ---------- */
.steps {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.steps__header {
  text-align: center;
  margin-bottom: 64px;
}
.steps__header .section-subtitle {
  margin: 0 auto;
}
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  position: relative;
  padding: 40px 32px 36px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.step-card__number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 229, 255, 0.12);
  position: absolute;
  top: 20px;
  right: 24px;
}
.step-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 24px;
  color: var(--accent);
}
.step-card__icon svg {
  width: 24px;
  height: 24px;
}
.step-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Screenshots ---------- */
.screens {
  padding: var(--section-padding);
  overflow: hidden;
}
.screens__header {
  text-align: center;
  margin-bottom: 56px;
}
.screens__header .section-subtitle {
  margin: 0 auto;
}
.screens__track {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 24px 40px;
  margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-500) transparent;
}
.screens__track::-webkit-scrollbar {
  height: 6px;
}
.screens__track::-webkit-scrollbar-thumb {
  background: var(--dark-500);
  border-radius: 3px;
}
.screen {
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.screen__caption {
  text-align: center;
  max-width: 240px;
}
.screen__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.screen__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Privacy strip ---------- */
.privacy-strip {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}
.privacy-strip__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 60px;
  background: linear-gradient(135deg, var(--dark-700) 0%, var(--dark-800) 100%);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--border-radius-lg);
}
.privacy-strip__box .section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.privacy-strip__box p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}
.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.privacy-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent);
  margin-top: 2px;
}
.privacy-list li strong {
  color: var(--text-primary);
}

/* ---------- Download CTA ---------- */
.cta__badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cta__hint a {
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps__grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
}
@media (max-width: 900px) {
  .scorer-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-top: calc(var(--nav-height) + 48px);
  }
  .scorer-hero__inner .hero__title,
  .scorer-hero__inner .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
  .scorer-hero__inner .hero__actions,
  .scorer-hero__inner .hero__stats {
    justify-content: center;
  }
  .scorer-hero__inner .hero__stats {
    flex-wrap: wrap;
    gap: 32px 40px;
  }
  .phone {
    width: 260px;
  }
  .privacy-strip__box {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 32px;
  }
}
@media (max-width: 480px) {
  .privacy-strip__box {
    padding: 36px 24px;
  }
  .phone--sm {
    width: 210px;
  }
}

/* ---------- Group invite page (/ringshot/join/<CODE>) ---------- */
.join-page .legal-page__content {
  max-width: 640px;
}
.join-page__detail {
  font-weight: 500;
  color: var(--text-primary);
}
.join-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 28px 0 8px;
}
.join-page__actions .btn {
  flex: 1 1 260px;
  justify-content: center;
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}
.join-page__appstore {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
  border-radius: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.join-page__appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.join-page__appstore img {
  height: 48px;
  width: auto;
  display: block;
}
.join-page__code-box {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}
.join-page__code-hint {
  margin-bottom: 14px;
}
.join-page__code {
  display: inline-block;
  font-family: 'Outfit', monospace;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding: 12px 28px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--border-radius-sm);
  user-select: all;
}
