/* ===== CSS Custom Properties ===== */
:root {
  --color-primary: #1d4ed8;
  --color-primary-hover: #1e40af;
  --color-accent: #059669;
  --color-accent-bg: #ecfdf5;
  --color-bg: #f3f4f6;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;
  --color-tag-bg: #f3f4f6;
  --color-footer-bg: #1f2937;
  --color-footer-text: #d1d5db;
  --color-heading: #111827;
  --color-text-light: #4b5563;
  --color-primary-light: #3b82f6;
  --color-primary-lighter: #93bbfd;
  --color-primary-dark: #1e3a5f;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-dropdown: 0 10px 25px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== Shared Feedback Colors ===== */
.feedback-msg--success,
.auth-feedback--success,
.contact-feedback--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.feedback-msg--error,
.auth-feedback--error,
.contact-feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-size: 14px;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--outline:hover {
  background: rgba(26, 86, 219, 0.05);
  text-decoration: none;
}

.btn--sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo:hover {
  text-decoration: none;
}

.main-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-tag-bg);
  text-decoration: none;
}

.nav-link .chevron {
  font-size: 10px;
  transition: transform var(--transition);
}

.has-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text-secondary);
  font-size: 14px;
  transition: all var(--transition);
}

.dropdown-menu li a:hover {
  background: var(--color-tag-bg);
  color: var(--color-text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hide auth-dependent header actions until checkSession() resolves, so signed-in
   users never see a flash of "Sign Up Free". visibility (not display) keeps the
   cluster's footprint, so the header bar does not reflow when revealed. */
body.auth-pending .header-actions {
  visibility: hidden;
}

/* Pre-paint route guard: hides the default-visible catalog view on non-/catalog
   entry paths until the router picks the right view (set by an inline <head>
   script in index.html; cleared in hideAllViews(), 4s safety net in index.html). */
html.route-pending #catalogView {
  display: none;
}

.header-signin-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.header-signin-link:hover {
  color: var(--color-primary);
}

.mobile-auth-link {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 32px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Search Hero ===== */
.search-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0 40px;
  text-align: center;
}

.search-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.search-subtitle {
  color: var(--color-text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
}

.search-bar {
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 auto 24px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.search-bar:focus-within {
  border-color: var(--color-primary);
}

.search-icon {
  margin-left: 16px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 12px;
  font-size: 15px;
  background: transparent;
  color: var(--color-text);
}

.search-bar input::placeholder {
  color: var(--color-text-tertiary);
}

.search-bar .btn {
  margin: 4px;
  border-radius: var(--radius-md);
}

/* Wrapper so the typeahead dropdown can escape .search-bar's overflow:hidden */
.search-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto 24px;
}

.search-wrap .search-bar {
  max-width: none;
  margin: 0;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  text-align: left;
  z-index: 50;
  overflow: hidden;
}

.search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.search-suggestion:hover,
.search-suggestion.is-active {
  background: var(--color-tag-bg);
}

.search-suggestion__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion__type {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.search-suggestion mark,
.dataset-card__title mark,
.dataset-card__description mark {
  background: rgba(250, 204, 21, 0.4);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.category-pill {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-tag-bg);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.category-pill:hover,
.category-pill.active {
  color: var(--color-primary);
  background: rgba(26, 86, 219, 0.08);
  border-color: var(--color-primary);
}

a.category-pill {
  text-decoration: none;
}

/* ===== Mega menu (Datasets nav) ===== */
/* Compact dropdown anchored under the "Datasets" nav item. Desktop: opens on
   hover/focus-within (CSS-only, so it works on static pages without app JS).
   Mobile (<=768px): becomes a tap-to-open accordion inside the hamburger nav. */
.nav-item.has-mega {
  position: relative;
}

.has-mega .nav-link .chevron {
  font-size: 14px;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease, visibility 0s linear 0.25s;
  z-index: 99;
}

/* Invisible bridge over the gap between the nav link and the panel, so the
   pointer can travel down without the menu closing */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s, 0s;
}

.mega-menu__inner {
  padding: 14px 16px 16px;
}

.mega-menu__title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 10px;
}

.mega-menu__all {
  display: inline-block;
  margin-top: 10px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.mega-menu__all:hover {
  text-decoration: underline;
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-menu__grid a {
  display: block;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.mega-menu__grid a:hover {
  background: var(--color-tag-bg);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .mega-menu {
    position: static;
    display: none;
    visibility: visible;
    opacity: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
  }

  .mega-menu::before {
    display: none;
  }

  .has-mega.open .mega-menu {
    display: block;
  }

  .mega-menu__inner {
    padding: 2px 12px 10px;
  }
}

/* ===== Category landing pages (category/<slug>.html) ===== */
.category-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0 32px;
  text-align: center;
}

.category-hero h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.category-hero__intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.demand-capture {
  text-align: center;
  padding: 44px 0;
  border-top: 1px solid var(--color-border-light);
}

.demand-capture h2 {
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.demand-capture p {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 18px;
}

.demand-capture .btn {
  margin: 0 6px;
}

.category-siblings {
  padding: 8px 0 48px;
  text-align: center;
}

.category-siblings h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.empty-state__hint {
  margin-top: 20px;
}

.empty-state .btn {
  margin: 6px 4px 0;
}

/* ===== Main Layout ===== */
.main-content {
  padding: 28px 0 60px;
}

.main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  grid-column: 1 / -1;
}

.filter-count-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

/* ===== Sidebar ===== */
.sidebar-overlay {
  display: none;
}

.filters-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.filters-header h2 {
  font-size: 15px;
  font-weight: 600;
}

.clear-all-btn {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

.clear-all-btn:hover {
  text-decoration: underline;
}

.sidebar-close-btn {
  display: none;
  font-size: 22px;
  color: var(--color-text-secondary);
  padding: 0 4px;
}

/* Filter Sections */
.filter-section {
  border-bottom: 1px solid var(--color-border);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
}

.filter-section__toggle .chevron {
  font-size: 10px;
  transition: transform var(--transition);
  color: var(--color-text-tertiary);
}

.filter-section.is-collapsed .filter-section__toggle .chevron {
  transform: rotate(-90deg);
}

.filter-badge {
  display: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(26, 86, 219, 0.1);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  text-transform: none;
  letter-spacing: 0;
}

.filter-badge.visible {
  display: inline-block;
}

.filter-section__body {
  padding: 0 20px 16px;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.filter-section.is-collapsed .filter-section__body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.filter-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color var(--transition);
}

.filter-search:focus {
  border-color: var(--color-primary);
}

.filter-list {
  max-height: 240px;
  overflow-y: auto;
}

.filter-list::-webkit-scrollbar {
  width: 4px;
}

.filter-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.filter-list li {
  margin-bottom: 2px;
}

.filter-list li.hidden-by-search {
  display: none;
}

.filter-list li.hidden-by-more {
  display: none;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.filter-list label:hover {
  color: var(--color-text);
  background: var(--color-tag-bg);
}

.filter-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.filter-option-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-count {
  font-size: 11px;
  color: var(--color-text-tertiary);
  background: var(--color-tag-bg);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.filter-list li.is-zero label {
  opacity: 0.45;
  cursor: default;
}

.show-more-btn {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
  padding: 6px 0;
  margin-top: 4px;
}

.show-more-btn:hover {
  text-decoration: underline;
}

/* ===== Results Area ===== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.results-sort select {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Grid/List view toggle */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  background: var(--color-surface);
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: all var(--transition);
}

.view-toggle__btn + .view-toggle__btn {
  border-left: 1px solid var(--color-border);
}

.view-toggle__btn:hover {
  color: var(--color-text);
  background: var(--color-tag-bg);
}

.view-toggle__btn.is-active {
  color: var(--color-primary);
  background: rgba(26, 86, 219, 0.08);
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.results-area {
  min-width: 0;
  overflow: hidden;
}

/* ===== Dataset Card ===== */
.dataset-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.dataset-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #d1d5db;
}

.dataset-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.dataset-card__category {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-tag-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.dataset-card__sample-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.dataset-card__sample-badge--premium {
  color: var(--color-primary);
  background: #e8f0fe;
}

.dataset-card__csv-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Badges cluster left next to the category; the heart anchors right */
.dataset-card__header .favorite-btn {
  margin-left: auto;
}

.dataset-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin: -4px 0 14px;
}

.dataset-card__meta span + span::before {
  content: '\00B7';
  margin-right: 6px;
  font-weight: 700;
}

.dataset-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
  cursor: pointer;
  transition: color var(--transition);
}

.dataset-card__title:hover {
  color: var(--color-primary);
}

.dataset-card__description {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dataset-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--color-tag-bg);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
}

.tag--more {
  color: var(--color-text-tertiary);
  font-weight: 400;
}

.dataset-card__countries {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.country-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-primary);
  border: 1px solid rgba(26, 86, 219, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(26, 86, 219, 0.04);
}

.dataset-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

.dataset-card__pricing {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

/* ===== List view =====
   Presentation-only variant: same card markup re-flowed into full-width rows
   with the price/CTA as a right rail. Below 640px it falls back to the
   stacked card layout. */
.cards-grid--list {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid--list .dataset-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    grid-template-areas:
      "header footer"
      "title footer"
      "desc footer"
      "meta footer"
      "tags footer"
      "countries footer";
    column-gap: 24px;
    align-content: start;
  }

  .cards-grid--list .dataset-card__header { grid-area: header; }
  .cards-grid--list .dataset-card__title { grid-area: title; }
  .cards-grid--list .dataset-card__description { grid-area: desc; }
  .cards-grid--list .dataset-card__meta { grid-area: meta; }
  .cards-grid--list .dataset-card__tags { grid-area: tags; }

  .cards-grid--list .dataset-card__countries {
    grid-area: countries;
    margin-bottom: 0;
  }

  .cards-grid--list .dataset-card__footer {
    grid-area: footer;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid var(--color-border-light);
    padding-left: 24px;
  }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--color-footer-text);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-newsletter input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-sans);
}

.footer-newsletter input::placeholder {
  color: var(--color-text-tertiary);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ===== Product Page ===== */
.product-page {
  padding: 0 0 60px;
}

.breadcrumbs {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: var(--color-text-tertiary);
}

.breadcrumbs .current {
  color: var(--color-text);
  font-weight: 500;
}

/* Product Hero */
.product-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0 36px;
}

.product-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.product-hero__description {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 800px;
}

.product-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-tag-bg);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
}

