/* ═══════════════════════════════════
   NeuroStack — Product Sales Page CSS
   Extends theme.css variables
   ═══════════════════════════════════ */

/* ── SALES HERO ── */
.sales-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.sales-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sales-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.sales-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--slate);
  margin-bottom: 20px;
}
.sales-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate-muted);
  margin-bottom: 24px;
}
.sales-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #008f7d; transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: background 0.2s;
}
.btn-ghost:hover { background: var(--bg-alt); }

/* ── FEATURES SHOWCASE ── */
.features-showcase { padding: 100px 0; background: white; }
.features-showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.screenshot-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 40px rgba(26,26,46,0.1);
  border: 1px solid var(--border);
  overflow: hidden;
}
.screenshot-header {
  background: var(--slate);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.mockup-dots span:first-child { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:last-child { background: #28C840; }
.mockup-label { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 500; letter-spacing: 0.5px; }
.screenshot-body { padding: 20px; }

.feature-icon { font-size: 40px; margin-bottom: 12px; }
.feature-text h3 { font-size: 24px; font-weight: 700; color: var(--slate); margin-bottom: 12px; }
.feature-text p { font-size: 15px; line-height: 1.7; color: var(--slate-muted); }

/* Mini elements inside screenshots */
.mini-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--slate-muted); text-transform: uppercase; margin-bottom: 6px;
}
.mini-bar { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--teal); border-radius: 99px; width: 80%; }
.mini-task {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--slate); padding: 5px 0; border-bottom: 1px solid var(--border);
}
.mini-task:last-of-type { border-bottom: none; }
.task-check { color: var(--teal); font-weight: 700; }
.task-done { color: var(--slate-muted); text-decoration: line-through; }
.priority .task-unchecked { border-color: var(--teal); }

.streak-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.streak-item:last-of-type { border-bottom: none; }
.streak-name { font-size: 13px; color: var(--slate); }
.streak-count { font-size: 12px; font-weight: 700; color: var(--teal); }

.inbox-item { font-size: 13px; color: var(--slate); padding: 6px 0; border-bottom: 1px solid var(--border); }
.inbox-item:last-of-type { border-bottom: none; }
.inbox-item.done { color: var(--slate-muted); text-decoration: line-through; }

/* ── PRICING ── */
.pricing { padding: 100px 0; background: var(--bg); }
.pricing-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.pricing-sub { font-size: 16px; color: var(--slate-muted); margin-top: -40px; margin-bottom: 56px; max-width: 560px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.pricing-card.featured { border-color: var(--teal); box-shadow: 0 4px 24px rgba(0,168,150,0.12); }
.pricing-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.pricing-tier-name { font-size: 18px; font-weight: 700; color: var(--slate); margin-bottom: 12px; }
.pricing-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.pricing-dollar { font-size: 24px; font-weight: 700; color: var(--slate); }
.pricing-num { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--slate); }
.pricing-onetime { font-size: 13px; color: var(--slate-muted); margin-left: 4px; }
.pricing-desc { font-size: 14px; color: var(--slate-muted); line-height: 1.65; margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { font-size: 14px; color: var(--slate); padding: 6px 0; }

.btn-checkout {
  width: 100%;
  background: var(--teal);
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-checkout:hover { background: #008f7d; }
.btn-checkout:disabled { background: var(--slate-muted); cursor: not-allowed; }

.pricing-note { font-size: 14px; color: var(--slate-muted); text-align: center; }
.pricing-note a { color: var(--teal); }

/* ── ABOUT THE CREATOR ── */
.about-creator {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.about-creator-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.about-creator-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 40px;
}
.about-creator-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.about-creator-photo-wrap {
  position: relative;
}
.about-creator-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(26,26,46,0.12);
  border: 3px solid var(--border);
}
.about-creator-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  color: var(--slate);
  margin-bottom: 20px;
}
.about-creator-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 6px;
}
.about-creator-credentials {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.5;
}
.about-creator-bio {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate-muted);
}

@media (max-width: 900px) {
  .about-creator-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-creator-photo-wrap {
    max-width: 240px;
  }
}

