/* ================================================
   styles.css — Amazon Listing Audit
   ================================================ */

/* ── Tokens ──────────────────────────────────── */
:root {
  --bg-deep:        #080F1C;
  --bg-card:        #0F1C2E;
  --bg-subtle:      #162338;
  --accent:         #F59E0B;
  --accent-hover:   #D97706;
  --accent-glow:    rgba(245, 158, 11, 0.15);
  --text-primary:   #F0F4F8;
  --text-secondary: #94A3B8;
  --text-muted:     #7A8DA5;
  --success:        #10B981;
  --border:         rgba(245, 158, 11, 0.15);

  --radius:     12px;
  --nav-height: 64px;
  --max-width:  1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { color: var(--accent-hover); }

ul, ol { list-style: none; }

img {
  display: block;
  max-width: 100%;
}

/* ── CTA Button ───────────────────────────────── */
.cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #080F1C;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.cta-btn:hover {
  background: var(--accent-hover);
  color: #080F1C;
  transform: translateY(-1px);
}

.cta-btn--lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.cta-btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 15, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav.scrolled {
  background: rgba(8, 15, 28, 0.94);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--nav-height);
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-mark {
  color: var(--accent);
  font-size: 0.9375rem;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ── Section Base ─────────────────────────────── */
.section {
  padding: 3rem 1rem;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Alternating section backgrounds */
.problem,
.sample,
.faq {
  background: var(--bg-subtle);
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: 4rem 1rem;
  text-align: center;
  overflow: hidden;
}

/* Subtle amber radial gradient behind the headline */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 140vw);
  height: 560px;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(245, 158, 11, 0.16) 0%,
    rgba(245, 158, 11, 0.05) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--accent-glow);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero__subhead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero__cta { margin-bottom: 1rem; }

.hero__note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Stat Grid ────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-card__figure {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-card__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Deliverables Grid ────────────────────────── */
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.deliverable-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deliverable-card__icon {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.deliverable-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.deliverable-card__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Sample Grid ──────────────────────────────── */
.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.sample-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sample-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
}

.sample-card__thumb {
  background: var(--bg-subtle);
  border-radius: 8px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sample-card__tag {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  letter-spacing: 0.06em;
}

.sample-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.sample-card__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.sample-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}

.sample-card__link:hover { color: var(--accent-hover); }

/* ── Testimonial Grid ─────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial-card__stars {
  font-size: 1.125rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.testimonial-card__quote {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: normal;
}

.testimonial-card__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── FAQ ──────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open],
.faq-item.is-open {
  border-color: rgba(245, 158, 11, 0.4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 1rem;
}

/* Remove default details marker across browsers */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

/* Chevron — points right by default, rotates on open */
.faq-question::after {
  content: '›';
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after,
.faq-item.is-open .faq-question::after {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 1.5rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Pricing ──────────────────────────────────── */
.pricing .section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pricing .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow:
    0 0 0 1px var(--border),
    0 0 48px rgba(245, 158, 11, 0.12),
    0 0 80px rgba(245, 158, 11, 0.06);
  margin-top: 2rem;
}

.pricing-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pricing-card__price {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card__currency {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-secondary);
  vertical-align: top;
  margin-top: 0.625rem;
  display: inline-block;
}

.pricing-card__cadence {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card__list {
  text-align: left;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-card__list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* Pulse animation on the pricing CTA */
.pricing-card__cta {
  animation: pulse-cta 2.6s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes pulse-cta {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  60%  { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pricing-card__note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Mobile Sticky CTA Bar ────────────────────── */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 28, 46, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-cta-bar__price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.mobile-cta-bar__btn {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Footer ───────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1rem;
  padding-bottom: calc(3rem + 72px); /* leave room for mobile CTA bar */
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer__contact {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.footer__contact a {
  color: var(--accent);
  font-weight: 600;
}

.footer__disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.65;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Scroll Reveal ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: 640px+ ───────────────────────── */
@media (min-width: 640px) {
  .nav__links { display: flex; }

  .hero { padding: 5rem 1.5rem; }

  .section { padding: 4rem 1.5rem; }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sample-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hide mobile CTA bar on tablet/desktop */
  .mobile-cta-bar { display: none; }

  .footer { padding-bottom: 3rem; }
}

/* ── Responsive: 1024px+ ──────────────────────── */
@media (min-width: 1024px) {
  .hero { padding: 6rem 2rem; }

  .section { padding: 5rem 2rem; }

  .nav__inner { padding: 0 2rem; }
}

/* ── Reduced Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta-btn { transition: none; }

  .sample-card { transition: none; }

  .pricing-card__cta { animation: none; }

  .faq-question::after { transition: none; }

  .nav { transition: none; }
}