.meta-badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.hero-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #ecfdf5;
  color: #059669;
  border-radius: var(--radius-full);
}

.hero-free-badge svg {
  width: 14px;
  height: 14px;
  color: #059669;
}

.hero-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #eef2ff;
  color: var(--color-primary);
  border-radius: var(--radius-full);
}

.hero-premium-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding: 32px 0;
  align-items: start;
}

/* Product Sections */
.product-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.product-section:last-child {
  margin-bottom: 0;
}

.product-section__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.product-section__text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  white-space: pre-line;
}

/* Data Schema Table */
.data-schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-schema-table thead {
  background: var(--color-tag-bg);
}

.data-schema-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--color-border);
}

.data-schema-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}

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

.data-schema-table .field-name {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--color-primary);
  background: rgba(26, 86, 219, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
}

.data-schema-table .type-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-tag-bg);
  color: var(--color-text-secondary);
}

.data-schema-table .example-value {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* Optional "Description" column (sourced from the opportunity table's Notes) — readable prose, muted. */
.data-schema-table .schema-description {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Data Preview Table */
.data-preview-wrapper {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-preview-scroll {
  overflow-x: auto;
  max-width: 100%;
}

/* Authenticated users: contained vertical scroll (~9 rows) with a sticky header.
   Anonymous users never get this class, so their preview is unchanged. */
.data-preview-scroll--expanded {
  max-height: 340px;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.data-preview-scroll--expanded thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-tag-bg);
}

.data-preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.data-preview-arrow:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(26,86,219,0.25);
}

.data-preview-arrow--left {
  left: 8px;
}

.data-preview-arrow--right {
  right: 8px;
}

.data-preview-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.data-preview-table thead {
  background: var(--color-tag-bg);
}

.data-preview-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.data-preview-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

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

.data-preview-table tbody tr:hover {
  background: rgba(26, 86, 219, 0.03);
}

.data-preview__blur-row td {
  filter: blur(4px);
  user-select: none;
}

.data-preview__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.data-preview__overlay p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.data-preview__note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.data-preview__note a {
  color: var(--color-primary);
  text-decoration: none;
}

.data-preview__note a:hover {
  text-decoration: underline;
}

/* Coverage Badges (product page) */
.coverage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.use-case-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--color-tag-bg);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
}

.use-case-card__icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Attributes Tags (product page) */
.attributes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Sidebar Cards */
.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card:last-child {
  margin-bottom: 0;
}

.sidebar-card__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border-color: rgba(26, 86, 219, 0.15);
}

.cta-card__pricing {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.cta-card__pricing-note {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.cta-card .btn {
  width: 100%;
  margin-bottom: 10px;
}

.cta-card .btn:last-child {
  margin-bottom: 0;
}

.cta-card__sample {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: 12px;
}

.cta-card__sample--premium {
  color: var(--color-primary);
}

/* Pricing Tiers in Sidebar — vertically stacked full-width cards */
.cta-card .pricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0 18px;
  border: none;
  border-radius: 0;
  overflow: visible;
  grid-template-columns: none;
}

.cta-card .pricing-tier-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cta-card .pricing-tier-row:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  border-color: var(--color-primary);
}

.cta-card .pricing-tier-row__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.cta-card .pricing-tier-row__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
  white-space: nowrap;
}

.cta-card .pricing-tier-row__desc {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

.cta-card .pricing-tier-row--enterprise {
  background: var(--color-tag-bg);
}

/* Mobile: also stacked (no layout change), just slightly tighter spacing */
@media (max-width: 540px) {
  .cta-card .pricing-tiers { gap: 12px; }
  .cta-card .pricing-tier-row { padding: 12px 14px; }
}

/* Key Facts */
.key-facts-list {
  list-style: none;
}

.key-facts-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
}

.key-facts-list li:last-child {
  border-bottom: none;
}

.key-facts-list .fact-label {
  color: var(--color-text-secondary);
}

.key-facts-list .fact-value {
  font-weight: 600;
  color: var(--color-text);
}

/* Delivery Formats */
.delivery-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-tag-bg);
  color: var(--color-text);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.delivery-badge--download {
  cursor: pointer;
  text-decoration: none;
  color: var(--color-primary);
  border-color: var(--color-primary);
  transition: background 0.2s, color 0.2s;
}

.delivery-badge--download:hover {
  background: var(--color-primary);
  color: #fff;
}

.delivery-badge--available {
  background: rgba(26, 86, 219, 0.06);
  border-color: rgba(26, 86, 219, 0.25);
  color: var(--color-primary);
  cursor: default;
}

.delivery-badge--disabled {
  opacity: 0.4;
  cursor: default;
  border-style: dashed;
  position: relative;
}

.delivery-badge--disabled .delivery-badge__tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  z-index: 50;
  pointer-events: auto;
  line-height: 1.5;
}

.delivery-badge--disabled .delivery-badge__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}

.delivery-badge--disabled .delivery-badge__tooltip a {
  color: var(--color-primary-light);
  text-decoration: underline;
  font-weight: 500;
}