/* ── SALES CLOSING ── */
.sales-closing { padding: 100px 0; background: var(--slate); }
.sales-closing-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── SUCCESS PAGE ── */
.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: var(--bg);
}
.success-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  max-width: 560px;
  width: 100%;
  text-align: center;
}
.success-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.success-headline {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.2;
  margin-bottom: 16px;
}
.success-body { font-size: 16px; color: var(--slate-muted); line-height: 1.7; margin-bottom: 16px; }
.success-body:last-of-type { margin-bottom: 32px; }
.success-note { font-size: 13px; color: var(--slate-muted); margin-top: 24px; }
.success-note a { color: var(--teal); }

/* ═══════════════════════════════════
   RESPONSIVE — Mobile-first overrides
   ═══════════════════════════════════ */

/* ── 900px and below ── */
@media (max-width: 900px) {
  .sales-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { border-color: var(--teal); }
  .about-creator-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-creator-photo-wrap { max-width: 240px; }
}

/* ── 768px and below ── */
@media (max-width: 768px) {
  .sales-hero {
    padding: 56px 0 72px;
  }
  .sales-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 20px;
  }
  .sales-headline {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .sales-sub { font-size: 16px; }
  .sales-hero-cta { gap: 10px; }

  .btn-primary, .btn-ghost {
    font-size: 14px;
    padding: 12px 20px;
    min-height: 44px;
  }

  .features-showcase { padding: 64px 0; }
  .features-showcase-inner { padding: 0 20px; }
  .feature-row { gap: 32px; margin-bottom: 56px; }
  .feature-text h3 { font-size: 22px; }
  .feature-text p { font-size: 14px; }

  .pricing { padding: 64px 0; }
  .pricing-inner { padding: 0 20px; }
  .pricing-sub { font-size: 15px; margin-top: -32px; margin-bottom: 40px; }
  .pricing-grid { gap: 16px; }
  .pricing-card { padding: 24px 20px; }
  .pricing-num { font-size: 44px; }
  .btn-checkout {
    padding: 14px 20px;
    font-size: 14px;
    min-height: 48px;
  }
  .pricing-note { font-size: 13px; }

  .about-creator { padding: 64px 0; }
  .about-creator-inner { padding: 0 20px; }
  .about-creator-headline { font-size: 26px; }
  .about-creator-bio { font-size: 15px; }

  .sales-closing { padding: 64px 0; }
  .sales-closing-inner { padding: 0 20px; }
}

/* ── 480px and below ── */
@media (max-width: 480px) {
  .sales-hero { padding: 48px 0 60px; }
  .sales-hero-inner { padding: 0 16px; }
  .sales-headline { font-size: 30px; }
  .sales-sub { font-size: 15px; margin-bottom: 20px; }

  .features-showcase-inner { padding: 0 16px; }
  .feature-row { margin-bottom: 48px; }
  .feature-text h3 { font-size: 20px; }

  /* Constrain screenshot cards on mobile */
  .screenshot-card { max-width: 100%; }
  .screenshot-body { padding: 14px; }
  .screenshot-header { padding: 8px 12px; }
  .mini-task { font-size: 12px; padding: 4px 0; }
  .streak-item { padding: 6px 0; }
  .streak-name { font-size: 12px; }
  .streak-count { font-size: 11px; }

  .pricing-inner { padding: 0 16px; }
  .pricing-sub { padding: 0 16px; }
  .pricing-card { padding: 20px 16px; }
  .pricing-tier-name { font-size: 16px; }
  .pricing-num { font-size: 40px; }
  .pricing-desc { font-size: 13px; }
  .pricing-features li { font-size: 13px; }

  .about-creator-inner { padding: 0 16px; }
  .about-creator-label { font-size: 10px; letter-spacing: 1.5px; }
  .about-creator-headline { font-size: 22px; }
  .about-creator-name { font-size: 18px; }
  .about-creator-credentials { font-size: 12px; }
  .about-creator-bio { font-size: 14px; }
}

/* ── 320px ── */
@media (max-width: 320px) {
  .sales-headline { font-size: 26px; }
  .pricing-card { padding: 16px 14px; }
  .success-card { padding: 32px 20px; }
  .success-headline { font-size: 26px; }

  /* Hero blobs at 320px — prevent overflow */
  .sales-hero-bg { overflow: hidden; }

  /* Feature screenshot cards — constrain to viewport */
  .feature-screenshot { overflow: hidden; max-width: 100%; }
  .screenshot-card { max-width: 100%; }
}