/* =====================================================
   CONVERSION-RATE-OPTIMIZATION.CSS — RankBoost Agency (2026)
   Extends master.css + design-system.css + growth-services.css
   Prefix: cro-
   All colors, spacing, typography via design system vars
   ===================================================== */

/* ─── HERO LAYOUT ─── */
.cro-hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--grid-gap-lg); align-items: center;
}
@media (min-width: 1024px) {
  .cro-hero-inner { grid-template-columns: 1fr 460px; }
}
.cro-hero-copy h1 {
  font-size: var(--fs-h1); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em;
  color: var(--ink); margin-top: var(--space-sm);
}
.cro-hero-copy h1 em { font-style: normal; color: var(--primary); }

/* ─── HERO DASHBOARD CARD ─── */
.cro-hero-visual { position: relative; }

.cro-dash-card {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: var(--card-pad);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cro-dash-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 90% 10%, rgba(91,71,224,0.2), transparent 60%),
    radial-gradient(ellipse 40% 40% at 5% 90%, rgba(200,255,0,0.06), transparent 60%);
  pointer-events: none;
}

.cro-dash-header {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-bottom: var(--space-md); position: relative; z-index: 1;
}
.cro-dash-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: cro-pulse 2.2s ease-in-out infinite;
}
@keyframes cro-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
.cro-dash-title {
  flex: 1; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}
.cro-dash-status {
  padding: 3px 10px; border-radius: 100px;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.2);
  color: #4ade80; font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* Funnel bars */
.cro-funnel {
  display: grid; gap: var(--space-sm);
  margin-bottom: var(--space-md); position: relative; z-index: 1;
}
.cro-funnel-step { display: grid; gap: var(--space-xs); }
.cro-funnel-bar {
  height: 10px; border-radius: 100px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.cro-funnel-fill {
  height: 100%; border-radius: 100px;
  background: var(--primary);
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.cro-funnel-fill--accent { background: var(--accent); }
.cro-funnel-meta {
  display: flex; align-items: center;
  justify-content: space-between;
}
.cro-funnel-meta span {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.4);
}
.cro-funnel-meta strong {
  font-size: 13px; font-weight: 800;
  color: rgba(255,255,255,0.8);
}

/* Metric strip */
.cro-dash-metrics {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--space-sm); margin-bottom: var(--space-sm);
  position: relative; z-index: 1;
}
.cro-dash-metric {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md); padding: 12px;
  text-align: center;
}
.cro-dash-metric strong {
  display: block; font-size: 20px; font-weight: 900;
  color: var(--accent); letter-spacing: -0.025em; line-height: 1;
}
.cro-dash-metric span {
  display: block; margin-top: var(--space-xs);
  font-size: 10.5px; font-weight: 600;
  color: rgba(255,255,255,0.4);
}

/* A/B test row */
.cro-ab-row {
  display: flex; align-items: center; gap: var(--grid-gap-sm);
  background: rgba(91,71,224,0.12);
  border: 1px solid rgba(91,71,224,0.2);
  border-radius: var(--r-md); padding: 12px 16px;
  position: relative; z-index: 1;
}
.cro-ab-badge {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0;
  letter-spacing: 0.05em;
}
.cro-ab-info { flex: 1; }
.cro-ab-info span {
  display: block; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.cro-ab-info strong {
  display: block; font-size: 12.5px; font-weight: 800;
  color: rgba(255,255,255,0.9); margin-top: 2px;
}

/* ─── CHALLENGES SECTION (dark) ─── */
.cro-challenges-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
  background: var(--ink); position: relative; overflow: hidden;
}
.cro-challenges-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 90% 10%, rgba(91,71,224,0.2), transparent 60%),
    radial-gradient(ellipse 40% 40% at 5% 85%, rgba(200,255,0,0.06), transparent 60%);
  pointer-events: none;
}
.cro-challenges-inner { position: relative; z-index: 1; }
.cro-challenges-section .eyebrow { color: var(--accent); }
.cro-challenges-section .eyebrow::before { background: var(--accent); }
.cro-challenges-section h2 { color: #fff; }
.cro-challenges-section .section-heading p { color: rgba(255,255,255,0.58); }

.cro-challenges-grid {
  display: grid; gap: var(--grid-gap-sm); margin-top: var(--heading-gap);
}
@media (min-width: 640px)  { .cro-challenges-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cro-challenges-grid { grid-template-columns: repeat(4, 1fr); } }

.cro-challenge-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl); padding: var(--card-pad);
  transition: background 200ms, border-color 200ms, transform 200ms var(--ease);
}
.cro-challenge-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,255,0,0.15);
  transform: translateY(-3px);
}
.cro-challenge-icon { font-size: 26px; margin-bottom: var(--space-sm); display: block; }
.cro-challenge-card h3 {
  font-size: 15px; font-weight: 800; color: #fff;
  letter-spacing: -0.015em; margin-bottom: var(--space-xs);
}
.cro-challenge-card p {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.72; margin-bottom: var(--space-sm);
}
.cro-challenge-fix {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.5);
  padding: 7px 11px;
  background: rgba(200,255,0,0.07);
  border: 1px solid rgba(200,255,0,0.12);
  border-radius: var(--r-sm);
}
.cro-challenge-fix span {
  color: var(--accent); font-weight: 900;
  text-transform: uppercase; font-size: 10px;
  letter-spacing: 0.07em; margin-right: var(--space-xs);
}