.delivery-badge--disabled .delivery-badge__tooltip a:hover {
  color: var(--color-primary-lighter);
}

.delivery-badge--disabled:hover .delivery-badge__tooltip {
  display: block;
}

/* Delivery Methods */
.delivery-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.delivery-method-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.delivery-method-item:hover {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
  color: var(--color-primary);
}

.delivery-method-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Documentation Page (3-pane layout) ===== */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 80px);
  background: #fff;
  position: relative;
}

.docs-mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  margin: 12px 16px 0;
}

/* Sidebar */
.docs-sidebar {
  border-right: 1px solid var(--color-border);
  padding: 24px 0 32px;
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #fafbfc;
}

.docs-sidebar__header {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.docs-sidebar__home {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 6px 0;
}

.docs-sidebar__home:hover { color: var(--color-primary); }

.docs-sidebar__home.docs-sidebar__link--active {
  color: var(--color-primary);
}

.docs-sidebar__section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  padding: 0 20px 8px;
}

.docs-sidebar__group {
  padding: 0 12px 12px;
}

.docs-sidebar__group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  padding: 10px 8px 6px;
  letter-spacing: 0.02em;
}

.docs-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-sidebar__link {
  display: block;
  padding: 6px 8px;
  font-size: 13.5px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  margin-left: 0;
  transition: background 0.15s, color 0.15s;
}

.docs-sidebar__link:hover {
  background: rgba(29, 78, 216, 0.04);
  color: var(--color-text);
}

.docs-sidebar__link--active {
  background: rgba(29, 78, 216, 0.08);
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
}

.docs-sidebar__footer {
  padding: 20px 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
}

.docs-cmdk-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text-tertiary);
  cursor: pointer;
}
.docs-cmdk-trigger:hover { border-color: var(--color-primary); color: var(--color-primary); }
.docs-cmdk-trigger span { flex: 1; text-align: left; }
.docs-cmdk-trigger kbd {
  font-family: inherit;
  font-size: 11px;
  background: #f3f4f6;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--color-text-secondary);
}

/* Main content */
.docs-main {
  min-width: 0;
  padding: 0 0 80px;
}

.docs-content {
  width: 100%;
}

.docs-content__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  padding: 0 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.docs-page {
  min-width: 0;
  padding-top: 32px;
}

/* Breadcrumbs */
.docs-breadcrumbs {
  padding: 14px 48px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  border-bottom: 1px solid var(--color-border);
  background: #fafbfc;
  max-width: 1200px;
  margin: 0 auto;
}
.docs-breadcrumbs a { color: var(--color-text-secondary); text-decoration: none; }
.docs-breadcrumbs a:hover { color: var(--color-primary); }
.docs-breadcrumbs__sep { margin: 0 8px; color: var(--color-border); }

/* Page header */
.docs-page__header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.docs-page__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.docs-page__icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}
.docs-page__header h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: var(--color-heading);
}
.docs-page__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 8px 0 0;
}
.docs-page__meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--color-text-tertiary);
  flex-wrap: wrap;
}
.docs-page__group { font-weight: 600; color: var(--color-text-secondary); }

/* Status badges */
.docs-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.docs-status--stable { background: #ecfdf5; color: #047857; }
.docs-status--beta { background: #fef3c7; color: #92400e; }
.docs-status--recommended { background: #dbeafe; color: #1d4ed8; }

/* Sections */
.docs-section {
  padding: 24px 0;
  scroll-margin-top: 90px;
}
.docs-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 14px;
  padding-top: 12px;
}
.docs-section p,
.docs-section li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
}
.docs-section ul, .docs-section ol {
  padding-left: 22px;
  margin: 10px 0 16px;
}
.docs-section li { margin-bottom: 6px; }
.docs-section code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.docs-steps li {
  padding-left: 4px;
  margin-bottom: 10px;
}

/* Callouts */
.docs-callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid;
  margin: 12px 0;
}
.docs-callout__icon { flex-shrink: 0; }
.docs-callout__icon svg { width: 20px; height: 20px; }
.docs-callout__title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.docs-callout__body { flex: 1; min-width: 0; }
.docs-callout__body ul, .docs-callout__body p { margin: 0; }
.docs-callout__body li:last-child { margin-bottom: 0; }

.docs-callout--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a5f; }
.docs-callout--info .docs-callout__icon svg { color: #2563eb; }
.docs-callout--warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.docs-callout--warning .docs-callout__icon svg { color: #d97706; }
.docs-callout--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.docs-callout--success .docs-callout__icon svg { color: #059669; }
.docs-callout--danger { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.docs-callout--danger .docs-callout__icon svg { color: #dc2626; }

/* Code blocks */
.docs-codeblock {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0 20px;
  background: #fafbfc;
}
.docs-codeblock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #f3f4f6;
  border-bottom: 1px solid var(--color-border);
}
.docs-codeblock__lang {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.docs-codeblock__copy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.docs-codeblock__copy:hover { border-color: var(--color-border); background: #fff; color: var(--color-primary); }
.docs-codeblock__copy--copied { color: #059669; }
.docs-codeblock pre {
  margin: 0;
  padding: 14px 16px;
  background: #fafbfc;
  overflow-x: auto;
}
.docs-codeblock pre code {
  background: transparent;
  padding: 0;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text);
}

/* TOC (right) */
.docs-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 32px 0 0;
}
.docs-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  padding: 0 12px 8px;
}
.docs-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-toc__link {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.docs-toc__link:hover { color: var(--color-text); }
.docs-toc__link--active {
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
}
.docs-toc__divider {
  height: 1px;
  background: var(--color-border);
  margin: 16px 12px;
}

/* Feedback */
.docs-feedback { padding: 0 12px; }
.docs-feedback__q {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.docs-feedback__buttons { display: flex; gap: 8px; }
.docs-feedback__btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.docs-feedback__btn:hover { border-color: var(--color-primary); background: rgba(29,78,216,0.04); }
.docs-feedback__thanks {
  font-size: 13px;
  color: #059669;
  font-weight: 600;
}

/* Related links */
.docs-related {
  margin: 32px 0;
  padding: 16px 18px;
  background: #fafbfc;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.docs-related__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 8px;
}
.docs-related__list { display: flex; gap: 16px; flex-wrap: wrap; }
.docs-related__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}
.docs-related__link:hover { text-decoration: underline; }

/* Prev / Next */
.docs-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.docs-prevnext__link {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.docs-prevnext__link:hover { border-color: var(--color-primary); background: #fafbfc; }
.docs-prevnext__link--next { text-align: right; }
.docs-prevnext__label {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
  font-weight: 500;
}
.docs-prevnext__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

/* Quickstart cards (index page) */
.docs-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0 24px;
}
.docs-quickstart-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.docs-quickstart-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(29,78,216,0.08);
}
.docs-quickstart-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.docs-quickstart-card__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.docs-quickstart-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Comparison table */
.docs-comp-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin: 16px 0;
}
.docs-comp-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.docs-comp-table th {
  background: #fafbfc;
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
  border-bottom: 1px solid var(--color-border);
}
.docs-comp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  vertical-align: top;
}
.docs-comp-table tr:last-child td { border-bottom: none; }
.docs-comp__name {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.docs-comp__name:hover { text-decoration: underline; }
.docs-comp__group {
  font-size: 11px;
  color: var(--color-text-tertiary);
  font-weight: 500;
}

/* Cmd-K modal */
.docs-cmdk {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 14vh;
}
.docs-cmdk[hidden] { display: none; }
.docs-cmdk__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}
.docs-cmdk__panel {
  position: relative;
  width: 92%;
  max-width: 580px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.docs-cmdk__inputrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
}
.docs-cmdk__inputrow input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--color-text);
}
.docs-cmdk__inputrow kbd {
  font-family: inherit;
  font-size: 11px;
  background: #f3f4f6;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--color-text-secondary);
}
.docs-cmdk__results {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 60vh;
  overflow-y: auto;
}
.docs-cmdk__result {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.docs-cmdk__result--active,
.docs-cmdk__result:hover {
  background: rgba(29, 78, 216, 0.08);
}
.docs-cmdk__result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}
.docs-cmdk__result-sub {
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.docs-cmdk__empty {
  padding: 24px;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 14px;
}

/* Mobile / responsive */
@media (max-width: 1024px) {
  .docs-content__inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .docs-toc { display: none; }
}

@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-mobile-menu-btn { display: inline-flex; }
  .docs-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    box-shadow: 4px 0 16px rgba(0,0,0,0.1);
  }
  .docs-sidebar--open { transform: translateX(0); }
  .docs-quickstart-grid { grid-template-columns: 1fr; }
  .docs-prevnext { grid-template-columns: 1fr; }
  .docs-breadcrumbs { padding: 12px 20px; }
  .docs-page__header h1 { font-size: 26px; }
}

