/* PostureIQ — Mobile-First CSS | Indigo Theme #4f46e5 */

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

:root {
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --indigo-light: #eef2ff;
  --indigo-mid: #818cf8;
  --gold: #f59e0b;
  --text: #1a1a2e;
  --muted: #6b7280;
  --white: #ffffff;
  --bg: #fafafa;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(79,70,229,0.12);
  --shadow-lg: 0 8px 40px rgba(79,70,229,0.2);
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-logo { font-size: 1.25rem; font-weight: 800; color: var(--indigo); letter-spacing: -0.5px; }
.header-logo span { color: var(--text); }
.header-trust { font-size: 0.72rem; color: var(--muted); text-align: right; line-height: 1.3; }
.header-trust strong { color: var(--indigo); display: block; }
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fef3c7; color: #92400e;
  border-radius: 20px; padding: 3px 10px;
  font-size: 0.7rem; font-weight: 700;
}
.live-badge::before { content: ''; width: 7px; height: 7px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* HERO */
.hero {
  background: linear-gradient(160deg, #eef2ff 0%, #e0e7ff 60%, var(--white) 100%);
  padding: 32px 16px 40px;
  text-align: center;
}
.as-seen-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: var(--white);
  border-radius: 20px; padding: 5px 14px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 1.75rem; font-weight: 900; line-height: 1.2;
  color: var(--text); margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--indigo); }