/* ─── SERVICES GRID ─── */
.cro-services-grid {
  display: grid; gap: var(--grid-gap-sm);
}
@media (min-width: 640px)  { .cro-services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .cro-services-grid { grid-template-columns: repeat(4, 1fr); } }

.cro-service-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--card-pad) 22px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms;
}
.cro-service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary-light);
  transition: background 200ms;
}
.cro-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91,71,224,0.18);
}
.cro-service-card:hover::before { background: var(--primary); }

.cro-service-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: var(--space-sm);
  transition: background 200ms, transform 200ms;
}
.cro-service-card:hover .cro-service-icon {
  background: var(--primary); transform: scale(1.05);
}
.cro-service-card h3 {
  font-size: 15px; font-weight: 800;
  letter-spacing: -0.015em; color: var(--ink); margin-bottom: 9px;
}
.cro-service-card p {
  font-size: 13px; color: var(--ink-muted);
  line-height: 1.72; flex: 1; margin-bottom: var(--space-sm);
}
.cro-service-list { display: grid; gap: 5px; margin-bottom: var(--space-sm); }
.cro-service-list li {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-muted);
}
.cro-service-list li::before {
  content: '→'; color: var(--primary);
  font-weight: 900; font-size: 10px; flex-shrink: 0;
}
.cro-service-tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 100px;
  background: var(--primary-light); color: var(--primary);
  font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-top: auto; align-self: flex-start;
}

/* ─── PROCESS GRID ─── */
.cro-process-grid {
  display: grid; gap: var(--space-sm); margin-top: var(--heading-gap);
}
/* process-step styles come from master.css — just lay them out */

/* ─── TOOLS GRID ─── */
.cro-tools-grid {
  display: grid; gap: var(--grid-gap-sm); margin-top: var(--heading-gap);
}
@media (min-width: 640px)  { .cro-tools-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cro-tools-grid { grid-template-columns: repeat(4, 1fr); } }

.cro-tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--card-pad);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease), box-shadow 180ms, border-color 180ms;
}
.cro-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91,71,224,0.2);
}
.cro-tool-emoji { font-size: 28px; margin-bottom: var(--space-sm); display: block; }
.cro-tool-card h3 {
  font-size: 15px; font-weight: 800;
  letter-spacing: -0.01em; margin-bottom: var(--space-xs); color: var(--ink);
}
.cro-tool-card p {
  font-size: 13px; color: var(--ink-muted);
  line-height: 1.65; margin: 0 0 12px;
}
.cro-tool-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 100px;
  background: var(--primary-light); color: var(--primary);
  font-size: 10.5px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* ─── INDUSTRIES SECTION (dark) ─── */
.cro-industries-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
  background: var(--ink); position: relative; overflow: hidden;
}
.cro-industries-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 110%, rgba(91,71,224,0.15), transparent 65%);
  pointer-events: none;
}
.cro-industries-inner { position: relative; z-index: 1; }
.cro-industries-section .eyebrow { color: var(--accent); }
.cro-industries-section .eyebrow::before { background: var(--accent); }
.cro-industries-section h2 { color: #fff; }
.cro-industries-section .section-heading p { color: rgba(255,255,255,0.58); }

.cro-industries-grid {
  display: flex; flex-wrap: wrap; gap: var(--grid-gap-sm);
  justify-content: center; margin-top: var(--space-xl);
}
.cro-industry-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  font-size: 14px; font-weight: 800; color: rgba(255,255,255,0.8);
  transition: background 180ms, border-color 180ms, transform 180ms var(--ease), color 180ms;
  cursor: default;
}
.cro-industry-chip:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(200,255,0,0.2);
  color: #fff;
  transform: translateY(-2px);
}
.cro-ind-icon { font-size: 18px; }