/* ===== About Page v2 ===== */
.aboutv2 {
  min-height: 60vh;
  background: #fff;
  --av2-navy: #0f1f3d;
  --av2-blue: #1d4ed8;
  --av2-blue-soft: #eff6ff;
}

.aboutv2 h1, .aboutv2 h2, .aboutv2 h3, .aboutv2 h4 {
  color: var(--av2-navy);
  letter-spacing: -0.01em;
}

.aboutv2 .container { padding: 0 24px; }

/* ----- Hero ----- */
.aboutv2-hero {
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.aboutv2-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(29,78,216,0.08), transparent 70%);
  pointer-events: none;
}

.aboutv2-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  position: relative;
}

.aboutv2-hero__copy { max-width: 560px; }

.aboutv2-hero__eyebrow,
.aboutv2-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 16px;
}

.aboutv2-hero h1 {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 20px;
}

.aboutv2-hero__lead {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 28px;
  max-width: 65ch;
}

.aboutv2-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.aboutv2-hero__ctas .btn { padding: 12px 22px; font-size: 15px; }

/* Hero visual: layered mock cards */
.aboutv2-hero__visual {
  position: relative;
  min-height: 320px;
}

.aboutv2-mock-card {
  position: absolute;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 31, 61, 0.10), 0 2px 8px rgba(15, 31, 61, 0.04);
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.aboutv2-mock-card--front {
  top: 20px; left: 0; right: 40px;
  z-index: 2;
  transform: rotate(-1.2deg);
}

.aboutv2-mock-card--back {
  top: 220px; left: 80px; right: -40px;
  z-index: 1;
  transform: rotate(2deg);
  background: var(--av2-navy);
  border-color: var(--av2-navy);
}

.aboutv2-mock-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}
.aboutv2-mock-card--back .aboutv2-mock-card__header { border-bottom-color: rgba(255,255,255,0.1); }

