/* ═══ COLOR FLOW MAP (from design-spec.theme_context_map) ═══
 *
 * NAV: always-dark (#0F2840 solid) — logo always logo-light.svg — links always white
 *      Nav does NOT adapt per page. Always same dark solid nav.
 *
 * index.html (dark-top):
 *   body bg     → #0F2840 (dark, so transparent nav @ scroll=0 shows dark)
 *   hero        → DARK  (#0F2840)  | text: #F0F4F8 white
 *   trust-strip → DARK-ALT (#152E50) | text: #F0F4F8 white
 *   problem     → LIGHT (#F0F5FA)  | text: #0F2840 dark
 *   how-preview → WHITE (#FFFFFF)  | text: #0F2840 dark
 *   metrics     → DARK  (#0F2840)  | text: #F0F4F8 white
 *   features    → LIGHT (#F0F5FA)  | text: #0F2840 dark
 *   testimonials→ WHITE (#FFFFFF)  | text: #0F2840 dark
 *   eligibility-preview → DARK-ALT (#152E50) | text: white
 *   cta         → DARK  (#0F2840)  | text: white
 *   footer      → DARK  (#0F2840)  | text: #F0F4F8 white
 *
 * platform.html (dark-top): dark → light → white → light-alt → white → dark → light
 * how-it-works.html (light-top): light → white → light-alt → white → light → dark
 * eligibility.html (light-top): light → white → light-alt → white → light → dark
 * pricing.html (light-top): light → white → light-alt → white → dark
 * about.html (dark-top): dark → light → white → light-alt → white → dark
 * team.html (light-top): light → white → light → dark
 * contact.html (light-top): light → white (with nested dark map panel) → light
 * customers.html (dark-top): dark → light → white → dark
 * security.html (light-top): light → white → light-alt → dark
 * integrations.html (light-top): light → white → dark → light
 * solutions/*.html (dark-top): dark → light → white → dark
 * resources/index.html (light-top): light → white → light-alt → dark
 * blog/index.html (light-top): light → white → light-alt
 * blog/article.html (light-top): light → white → light-alt
 * status.html (light-top): light → white
 * login/*.html (dark-top): dark (split panel)
 * legal/*.html (light-top): light → white
 *
 * KEY RULES:
 * - dark-top pages: body bg = #0F2840 (transparent nav scroll=0 shows dark)
 * - light-top pages: body bg = default white/light (nav is solid dark ALWAYS)
 * - Adjacent dark sections need subtle border separator
 * - light-top + dark section at bottom (CTA) = dramatic contrast transition
 * ═══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts Import ─── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  /* Brand Colors */
  --tvnt-navy:           #0F2840;
  --tvnt-navy-alt:       #152E50;
  --tvnt-indigo:         #1E3A5F;
  --tvnt-gold:           #C8952A;
  --tvnt-gold-light:     #E8B84A;

  /* Foreground tokens — context-aware */
  --tvnt-fg-dark-primary:    #F0F4F8;
  --tvnt-fg-dark-secondary:  #8BA5C0;
  --tvnt-fg-light-primary:   #0F2840;
  --tvnt-fg-light-secondary: #3D6186;
  --tvnt-fg-white-primary:   #0F2840;
  --tvnt-fg-white-secondary: #546A80;

  /* Accent context tokens */
  --tvnt-accent-on-dark:  #E8B84A;
  --tvnt-accent-on-light: #996D14;

  /* Backgrounds */
  --tvnt-bg-dark:       #0F2840;
  --tvnt-bg-dark-alt:   #152E50;
  --tvnt-bg-light:      #F0F5FA;
  --tvnt-bg-light-alt:  #E8EFF7;
  --tvnt-bg-white:      #FFFFFF;
  --tvnt-bg-cream:      #FAFBFC;

  /* Borders */
  --tvnt-border-dark:   rgba(255,255,255,0.10);
  --tvnt-border-light:  rgba(15,40,64,0.12);

  /* Typography */
  --tvnt-font-display: 'Outfit', sans-serif;
  --tvnt-font-body:    'Inter', sans-serif;
  --tvnt-font-mono:    'JetBrains Mono', 'Consolas', monospace;

  /* Spacing */
  --tvnt-section-v: clamp(4rem, 8vw, 7rem);
  --tvnt-container: 1200px;
  --tvnt-radius-card: 8px;
  --tvnt-radius-btn:  6px;

  /* Transitions */
  --tvnt-transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--tvnt-font-body);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--tvnt-bg-white);
  color: var(--tvnt-fg-white-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dark-top pages: body bg = dark so transparent nav works */
body.tvnt-page--dark-top {
  background: var(--tvnt-bg-dark);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

/* ─── Container ─── */
.tvnt-container {
  max-width: var(--tvnt-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ─── Typography Base ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tvnt-font-display);
  font-weight: 600;
  line-height: 1.2;
}

p {
  line-height: 1.7;
}

/* ─── Section BGs ─── */
.tvnt-section--dark {
  background: var(--tvnt-bg-dark);
}
.tvnt-section--dark-alt {
  background: var(--tvnt-bg-dark-alt);
}
.tvnt-section--light {
  background: var(--tvnt-bg-light);
}
.tvnt-section--light-alt {
  background: var(--tvnt-bg-light-alt);
}
.tvnt-section--white {
  background: var(--tvnt-bg-white);
}
.tvnt-section--cream {
  background: var(--tvnt-bg-cream);
}

/* Section padding */
.tvnt-section {
  padding: var(--tvnt-section-v) 0;
}

/* ─── Eyebrow / Label ─── */
.tvnt-eyebrow {
  font-family: var(--tvnt-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.tvnt-section--dark .tvnt-eyebrow,
.tvnt-section--dark-alt .tvnt-eyebrow {
  color: var(--tvnt-accent-on-dark);
}

.tvnt-section--light .tvnt-eyebrow,
.tvnt-section--light-alt .tvnt-eyebrow,
.tvnt-section--white .tvnt-eyebrow,
.tvnt-section--cream .tvnt-eyebrow {
  color: var(--tvnt-accent-on-light);
}

/* ─── Section Headings ─── */
.tvnt-section__heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.tvnt-section__subhead {
  font-size: 1.125rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Text colors per section context — declared AFTER base above */
.tvnt-section--dark .tvnt-section__heading,
.tvnt-section--dark-alt .tvnt-section__heading {
  color: var(--tvnt-fg-dark-primary);
}
.tvnt-section--dark .tvnt-section__subhead,
.tvnt-section--dark-alt .tvnt-section__subhead {
  color: var(--tvnt-fg-dark-secondary);
}
.tvnt-section--dark p,
.tvnt-section--dark-alt p {
  color: var(--tvnt-fg-dark-secondary);
}
.tvnt-section--dark h2, .tvnt-section--dark h3,
.tvnt-section--dark-alt h2, .tvnt-section--dark-alt h3 {
  color: var(--tvnt-fg-dark-primary);
}

.tvnt-section--light .tvnt-section__heading,
.tvnt-section--light-alt .tvnt-section__heading,
.tvnt-section--white .tvnt-section__heading,
.tvnt-section--cream .tvnt-section__heading {
  color: var(--tvnt-fg-light-primary);
}
.tvnt-section--light .tvnt-section__subhead,
.tvnt-section--light-alt .tvnt-section__subhead,
.tvnt-section--white .tvnt-section__subhead,
.tvnt-section--cream .tvnt-section__subhead {
  color: var(--tvnt-fg-light-secondary);
}
.tvnt-section--light p,
.tvnt-section--light-alt p,
.tvnt-section--white p,
.tvnt-section--cream p {
  color: var(--tvnt-fg-white-secondary);
}
.tvnt-section--light h2, .tvnt-section--light h3,
.tvnt-section--light-alt h2, .tvnt-section--light-alt h3,
.tvnt-section--white h2, .tvnt-section--white h3,
.tvnt-section--cream h2, .tvnt-section--cream h3 {
  color: var(--tvnt-fg-light-primary);
}

/* ─── Buttons ─── */
.tvnt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--tvnt-radius-btn);
  font-family: var(--tvnt-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--tvnt-transition);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Primary (for light sections) */
.tvnt-btn--primary {
  background: var(--tvnt-navy);
  color: #FFFFFF;
  border-color: var(--tvnt-navy);
}
.tvnt-btn--primary:hover {
  background: var(--tvnt-indigo);
  border-color: var(--tvnt-indigo);
}

/* Primary Gold (for dark sections) */
.tvnt-btn--primary-gold {
  background: var(--tvnt-gold);
  color: var(--tvnt-navy);
  border-color: var(--tvnt-gold);
}
.tvnt-btn--primary-gold:hover {
  background: var(--tvnt-gold-light);
  border-color: var(--tvnt-gold-light);
}

/* Outline Light (for dark sections) */
.tvnt-btn--outline-light {
  background: transparent;
  color: var(--tvnt-fg-dark-primary);
  border-color: rgba(240,244,248,0.35);
}
.tvnt-btn--outline-light:hover {
  background: rgba(240,244,248,0.1);
  border-color: rgba(240,244,248,0.6);
}

/* Outline Dark (for light sections) */
.tvnt-btn--outline-dark {
  background: transparent;
  color: var(--tvnt-navy);
  border-color: var(--tvnt-navy);
}
.tvnt-btn--outline-dark:hover {
  background: var(--tvnt-navy);
  color: #FFFFFF;
}

/* Ghost on dark */
.tvnt-btn--ghost-on-dark {
  background: transparent;
  color: var(--tvnt-accent-on-dark);
  border-color: transparent;
  text-decoration: underline;
}

/* ─── NAV ─── */
.tvnt-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--tvnt-bg-dark);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tvnt-transition), box-shadow var(--tvnt-transition);
}

.tvnt-nav--scrolled {
  border-bottom-color: var(--tvnt-border-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.tvnt-nav__inner {
  max-width: var(--tvnt-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.tvnt-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.tvnt-nav__logo img {
  height: 32px;
  width: auto;
  max-width: 160px;
}

.tvnt-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.tvnt-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tvnt-fg-dark-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color var(--tvnt-transition), background var(--tvnt-transition);
}

.tvnt-nav__link:hover {
  color: var(--tvnt-fg-dark-primary);
  background: rgba(255,255,255,0.05);
}

.tvnt-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.tvnt-nav__login {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tvnt-fg-dark-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color var(--tvnt-transition);
}

.tvnt-nav__login:hover {
  color: var(--tvnt-fg-dark-primary);
}

.tvnt-nav__cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  background: var(--tvnt-gold);
  color: var(--tvnt-navy);
  border-radius: var(--tvnt-radius-btn);
  font-weight: 700;
  transition: background var(--tvnt-transition);
}

.tvnt-nav__cta:hover {
  background: var(--tvnt-gold-light);
}

/* Hamburger (mobile) */
.tvnt-nav__hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.tvnt-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tvnt-fg-dark-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav menu */
.tvnt-nav__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--tvnt-bg-dark);
  border-top: 1px solid var(--tvnt-border-dark);
  padding: 1rem 0;
}

.tvnt-nav__mobile-menu.is-open {
  display: block;
}

.tvnt-nav__mobile-link {
  display: block;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  color: var(--tvnt-fg-dark-secondary);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--tvnt-transition);
}

