/* ============================================================
   VERIQO AI — DESIGN SYSTEM
   Global tokens, typography, layout utilities
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Colors */
  --color-navy: #0A1628;
  --color-navy-mid: #0F2040;
  --color-navy-light: #1A3055;
  --color-blue: #2563EB;
  --color-blue-light: #3B82F6;
  --color-blue-glow: rgba(37, 99, 235, 0.15);
  --color-gold: #C9A84C;
  --color-gold-light: #E8C97A;
  --color-white: #FFFFFF;
  --color-off-white: #F8F9FA;
  --color-grey-100: #F1F3F5;
  --color-grey-200: #E9ECEF;
  --color-grey-400: #ADB5BD;
  --color-grey-600: #6C757D;
  --color-grey-800: #343A40;
  --color-text-dark: #0A1628;
  --color-text-body: #2D3748;
  --color-text-muted: #6C757D;
  --color-success: #10B981;
  --color-border: rgba(255, 255, 255, 0.10);
  --color-border-light: rgba(10, 22, 40, 0.10);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-blue: 0 4px 24px rgba(37, 99, 235, 0.30);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Max Widths */
  --max-w-sm: 640px;
  --max-w-md: 768px;
  --max-w-lg: 1024px;
  --max-w-xl: 1200px;
  --max-w-2xl: 1400px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  /* prevent horizontal scroll globally */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ── Typography ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--text-4xl));
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
}

.featured-resource-content .display-md {
  text-align: left;
}

.heading-lg {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.5vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.3;
}

.heading-md {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, var(--text-2xl));
  font-weight: 600;
  line-height: 1.35;
}

.heading-sm {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-size: var(--text-lg);
  line-height: 1.75;
}

.body-md {
  font-size: var(--text-base);
  line-height: 1.7;
}

.body-sm {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  width: 100%;
  max-width: var(--max-w-2xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-20) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* ── Colors ── */
.bg-navy {
  background: var(--color-navy);
}

.bg-navy-mid {
  background: var(--color-navy-mid);
}

.bg-off-white {
  background: var(--color-off-white);
}

.bg-white {
  background: var(--color-white);
}

.text-white {
  color: var(--color-white);
}

.text-navy {
  color: var(--color-navy);
}

.text-blue {
  color: var(--color-blue);
}

.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-base);
  white-space: nowrap;
  min-height: 48px;
  text-decoration: none !important;
}

.btn:hover,
a.btn:hover,
.btn:focus,
.btn:active,
a.btn:focus,
a.btn:active {
  text-decoration: none !important;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--color-blue-light) !important;
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.40);
  border-color: var(--color-blue-light) !important;
  color: var(--color-white) !important;
  text-decoration: none !important;
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--color-gold-light) !important;
  transform: translateY(-1px);
  border-color: var(--color-gold-light) !important;
  color: var(--color-navy) !important;
  text-decoration: none !important;
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  text-decoration: none !important;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.60) !important;
  color: var(--color-white) !important;
  text-decoration: none !important;
}

.btn-outline-navy {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}

.btn-outline-navy:hover {
  background: var(--color-navy) !important;
  color: var(--color-white) !important;
  border-color: var(--color-navy) !important;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
  min-height: 56px;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  min-height: 40px;
}

/* ── Cards ── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-dark {
  background: var(--color-navy-mid);
  border: 1px solid var(--color-border);
  color: var(--color-white);
}

.card-dark:hover {
  background: var(--color-navy-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
}

/* ── Trust Bar ── */
.trust-bar {
  background: var(--color-navy-mid);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}

.trust-bar-item svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.trust-bar-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  flex-shrink: 0;
}

.audience-card .check-list {
  padding: 0;
}

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-label-blue {
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-blue);
  border: 1px solid rgba(37, 99, 235, 0.20);
}

.section-label-gold {
  background: rgba(201, 168, 76, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.20);
}

.section-label-white {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Check List ── */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
}

.check-item span {
  color: var(--color-text-body);
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon svg {
  width: 11px;
  height: 11px;
  color: white;
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-blue);
  border-radius: 2px;
  margin: var(--space-4) 0;
}

.divider-gold {
  background: var(--color-gold);
}

.divider-center {
  margin: var(--space-4) auto;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-blue {
  background: var(--color-blue);
  color: white;
}

.badge-gold {
  background: var(--color-gold);
  color: var(--color-navy);
}

.badge-outline {
  border: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
}

/* ── Comparison Table ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
}

.comparison-table th {
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-grey-100);
}

.comparison-table .col-veriqo {
  background: rgba(37, 99, 235, 0.04);
  font-weight: 600;
  color: var(--color-navy);
}

.comparison-table .col-veriqo th {
  background: var(--color-blue);
  color: white;
}

.comparison-table td.highlight {
  color: var(--color-blue);
  font-weight: 600;
}

.comparison-table td.muted {
  color: var(--color-text-muted);
}

/* ── FAQ Accordion ── */
.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: left;
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-blue);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.open .faq-icon {
  background: var(--color-blue);
  border-color: var(--color-blue);
  transform: rotate(45deg);
}

.faq-item.open .faq-icon svg {
  color: white;
}

.faq-answer {
  display: none;
  padding-bottom: var(--space-5);
  color: var(--color-text-body);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease both;
}

.animate-fade {
  animation: fadeIn 0.5s ease both;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
  section {
    padding: var(--space-20) 0;
  }
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  section {
    padding: var(--space-16) 0;
  }
}

@media (max-width: 768px) {

  .container,
  .container-wide {
    padding: 0 var(--space-4);
  }

  .section,
  .section-sm {
    padding: var(--space-10) 0;
  }

  .section-lg {
    padding: var(--space-16) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .trust-bar-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hide-mobile {
    display: none !important;
  }

  /* Comparison table — horizontal scroll on mobile */
  .comparison-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 540px;
  }
}

@media (max-width: 480px) {
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-base);
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* SweetAlert Overrides for Dark Popup (Bypass legacy custom.css) */
.swal-dark-popup .swal2-confirm.swal2-styled,
.swal-dark-popup .swal2-cancel.swal2-styled {
  background-image: none !important;
}

.swal-dark-popup .swal2-confirm.swal2-styled::before,
.swal-dark-popup .swal2-confirm.swal2-styled::after,
.swal-dark-popup .swal2-cancel.swal2-styled::before,
.swal-dark-popup .swal2-cancel.swal2-styled::after {
  display: none !important;
}

.swal-dark-popup .swal2-confirm.swal2-styled {
  background-color: #d33 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0.25em !important;
  font-weight: 500 !important;
}

.swal-dark-popup .swal2-cancel.swal2-styled {
  background-color: #3085d6 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0.25em !important;
  font-weight: 500 !important;
}