.aboutv2-mock-card__dot {
  width: 9px; height: 9px; border-radius: 50%;
}
.aboutv2-mock-card__dot--r { background: #ef4444; }
.aboutv2-mock-card__dot--y { background: #f59e0b; }
.aboutv2-mock-card__dot--g { background: #10b981; }
.aboutv2-mock-card__title {
  margin-left: 8px;
  font-size: 12px;
  color: #6b7280;
}
.aboutv2-mock-card__lang {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.aboutv2-mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.aboutv2-mock-table th {
  text-align: left;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.aboutv2-mock-table td {
  padding: 7px 14px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}
.aboutv2-mock-table tr:last-child td { border-bottom: none; }

.aboutv2-mock-card__footer {
  padding: 10px 14px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
}
.aboutv2-mock-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-family: var(--font-sans);
}
.aboutv2-mock-pill--green { background: #ecfdf5; color: #047857; }

.aboutv2-mock-code {
  margin: 0;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre;
  overflow-x: auto;
}
.aboutv2-mock-code .t-c { color: #6b7280; }
.aboutv2-mock-code .t-k { color: #93c5fd; font-weight: 600; }
.aboutv2-mock-code .t-s { color: #c4b5fd; }
.aboutv2-mock-code .t-q { color: #86efac; }

/* ----- Stats strip ----- */
.aboutv2-stats {
  background: var(--av2-navy);
  color: #fff;
  padding: 36px 0;
}
.aboutv2-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.aboutv2-stat__num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.aboutv2-stat__label {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ----- Generic section ----- */
.aboutv2-section { padding: 80px 0; }
.aboutv2-section--alt { background: #f9fafb; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }

.aboutv2-section__head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.aboutv2-section__head h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 12px;
}
.aboutv2-section__lead {
  font-size: 17px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}
.aboutv2-link {
  color: var(--av2-blue);
  font-weight: 600;
  text-decoration: none;
}
.aboutv2-link:hover { text-decoration: underline; }

/* ----- Our Story ----- */
.aboutv2-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.aboutv2-story__copy h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
}
.aboutv2-story__copy p {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 14px;
  max-width: 65ch;
}
.aboutv2-story__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ----- Data Pipeline animation (replaces neural network) ----- */
.aboutv2-pipeline {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at top right, #f5f3ff 0%, #eff6ff 55%, #fff 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 20px 60px -20px rgba(99, 102, 241, 0.25), 0 4px 12px -4px rgba(15, 31, 61, 0.06);
  padding: 22px 16px 60px;
  display: flex;
  align-items: center;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  align-items: center;
  width: 100%;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* Stage cards */
.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: pipeline-float 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.pipeline-stage__card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 4px 12px -4px rgba(15, 31, 61, 0.08);
  position: relative;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pipeline-stage__card--round {
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-color: rgba(124, 58, 237, 0.22);
}

.pipeline-stage__card--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
  background: #fafbff;
}

.pipeline-stage__icon {
  width: 30px;
  height: 30px;
  color: #6366f1;
}
.pipeline-stage__icon--spin { animation: pipeline-spin 12s linear infinite; }

.pipeline-stage__caption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  text-align: center;
  line-height: 1.3;
}

/* Mini tables inside stage cards */
.pipeline-mini-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 9px;
}
.pipeline-mini-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 4px;
  border-radius: 3px;
}
.pipeline-mini-table--raw .pipeline-mini-row {
  color: #94a3b8;
  background: #f8fafc;
}
.pipeline-mini-table--clean .pipeline-mini-row {
  color: #1e293b;
  background: #f0f9ff;
  border-left: 2px solid #3b82f6;
}
.pipeline-mini-row em {
  font-style: normal;
  color: #047857;
  font-weight: 600;
}

/* LIVE badge */
.pipeline-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}
.pipeline-badge--live {
  animation: pipeline-pulse 2s ease-in-out infinite;
}
.pipeline-badge__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #10b981;
}

/* Delivery tile icons */
.pipeline-tile {
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 6px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  transition: color 0.2s, transform 0.2s;
}
.pipeline-tile:hover { color: #4338ca; transform: translateY(-1px); }
.pipeline-tile svg { width: 14px; height: 14px; }

/* Connector lines */
.pipeline-line {
  height: 2px;
  border-radius: 2px;
  background-image: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6, #6366f1, #3b82f6);
  background-size: 200% 100%;
  background-position: 100% 0;
  animation: pipeline-flow 2.5s linear infinite;
  align-self: center;
  margin-top: -22px; /* line aligns with horizontal mid-line of stage cards */
  opacity: 0.85;
}

/* Travelling particles (overlay) */
.pipeline-particles {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 8px;
  margin-top: -33px;
  z-index: 3;
  pointer-events: none;
}
.pipeline-particle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #cbd5e1;
  animation: pipeline-particle 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* API code line at bottom */
.pipeline-code {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  background: rgba(15, 31, 61, 0.92);
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 31, 61, 0.18);
  z-index: 4;
}
.pipeline-code__method {
  color: #86efac;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.pipeline-code__path { color: #93c5fd; }
.pipeline-code__cursor {
  color: #fbbf24;
  animation: pipeline-cursor 1s steps(2) infinite;
}

/* Keyframes */
@keyframes pipeline-float {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(2px); }
}
@keyframes pipeline-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.06); opacity: 0.78; }
}
@keyframes pipeline-spin {
  to { transform: rotate(360deg); }
}
@keyframes pipeline-flow {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}
@keyframes pipeline-particle {
  0%   { left: 0%;   background: #cbd5e1; opacity: 0;   transform: scale(0.6); }
  10%  {                                  opacity: 0.6; }
  45%  { left: 45%;  background: #cbd5e1; }
  50%  { left: 50%;  background: #6366f1; opacity: 1;   transform: scale(1); }
  55%  { left: 55%;  background: #3b82f6; }
  90%  {                                  opacity: 0.7; }
  100% { left: 100%; background: #3b82f6; opacity: 0;   transform: scale(0.6); }
}
@keyframes pipeline-cursor {
  50% { opacity: 0; }
}

/* Mobile */
@media (max-width: 540px) {
  .aboutv2-pipeline { padding: 16px 12px 56px; }
  .pipeline-row {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 6px;
  }
  .pipeline-line {
    height: 16px;
    width: 2px;
    margin: 0 auto;
    margin-top: 0;
    background-image: linear-gradient(180deg, #3b82f6, #6366f1, #8b5cf6, #6366f1, #3b82f6);
    background-size: 100% 200%;
    animation: pipeline-flow-vertical 2.5s linear infinite;
  }
  .pipeline-particles { display: none; }
}
@keyframes pipeline-flow-vertical {
  from { background-position: 0 100%; }
  to   { background-position: 0 -100%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pipeline-stage,
  .pipeline-line,
  .pipeline-particle,
  .pipeline-badge--live,
  .pipeline-stage__icon--spin,
  .pipeline-code__cursor { animation: none !important; }
  .pipeline-line { background-position: 0 0; }
}

/* ----- Mission + Vision ----- */
.aboutv2-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.aboutv2-mv-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.aboutv2-mv-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 30px rgba(29,78,216,0.08);
  transform: translateY(-2px);
}
.aboutv2-mv-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--av2-blue-soft);
  color: var(--av2-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.aboutv2-mv-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}
.aboutv2-mv-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
}

/* ----- Cover grid ----- */
.aboutv2-cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.aboutv2-cover-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.aboutv2-cover-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 22px rgba(29,78,216,0.07);
  transform: translateY(-2px);
}
.aboutv2-cover-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--av2-blue-soft);
  color: var(--av2-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.aboutv2-cover-card__icon svg { width: 22px; height: 22px; }
.aboutv2-cover-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
.aboutv2-cover-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

/* ----- Delivery (split copy + logos) ----- */
.aboutv2-delivery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}
.aboutv2-delivery__copy h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}
.aboutv2-delivery__copy p {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 12px;
  max-width: 60ch;
}
.aboutv2-delivery__logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.aboutv2-logo-tile {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  color: #6b7280;
}
.aboutv2-logo-tile svg {
  width: 28px; height: 28px;
  color: #6b7280;
  transition: color 0.2s;
}
.aboutv2-logo-tile span {
  font-size: 12.5px;
  font-weight: 600;
}
.aboutv2-logo-tile:hover {
  border-color: #bfdbfe;
  color: var(--av2-blue);
  transform: translateY(-2px);
}
.aboutv2-logo-tile:hover svg { color: var(--av2-blue); }

/* ----- Values grid ----- */
.aboutv2-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.aboutv2-value-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.aboutv2-value-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 22px rgba(29,78,216,0.07);
  transform: translateY(-2px);
}
.aboutv2-value-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: var(--av2-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.aboutv2-value-card__icon svg { width: 20px; height: 20px; }
.aboutv2-value-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px;
}
.aboutv2-value-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

/* ----- Persona grid ----- */
.aboutv2-persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aboutv2-persona-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.aboutv2-persona-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 16px rgba(29,78,216,0.06);
  transform: translateY(-2px);
}
.aboutv2-persona-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--av2-blue-soft);
  color: var(--av2-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aboutv2-persona-card__icon svg { width: 20px; height: 20px; }
.aboutv2-persona-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--av2-navy);
  line-height: 1.35;
}

/* ----- Trust strip ----- */
.aboutv2-trust {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 48px 0;
}
.aboutv2-trust__title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 28px;
}
.aboutv2-trust__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.aboutv2-trust__badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.aboutv2-trust__badge-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: var(--av2-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aboutv2-trust__badge-icon svg { width: 18px; height: 18px; }
.aboutv2-trust__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--av2-navy);
}
.aboutv2-trust__sub {
  font-size: 12px;
  color: #6b7280;
}

/* ----- Final CTA ----- */
.aboutv2-cta {
  background: linear-gradient(135deg, var(--av2-navy) 0%, #1e3a8a 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.aboutv2-cta::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(147,197,253,0.18), transparent 70%);
  pointer-events: none;
}
.aboutv2-cta__inner {
  text-align: center;
  position: relative;
}
.aboutv2-cta h2 {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.15;
}
.aboutv2-cta p {
  font-size: 17px;
  color: #cbd5e1;
  margin: 0 auto 28px;
  max-width: 540px;
  line-height: 1.55;
}
.aboutv2-cta__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}
.btn--lg { padding: 13px 28px; font-size: 15px; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .aboutv2-hero { padding: 60px 0 80px; }
  .aboutv2-hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .aboutv2-hero h1 { font-size: 42px; }
  .aboutv2-hero__visual { min-height: 360px; max-width: 540px; margin: 0 auto; }
  .aboutv2-story { grid-template-columns: 1fr; gap: 40px; }
  .aboutv2-cover-grid,
  .aboutv2-values-grid,
  .aboutv2-persona-grid { grid-template-columns: repeat(2, 1fr); }
  .aboutv2-delivery { grid-template-columns: 1fr; gap: 40px; }
  .aboutv2-section { padding: 60px 0; }
  .aboutv2-story__copy h2,
  .aboutv2-delivery__copy h2 { font-size: 28px; }
}

@media (max-width: 768px) {
  .aboutv2-hero h1 { font-size: 32px; }
  .aboutv2-hero__lead { font-size: 16px; }
  .aboutv2-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .aboutv2-stat__num { font-size: 28px; }
  .aboutv2-mv-grid,
  .aboutv2-cover-grid,
  .aboutv2-values-grid,
  .aboutv2-persona-grid { grid-template-columns: 1fr; }
  .aboutv2-delivery__logos { grid-template-columns: repeat(3, 1fr); }
  .aboutv2-trust__row { grid-template-columns: repeat(2, 1fr); }
  .aboutv2-cta h2 { font-size: 28px; }
  .aboutv2-mock-card--front { right: 20px; }
  .aboutv2-mock-card--back { left: 30px; right: -10px; }
}

/* ===== About Page (legacy — used by Privacy / Terms / Use Cases / Pricing pages) ===== */
.about-page {
  min-height: 60vh;
}

.about-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}

.about-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.9;
}

.about-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.about-section--last {
  border-bottom: none;
  padding-bottom: 60px;
}

.about-section__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.about-section__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  text-wrap: pretty;
  hyphens: none;
}

