/* ============================================================
   GetCertLab — Main Stylesheet
   Brand: Navy #1B2A4A | Accent Blue #3B82F6 | White #FFF | Gray #F3F4F6
   Font: Inter (Google Fonts)
   Mobile-first responsive design
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1B2A4A;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #3B82F6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2563EB;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

p {
  font-size: 1rem;
  color: #374151;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-padding {
  padding: 4rem 0;
}

.text-center { text-align: center; }
.text-white { color: #FFFFFF !important; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: #3B82F6;
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #2563EB;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #3B82F6;
  border: 2px solid #3B82F6;
}

.btn-secondary:hover {
  background: #3B82F6;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-white {
  background: #FFFFFF;
  color: #1B2A4A;
}

.btn-white:hover {
  background: #F3F4F6;
  color: #1B2A4A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1B2A4A;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 1.25rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: #3B82F6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-links .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1B2A4A;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: #1B2A4A;
  padding: 5rem 1.25rem 4.5rem;
  text-align: center;
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.1rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.hero-form input[type="email"]:focus {
  border-color: #3B82F6;
}

.hero-disclaimer {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.proof-bar {
  background: #F3F4F6;
  padding: 1.25rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid #E5E7EB;
}

.proof-bar p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B2A4A;
  letter-spacing: 0.02em;
}

.proof-bar .dot {
  color: #3B82F6;
  margin: 0 0.5rem;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products {
  background: #FFFFFF;
  padding: 5rem 1.25rem;
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
  color: #1B2A4A;
}

.section-subtitle {
  text-align: center;
  color: #6B7280;
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Card */
.card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 12px 36px rgba(27, 42, 74, 0.12);
  transform: translateY(-3px);
}

.card.coming-soon {
  opacity: 0.75;
}

.card-badge {
  display: inline-block;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  width: fit-content;
}

.card-coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #F59E0B;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.card h3 {
  color: #1B2A4A;
  font-size: 1.1rem;
  line-height: 1.35;
}

.card-desc {
  color: #6B7280;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-labs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F0FDF4;
  color: #15803D;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  width: fit-content;
}

.card-labs-badge::before {
  content: "✓";
  font-weight: 800;
}

.card-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1B2A4A;
}

.card-price span {
  font-size: 0.9rem;
  color: #9CA3AF;
  font-weight: 400;
  margin-left: 0.2rem;
}

.card-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-actions .btn {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: #F3F4F6;
  padding: 5rem 1.25rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  transition: box-shadow 0.2s;
}

.step:hover {
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.08);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.step-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: #3B82F6;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  margin-bottom: 0.75rem;
}

.step h3 {
  color: #1B2A4A;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.step p {
  font-size: 0.9rem;
  color: #6B7280;
}

/* ============================================================
   WHY GETCERTLAB
   ============================================================ */
.why {
  background: #FFFFFF;
  padding: 5rem 1.25rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.why-item {
  padding: 2rem;
  border-left: 4px solid #3B82F6;
  background: #F8FAFF;
  border-radius: 0 8px 8px 0;
}

.why-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.why-item h3 {
  color: #1B2A4A;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.why-item p {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.65;
}

/* ============================================================
   EMAIL CAPTURE (BOTTOM CTA)
   ============================================================ */
.cta-section {
  background: #1B2A4A;
  padding: 5rem 1.25rem;
  text-align: center;
}

.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #111827;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-brand span {
  color: #3B82F6;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* ============================================================
   MODAL (Email Capture)
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9CA3AF;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: #1B2A4A; }

.modal h3 {
  color: #1B2A4A;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.modal p {
  color: #6B7280;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-form input[type="email"] {
  padding: 0.85rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.modal-form input[type="email"]:focus {
  border-color: #3B82F6;
}

.modal-disclaimer {
  font-size: 0.75rem !important;
  color: #9CA3AF !important;
  text-align: center;
  margin-bottom: 0 !important;
}

/* ============================================================
   FORM SUCCESS STATE
   ============================================================ */
.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
}

.form-success.show { display: block; }

.form-success .checkmark {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.form-success h4 {
  color: #1B2A4A;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: #6B7280;
  font-size: 0.9rem;
}

/* ============================================================
   PRODUCT PAGE STYLES
   ============================================================ */
.product-hero {
  background: #1B2A4A;
  padding: 5rem 1.25rem 4rem;
}

.product-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 640px) {
  .product-hero-inner {
    grid-template-columns: 1fr;
  }
}

.product-hero-content .cert-label {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.product-hero-content h1 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.product-hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.trust-signals {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.trust-badge::before {
  content: "✓";
  color: #34D399;
  font-weight: 800;
}

.product-hero-cta {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 2rem;
  min-width: 260px;
  text-align: center;
}

.product-hero-cta .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.product-hero-cta .price-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.product-hero-cta .btn {
  margin-bottom: 0.75rem;
}

/* What's Inside */
.labs-section {
  padding: 5rem 1.25rem;
  background: #FFFFFF;
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.lab-item {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lab-item:hover {
  border-color: #3B82F6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.lab-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: #3B82F6;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lab-info h4 {
  color: #1B2A4A;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.lab-info p {
  color: #6B7280;
  font-size: 0.83rem;
  line-height: 1.5;
}

/* Who This Is For */
.for-section {
  background: #F3F4F6;
  padding: 5rem 1.25rem;
}

.for-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.for-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #374151;
}

.for-list li::before {
  content: "→";
  color: #3B82F6;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Free Sample section on product page */
.free-sample-section {
  background: #1B2A4A;
  padding: 4rem 1.25rem;
  text-align: center;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thankyou-hero {
  background: #1B2A4A;
  padding: 6rem 1.25rem 5rem;
  text-align: center;
}

.thankyou-hero .checkmark-circle {
  width: 80px;
  height: 80px;
  background: #3B82F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
}

.thankyou-hero h1 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.thankyou-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.counter-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  background: rgba(255,255,255,0.07);
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  margin-top: 1.5rem;
}

.counter-display .count-number {
  color: #3B82F6;
  font-weight: 700;
  font-size: 1rem;
}

.upsell-section {
  padding: 5rem 1.25rem;
  background: #F3F4F6;
}

.upsell-card {
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .hero-form {
    flex-direction: column;
  }

  .hero-form input[type="email"] {
    width: 100%;
    min-width: unset;
  }

  .products {
    padding: 3rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .product-hero-cta {
    min-width: unset;
    width: 100%;
  }

  .trust-signals {
    gap: 0.5rem;
  }

  .section-padding {
    padding: 2.5rem 0;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: #6B7280;
  margin-top: 0.75rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-align: center;
}
