/* ==============================================================================
   AVMARKONE — How We Run Meta & Google Ads Performance Marketing Stylesheet
   how-it-works-ads.css
   ============================================================================== */

:root {
  --ads-bg-dark: #090d16;
  --ads-surface-dark: #0f172a;
  --ads-border-dark: rgba(255, 255, 255, 0.08);
  --ads-blue: #2563eb;
  --ads-blue-glow: #3b82f6;
  --ads-cyan: #06b6d4;
  --ads-purple: #8b5cf6;
  --ads-emerald: #10b981;
  --ads-amber: #f59e0b;
  --ads-rose: #f43f5e;
  --ads-text-main: #0f172a;
  --ads-text-muted: #64748b;
  --ads-card-bg: #ffffff;
  --ads-card-border: #e2e8f0;
}

/* Page Scoped Container */
.ads-guide-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ads-text-main);
  background: #f8fafc;
  line-height: 1.6;
}

/* Hero Section */
.ads-hero {
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #090d16 100%);
  color: #ffffff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ads-hero::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
}

.ads-hero-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.ads-badge-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ads-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.ads-badge-hot {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
}

.ads-hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}

.ads-hero-title .grad-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ads-hero-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: #cbd5e1;
  max-width: 880px;
  line-height: 1.65;
  margin-bottom: 30px;
}

.ads-value-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.ads-pill-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
}

.ads-pill-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.ads-pill-text {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
}

/* Featured Visual Showcase Frame */
.ads-hero-showcase {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin-top: 20px;
}

.ads-showcase-header {
  background: #0b1120;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ads-window-dots {
  display: flex;
  gap: 6px;
}

.ads-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ads-dot-red { background: #ef4444; }
.ads-dot-yellow { background: #f59e0b; }
.ads-dot-green { background: #10b981; }

.ads-showcase-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.ads-showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

.ads-showcase-caption {
  background: #0f172a;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ads-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

/* Sections & Article Container */
.ads-section {
  padding: 70px 0;
}

.ads-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.ads-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.ads-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ads-blue);
  margin-bottom: 10px;
}

.ads-heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #0f172a;
}

.ads-subheading {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
}

/* Why Typical Agencies Burn Budget (Scam vs Protocol Cards) */
.ads-traps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.ads-trap-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ads-trap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.ads-trap-badge {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.ads-safe-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.ads-trap-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
}

.ads-trap-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* 7-Step Step-by-Step Process Timeline */
.ads-process-timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
}

.ads-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.ads-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--ads-blue), var(--ads-cyan));
}

.ads-step-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ads-step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--ads-blue);
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.ads-step-duration {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}

.ads-step-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.ads-step-lead {
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ads-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #edf2f7;
}

.ads-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
}

.ads-check-icon {
  color: #10b981;
  font-weight: 900;
  flex-shrink: 0;
}

/* Dual Engine Comparison (Google vs Meta) */
.ads-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .ads-dual-grid {
    grid-template-columns: 1fr;
  }
}

.ads-dual-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ads-dual-box.google {
  border-top: 4px solid #ea4335;
}

.ads-dual-box.meta {
  border-top: 4px solid #0081fb;
}

.ads-dual-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.ads-dual-box.google .ads-dual-badge {
  background: #fef2f2;
  color: #dc2626;
}

.ads-dual-box.meta .ads-dual-badge {
  background: #eff6ff;
  color: #2563eb;
}

.ads-dual-box h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
  color: #0f172a;
}

.ads-dual-box p {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
}

.ads-dual-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ads-dual-list li {
  font-size: 13px;
  color: #1e293b;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ads-dual-list li strong {
  color: #0f172a;
}

/* CampaignOS Live Interactive Simulator Snippet */
.cos-snippet-container {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 36px;
  color: #ffffff;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.cos-snippet-container::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cos-snippet-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
}

.cos-snippet-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cos-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.cos-control-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cos-select {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.cos-select:focus {
  border-color: #38bdf8;
}

.cos-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.cos-stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
}

.cos-stat-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
}

.cos-stat-value {
  font-size: 24px;
  font-weight: 900;
  color: #38bdf8;
}

.cos-split-bar {
  background: #1e293b;
  border-radius: 8px;
  height: 28px;
  display: flex;
  overflow: hidden;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 28px;
}

.cos-split-google {
  background: #ea4335;
  color: #ffffff;
  transition: width 0.3s;
}

.cos-split-meta {
  background: #0081fb;
  color: #ffffff;
  transition: width 0.3s;
}

.cos-snippet-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Minimalist Free Consultation Form */
.ads-form-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  padding: 80px 0;
  border-top: 1px solid #e2e8f0;
}

.ads-consult-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.08);
}

.ads-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .ads-form-grid {
    grid-template-columns: 1fr;
  }
}

.ads-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ads-field-group.full {
  grid-column: 1 / -1;
}

.ads-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.ads-input, .ads-select-form, .ads-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ads-input:focus, .ads-select-form:focus, .ads-textarea:focus {
  border-color: var(--ads-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ads-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

.ads-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(37, 99, 235, 0.45);
}

.ads-form-note {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: 14px;
}

/* 10 FAQs Section — Clean, Open Cards (Zero hidden arrows) */
.ads-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.ads-faq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ads-faq-card:hover {
  border-color: #93c5fd;
}

.ads-faq-q {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ads-faq-q-num {
  color: var(--ads-blue);
  font-size: 13px;
  font-weight: 900;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ads-faq-a {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE SUITE (iOS & Android Screen Optimizations)
   ========================================================================== */
@media (max-width: 768px) {
  .ads-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ads-btn-primary, .ads-btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 14px 20px;
    font-size: 15px;
  }
  .ads-process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ads-faq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ads-preview-grid {
    grid-template-columns: 1fr;
  }
  .ads-form-card {
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  .ads-input, .ads-select-form, .ads-textarea {
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    padding: 13px 14px;
  }
  .ads-hero h1 {
    font-size: clamp(24px, 7vw, 32px);
  }
  .ads-hero p {
    font-size: 14.5px;
  }
  .ads-dual-box {
    padding: 20px 16px;
  }
  .ads-section-title {
    font-size: 22px;
  }
  .ads-submit-btn {
    min-height: 50px;
    font-size: 16px;
  }
}