.about-section__text--muted {
  font-style: italic;
  color: var(--color-text-tertiary);
}

.about-section__subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
  margin: 20px 0 8px;
}

.about-section__list {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin: 0 0 16px 20px;
  padding: 0;
}

.about-section__list li {
  margin-bottom: 6px;
}

/* Coverage list */
.about-coverage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.about-coverage-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
  padding: 10px 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.about-coverage-list li svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Mission & Vision */
.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-mission-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.about-mission-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f0fe, #dbeafe);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.about-mission-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.about-mission-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Values Grid */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.about-value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.about-value-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.about-value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-tag-bg);
  color: var(--color-primary);
  margin-bottom: 14px;
}

.about-value-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.about-value-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Who We Serve */
.about-serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.about-serve-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: box-shadow var(--transition);
}

.about-serve-item:hover {
  box-shadow: var(--shadow-card);
}

.about-serve-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

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

.contact-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.contact-field .required {
  color: #e53e3e;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  align-self: flex-start;
  padding: 12px 32px;
  font-size: 15px;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
}

.contact-feedback--success {
  background: var(--color-accent-bg);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.contact-feedback--error {
  background: #fef2f2;
  color: #e53e3e;
  border: 1px solid #fecaca;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info-panel {
  background: rgba(37, 99, 235, 0.05);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  padding: 32px;
}

.contact-info-panel__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.contact-info-panel__subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.contact-info-panel__items {
  display: flex;
  flex-direction: column;
}

.contact-info-panel__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
}

