/**
 * UX layer — light theme first (readability, rhythm, hierarchy)
 */

:root {
  --ux-muted: #374151;
  --ux-muted-strong: #111827;
  --ux-border: rgba(17, 24, 39, 0.12);
  --ux-radius: 0.75rem;
  --ux-radius-lg: 1rem;
  --header-height: 4rem;
  --ux-max-read: 42rem;
}

html {
  scroll-padding-top: calc(var(--header-height) + 0.75rem);
}

body.theme-light {
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tailwind utility remaps on light surfaces */
body.theme-light .text-white {
  color: var(--text-heading);
}

body.theme-light .cta-button.text-white,
body.theme-light .filter-btn.active,
body.theme-light .nav-cta,
body.theme-light .nav-cta-mobile,
body.theme-light .skip-link {
  color: var(--text-on-accent, #0b0f19) !important;
}

body.theme-light .text-gray-400 {
  color: var(--ux-muted);
}

body.theme-light .text-gray-300 {
  color: var(--ux-muted-strong);
}

body.theme-light .text-gray-500 {
  color: #6b7280;
}

body.theme-light .text-gray-600 {
  color: var(--text-secondary);
}

body.theme-light .text-slate-600 {
  color: var(--text-secondary);
}

body.theme-light .text-slate-800 {
  color: var(--text-heading);
}

body.theme-light .border-slate-200 {
  border-color: var(--ux-border);
}

body.theme-light footer.bg-secondary-dark,
body.theme-light footer.bg-slate-900 {
  background-color: var(--bg-secondary);
  border-color: var(--border-subtle);
}

body.theme-light .bg-slate-50,
body.theme-light .bg-slate-100 {
  background-color: #f3f4f6;
}

body.theme-light .bg-slate-900 {
  background-color: var(--bg-secondary);
}

.section-anchor {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section-hero {
  scroll-margin-top: 0;
}

.section-lead {
  max-width: var(--ux-max-read);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.section-eyebrow {
  letter-spacing: 0.12em;
}

.section-title {
  text-wrap: balance;
  line-height: 1.15;
  color: var(--text-heading);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft, 0 4px 24px rgba(26, 35, 50, 0.08));
}

.site-header {
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-on-accent, #0b0f19) !important;
  background-color: var(--accent-start);
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent-end);
  box-shadow: 0 2px 10px var(--accent-glow, rgba(34, 211, 238, 0.35));
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

#mobile-menu .nav-cta-mobile {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 0.5rem;
  background-color: var(--accent-start);
  color: var(--text-on-accent, #0b0f19) !important;
  font-weight: 600;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--ux-border);
  border-radius: var(--ux-radius);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
  color: var(--text-heading);
  border-color: var(--accent-start);
  box-shadow: var(--shadow-soft, 0 4px 16px rgba(26, 35, 50, 0.06));
}

.cta-button {
  border-radius: var(--ux-radius);
  font-weight: 600;
}

.trust-strip {
  background: var(--bg-secondary);
}

.trust-strip-copy {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ux-muted);
}

.trust-strip-copy strong {
  color: var(--text-heading);
  font-weight: 600;
}

.trust-badge {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-start);
  background: var(--accent-muted, rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 9999px;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ux-muted-strong);
}

.form-input {
  border-radius: 0.5rem;
  min-height: 2.75rem;
}

textarea.form-input {
  min-height: 8rem;
}

.contact-panel {
  border-radius: var(--ux-radius-lg);
  border: 1px solid var(--ux-border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft, 0 4px 20px rgba(26, 35, 50, 0.05));
}

#mobile-menu:not(.hidden) {
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(26, 35, 50, 0.1);
}

body.mobile-nav-open {
  overflow: hidden;
}

.page-hero h1 {
  text-wrap: balance;
  letter-spacing: -0.02em;
}

body.theme-light .article-content {
  max-width: var(--ux-max-read);
}

.site-breadcrumb-bar + main > .section-hero:first-child,
.site-breadcrumb-bar + main > section:first-child {
  padding-top: 2.5rem;
}

.page-hero--compact {
  padding-top: 0;
  padding-bottom: 0;
}

body.theme-light .venture-card-static {
  cursor: default;
}

@media (min-width: 640px) {
  .filter-bar-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-hero--compact {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .site-breadcrumb-bar + main > .section-hero:first-child,
  .site-breadcrumb-bar + main > section:first-child {
    padding-top: 3rem;
  }
}

.filter-bar {
  gap: 0.5rem;
}

.filter-btn {
  min-height: 2.75rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.filter-bar-wrap {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}