.tvnt-nav__mobile-link:hover {
  color: var(--tvnt-fg-dark-primary);
}

.tvnt-nav__mobile-actions {
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--tvnt-border-dark);
  margin-top: 0.5rem;
}

/* ─── FOOTER ─── */
.tvnt-footer {
  background: var(--tvnt-bg-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--tvnt-border-dark);
}

.tvnt-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--tvnt-border-dark);
}

.tvnt-footer__logo img {
  height: 28px;
  width: auto;
  max-width: 140px;
  margin-bottom: 1rem;
}

.tvnt-footer__tagline {
  font-size: 0.875rem;
  color: var(--tvnt-fg-dark-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.tvnt-footer__contact-block {
  font-size: 0.875rem;
  color: var(--tvnt-fg-dark-secondary);
  line-height: 1.8;
}

.tvnt-footer__contact-block a {
  color: var(--tvnt-fg-dark-secondary);
  transition: color var(--tvnt-transition);
}

.tvnt-footer__contact-block a:hover {
  color: var(--tvnt-accent-on-dark);
}

.tvnt-footer__col-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tvnt-footer__col-title {
  font-family: var(--tvnt-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tvnt-fg-dark-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.tvnt-footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tvnt-footer__col-link {
  font-size: 0.875rem;
  color: var(--tvnt-fg-dark-secondary);
  transition: color var(--tvnt-transition);
}

.tvnt-footer__col-link:hover {
  color: var(--tvnt-accent-on-dark);
}

.tvnt-footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.tvnt-footer__copyright {
  font-size: 0.8125rem;
  color: var(--tvnt-fg-dark-secondary);
}

.tvnt-footer__disclosure {
  font-size: 0.75rem;
  color: rgba(139,165,192,0.65);
  max-width: 620px;
  text-align: right;
  line-height: 1.5;
}

.tvnt-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
}

.tvnt-footer__legal-link {
  color: var(--tvnt-fg-dark-secondary);
  transition: color var(--tvnt-transition);
}

.tvnt-footer__legal-link:hover {
  color: var(--tvnt-accent-on-dark);
}

.tvnt-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tvnt-footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tvnt-border-dark);
  border-radius: 50%;
  color: var(--tvnt-fg-dark-secondary);
  font-size: 0.875rem;
  transition: all var(--tvnt-transition);
}

.tvnt-footer__social-link:hover {
  border-color: var(--tvnt-accent-on-dark);
  color: var(--tvnt-accent-on-dark);
}

/* ─── Cookie Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--tvnt-navy-alt);
  border-top: 1px solid var(--tvnt-border-dark);
  padding: 1rem 0;
}

.cookie-banner__inner {
  max-width: var(--tvnt-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--tvnt-fg-dark-secondary);
  flex: 1;
  min-width: 200px;
}

.cookie-banner__text a {
  color: var(--tvnt-accent-on-dark);
  text-decoration: underline;
}

.cookie-banner__actions {
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--tvnt-font-body);
  cursor: pointer;
}

.cookie-banner__btn--primary {
  padding: 0.5rem 1.25rem;
  background: var(--tvnt-gold);
  color: var(--tvnt-navy);
  border: none;
  border-radius: var(--tvnt-radius-btn);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--tvnt-transition);
}

.cookie-banner__btn--primary:hover {
  background: var(--tvnt-gold-light);
}

/* ─── Fade-in animations ─── */
.tvnt-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tvnt-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Failsafe: if JS doesn't fire, reveal after 1.2s */
@keyframes tvnt-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.tvnt-fade-in {
  animation: tvnt-reveal 0.5s ease 1.2s forwards;
}

/* ─── Utility Classes ─── */
.tvnt-text-gold {
  color: var(--tvnt-accent-on-dark);
}

.tvnt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.tvnt-mono {
  font-family: var(--tvnt-font-mono);
}

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
  .tvnt-nav__links,
  .tvnt-nav__actions {
    display: none;
  }

  .tvnt-nav__hamburger {
    display: flex;
    margin-left: auto;
  }

  .tvnt-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tvnt-footer__col-group {
    grid-template-columns: 1fr 1fr;
  }

  .tvnt-footer__bottom {
    flex-direction: column;
  }

  .tvnt-footer__disclosure {
    text-align: left;
    max-width: 100%;
  }

  .tvnt-footer__legal-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .tvnt-footer__col-group {
    grid-template-columns: 1fr;
  }
}