.contact-info-panel__item + .contact-info-panel__item {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.contact-info-panel__item > svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.contact-info-panel__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.contact-info-panel__item a {
  font-size: 15px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-info-panel__item a:hover {
  text-decoration: underline;
}

.contact-info-panel__item p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

.contact-info-panel__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.contact-info-panel__footer svg {
  flex-shrink: 0;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-row--3 { grid-template-columns: 1fr; }
  .delivery-methods-grid { grid-template-columns: 1fr; }
  .docs-method-section h2 { font-size: 20px; }
  .docs-cta { padding: 32px 0; }
}

/* ===== Use Cases Hub (/use-cases/) ===== */
/* Hero search + filter band + featured/compact card grids. Markup comes from
   generateUseCasesPage() in tools/generate-pages.js; the page's inline script
   filters by toggling .uch-hide. Chips reuse .category-pill (incl. its 768px
   horizontal-scroll strip); the search box reuses .search-bar. */
.uch-hero {
  padding: 56px 0 44px;
}

.uch-hero .search-bar {
  margin: 28px auto 0;
}

.uch-filters {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0 12px;
}

.uch-filter-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.uch-filter-group__label {
  flex-shrink: 0;
  width: 132px;
  padding-top: 7px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
}

.uch-filter-group .category-pills {
  justify-content: flex-start;
  max-width: none;
  margin: 0;
}

.uch-count {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* The count line only speaks while a filter/search is active */
.uch-count:empty {
  display: none;
}

.uch-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.uch-section-sub {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.uch-grid {
  display: grid;
  gap: 16px;
}

.uch-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.uch-grid--all {
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

/* Whole card is the link into use-cases/<slug>.html */
.uch-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

.uch-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.uch-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e8f0fe, #dbeafe);
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* Entry icons are authored at width/height 28 — size via CSS so the same
   SVGs fit the compact 40px tile (every icon carries a viewBox). */
.uch-card__icon svg {
  width: 22px;
  height: 22px;
}

.uch-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.uch-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uch-card__sub {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.uch-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.uch-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-text);
  min-width: 0;
}

.uch-card__list li svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Compact cards keep application rows to one line each */
.uch-card__list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.uch-card__cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.uch-card:hover .uch-card__cta {
  text-decoration: underline;
}

/* Featured variant — larger tile/type, list rows wrap normally */
.uch-card--featured {
  padding: 26px;
}

.uch-card--featured .uch-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.uch-card--featured .uch-card__icon svg {
  width: 28px;
  height: 28px;
}

.uch-card--featured .uch-card__title {
  font-size: 17px;
}

.uch-card--featured .uch-card__desc {
  font-size: 14px;
}

.uch-card--featured .uch-card__list {
  gap: 8px;
}

.uch-card--featured .uch-card__list li {
  font-size: 13px;
}

.uch-card--featured .uch-card__list li span {
  white-space: normal;
}

.uch-empty {
  text-align: center;
  padding: 40px 0 8px;
  color: var(--color-text-secondary);
}

.uch-empty p {
  margin-bottom: 16px;
}

.uch-hide {
  display: none !important;
}

@media (max-width: 768px) {
  .uch-hero .search-bar {
    margin-top: 20px;
  }

  .uch-filter-group {
    flex-direction: column;
    gap: 6px;
  }

  .uch-filter-group__label {
    width: auto;
    padding-top: 0;
  }

  .uch-grid--featured,
  .uch-grid--all {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .uch-card {
    padding: 16px;
  }

  .uch-card--featured {
    padding: 20px;
  }
}

.uc-hub-cta {
  margin-top: 20px;
}

.uc-hub-cta .btn {
  margin: 0 6px;
}

/* ===== Use-case landing pages (use-cases/<slug>.html) ===== */
.uc-detail-editorial .about-section {
  max-width: 860px;
}

.uc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  max-width: 860px;
}

.uc-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.uc-checklist li svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.uc-datasets-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
}

.uc-cards-note {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin: -6px 0 14px;
}

.uc-browse-all {
  text-align: center;
  margin-top: 28px;
}

/* FAQ accordion (native <details> — no JS) */
.uc-faq-section {
  padding: 8px 0 44px;
}

.uc-faq-section h2 {
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 16px;
  text-align: center;
}

.uc-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uc-faq {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.uc-faq summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.uc-faq[open] summary {
  margin-bottom: 8px;
}

.uc-faq p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Product page: use-case chips linked to their use-case landing page */
a.use-case-card {
  color: inherit;
  text-decoration: none;
}

.use-case-card--link {
  transition: box-shadow var(--transition), transform var(--transition);
}

.use-case-card--link:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.use-case-card__arrow {
  margin-left: auto;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.use-case-card--link:hover .use-case-card__arrow {
  color: var(--color-primary);
}

/* ===== Pricing Page ===== */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.pricing-tier {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pricing-tier:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.pricing-tier__header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-tier--free .pricing-tier__header {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.pricing-tier--premium .pricing-tier__header {
  background: linear-gradient(135deg, #e8f0fe, #dbeafe);
}

.pricing-tier__header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.pricing-tier__badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pricing-tier__badge--free {
  background: #2e7d32;
  color: #fff;
}

.pricing-tier__badge--premium {
  background: var(--color-primary);
  color: #fff;
}

.pricing-tier__desc {
  padding: 20px 28px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.pricing-tier__features {
  list-style: none;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-tier__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.pricing-tier--free .pricing-tier__features li svg { color: #2e7d32; }
.pricing-tier--premium .pricing-tier__features li svg { color: var(--color-primary); }

.pricing-tier__features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-tier__cta {
  display: block;
  text-align: center;
  margin: 0 28px 24px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.pricing-tier__cta--free {
  background: #2e7d32;
  color: #fff;
}
.pricing-tier__cta--free:hover { background: #1b5e20; }

.pricing-tier__cta--premium {
  background: var(--color-primary);
  color: #fff;
}
.pricing-tier__cta--premium:hover { background: #1545b0; }

/* Delivery grid */
.pricing-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.pricing-delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.pricing-delivery-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #e8f0fe, #dbeafe);
  color: var(--color-primary);
  flex-shrink: 0;
}

.pricing-delivery-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pricing-delivery-item p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Customization cards */
.pricing-custom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.pricing-custom-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.pricing-custom-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.pricing-custom-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.pricing-custom-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pricing-custom-card__badge--free {
  background: #e8f5e9;
  color: #2e7d32;
}

.pricing-custom-card__badge--custom {
  background: #fff3e0;
  color: #e65100;
}

/* About + Use Cases + Pricing responsive */
@media (max-width: 768px) {
  .about-hero { padding: 40px 0 30px; }
  .about-hero h1 { font-size: 26px; }
  .about-hero__subtitle { font-size: 15px; padding: 0 16px; }
  .about-mission-grid { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: 1fr 1fr; }
  .about-serve-grid { grid-template-columns: 1fr; }
  .pricing-tiers { grid-template-columns: 1fr; }
  .pricing-delivery-grid { grid-template-columns: 1fr; }
  .pricing-custom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .about-values-grid { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 260px 1fr;
    gap: 20px;
  }

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

  .search-hero h1 {
    font-size: 26px;
  }

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

  .product-grid {
    grid-template-columns: 1fr 300px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-container {
    gap: 12px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px;
    z-index: 90;
    box-shadow: var(--shadow-dropdown);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .main-nav .nav-link {
    width: 100%;
    padding: 12px;
  }

  .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .header-actions .btn--primary {
    display: inline-flex;
    padding: 6px 14px;
    font-size: 13px;
  }

  .header-actions .header-signin-link {
    display: none;
  }

  .header-actions .header-user-name {
    display: none;
  }

  .nav-link--primary {
    color: var(--color-primary) !important;
    font-weight: 600;
  }

  .mobile-auth-link {
    display: list-item !important;
    border-top: 1px solid var(--color-border-light);
  }

  .mobile-auth-link:first-of-type {
    margin-top: 8px;
    padding-top: 8px;
  }

  .search-hero {
    padding: 32px 0 28px;
  }

  .search-hero h1 {
    font-size: 22px;
  }

  .search-subtitle {
    font-size: 14px;
  }

  .search-bar {
    flex-wrap: nowrap;
  }

  .search-bar input {
    padding: 12px 8px;
    font-size: 14px;
  }

  .category-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .category-pill {
    flex-shrink: 0;
  }

  .main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 210;
    border-radius: 0;
    border: none;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .filters-sidebar.open {
    left: 0;
  }

  .sidebar-close-btn {
    display: block;
  }

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

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

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .product-hero h1 {
    font-size: 22px;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .data-schema-table {
    font-size: 12px;
  }

  .data-schema-table th,
  .data-schema-table td {
    padding: 8px 10px;
  }
}

/* ===== Auth / Sign In & Sign Up Pages ===== */

.auth-page {
  min-height: calc(100vh - 160px);
  padding: 60px 20px;
  background: #fff;
}

.auth-page__inner {
  max-width: 520px;
  margin: 0 auto;
}

.auth-page__inner h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.auth-legal-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.auth-legal-text a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-legal-text a:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-divider span {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.auth-form {
  /* no padding — full-width within .auth-page__inner */
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.auth-field label .required {
  color: #ef4444;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
  background: #fff;
}

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

.auth-forgot-link {
  display: block;
  text-align: right;
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: -12px;
  margin-bottom: 20px;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
  margin-top: 8px;
}

.auth-submit:hover {
  background: var(--color-primary-hover);
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 28px;
}

.auth-switch a {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Password validation rules */
.password-rules {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.password-rule {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.password-rule__icon {
  font-size: 16px;
  font-weight: 700;
  color: #ef4444;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.password-rule--pass .password-rule__icon {
  color: #22c55e;
}

/* Consent checkbox */
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 20px 0;
}

.auth-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.auth-consent a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.auth-consent a:hover {
  text-decoration: none;
}

/* Auth feedback messages */
.auth-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.auth-feedback--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Auth card (used by verify page) */
.auth-card {
  max-width: 480px;
  margin: 40px auto 60px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding: 28px;
}

/* Header user name */
.header-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
}

/* Locked delivery badge */
.delivery-badge--locked {
  opacity: 0.7;
  position: relative;
}

.delivery-badge--locked:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .auth-card {
    margin: 20px auto 40px;
    border-radius: var(--radius-md);
  }

  .auth-form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .search-hero h1 {
    font-size: 18px;
  }

  .dataset-card {
    padding: 16px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ===== Account Page ===== */

.account-layout {
  display: flex;
  gap: 32px;
  padding: 40px 0 60px;
}

.account-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.account-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 100px;
}

.account-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.account-tab:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.account-tab--active {
  background: #eff6ff;
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

.account-tab svg {
  flex-shrink: 0;
}

.account-content {
  flex: 1;
  min-width: 0;
}

.account-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
}

.account-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 24px;
}

.account-card__desc {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin: -16px 0 24px;
  line-height: 1.5;
}

/* Account Tables */

.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.account-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-border);
}

.account-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
}

.account-table tbody tr:hover {
  background: #fafbfc;
}

.account-table__link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.account-table__link:hover {
  text-decoration: underline;
}

/* Status Badges */

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-bg);
  color: var(--color-text-secondary);
}

.status-badge--active {
  background: #ecfdf5;
  color: #059669;
}

.status-badge--completed {
  background: #eff6ff;
  color: var(--color-primary);
}

.status-badge--cancelled {
  background: #fef2f2;
  color: #dc2626;
}

.status-badge--expired {
  background: #f3f4f6;
  color: #6b7280;
}

.status-badge--pending {
  background: #fffbeb;
  color: #d97706;
}

/* API Key Styles */

.api-key-prefix {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: var(--color-bg);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
}

.api-key-reveal {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.api-key-reveal p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--color-text);
}

.api-key-reveal__value {
  display: flex;
  align-items: center;
  gap: 12px;
}

.api-key-reveal__value code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  word-break: break-all;
}

/* Coming Soon / Empty States */

.account-coming-soon {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-secondary);
}

.account-coming-soon h3 {
  margin: 16px 0 8px;
  color: var(--color-text);
  font-size: 16px;
}

.account-coming-soon p {
  margin: 0;
  font-size: 14px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.account-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.account-empty p {
  margin: 0 0 16px;
}

.account-loading {
  text-align: center;
  padding: 24px;
  color: var(--color-text-tertiary);
  font-size: 14px;
}

/* Favorite Heart Button */

.favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
  transition: transform 0.15s ease;
  line-height: 0;
  flex-shrink: 0;
}

.favorite-btn:hover {
  transform: scale(1.15);
}

.favorite-btn--active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.favorite-btn--product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all 0.15s ease;
}

.favorite-btn--product:hover {
  border-color: #ef4444;
  background: #fef2f2;
}

/* Header user name as link */

a.header-user-name {
  text-decoration: none;
  color: var(--color-text);
}

a.header-user-name:hover {
  color: var(--color-primary);
}

/* Account page responsive */

@media (max-width: 768px) {
  .account-hero {
    padding: 20px 0 16px;
  }

  .account-hero h1 {
    font-size: 20px;
    margin-bottom: 0;
  }

  .account-hero__subtitle {
    display: none;
  }

  .account-layout {
    flex-direction: column;
    gap: 16px;
  }

  .account-sidebar {
    width: 100%;
  }

  .account-sidebar__nav {
    flex-direction: column;
    gap: 2px;
    position: static;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 8px;
  }

  .account-tab {
    border-left: 3px solid transparent;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: var(--radius-md);
  }

  .account-tab--active {
    border-left-color: var(--color-primary);
    background: #eff6ff;
  }

  .account-card {
    padding: 20px;
  }

  .account-table {
    font-size: 13px;
  }

  .account-table th,
  .account-table td {
    padding: 8px 10px;
  }
}

/* ===== Landing Page ===== */
.landing-page {
  min-height: 60vh;
}

/* Hero */
.landing-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 80px 0 72px;
  text-align: center;
}

.landing-hero__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0.9;
}

.landing-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-hero__actions .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.landing-hero__actions .btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* Stats Bar */
.landing-stats {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}

.landing-stats__grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.landing-stat__number {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
}

.landing-stat__label {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Landing Sections */
.landing-section {
  padding: 64px 0;
}

.landing-section--alt {
  background: var(--color-bg);
}

.landing-section__title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--color-text);
}

.landing-section__subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.landing-section__cta {
  text-align: center;
  margin-top: 32px;
}

/* Featured cards reuse existing .cards-grid */

/* How It Works Steps */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.landing-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.landing-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.landing-step__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.landing-step__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Integration Partners */
.landing-integrations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.landing-integration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 110px;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.landing-integration:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}

.landing-integration svg {
  opacity: 0.7;
  transition: opacity var(--transition);
}

.landing-integration:hover svg {
  opacity: 1;
}

.landing-integration span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Bottom CTA */
.landing-cta {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.landing-cta__title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

.landing-cta__subtitle {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.landing-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-cta__outline-btn {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.landing-cta__outline-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* Trust Bar */
.trust-bar {
  background: var(--color-tag-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-bar__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.trust-bar__logos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-bar__logo {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  opacity: 0.6;
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

/* Trust Proof Cards (Pricing Page) */
.trust-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.trust-proof-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.trust-proof-card svg {
  color: var(--color-primary);
  margin-bottom: 12px;
}

.trust-proof-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.trust-proof-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

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

  .trust-bar__logos {
    gap: 8px;
  }

  .trust-bar__logo {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Button lg variant */
.btn--lg {
  padding: 12px 28px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.load-more-btn {
  display: block;
  margin: 32px auto 0;
  padding: 12px 40px;
  font-size: 15px;
}

.btn--text {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.btn--text:hover {
  color: var(--color-primary);
  background: none;
  text-decoration: underline;
}

/* Landing Page Responsive */
@media (max-width: 768px) {
  .landing-hero {
    padding: 56px 0 48px;
  }

  .landing-hero__title {
    font-size: 28px;
  }

  .landing-hero__subtitle {
    font-size: 16px;
  }

  .landing-stats__grid {
    gap: 24px;
  }

  .landing-stat__number {
    font-size: 22px;
  }

  .landing-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .landing-section {
    padding: 48px 0;
  }

  .landing-section__title {
    font-size: 24px;
  }

  .landing-cta__title {
    font-size: 24px;
  }

  .landing-integrations {
    gap: 16px;
  }

  .landing-integration {
    width: 90px;
    padding: 16px 8px;
  }
}

@media (max-width: 480px) {
  .landing-hero__title {
    font-size: 24px;
  }

  .landing-stats__grid {
    gap: 16px;
  }

  .landing-stat__number {
    font-size: 20px;
  }

  .landing-stat__label {
    font-size: 12px;
  }
}

/* ===== Request Access Modal ===== */
.ra-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5vh 16px;
  overflow-y: auto;
}
body.ra-modal-open {
  overflow: hidden;
}
.ra-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}
.ra-modal__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.ra-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.ra-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
.ra-modal__logo {
  height: 32px;
  width: auto;
  display: block;
}
.ra-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--color-text-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.ra-modal__close svg { width: 20px; height: 20px; }
.ra-modal__close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}
.ra-modal__body {
  padding: 24px;
  overflow-y: auto;
}

.ra-section { margin-bottom: 28px; }
.ra-section:last-of-type { margin-bottom: 16px; }
.ra-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
  margin: 0 0 14px;
}
.ra-section-title .required { color: #ef4444; }
.ra-optional {
  font-weight: 400;
  color: var(--color-text-secondary);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

/* Data products — dual-listbox picker (Selected | controls | Available) */
.ra-duallist {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
}
.ra-duallist__col {
  min-width: 0;
}
.ra-duallist__label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.ra-listbox {
  list-style: none;
  margin: 0;
  padding: 4px;
  height: 220px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.ra-listbox__empty {
  padding: 16px 12px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  text-align: center;
}
.ra-option {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background var(--transition);
}
.ra-option:hover { background: var(--color-bg); }
.ra-option.is-active { background: rgba(29, 78, 216, 0.1); }
.ra-option:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.ra-option__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}
.ra-option__cat {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

.ra-duallist__controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding-top: 26px; /* align with list top, past the label */
}
.ra-xfer {
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.ra-xfer svg { width: 16px; height: 16px; }
.ra-xfer:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(29, 78, 216, 0.04);
}

.ra-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.ra-pager__status { padding: 0 6px; white-space: nowrap; }
.ra-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
}
.ra-pager__btn svg { width: 16px; height: 16px; }
.ra-pager__btn:hover:not(:disabled) { color: var(--color-primary); background: var(--color-bg); }
.ra-pager__btn:disabled { opacity: 0.35; cursor: default; }

/* Delivery methods */
.ra-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
}
.ra-delivery-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}
.ra-delivery-item input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.ra-meeting-note {
  background: var(--color-accent-bg);
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* Additional Information — auto-growing optional textarea (height managed in JS) */
textarea.ra-addinfo {
  resize: none;       /* a manual drag handle would fight the auto-grow handler */
  overflow-y: hidden; /* flipped to auto by JS once the height cap is reached */
}

.ra-submit { width: 100%; }

/* Success state */
.ra-success {
  text-align: center;
  padding: 24px 8px;
}
.ra-success__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
}
.ra-success__icon svg { width: 96px; height: 96px; display: block; }
/* Green check badge pops in, then the confetti dots/sparkles twinkle around it. */
.ra-success__icon .ra-badge {
  transform-box: fill-box;
  transform-origin: center;
  animation: ra-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ra-success__icon .ra-confetti > * {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: ra-twinkle 0.5s ease-out both;
}
.ra-success__icon .ra-confetti > *:nth-child(1) { animation-delay: 0.18s; }
.ra-success__icon .ra-confetti > *:nth-child(2) { animation-delay: 0.30s; }
.ra-success__icon .ra-confetti > *:nth-child(3) { animation-delay: 0.24s; }
.ra-success__icon .ra-confetti > *:nth-child(4) { animation-delay: 0.38s; }
.ra-success__icon .ra-confetti > *:nth-child(5) { animation-delay: 0.28s; }
.ra-success__icon .ra-confetti > *:nth-child(6) { animation-delay: 0.42s; }
.ra-success__icon .ra-confetti > *:nth-child(7) { animation-delay: 0.22s; }
@keyframes ra-pop {
  0%   { opacity: 0; transform: scale(0.4); }
  60%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes ra-twinkle {
  0%   { opacity: 0; transform: scale(0.2); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ra-success__icon .ra-badge,
  .ra-success__icon .ra-confetti > * { animation: none; opacity: 1; transform: none; }
}
.ra-success__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 10px;
}
.ra-success__text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 24px;
}
.ra-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.ra-success__actions .btn { text-decoration: none; }
.ra-success__discuss {
  text-align: left;
  max-width: 420px;
  margin: 0 auto 24px;
}
.ra-success__discuss-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
}
.ra-success__list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  list-style: disc outside; /* re-enable bullets: global `ul { list-style: none }` resets them */
}

@media (max-width: 640px) {
  .ra-duallist { grid-template-columns: 1fr; }
  .ra-duallist__controls {
    flex-direction: row;
    justify-content: center;
    padding-top: 0;
  }
  .ra-delivery-grid { grid-template-columns: repeat(2, 1fr); }
  .ra-modal { padding: 0; }
  .ra-modal__panel {
    max-width: none;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
}
