/* ===================================================================
   ApexCPA - Global Performance Marketing & Affiliate Network
   Humanized, Clean, Professional White & Corporate Blue Theme
   =================================================================== */

:root {
  /* Color System - Clean Light Theme */
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #2563eb;

  --blue-primary: #1d4ed8;
  --blue-hover: #1e40af;
  --blue-light: #eff6ff;
  --blue-subtle: #dbeafe;
  --blue-text: #1d4ed8;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --accent-green: #16a34a;
  --accent-green-bg: #f0fdf4;
  --accent-amber: #d97706;
  --accent-amber-bg: #fffbeb;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 25px -5px rgba(0, 0, 0, 0.04);

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s ease;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-blue { color: var(--blue-primary) !important; }
.text-green { color: var(--accent-green) !important; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* Top Announcement Bar */
.announcement-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-tag {
  background: var(--blue-light);
  color: var(--blue-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.announcement-link {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text-main);
}

.logo-title .highlight {
  color: var(--blue-primary);
}

.logo-tagline {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--blue-primary);
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.btn-outline-sm {
  background: #ffffff;
  color: var(--blue-primary);
  border: 1px solid var(--border-medium);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-sm:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-light);
  padding: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.close-drawer {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

/* HERO SECTION (Clean, Humanized, White Background) */
.hero-section {
  padding: 70px 0 60px;
  background: #ffffff;
}

.hero-header {
  max-width: 820px;
  margin: 0 auto 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue-primary);
  border: 1px solid var(--blue-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.hero-dashboard-frame {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.browser-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-dots span:nth-child(1) { background: #f87171; }
.browser-dots span:nth-child(2) { background: #fbbf24; }
.browser-dots span:nth-child(3) { background: #4ade80; }

.browser-address {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 3px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 260px;
}

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

/* METRICS STRIP (Minimal, Line Dividers) */
.metrics-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.metrics-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.metric-block {
  text-align: center;
}

.metric-divider {
  width: 1px;
  height: 50px;
  background: var(--border-light);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.metric-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* SECTION COMMONS */
section {
  padding: 84px 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 44px;
}

.sub-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--blue-primary);
  margin-bottom: 10px;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-heading p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TWO PILLARS: PUBLISHERS & ADVERTISERS (Clean Editorial Split) */
.tab-control-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.tab-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.tab-pill.active {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
}

.path-view {
  display: none;
}

.path-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.editorial-split {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.pillar-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--blue-primary);
}

.split-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 10px 0 16px;
  line-height: 1.3;
}

.split-info > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.check-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.split-stats-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.panel-header h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.panel-header span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.benchmark-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benchmark-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 12px;
}

.benchmark-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.b-title {
  color: var(--text-secondary);
}

/* OFFERS SECTION (Clean Humanized Table) */
.offers-section {
  background: #ffffff;
}

.marketplace-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.cat-pill:hover {
  border-color: var(--border-medium);
  color: var(--text-main);
}

.cat-pill.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.search-box input {
  min-width: 280px;
  padding: 9px 16px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.offers-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.offers-table th {
  background: var(--bg-surface);
  padding: 14px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.offers-table td {
  padding: 16px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.offers-table tr:last-child td {
  border-bottom: none;
}

.offers-table tr:hover td {
  background: #fafafa;
}

.offer-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.offer-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.offer-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}

.offer-badge.hot { background: #fee2e2; color: #dc2626; }
.offer-badge.exclusive { background: #e0f2fe; color: #0284c7; }
.offer-badge.top { background: #fef3c7; color: #d97706; }

.table-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.table-tag.nutra { background: #dcfce7; color: #15803d; }
.table-tag.finance { background: #fef9c3; color: #a16207; }
.table-tag.ecom { background: #e0e7ff; color: #4338ca; }
.table-tag.sweeps { background: #f3e8ff; color: #7e22ce; }
.table-tag.software { background: #e0f2fe; color: #0369a1; }

.payout-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.epc-val {
  font-weight: 600;
  color: var(--text-secondary);
}

.table-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CALCULATOR SECTION */
.calculator-section {
  background: var(--bg-surface);
}

.calculator-container {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.calc-header {
  margin-bottom: 36px;
}

.calc-header h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.calc-workspace {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.form-group-calc {
  margin-bottom: 24px;
}

.calc-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.form-select-clean {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
}

.form-select-clean:focus {
  border-color: var(--blue-primary);
}

.slider-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-display-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.clean-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
}

.clean-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-primary);
  cursor: pointer;
}

.slider-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.calc-output-display {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.output-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--blue-primary);
}

.output-headline {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin: 6px 0 2px;
}

.output-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.output-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
  text-align: left;
}

.matrix-cell {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.m-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.m-val {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* WHY APEX (Editorial 3-Column Grid) */
.solutions-section {
  background: #ffffff;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.solution-column {
  position: relative;
}

.solution-number {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-primary);
  margin-bottom: 8px;
}

.solution-column h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.solution-column p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* REVIEWS (Clean Quotes, Not Cluttered Cards) */
.reviews-section {
  background: var(--bg-surface);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.quote-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-stars {
  color: #f59e0b;
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.quote-body {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.author-avatar.avatar-blue { background: #0284c7; }
.author-avatar.avatar-gray { background: #475569; }

.quote-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.quote-author span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FAQ (Clean Border-Bottom Accordion) */
.faq-section {
  background: #ffffff;
}

.faq-container {
  max-width: 800px;
}

.faq-list {
  border-top: 1px solid var(--border-light);
}

.faq-entry {
  border-bottom: 1px solid var(--border-light);
}

.faq-header-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-header-btn:hover {
  color: var(--blue-primary);
}

.faq-indicator {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.faq-entry.active .faq-indicator {
  transform: rotate(45deg);
  color: var(--blue-primary);
}

.faq-body-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-entry.active .faq-body-text {
  max-height: 200px;
  padding-bottom: 20px;
}

/* CTA STRIP */
.cta-strip {
  background: var(--blue-primary);
  color: #ffffff;
  padding: 70px 0;
}

.cta-strip h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-strip p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.cta-strip .btn-primary {
  background: #ffffff;
  color: var(--blue-primary);
}

.cta-strip .btn-primary:hover {
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.cta-strip .btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-strip .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* FOOTER */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.f-col h5 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.f-col a:hover {
  color: var(--blue-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 10px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--text-main);
}

/* ===================================================================
   CLEAN AUTH MODAL (LOGIN & SIGN UP)
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  transform: translateY(14px);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.modal-tab-btn {
  background: transparent;
  border: none;
  padding: 16px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.modal-tab-btn.active {
  color: var(--blue-primary);
  border-bottom-color: var(--blue-primary);
  background: #ffffff;
}

.modal-body {
  padding: 32px;
}

.modal-header-text {
  text-align: center;
  margin-bottom: 22px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Role Selector Radios */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.role-option input[type="radio"] {
  display: none;
}

.role-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.role-option input[type="radio"]:checked + .role-card {
  background: var(--blue-light);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

/* Modal Inputs */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-input, .form-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-help {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.form-checkbox-group {
  margin: 16px 0 20px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.custom-checkbox a {
  color: var(--blue-primary);
  text-decoration: none;
}

.forgot-link {
  font-size: 0.8rem;
  color: var(--blue-primary);
  text-decoration: none;
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* SUCCESS SCREEN (Requested exact user feedback) */
.signup-success-view {
  text-align: center;
  padding: 8px 0;
  animation: fadeIn 0.3s ease;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  border: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.success-alert-box {
  background: var(--accent-green-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.success-primary-message {
  color: #15803d;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.success-details-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.application-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  text-align: left;
}

.app-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-summary-row span {
  color: var(--text-muted);
}

.status-pill-pending {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.login-feedback-box {
  margin-top: 14px;
  background: var(--blue-light);
  border: 1px solid var(--blue-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.85rem;
  color: var(--blue-primary);
  text-align: center;
}

/* ===================================================================
   RESPONSIVENESS
   =================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .editorial-split {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

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

  .quotes-grid {
    grid-template-columns: 1fr;
  }

  .calc-workspace {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .metrics-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .metric-divider {
    display: none;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-body {
    padding: 24px 20px;
  }

  .calculator-container {
    padding: 28px 20px;
  }

  .marketplace-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box input {
    width: 100%;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