.hero-sub {
  font-size: 1rem; color: var(--muted);
  margin-bottom: 24px; max-width: 340px; margin-left: auto; margin-right: auto;
}
.hero-img-wrap {
  position: relative; display: inline-block;
  margin-bottom: 24px;
}
.hero-img {
  width: 100%; max-width: 320px; height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block; margin: 0 auto;
}
.hero-img-badge {
  position: absolute; bottom: -10px; right: -10px;
  background: var(--indigo); color: var(--white);
  border-radius: 50%; width: 64px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 800; line-height: 1.2; text-align: center;
  box-shadow: 0 4px 16px rgba(79,70,229,0.35);
}
.price-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.price-current { font-size: 2rem; font-weight: 900; color: var(--indigo); }
.price-old { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
.price-save { font-size: 0.72rem; background: #dcfce7; color: #166534; border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.free-ship { font-size: 0.78rem; color: #059669; font-weight: 600; margin-bottom: 20px; }
.cta-btn {
  display: block; width: 100%; max-width: 360px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: var(--white); border: none; border-radius: 50px;
  padding: 17px 24px; font-size: 1.05rem; font-weight: 800;
  cursor: pointer; text-decoration: none; text-align: center;
  box-shadow: 0 6px 24px rgba(79,70,229,0.38);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.2px;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(79,70,229,0.45); }
.cta-btn:active { transform: translateY(0); }
.cta-btn.loading { opacity: 0.7; pointer-events: none; }
.hero-sub-copy {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-size: 0.72rem; color: var(--muted);
}
.hero-sub-copy span { display: flex; align-items: center; gap: 4px; }

/* SOCIAL PROOF STRIP */
.proof-strip {
  background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; overflow-x: auto; padding: 16px;
  gap: 0; scrollbar-width: none;
}
.proof-strip::-webkit-scrollbar { display: none; }
.proof-item {
  flex: 1; min-width: 110px; text-align: center;
  padding: 0 12px; border-right: 1px solid var(--border);
}
.proof-item:last-child { border-right: none; }
.proof-num { font-size: 1.2rem; font-weight: 900; color: var(--indigo); display: block; }
.proof-label { font-size: 0.68rem; color: var(--muted); font-weight: 500; }

/* DEMO FLOW BAR */
.demo-bar {
  background: linear-gradient(135deg, #0f0f1a, #1a1560);
  color: var(--white); padding: 24px 16px; text-align: center;
}
.demo-bar-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--indigo-mid); margin-bottom: 16px; font-weight: 700; }
.demo-steps { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.demo-step { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.demo-icon { font-size: 1.5rem; }
.demo-label { font-size: 0.7rem; color: #c7d2fe; font-weight: 600; max-width: 70px; line-height: 1.3; }
.demo-arrow { color: var(--indigo-mid); font-size: 1.1rem; font-weight: 300; margin-top: -10px; }

/* SECTION COMMON */
.section { padding: 40px 16px; }
.section-title { font-size: 1.4rem; font-weight: 900; text-align: center; margin-bottom: 8px; letter-spacing: -0.3px; }
.section-sub { font-size: 0.9rem; color: var(--muted); text-align: center; margin-bottom: 28px; }

/* BENEFITS GRID */
.benefits { background: var(--white); }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.benefit-card {
  background: var(--indigo-light); border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
}
.benefit-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.benefit-title { font-size: 0.9rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.benefit-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* TIKTOK DARK BAR */
.tiktok-bar {
  background: linear-gradient(135deg, #0f0f1a, #1a1560);
  color: var(--white); padding: 32px 16px; text-align: center;
}
.tiktok-num { font-size: 2.2rem; font-weight: 900; color: var(--indigo-mid); }
.tiktok-label { font-size: 0.8rem; color: #a5b4fc; margin-bottom: 16px; }
.tiktok-quote {
  font-size: 0.95rem; font-style: italic; color: #e5e7eb;
  max-width: 320px; margin: 0 auto; line-height: 1.6;
}
.tiktok-quote cite { font-style: normal; font-size: 0.75rem; color: var(--indigo-mid); display: block; margin-top: 8px; }

/* HOW IT WORKS */
.how { background: var(--indigo-light); }
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--indigo); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem;
}
.step-title { font-weight: 800; font-size: 0.95rem; margin-bottom: 3px; }
.step-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

/* REVIEWS */
.reviews { background: var(--white); }
.reviews-grid { display: flex; flex-direction: column; gap: 14px; }
.review-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-mid));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.88rem; }
.review-verified { font-size: 0.65rem; color: #059669; font-weight: 600; }
.review-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 8px; }
.review-text { font-size: 0.83rem; color: var(--text); line-height: 1.5; }
.review-tag { display: inline-block; margin-top: 8px; background: var(--indigo-light); color: var(--indigo-dark); border-radius: 20px; padding: 2px 10px; font-size: 0.65rem; font-weight: 700; }

/* FAQ */
.faq { background: var(--bg); }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.faq-q {
  width: 100%; text-align: left; padding: 15px 16px;
  background: none; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.88rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.faq-q .arrow { font-size: 0.75rem; color: var(--indigo); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a {
  display: none; padding: 0 16px 15px;
  font-size: 0.82rem; color: var(--muted); line-height: 1.6;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-a { display: block; padding-top: 12px; }

/* FINAL CTA */
.final-cta {
  background: linear-gradient(160deg, #1a1560, #2e27a8);
  color: var(--white); padding: 40px 16px; text-align: center;
}
.urgency-bar {
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px; padding: 8px 14px; margin-bottom: 20px;
  font-size: 0.75rem; color: #fde68a; font-weight: 600;
}
.final-cta h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; line-height: 1.25; }
.final-cta .ship-note { font-size: 0.75rem; color: #a5b4fc; margin-bottom: 24px; }
.cta-btn-light {
  display: block; width: 100%; max-width: 360px; margin: 0 auto 20px;
  background: var(--white); color: var(--indigo);
  border: none; border-radius: 50px;
  padding: 17px 24px; font-size: 1.05rem; font-weight: 800;
  cursor: pointer; text-decoration: none; text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.cta-btn-light:hover { transform: translateY(-2px); }
.cta-btn-light.loading { opacity: 0.7; pointer-events: none; }
.guarantee-badges { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.g-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.65rem; color: #a5b4fc; }
.g-badge span { font-size: 1.4rem; }

/* FOOTER */
.footer {
  background: #0f0f1a; color: #6b7280;
  padding: 24px 16px; text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: #9ca3af; text-decoration: none; font-size: 0.75rem; }
.footer-links a:hover { color: var(--white); }
.footer-pay { font-size: 1.2rem; margin-bottom: 12px; letter-spacing: 3px; }
.footer-disclaimer { font-size: 0.65rem; line-height: 1.5; max-width: 480px; margin: 0 auto; color: #4b5563; }
.footer-copy { margin-top: 10px; font-size: 0.65rem; color: #374151; }

/* DESKTOP */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .steps { flex-direction: row; }
  .step { flex-direction: column; text-align: center; }
  .step-num { margin: 0 auto; }
  .proof-strip { justify-content: center; }
  .demo-steps { gap: 12px; }
}
