/* UniPeek Landing Page — page-specific styles
   Shared nav/footer/device-bar styles live in styles.css
   ─────────────────────────────────────────────────────── */

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 96px 5% 80px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30,105,248,.18) 0%, transparent 70%);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(30,105,248,.12); border: 1px solid rgba(30,105,248,.3);
  color: #7EB0FF; border-radius: 20px;
  padding: 4px 14px; font-size: 12px; font-weight: 600; letter-spacing: .6px;
  margin-bottom: 24px; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
  max-width: 780px;
}
.hero h1 em { font-style: normal; color: var(--blue); }

.hero p {
  margin-top: 20px; max-width: 560px;
  font-size: 18px; color: var(--muted); line-height: 1.7;
}

.hero-btns {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 36px;
}

.hero-mockup {
  margin-top: 64px;
  width: min(320px, 80vw);
  aspect-ratio: 9/19.5;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 36px;
  box-shadow: 0 40px 120px rgba(30,105,248,.15), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  position: relative;
}
.hero-mockup::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(30,105,248,.08) 0%, transparent 60%);
}
.mockup-screen {
  position: absolute; inset: 12px;
  border-radius: 28px;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.mockup-label {
  font-size: 11px; color: rgba(255,255,255,.3); letter-spacing: .4px;
  text-align: center; padding: 0 20px; line-height: 1.8;
}
.mockup-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #33E64F;
  box-shadow: 0 0 8px #33E64F;
  display: inline-block; margin-bottom: 8px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* Gentle bounce on the scroll-down CTA */
.btn-outline svg {
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* ── SECTION COMMON ────────────────────────────────────────────────────────── */
section { padding: 96px 5%; }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--blue); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; letter-spacing: -.5px; line-height: 1.2;
  max-width: 560px;
}
.section-sub {
  margin-top: 12px; color: var(--muted); font-size: 16px;
  max-width: 520px; line-height: 1.7;
}

/* ── FEATURES ──────────────────────────────────────────────────────────────── */
#features { border-top: 1px solid var(--border); text-align: center; }
#features .section-label,
#features .section-title,
#features .section-sub { margin-left: auto; margin-right: auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.feature-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(30,105,248,.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── HOW IT WORKS ──────────────────────────────────────────────────────────── */
#how { border-top: 1px solid var(--border); text-align: center; }
#how .section-label,
#how .section-title { margin-left: auto; margin-right: auto; }

.steps {
  display: flex; flex-direction: column; gap: 0;
  margin: 48px auto 0; max-width: 600px;
  text-align: left;
}

.step {
  display: flex; gap: 20px;
  padding-bottom: 36px;
  position: relative;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute; left: 19px; top: 40px; bottom: 0;
  width: 1px; background: var(--border);
}

.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--s1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--blue);
}

.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── PRICING ───────────────────────────────────────────────────────────────── */
#pricing { border-top: 1px solid var(--border); text-align: center; }
#pricing .section-label,
#pricing .section-title,
#pricing .section-sub { margin-left: auto; margin-right: auto; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin: 48px auto 0; max-width: 1020px;
  text-align: left;
}

.plan {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.plan.featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(30,105,248,.08) 0%, var(--s1) 60%);
}
.plan.lifetime {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(255,183,0,.07) 0%, var(--s1) 60%);
}

.plan-badge {
  position: absolute; top: -1px; right: 24px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  padding: 4px 12px; border-radius: 0 0 8px 8px;
  text-transform: uppercase;
}
.plan.featured .plan-badge { background: var(--blue); color: #fff; }
.plan.lifetime .plan-badge { background: var(--gold); color: #000; }

.plan-name  { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.plan-price {
  font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px;
}
.plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-price .was { font-size: 18px; color: var(--muted); text-decoration: line-through; margin-right: 4px; }
.plan-desc       { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.5;
}
.plan-features li::before {
  content: "✓"; flex-shrink: 0;
  color: var(--blue); font-weight: 700; font-size: 13px; margin-top: 1px;
}
.plan-features li.pro-item::before  { content: "★"; color: var(--gold); }
.plan-features li.gold-item::before { content: "♾"; color: var(--gold); }

.plan-cta {
  display: block; text-align: center;
  margin-top: 28px; padding: 11px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: opacity .15s;
}
.plan-cta:hover { opacity: .85; }
.plan-cta.primary   { background: var(--blue); color: #fff; }
.plan-cta.gold      { background: var(--gold); color: #000; }
.plan-cta.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* Lifetime FAQ */
.lifetime-faq {
  margin: 32px auto 0;
  max-width: 1020px;
  text-align: left;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
}
.lifetime-faq h3 {
  font-size: 15px; font-weight: 700; color: var(--gold);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.lifetime-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.faq-item h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.faq-item p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── DOWNLOAD ──────────────────────────────────────────────────────────────── */
#download { border-top: 1px solid var(--border); text-align: center; }
#download .section-label,
#download .section-title,
#download .section-sub { margin-left: auto; margin-right: auto; }

.platform-grid {
  display: grid;
  /* 280px min ensures button text never wraps at 3-column layout */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin: 48px auto 0; max-width: 920px;
  text-align: left;
}

.platform-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s;
}
.platform-card:hover { border-color: #444; }

.platform-logo {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.platform-logo img { width: 100%; height: 100%; object-fit: contain; }

.platform-card h3 { font-size: 18px; font-weight: 700; }
.platform-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }

.platform-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  background: var(--s2); border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;           /* never fold onto two lines */
  transition: border-color .15s, background .15s;
}
.platform-btn:hover { border-color: var(--blue); background: rgba(30,105,248,.08); }

/* ── ICON HELPERS ──────────────────────────────────────────────────────────── */
/* .icon-w — renders a black-fill SVG as white on dark backgrounds */
.icon-w      { filter: invert(1); flex-shrink: 0; vertical-align: middle; }
img.icon     { flex-shrink: 0; vertical-align: middle; display: inline-block; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  /* on very small screens allow wrapping as a last resort */
  .platform-btn { white-space: normal; }
}