/* ─── WHY CHOOSE / TRUST LIST ─── */
.cro-trust-list { display: grid; gap: 0; margin-top: var(--space-lg); }
.cro-trust-item {
  display: flex; gap: var(--grid-gap-sm); align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.cro-trust-item:first-child { padding-top: 0; }
.cro-trust-item:last-child { border-bottom: none; padding-bottom: 0; }
.cro-trust-icon {
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  transition: background 200ms;
}
.cro-trust-item:hover .cro-trust-icon { background: var(--primary-light); }
.cro-trust-item h4 {
  font-size: 15px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.01em; margin-bottom: var(--space-xs);
}
.cro-trust-item p {
  font-size: 13.5px; color: var(--ink-muted);
  line-height: 1.65; margin: 0;
}

/* ─── RESULTS PANEL ─── */
.cro-results-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--card-pad);
  box-shadow: var(--shadow-md);
}
.cro-results-label {
  font-size: 11px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary); margin-bottom: var(--space-md);
}
.cro-results-list { display: grid; gap: 0; }
.cro-result-row {
  display: flex; align-items: flex-start; gap: var(--space-md);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cro-result-row:first-child { padding-top: 0; }
.cro-result-row:last-child { border-bottom: none; padding-bottom: 0; }
.cro-result-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.cro-result-row h4 {
  font-size: 14px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em; margin-bottom: 3px;
}
.cro-result-row p {
  font-size: 12.5px; color: var(--ink-muted); line-height: 1.6; margin: 0;
}

/* ─── FAQ QUICK FACTS ─── */
.cro-faq-quickfacts {
  margin-top: var(--space-lg); padding: var(--card-pad);
  background: var(--primary-light);
  border: 1px solid rgba(91,71,224,0.15);
  border-radius: var(--r-lg);
}
.cro-quickfacts-label {
  font-size: 11px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary); margin-bottom: var(--space-sm);
}

/* ─── WHY CRO MATTERS SECTION (dark) ─── */
.cro-why-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background: var(--ink);
  position: relative; overflow: hidden;
}
.cro-why-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 90% 10%, rgba(91,71,224,0.2), transparent 60%),
    radial-gradient(ellipse 40% 40% at 5% 85%, rgba(200,255,0,0.06), transparent 60%);
  pointer-events: none;
}
.cro-why-inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--grid-gap-lg); align-items: start;
}
@media (min-width: 1024px) {
  .cro-why-inner { grid-template-columns: 1fr 1fr; }
}
.cro-why-section .eyebrow { color: var(--accent); }
.cro-why-section .eyebrow::before { background: var(--accent); }
.cro-why-copy h2 {
  font-size: var(--fs-h2); font-weight: 800;
  letter-spacing: -0.03em; color: #fff;
  margin-top: var(--space-sm); line-height: 1.15;
}
.cro-why-copy > p {
  font-size: var(--fs-body-lg); color: rgba(255,255,255,0.6);
  line-height: 1.75; margin-top: var(--space-sm);
}
.cro-why-list {
  display: grid; gap: var(--space-md); margin-top: var(--space-lg);
  list-style: none; padding: 0;
}
.cro-why-list li {
  display: flex; align-items: flex-start; gap: var(--grid-gap-sm);
  font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.6;
}
.cro-why-check {
  display: inline-flex; width: 22px; height: 22px;
  align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 50%;
  background: rgba(200,255,0,0.15);
  color: var(--accent); font-size: 11px; font-weight: 900;
  margin-top: 1px;
}
.cro-why-list li strong { color: #fff; font-weight: 800; }
.cro-why-section .cta-group { margin-top: var(--space-xl); }

/* Why metrics panel */
.cro-why-metrics {
  display: grid; gap: var(--grid-gap-sm);
}
.cro-why-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg); padding: var(--card-pad) 28px;
  transition: background 200ms, border-color 200ms;
}
.cro-why-metric:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,255,0,0.15);
}
.cro-why-metric strong {
  display: block;
  font-size: 38px; font-weight: 900;
  color: var(--accent); letter-spacing: -0.04em; line-height: 1;
}
.cro-why-metric span {
  display: block; margin-top: var(--space-xs);
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.55); line-height: 1.55;
}

/* ─── COUNTERS ─── */
.cro-counter { display: inline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1023px) {
  .cro-services-grid { grid-template-columns: 1fr 1fr; }
  .cro-dash-card { padding: var(--card-pad); }
}
@media (max-width: 767px) {
  .cro-hero-inner { gap: var(--space-xl); }
  .cro-services-grid { grid-template-columns: 1fr; }
  .cro-challenges-grid { grid-template-columns: 1fr 1fr; }
  .cro-tools-grid { grid-template-columns: 1fr 1fr; }
  .cro-dash-metrics { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px) {
  .cro-challenges-grid { grid-template-columns: 1fr; }
  .cro-tools-grid { grid-template-columns: 1fr; }
  .cro-dash-metrics { grid-template-columns: 1fr 1fr; }
  .cro-dash-metrics .cro-dash-metric:last-child { display: none; }
  .cro-industries-grid { gap: var(--space-sm); }
  .cro-industry-chip { padding: 10px 16px; font-size: 13px; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .cro-dash-dot { animation: none; }
  .cro-funnel-fill { transition: none; }
}
